Re: BUG-lockdep and freeze (was: Arrr! Linux 2.6.18)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Andi Kleen <[email protected]> wrote:

> > Why not just add the simple validation?
> > 
> > A kernel stack is one page in size. If you move to another page, you 
> > terminate. It's that simple.
> 
> No, it's not. On x86-64 it can be three or more stacks nested in 
> complicated ways (process stack, interrupt stack, exception stack) The 
> exception stack can happen multiple times.

it could be cleanly handled though: in June i suggested to use the 
next-stack pointers at the end of exception pages. The only current 
complexity here is that the 'linking' of exception pages is non-uniform, 
it depends on the type of page. That's largely why that complex 
statemachine had to be implemented, to match up the type of the page. 
Since those pointers are put there by us, there's no real reason why we 
couldnt standardize them.

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux