Subject: kern/8033: ELF modload causes kernel crash when trying to load a.out
To: None <gnats-bugs@gnats.netbsd.org>
From: Charles M. Hannum <root@ihack.net>
List: netbsd-bugs
Date: 07/19/1999 13:01:06
>Number: 8033
>Category: kern
>Synopsis: ELF modload causes kernel crash when trying to load a.out
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 19 12:35:01 1999
>Last-Modified:
>Originator: Charles M. Hannum
>Organization:
Internetwork Hacker
>Release: 1.4G, 1999/07/18
>Environment:
1.4G/i386
>Description:
When given an a.out kernel and an a.out AFS module, the ELF
modload causes a crash, rather than failing gracefully:
ld: warning: cannot find entry symbol afsmodload; defaulting to 00000000
ld: warning: cannot find entry symbol afsmodload; defaulting to f2ff4000
uvm_fault(0xf0265490, 0xf3027000, 0, 3) -> 1
..
Stopped in modload at 0xf2ff4009: incl 0xf3027510
The kernel and module pair worked fine with the old a.out
modload.
>How-To-Repeat:
Kernel and AFS module can be supplied on request.
>Fix:
If the new modload cannot handle a.out, it should fail
gracefully, with an error message, and not crash the system.
>Audit-Trail:
>Unformatted: