freebsd-dev/sys/amd64
John Baldwin 39092e79ed Don't allow userland to set hardware watch points on kernel memory at all.
Previously, we tried to allow this only for root.  However, we were calling
suser() on the *target* process rather than the current process.  This
means that if you can ptrace() a process running as root you can set a
hardware watch point in the kernel.  In practice I think you probably have
to be root in order to pass the p_candebug() checks in ptrace() to attach
to a process running as root anyway.  Rather than fix the suser(), I just
axed the entire idea, as I can't think of any good reason _at all_ for
userland to set hardware watch points for KVM.

MFC after:	3 days
Also thinks hardware watch points on KVM from userland are bad:	bde, rwatson
2006-03-14 16:13:55 +00:00
..
acpica
amd64 Don't allow userland to set hardware watch points on kernel memory at all. 2006-03-14 16:13:55 +00:00
compile
conf
ia32
include Merge/sync with i386: various cosmetic tweaks 2006-03-14 00:01:56 +00:00
isa
linux32
pci MFi386: rename pcib_devclass to hostb_devclass (cosmetic here) 2006-03-13 23:58:40 +00:00
Makefile