Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751246AbdCQUSz (ORCPT ); Fri, 17 Mar 2017 16:18:55 -0400 Received: from mail-vk0-f41.google.com ([209.85.213.41]:35797 "EHLO mail-vk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbdCQUSw (ORCPT ); Fri, 17 Mar 2017 16:18:52 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170317115924.GA82960@inn.lkp.intel.com> From: Andy Lutomirski Date: Fri, 17 Mar 2017 13:18:23 -0700 Message-ID: Subject: Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel To: Linus Torvalds 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: 897 Lines: 29 On Fri, Mar 17, 2017 at 12:36 PM, Linus Torvalds wrote: > On Fri, Mar 17, 2017 at 11:20 AM, Andy Lutomirski wrote: >> >> I can easily imagine that breaking WINE or DOSEMU because it'll affect >> the LDT, too. > > 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.) > >> How about this: > > I don't think that's _wrong_, but.. > > I'd really rather just do it in fill_ldt() itself, unless you can > explain how it would be visible to anybody.. See above :( (Also, your approach would probably break some selftests.) --Andy