From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753366AbbGaQwx (ORCPT ); Fri, 31 Jul 2015 12:52:53 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:23052 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbbGaQwn (ORCPT ); Fri, 31 Jul 2015 12:52:43 -0400 Message-ID: <55BBA785.2000704@oracle.com> Date: Fri, 31 Jul 2015 12:51:17 -0400 From: Boris Ostrovsky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andy Lutomirski CC: Andy Lutomirski , Peter Zijlstra , Steven Rostedt , "security@kernel.org" , X86 ML , Borislav Petkov , Sasha Levin , "linux-kernel@vger.kernel.org" , Konrad Rzeszutek Wilk , Andrew Cooper , Jan Beulich , xen-devel , stable Subject: Re: [PATCH v5 2/4] x86/ldt: Make modify_ldt synchronous References: <1f1e8e0367408585694132a0e8693d157959ce30.1438061139.git.luto@kernel.org> <55BA6534.2080407@oracle.com> <55BA6E6B.7040102@oracle.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/30/2015 03:25 PM, Andy Lutomirski wrote: > On Thu, Jul 30, 2015 at 11:35 AM, Boris Ostrovsky > wrote: >> [OK] LDT entry 0 has AR 0x0040F200 and limit 0x00000000 >> [OK] LDT entry 0 is invalid >> [RUN] Cross-CPU LDT invalidation >> Segmentation fault (core dumped) > That's not good. > > Can you backtrace it? (I.e. compite ldt_gdt_32 with -g and load the > core dumb in gdb?) My best guesses are either a signal delivery > failure (although that shouldn't be a problem for 32-bit userspace on > any kernel) or an actual LDT access fault, and the latter would be > interesting. > > I haven't been able to reproduce this. This looks like a userspace bug. Breaks on F18, works fine in F22. Possibly something about signal handling --- I noticed on F18 I'd get two SEGV's in a row whereas we should only get one. Anyway, this is not an issue as far as this thread is concerned. -boris