From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752304AbeEOW31 (ORCPT ); Tue, 15 May 2018 18:29:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:51582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751309AbeEOW30 (ORCPT ); Tue, 15 May 2018 18:29:26 -0400 X-Google-Smtp-Source: AB8JxZof+fKjs8qBHYFAAo2psoM0H/VxEGZ1I633EFcTD2O492fJCqBD91EttHM3q1+WpH9G6HyW8sqNc5piptIeQNU= MIME-Version: 1.0 References: <20180515080033.GA7714@yexl-desktop> <20180515210757.GA12225@avx2> <20180515214337.GA18021@avx2> In-Reply-To: From: Andy Lutomirski Date: Tue, 15 May 2018 15:29:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##] To: Thomas Gleixner Cc: Alexey Dobriyan , "H. Peter Anvin" , kernel test robot , Ingo Molnar , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , 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 On Tue, May 15, 2018 at 3:25 PM Thomas Gleixner wrote: > On Wed, 16 May 2018, Alexey Dobriyan wrote: > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -338,6 +338,11 @@ END(ret_from_fork) > cmpl $USER_RPL, %eax > jb resume_kernel # not returning to v8086 or userspace > + /* > + * Jump over the alignment padding which is filled with int3 instructions > + */ > + jmp resume_userspace > + > ENTRY(resume_userspace) The problem is already solved, but NAK to this concept. If we're going to make ENTRY supply int3 alignment, then we need to avoid using ENTRY if we fall through. Jumping over the alignment is just silly. The macro we should use is GLOBAL. From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3299845919893567293==" MIME-Version: 1.0 From: Andy Lutomirski To: lkp@lists.01.org Subject: Re: [lkp-robot] [x86/asm] 51bad67ffb: int3:#[##] Date: Tue, 15 May 2018 15:29:12 -0700 Message-ID: In-Reply-To: List-Id: --===============3299845919893567293== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, May 15, 2018 at 3:25 PM Thomas Gleixner wrot= e: > On Wed, 16 May 2018, Alexey Dobriyan wrote: > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -338,6 +338,11 @@ END(ret_from_fork) > cmpl $USER_RPL, %eax > jb resume_kernel # not returning to v8086 or userspace > + /* > + * Jump over the alignment padding which is filled with int3 instructions > + */ > + jmp resume_userspace > + > ENTRY(resume_userspace) The problem is already solved, but NAK to this concept. If we're going to make ENTRY supply int3 alignment, then we need to avoid using ENTRY if we fall through. Jumping over the alignment is just silly. The macro we should use is GLOBAL. --===============3299845919893567293==--