Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp337420rdb; Thu, 5 Oct 2023 07:26:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2dsVzzNS9UuRayIQ9FObtfx5Ql4welCw4rnrzjfRnLAKkCrfHnpNrjP3zsK/qalaFNPBG X-Received: by 2002:a05:6358:99a5:b0:134:e964:134c with SMTP id j37-20020a05635899a500b00134e964134cmr4740505rwb.11.1696515983281; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id nh3-20020a17090b364300b00262f798b614si1682885pjb.51.2023.10.05.07.26.22 (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 8D7808031C4C; Thu, 5 Oct 2023 07:25:56 -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 S234126AbjJEOZ1 (ORCPT + 99 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 ); 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" 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 , Ingo Molnar , 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: Robot-Unsubscribe: Contact 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: 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:56 -0700 (PDT) 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 AuthorDate: Fri, 21 Jul 2023 12:10:16 -04:00 Committer: Ingo Molnar 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 Signed-off-by: Ingo Molnar 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