diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-13 03:20:10 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-13 03:20:10 +0000 |
commit | ec1e7cccbaa3dfdfb058ff7ff7cde84f8b21c675 (patch) | |
tree | 7bf58d8c969efe0c9af6e641ff5dcb75699cc689 /sys/geom/geom_io.c | |
parent | 23077fe3b55685878e9a5cc253aac2a7311b2755 (diff) | |
download | FreeBSD-src-ec1e7cccbaa3dfdfb058ff7ff7cde84f8b21c675.zip FreeBSD-src-ec1e7cccbaa3dfdfb058ff7ff7cde84f8b21c675.tar.gz |
Don't use VM_MIN_KERNEL_ADDRESS to check if the faulting address is
in user space or kernel space. VM_MIN_KERNEL_ADDRESS starts after the
gateway page, which means that improper memory accesses to the gateway
page while in user mode would panic the kernel. Use VM_MAX_ADDRESS
instead. It ends before the gateway page. The difference between
VM_MIN_KERNEL_ADDRESS and VM_MAX_ADDRESS is exactly the gateway page.
Diffstat (limited to 'sys/geom/geom_io.c')
0 files changed, 0 insertions, 0 deletions