It should actually be safe. The debug trap handler is careful to not
aquire any locks (ie no deadlock situations), and should alwasy ignore
events from kernel space.
The patch looks fine regardless, but I want to have a robust system, and
that does mean that even if somebody can trigger a debug trap in the
kernel (easy to do by just having a read() system call write over
something you want to get the trap on in user mode) then the kernel should
not really have to care anyway.
So it might actually be valid to rmeove the test altogether. I'll think
about it.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/