Re: crashme fault

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Saturday, September 15, 2007 - 3:15 pm

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
crashme fault, Randy Dunlap, (Wed Sep 12, 10:21 pm)
Re: crashme fault, Linus Torvalds, (Fri Sep 14, 9:28 pm)
Re: crashme fault, Randy Dunlap, (Fri Sep 14, 10:05 pm)
Re: crashme fault, Randy Dunlap, (Fri Sep 14, 10:21 pm)
Re: crashme fault, Andi Kleen, (Sat Sep 15, 11:34 am)
Re: crashme fault, Randy Dunlap, (Sat Sep 15, 11:40 am)
Re: crashme fault, Linus Torvalds, (Sat Sep 15, 12:44 pm)
Re: crashme fault, Randy Dunlap, (Sat Sep 15, 12:53 pm)
Re: crashme fault, Linus Torvalds, (Sat Sep 15, 3:15 pm)
Re: crashme fault, Linus Torvalds, (Sat Sep 15, 3:47 pm)
Re: crashme fault, Randy Dunlap, (Sat Sep 15, 4:47 pm)
Re: crashme fault, Linus Torvalds, (Sat Sep 15, 5:34 pm)
Re: crashme fault, Andi Kleen, (Sat Sep 15, 8:10 pm)
Re: crashme fault, Andrea Arcangeli, (Sun Sep 16, 8:53 am)
Re: crashme fault, Randy Dunlap, (Sun Sep 16, 9:17 am)
Re: crashme fault, Randy Dunlap, (Sun Sep 16, 9:40 am)
Re: crashme fault, Linus Torvalds, (Sun Sep 16, 10:14 am)
Re: crashme fault, Linus Torvalds, (Sun Sep 16, 11:12 am)
Re: crashme fault, Andi Kleen, (Sun Sep 16, 11:28 am)
Re: crashme fault, Randy Dunlap, (Sun Sep 16, 10:06 pm)
Re: crashme fault, Linus Torvalds, (Sun Sep 16, 10:28 pm)
Re: crashme fault, Randy Dunlap, (Mon Sep 17, 7:29 am)
Re: crashme fault, Linus Torvalds, (Mon Sep 17, 7:53 am)
Re: crashme fault, Randy Dunlap, (Mon Sep 17, 1:05 pm)