[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/38425: savecore confused if getbootfile(3) fails
>Synopsis: savecore confused if getbootfile(3) fails
>Arrival-Date: Mon Apr 14 04:40:00 +0000 2008
>Originator: Simon Burge
>Release: NetBSD current, any time after 2008/01/15
Architecture: all ?
Machine: all ?
If you try to boot a non-root-owned kernel that isn't called
'netbsd', getbootfile() fails and savecore will try to use
/netbsd anyway. The KREAD in kmem_setup() that fetches the
'dumpcdev' value will then read some random garbage value. In
my case, that reads a "0". find_dev() then searches for dev_t
0, returns "/dev/console" and any further operations that
try to read from "kernel" memory now block waiting for console
Boot from a non-root-owned kernel that isn't called 'netbsd'
Not sure.. Better error checking in kmem_setup()?
Main Index |
Thread Index |