Messages in this thread | | | Date | Wed, 7 Aug 2013 12:26:16 -0700 | Subject | Re: [PATCH 0/1] (Was: Linux 3.11-rc4) | From | Linus Torvalds <> |
| |
On Wed, Aug 7, 2013 at 5:05 AM, Grazvydas Ignotas <notasas@gmail.com> wrote: > > Personally I'd say the kernel should not limit what's written to debug > registers. Why can't I write insane values to registers in _my_ > hardware? It's not like it's going to break the hardware or anything.
It may be your hardware, but do you know what might be running on it? It's a security issue: setting debug traps on kernel code/data addresses can not only leak information, it can cause serious trouble (taking a debug trap on the first instruction of an NMI handler etc) including kernel stack corruption...
You do want the kernel to give you file permission checking even though it's "your machine", don't you? Very similar thing.
The fact that windows allows it is kind of irrelevant. They aren't exactly known for caring deeply.
Linus
| |