Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751358AbdCQVMB (ORCPT ); Fri, 17 Mar 2017 17:12:01 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:35947 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbdCQVL6 (ORCPT ); Fri, 17 Mar 2017 17:11:58 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170317115924.GA82960@inn.lkp.intel.com> From: Linus Torvalds Date: Fri, 17 Mar 2017 14:10:42 -0700 X-Google-Sender-Auth: GST-AA66hxX-TEQQuuKOlYGEhQQ Message-ID: Subject: Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel To: Andy Lutomirski Cc: Andy Lutomirski , kernel test robot , Thomas Garnier , Ingo Molnar , Alexander Potapenko , Andrew Morton , Andrey Ryabinin , Ard Biesheuvel , Boris Ostrovsky , Borislav Petkov , Chris Wilson , Christian Borntraeger , Dmitry Vyukov , Frederic Weisbecker , Jiri Kosina , Joerg Roedel , Jonathan Corbet , Josh Poimboeuf , Juergen Gross , Kees Cook , Len Brown , Lorenzo Stoakes , "Luis R . Rodriguez" , Matt Fleming , Michal Hocko , Paolo Bonzini , Paul Gortmaker , Pavel Machek , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "Rafael J . Wysocki" , Rusty Russell , Stanislaw Gruszka , Thomas Gleixner , Tim Chen , Vitaly Kuznetsov , zijun_hu , LKML , "H. Peter Anvin" , tipbuild@zytor.com, LKP Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 20 On Fri, Mar 17, 2017 at 1:18 PM, Andy Lutomirski wrote: > On Fri, Mar 17, 2017 at 12:36 PM, Linus Torvalds > 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