Web lists-archives.com

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel




On Fri, Mar 17, 2017 at 1:18 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> On Fri, Mar 17, 2017 at 12:36 PM, Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Can they even *read* the LDT contents, though? The whole accessed bit
>> doesn't show up in 'struct user_desc', so you can neither set it nor
>> read it.
>
> LAR.  I've learned to never underestimate the absurdity of the games
> played by 16-bit apps.  (See, for example, the fact that some of them
> apparently use SGDT just to find a page that's guaranteed not to be
> accessible.)

Ugh. Right you are, LAR will return those type bits.

Of course, maybe somebody cares about them in the GDT already?  So
it's visible even with your patch, isn't it. We give users four
entries to play with...

                Linus