Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit forced

From: Linus Torvalds
Date: Thu Dec 14 2017 - 17:50:11 EST


On Thu, Dec 14, 2017 at 2:23 PM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> The user knows the LDT contents because he put it there and it can be read
> via modify_ldt(0, ) anyway. Or am I misunderstanding what you are trying to
> say?

I don't think they are secret, it's more of a "if they can read it,
they can write it" kind of thing.

The whole "it should be RO" makes no sense. The first choice should be
"it should be inaccessible".

And that actually seems the _simpler_ choice.

Linus