Message ID | 169649451472.3135.6242296709533472348.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp335618vqb; Thu, 5 Oct 2023 07:26:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF80qeXrc107JPAa6O2a1187ndheELEbcvosGwoJi+vCpfCZY9jXe34TRcpGbgAjN7nOmJD X-Received: by 2002:a17:902:c084:b0:1bb:b30e:4364 with SMTP id j4-20020a170902c08400b001bbb30e4364mr4788989pld.39.1696515983406; Thu, 05 Oct 2023 07:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696515983; cv=none; d=google.com; s=arc-20160816; b=j6r5/BouvtLrGDUkMmMJEBoENdIgxIAmWr8OOhAF/z81Q3LJIBBovCyndK4/cOS3yt Z6s708Gn4nJGaPDRusgljruYTU1G+dNoZcj/vjSbAi3Q5M4u0nmUtFswaLg07wjUvuKD ROjyV1IhoMUZ5cd9owGbCM/pz7J6x6TTVlrTh/Y2b9NJDek/fYkfjwultRzfIDefAPpT grd1rPlseVrbG4izcm96V8OQSE+7ENdx8btBy/+AyPOCqCmslfYfRaWE2QpQsF+kgbnl cnF8eYjN1AkVOdH1u7FhsgGDpn1e732WAalNv8fpmtqNX5s1xbsu7ApCsafLXy7hz31J 6J4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=YucGbdDF5rXO/3LM0GhuKq1HGZTiO+P+5WGnwqeqkWc=; fh=Z1VpwkS8445X0w0bYeMALnHU25itmjxH7ofqPWG1qI8=; b=sMF8A077G5B00M7hTgXZ5rhkkXAuRRSkJOi1B8Tddl+kQbQ0pABlxwzRLaepMbaBPK EZQaFG+kPme45ddta1LWaZ2gxYMFP30qn+cOpTw3vhWJ0VS9Z4zkakGI3E/vE+mtvzs1 fDp+h2GYEDKfurqJ4CuYR1tTCU2HwgPpf+VjBiVfd5Fm+3GPZExRfS6nOgvhnDz3pn+e 0ZbeMpoq0Jm70F0lA003tY0Tu18Kg3PTzmAEQCzZCVfqg2JR75heUQ+ssrMKFrdH712S a6rswUb35RuSQKjB2Zx1O+p+HwfS7/b5pOhiLGrhnuay/yN/qaTK98fgkQA5EkwEVWv5 y2vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KsQC+GbW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PmMYqEeF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w9-20020a1709026f0900b001c62b659f98si1562943plk.79.2023.10.05.07.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KsQC+GbW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PmMYqEeF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 435748030982; Thu, 5 Oct 2023 07:25:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbjJEOZ1 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 19 others); Thu, 5 Oct 2023 10:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234684AbjJEOX3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 5 Oct 2023 10:23:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1DE8A6C; Thu, 5 Oct 2023 01:28:38 -0700 (PDT) Date: Thu, 05 Oct 2023 08:28:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696494515; 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=YucGbdDF5rXO/3LM0GhuKq1HGZTiO+P+5WGnwqeqkWc=; b=KsQC+GbW79cK3JhmCtjPnfqphoYRUUFj+lUm5sXyJqJyGlwoltq0GfUfhRwuEqhBbPqLGj oslcsESJ1GavS85ZOBYwwuPA7dWXZTtzfX+rqcLHmMGEn7wDIpkqOkV2EVXYOlx5lMw8mT jjmEnlD6dmVA9OkKr0xMWwahoScoQQ/lweVJYbWt5rLQROT6hcir2n0Cr8OneM35Q04BHa nCq+mdsWFHirw8PUuFXIOQw8hPkSPQaOq9Mp8q57kVMiLZSFkmgm/MapCK3qbLvrpQ1KIy Cclq+1ZxwctvHIwjOVTyBnDYK5kvSjqsBkyYbzK1TXByZLtwgdZq/ZAr+V+D0g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696494515; 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=YucGbdDF5rXO/3LM0GhuKq1HGZTiO+P+5WGnwqeqkWc=; b=PmMYqEeFlhABGsF/RA8/HefHZ6+uYUPvHk/SCr/feYCXzsZZ/glMJKNa8L0qkBt2vFVhzF RD6DrKTiLEEXwgBQ== From: "tip-bot2 for Brian Gerst" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/entry] x86/entry/32: Remove SEP test for SYSEXIT Cc: Brian Gerst <brgerst@gmail.com>, Ingo Molnar <mingo@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230721161018.50214-6-brgerst@gmail.com> References: <20230721161018.50214-6-brgerst@gmail.com> MIME-Version: 1.0 Message-ID: <169649451472.3135.6242296709533472348.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:25:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772050158428104356 X-GMAIL-MSGID: 1778925943931346605 |
Series |
[tip:,x86/entry] x86/entry/32: Remove SEP test for SYSEXIT
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Oct. 5, 2023, 8:28 a.m. UTC
The following commit has been merged into the x86/entry branch of tip: Commit-ID: bab9fa6dc5e4483749838877deebe038de3ce97e Gitweb: https://git.kernel.org/tip/bab9fa6dc5e4483749838877deebe038de3ce97e Author: Brian Gerst <brgerst@gmail.com> AuthorDate: Fri, 21 Jul 2023 12:10:16 -04:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Thu, 05 Oct 2023 10:06:43 +02:00 x86/entry/32: Remove SEP test for SYSEXIT SEP must be already be present in order for do_fast_syscall_32() to be called on native 32-bit, so checking it again is unnecessary. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230721161018.50214-6-brgerst@gmail.com --- arch/x86/entry/common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index f1f3bf1..0551bcb 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -238,8 +238,7 @@ __visible noinstr bool do_fast_syscall_32(struct pt_regs *regs) * We don't allow syscalls at all from VM86 mode, but we still * need to check VM, because we might be returning from sys_vm86. */ - return static_cpu_has(X86_FEATURE_SEP) && - regs->cs == __USER_CS && regs->ss == __USER_DS && + return regs->cs == __USER_CS && regs->ss == __USER_DS && regs->ip == landing_pad && (regs->flags & (X86_EFLAGS_RF | X86_EFLAGS_TF | X86_EFLAGS_VM)) == 0; #endif