Could work, yes.
>
> BUT: that's dangerous, because we might read from the mmap'ed io space
> of a hardware device.
And? There are thousands of ways to crash the machine when you have write access
to /dev/mmap, and when you have read access there are so many security
holes that DoS capacibility is only a small step. Unix generally does not
prevent root from shooting into his own foot.
>
> The current show_registers() [arch/i386/kernel/traps.c] code has the
> same problem: on SMP, it causes a hard lock-up if the EIP value got
> corrupted.
You do not even need SMP.
I was recently fighting with that. The stack pointer was corrupted,
leading to invalid current, leading to invalid page table, leading to
recursive oops when it tries to dump the bogus page table (but without the
registers, because the pte access is in front of show_registers) It would
be a good addition IMHO.
-Andi
-- This is like TV. I don't like TV.- 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/