On Sat, 15 Sep 2007, Linus Torvalds wrote:Side note - while thinking about this, I'm wondering whether maybe that "stupid" patch might not actually be the right thing to do. The fact is, the "user access" bit in the error code is in many ways a totally *different* issue than the "user_mode(regs)" test. We may end up having a system page fault for some action that was initiated by user space: eg taking a page fault on a segment load. And it may well be marked as a "system access" in the error code, even though the instruction that triggered it was all user mode, and even though we could just terminate the program rather than oops. That said, since the kernel isn't paging itself out, user mode generally should not be able to generate those kinds of system access page faults. Our segment tables should all be in core, and so I would still in *practice* always expect the register state and the error code to match in the "usermode'ness". So regardless of whether we want to trust "user_mode(regs)" more than "error_code & PF_USER", it would definitely be very interesting if you can give a good "this is where it started happening". Linus -
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Andi Kleen | [PATCH] [4/50] x86: add cpu codenames for Kconfig.cpu |
| Andi Kleen | [PATCH] [0/45] x86 2.6.24 patches review I |
| Stoyan Gaydarov | From 2.4 to 2.6 to 2.7? |
git: | |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
