mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: kernel test robot <xiaolong.ye@intel.com>
Cc: "Thomas Garnier" <thgarnie@google.com>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Alexander Potapenko" <glider@google.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Andrey Ryabinin" <aryabinin@virtuozzo.com>,
	"Andy Lutomirski" <luto@kernel.org>,
	"Ard Biesheuvel" <ard.biesheuvel@linaro.org>,
	"Boris Ostrovsky" <boris.ostrovsky@oracle.com>,
	"Borislav Petkov" <bp@suse.de>,
	"Chris Wilson" <chris@chris-wilson.co.uk>,
	"Christian Borntraeger" <borntraeger@de.ibm.com>,
	"Dmitry Vyukov" <dvyukov@google.com>,
	"Frederic Weisbecker" <fweisbec@gmail.com>,
	"Jiri Kosina" <jikos@kernel.org>,
	"Joerg Roedel" <joro@8bytes.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Josh Poimboeuf" <jpoimboe@redhat.com>,
	"Juergen Gross" <jgross@suse.com>,
	"Kees Cook" <keescook@chromium.org>,
	"Len Brown" <len.brown@intel.com>,
	"Lorenzo Stoakes" <lstoakes@gmail.com>,
	"Luis R . Rodriguez" <mcgrof@kernel.org>,
	"Matt Fleming" <matt@codeblueprint.co.uk>,
	"Michal Hocko" <mhocko@suse.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Paul Gortmaker" <paul.gortmaker@windriver.com>,
	"Pavel Machek" <pavel@ucw.cz>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	"Rusty Russell" <rusty@rustcorp.com.au>,
	"Stanislaw Gruszka" <sgruszka@redhat.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Tim Chen" <tim.c.chen@linux.intel.com>,
	"Vitaly Kuznetsov" <vkuznets@redhat.com>,
	zijun_hu <zijun_hu@htc.com>, LKML <linux-kernel@vger.kernel.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	tipbuild@zytor.com, LKP <lkp@01.org>
Subject: Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel
Date: Fri, 17 Mar 2017 11:00:44 -0700	[thread overview]
Message-ID: <CA+55aFx2ArTYrdd10A07Y-cD==7yCNE-2kZQcMeAoZKnxFCO2Q@mail.gmail.com> (raw)
In-Reply-To: <CA+55aFwx5D1hSaW6ac3D=30cY7=2i4cPmGn9zB-1a8ywpau3cw@mail.gmail.com>

On Fri, Mar 17, 2017 at 10:49 AM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> The linear address can be used to look up which entry it is. I assume
> the GDT starts at ffffffffff577000, and that this is at offset 0x60
> from that. Whatever descriptor that would be..

Hmm. That should be gdt index 12, aka GDT_ENTRY_TLS_MIN.

I guess user space can set almost anything there. Including setting a
segment type that isn't accessed, and that the CPU will change on the
first actual access.

We do have code to verify the limits and types etc iirc, I guess we
can make sure to set the accessed bit too.

              Linus

  reply	other threads:[~2017-03-17 18:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17 11:59 kernel test robot
2017-03-17 17:41 ` Thomas Garnier
2017-03-20  1:40   ` Ye Xiaolong
2017-03-21 16:11     ` Thomas Garnier
2017-03-17 17:49 ` Linus Torvalds
2017-03-17 18:00   ` Linus Torvalds [this message]
2017-03-17 18:07     ` Linus Torvalds
2017-03-17 18:20       ` Andy Lutomirski
2017-03-17 19:36         ` Linus Torvalds
2017-03-17 20:18           ` Andy Lutomirski
2017-03-17 21:10             ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+55aFx2ArTYrdd10A07Y-cD==7yCNE-2kZQcMeAoZKnxFCO2Q@mail.gmail.com' \
    --to=torvalds@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=aryabinin@virtuozzo.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=borntraeger@de.ibm.com \
    --cc=bp@suse.de \
    --cc=chris@chris-wilson.co.uk \
    --cc=corbet@lwn.net \
    --cc=dvyukov@google.com \
    --cc=fweisbec@gmail.com \
    --cc=glider@google.com \
    --cc=hpa@zytor.com \
    --cc=jgross@suse.com \
    --cc=jikos@kernel.org \
    --cc=joro@8bytes.org \
    --cc=jpoimboe@redhat.com \
    --cc=keescook@chromium.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@01.org \
    --cc=lstoakes@gmail.com \
    --cc=luto@kernel.org \
    --cc=matt@codeblueprint.co.uk \
    --cc=mcgrof@kernel.org \
    --cc=mhocko@suse.com \
    --cc=mingo@kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=pavel@ucw.cz \
    --cc=pbonzini@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rjw@rjwysocki.net \
    --cc=rkrcmar@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=sgruszka@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=thgarnie@google.com \
    --cc=tim.c.chen@linux.intel.com \
    --cc=tipbuild@zytor.com \
    --cc=vkuznets@redhat.com \
    --cc=xiaolong.ye@intel.com \
    --cc=zijun_hu@htc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®