Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1188778imm; Tue, 15 May 2018 15:24:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo38L6FIqfdaiEWdGd8jO5N87H2RZOR2uJ70m6RtNqhx1LZ712Tj5YY4hBATZofPyf76X9o X-Received: by 2002:a17:902:848b:: with SMTP id c11-v6mr16310614plo.132.1526423063569; Tue, 15 May 2018 15:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526423063; cv=none; d=google.com; s=arc-20160816; b=HHVZ1ZvuG6U7UWQE56Tvmx+lxd1NE2fbLVH6etGXleSTUzGem2LbqWAYCVeJnwtypv vcl8GQRj56/kyuE9ptO2/iNhDbAIYO4O2s5IN5BKFa6HECFH+XLKG2EV6jQVZa1ZtoO1 bp2QWp9+50e5lOGWFYtAkld5t/Kqac/mUyzAE+f31ZA0m9Ch2fplArh87qsNTn7FApaq YKmr5cCiaK7cVAW29HAkZmb3X7LBvf5iqf28SK31J8t8sHk5F9Er5IG61DqpdFQOWSYN ps5tafzEXR9eG+cpX46dg9dvavRUcq3Px7vEL448vQWTJ6Y5/v5E9vYlvqEALxxeAIVJ LfMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=JcTG17TXxejvdekM+p7qId96iiwxAzqU6hwimsTvk3w=; b=mA9b9mJ/66WvBDM45myiGEJ+/nh6IxbXorAA97tAxRtGFCFIewY8oT1PCs0YcQbCAA TxtHF18fVwr4UoaMD7SecXdLJPMS+g8HetOtHUyAwmG6LA0pYCg7U8CaJCzdu20YoiBq c+HO/X2BFvX03Wz1sRLe9eDQfo5Ntw8VQ2AjNEJYJLVOWDwWZnrsZ2T4irAM9aF6EISn G+aS7BOGv64sFRQuA+lqXoNe9zCainozPCT3I5dLtBIW90XXrAtrWl7huk2RE1iWcc3C 5ge739B3ZYn0IkXZHor+lK5ESPYVPCFwlXVVs5Xn7tC7h1ZkXzaOEBILwtJozxHNnt1b 9ovw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g77-v6si1080546pfa.304.2018.05.15.15.24.09; Tue, 15 May 2018 15:24:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbeEOWWQ (ORCPT + 99 others); Tue, 15 May 2018 18:22:16 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41892 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751309AbeEOWWP (ORCPT ); Tue, 15 May 2018 18:22:15 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA300805A531; Tue, 15 May 2018 22:22:14 +0000 (UTC) Received: from treble (ovpn-120-21.rdu2.redhat.com [10.10.120.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5158164004; Tue, 15 May 2018 22:22:13 +0000 (UTC) Date: Tue, 15 May 2018 17:22:11 -0500 From: Josh Poimboeuf To: Alexey Dobriyan Cc: "Anvin, H Peter" , "Ye, Xiaolong" , Ingo Molnar , Thomas Gleixner , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Linus Torvalds , Peter Zijlstra , LKML , "H. Peter Anvin" , "tipbuild@zytor.com" , "lkp@01.org" Subject: Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##] Message-ID: <20180515222211.ods5hzne46hozojq@treble> References: <20180515080033.GA7714@yexl-desktop> <20180515210757.GA12225@avx2> <20180515214337.GA18021@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180515214337.GA18021@avx2> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 15 May 2018 22:22:14 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 15 May 2018 22:22:14 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 12:43:37AM +0300, Alexey Dobriyan wrote: > On Tue, May 15, 2018 at 09:25:53PM +0000, Anvin, H Peter wrote: > > Why is that a problem? > > Code: 00 00 00 eb e6 cc cc cc cc cc cc cc cc cc cc cc cc cc fa 8d b6 00 00 00 00 e8 5d e8 8f ff 8b 44 24 34 83 e0 03 83 f8 03 72 28 cc <cc> cc cc cc cc cc cc fa 8d b6 00 00 00 00 e8 3d e8 8f ff 89 e0 > > > > EIP: ret_from_intr+0xd/0x14 SS:ESP: 0068:8603bfb4 > > > > INT3 slipped through M586 => X86_ALIGNMENT_16 :-\ > > I could make the patch x86_64 only, but! > > It crashed into the middle of the padding. > > 796ef8fc : > 796ef8fc: 8b 44 24 34 mov eax,DWORD PTR [esp+0x34] > 796ef900: 83 e0 03 and eax,0x3 > 796ef903: 83 f8 03 cmp eax,0x3 > 796ef906: 72 28 jb 796ef930 > 796ef908: cc int3 > 796ef909: cc <========> int3 > 796ef90a: cc int3 > 796ef90b: cc int3 > 796ef90c: cc int3 > 796ef90d: cc int3 > 796ef90e: cc int3 > 796ef90f: cc int3 The padding isn't needed there, and the resume_userspace symbol is never used, so wouldn't this fix it? diff --git a/arch/x86/entry/entry_32.S b/arch/x86/entry/entry_32.S index bef8e2b202a8..9e56243c984c 100644 --- a/arch/x86/entry/entry_32.S +++ b/arch/x86/entry/entry_32.S @@ -338,7 +338,6 @@ ret_from_intr: cmpl $USER_RPL, %eax jb resume_kernel # not returning to v8086 or userspace -ENTRY(resume_userspace) DISABLE_INTERRUPTS(CLBR_ANY) TRACE_IRQS_OFF movl %esp, %eax