Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4921911imb; Thu, 7 Mar 2019 03:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxPkGHAehVJiF7MCaAyXRLGUJJ8D9deNAgos5WEOT0UKtV+myTlhAOKn/qYo4I3VreDYUnH X-Received: by 2002:a62:57dd:: with SMTP id i90mr12434543pfj.154.1551959611848; Thu, 07 Mar 2019 03:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551959611; cv=none; d=google.com; s=arc-20160816; b=CqVWjcvgs+tP/8gNsDIez2ZLGqCD3suBas4N0GbpcEJLvH2wuveK5uL50P0bmjCv9r B+EBZtczgFrwyragC84joCr6sPskLXwKkLKtjx2oU/91bkYNDXJ62RcUtsjByXGgVAO8 lD4PXMOMRShPO2NjHwZcq7qN9oZGbHUzeA8hU+aEddm8MZJsWFukxajgg/5sHu+552cp o4Qb/GEbvWWySVIFkrWjA8Jb9w2b6J2PGxGdzOUAft8lbvl6qXYdo2Hk1vsZSMZLEysi 5bznTq7yOhiPgOLpr9VZtA2ftYoXwlSeKCx2kR9V9VLPjgmXQpNLF/RBLJGkCY8+0kh5 87Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id:dkim-signature; bh=cJfJ05GJ0MEbvcruOO33BoC58/tAKr1fycBBflzH54U=; b=FiVrYk8uoJ+NOLSC0N877ahCnI07nzQ2ta6V//5TF3heTMdl3BSom0W32chyZL8zOj g82I+qpb7oAoIKBzwj3yh2YREneKNFKNaBjvYQj0gaB7xFD42T2+D1O0GlS9GWacycWa 8enqaEjqeh99yKPv6Zr8hVGluagvORpETfm23rjZHXJMM9J86x35ghLqu8Wzd0scmbFy p88ffnKKBqHt1hYPB/SKyJ0CG1umgszYUnMmYrCcpOFA8a4iYN1qJxjG+8LAUs2J1Xnc g4nBU/5Sg9QDCdb0OqhNn7BEvx8Xw3CmbFbACbU/kqHqwm4WA+WUq9i+vSMYZATw9rL1 cikQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eRT3KtDz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm17si4356545plb.149.2019.03.07.03.53.15; Thu, 07 Mar 2019 03:53:31 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eRT3KtDz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbfCGLwy (ORCPT + 99 others); Thu, 7 Mar 2019 06:52:54 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:39646 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfCGLwy (ORCPT ); Thu, 7 Mar 2019 06:52:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-Id:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cJfJ05GJ0MEbvcruOO33BoC58/tAKr1fycBBflzH54U=; b=eRT3KtDzhNnNrLraHMb75QEC+4 ZJmfSHm7RZzG3TQyGSOA86y2S2qTKhY63c0i9x/IcsOQ9wnFrU7YCvTXpHzbegYkdy+xzYxW/9DfU vx5TVUT/X8QG68quihLmiqOJuhrH5i3/GbrQDvX/amzrkmuykxn/t2Ep28BPQTPP/zw3i0eaQ+H2u gh8tt8Kx1YQxo/qJugFiHuv7xopmj0Ytox87L0lUXpK+GLC8XrCCzVOMDxE72jiLy+u0OcFBfx0je S9IWa7gtp+Vs7LoW8O9nO39IKJvex9r+AE9MwQZqHfDe1+brKvKrQ6wHDjJLTOI8WZKmupaK5caNx 6D3VNnFw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1rZm-0001Wg-Va; Thu, 07 Mar 2019 11:52:39 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id A26FB20297BD1; Thu, 7 Mar 2019 12:52:35 +0100 (CET) Message-Id: <20190307115159.708180729@infradead.org> User-Agent: quilt/0.65 Date: Thu, 07 Mar 2019 12:45:18 +0100 From: Peter Zijlstra To: torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, julien.thierry@arm.com, will.deacon@arm.com, luto@amacapital.net, mingo@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, valentin.schneider@arm.com, brgerst@gmail.com, jpoimboe@redhat.com, luto@kernel.org, bp@alien8.de, dvlasenk@redhat.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, dvyukov@google.com, rostedt@goodmis.org Subject: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss() References: <20190307114511.870090179@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabled XXX: move the callsite out of te AC=1 region instead? Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c @@ -71,7 +71,7 @@ * alone. Using this generally makes no sense unless * user_64bit_mode(regs) would return true. */ -static void force_valid_ss(struct pt_regs *regs) +static __always_inline void force_valid_ss(struct pt_regs *regs) { u32 ar; asm volatile ("lar %[old_ss], %[ar]\n\t"