Temporarily work around a race in the kernel. The kernel does a sanity check
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 19:59:51 +0000 (19:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 19:59:51 +0000 (19:59 +0000)
commit6ca7b5acfeeb4bb355649a068288c9c0fb64e4e1
treef8252990bd7c40c46b986c77360b8e74eb2f4d7f
parent8ff58dceeff493c53a233f930ff280fe9537b80c
Temporarily work around a race in the kernel.  The kernel does a sanity check
on the KVM memory range read via /dev/[k]mem.  However, if the user buffer
takes a VM fault and blocks the process, the related kernel memory could
become invalid while the process was blocked.  Try to avoid taking faults on
the user buffer by touching it first.

Reported-by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
lib/libkvm/kvm.c