From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A5B9C433DF for ; Thu, 9 Jul 2020 09:22:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1803E2076A for ; Thu, 9 Jul 2020 09:22:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jKn3zvuA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kWs5mzMC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726471AbgGIJWy (ORCPT ); Thu, 9 Jul 2020 05:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgGIJWx (ORCPT ); Thu, 9 Jul 2020 05:22:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DC1C08C5CE; Thu, 9 Jul 2020 02:22:52 -0700 (PDT) Date: Thu, 09 Jul 2020 09:22:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1594286571; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hGId8U2cedMbx7gJQvu1HmwVF5zXHV3xKtHP5HlHA5g=; b=jKn3zvuA4Y/6V8B1eE7G/P/vKOVyL4LsSPWxopeJdkMz4Do+Mm8FKEYZDcRQq5upIdtW2m rS67XtXnDyn5riCcZjF5lNV96ZrGvwjJPhZzaXOc+r3rYia96S0tedQP387eaaLx+JRTGR 5d9fm/i/P1zClMS2HPbToJ2kypU1R+vYVIyFvRsHbIsBVyL5pXkh/xAC6FHlKueoUq1U+q 1jZjArl+i6a2jhfRI6OfHMHLsR1Wp9zDiu+hl1JepNCG+nhq5E0T6UQzxYyCi8JbJHIYy5 j4c9u4+2qit50sWjK8swEJ4nBBWz6tRwyrnu4OPD9Q+ff1/woaeTFBGfh08bHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1594286571; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hGId8U2cedMbx7gJQvu1HmwVF5zXHV3xKtHP5HlHA5g=; b=kWs5mzMC1tsTOXKeWA/uKSnO/eTsDbWjiajDLXB7IjZd/Il9JetpzLrEOwxVCUJq8bvm8J 90z9fHj3KSsE2BCw== From: "tip-bot2 for Thomas Gleixner" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/entry: Mark check_user_regs() noinstr Cc: Thomas Gleixner , Andy Lutomirski , x86 , LKML In-Reply-To: <20200708192934.191497962@linutronix.de> References: <20200708192934.191497962@linutronix.de> MIME-Version: 1.0 Message-ID: <159428657046.4006.8686721076754110176.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 006e1ced516d2bfd9db63a32b5dba3c2abf43b04 Gitweb: https://git.kernel.org/tip/006e1ced516d2bfd9db63a32b5dba3c2abf43b04 Author: Thomas Gleixner AuthorDate: Wed, 08 Jul 2020 21:28:06 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 09 Jul 2020 11:18:29 +02:00 x86/entry: Mark check_user_regs() noinstr It's called from the non-instrumentable section. Fixes: c9c26150e61d ("x86/entry: Assert that syscalls are on the right stack") Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski Link: https://lkml.kernel.org/r/20200708192934.191497962@linutronix.de --- arch/x86/entry/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index e83b3f1..ea7b515 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -46,7 +46,7 @@ #include /* Check that the stack and regs on entry from user mode are sane. */ -static void check_user_regs(struct pt_regs *regs) +static noinstr void check_user_regs(struct pt_regs *regs) { if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) { /*