Avoid a recursive kernel fault and subsequent double fault if the VM fault
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 20:02:09 +0000 (20:02 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 20:02:09 +0000 (20:02 +0000)
commitc40f2b75ffd56d5f929402e828131a0704dd1e9b
tree93701b223509d6507f64ace8341048df02a20e1a
parent6ca7b5acfeeb4bb355649a068288c9c0fb64e4e1
Avoid a recursive kernel fault and subsequent double fault if the VM fault
code gets a KVM map_entry with a NULL object.  Such entries exist in system
maps managed directly by the kernel, such as the buffer cache and kernel_map.
Instead, we check for the condition and panic immediately.  Programs which
access /dev/[k]mem can hit this race/failure.

Reported-by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
sys/vm/vm_fault.c