Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3884918rdb; Thu, 14 Sep 2023 05:56:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfbRne6KKX0ih1LgGIXerzHVf7no3fA29vMAaKQL/x+sEMYzqtwXJB2t1J1VCXn6hgfXq4 X-Received: by 2002:a05:6a20:7d95:b0:133:be9d:a8d3 with SMTP id v21-20020a056a207d9500b00133be9da8d3mr5891858pzj.14.1694696197418; Thu, 14 Sep 2023 05:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694696197; cv=none; d=google.com; s=arc-20160816; b=nmDJKTulxlkTx1DtwcJp6UfJBbsph/2Ozvqy2QJFg0Apls02VZNx79cqDg750D6Azx V4AatnO8BWn7CIJjfcqqmp3J/czFOEYRUV4iR+EVfuA5+9duDXFyxDHiw8jawzsyQmZq 9w2rnyVcKueYU53DWnJI34ThTSAFCcAgHbUue96MzIOKk9eMb9LRVuiYiHUCnWgvehG4 UkCY9hOO4QZS6mwPbAfWxqX01nNba2i0R38Aw3b8pZ+CSDDsD/2sF5vpSi8DGc6aP4i7 0QOvbOv6miq3VHTOdNsFNpgy5f37t9IBdkxSiz1NQDGC8u8g6T/IcQwS2ndLU9pOSB4M U45Q== 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=rRBlDdvNX+xiBakKbGmgdBA7yGQ28OOQgzP56FD+i7o=; fh=n7fF7QC0RNRn6F3FQu0v+CrFD4hMTQOXYoV2ln8SMUQ=; b=wF60Tx7n6bYstaosCNiIK6fQVCVLhMXcTVzuj54Vkpaej0zQKCUNjz4FgHmgdeGuw5 MUCrNsF5eVcruMxYt0hg1Z7Auklk2mZxc317VjMUYA5kKkypmdj4PCFbMXdUo8AKbsr8 0wxkdjHFPrp2amRZa7LFcONU8zuRf9Ee1IMFjc7NOlVWOcQaWZK7Xx/dPMU/T/QEstVy p4gdSBCg0RfbQ0RplcNu5ZjNVDgR1mEJ5h/J0ubkVkx0axyY/ilX0asMxk4Pol97BpmG E6ckiirfSnWkW+J3f+wpDc+e6ABodeoqM/In22CUqg4YLqeERkh2zIMpeqfLja7MRSrL 2K3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4eBXmGwc; dkim=neutral (no key) header.i=@linutronix.de; 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 c3-20020a170903234300b001bb809b68a8si1655733plh.229.2023.09.14.05.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:56:37 -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=4eBXmGwc; dkim=neutral (no key) header.i=@linutronix.de; 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 58B6882F27CF; Thu, 14 Sep 2023 04:27:19 -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 S237440AbjINL1R (ORCPT + 99 others); Thu, 14 Sep 2023 07:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233594AbjINL1J (ORCPT ); Thu, 14 Sep 2023 07:27:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD18C1FC4; Thu, 14 Sep 2023 04:27:05 -0700 (PDT) Date: Thu, 14 Sep 2023 11:27:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1694690824; 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=rRBlDdvNX+xiBakKbGmgdBA7yGQ28OOQgzP56FD+i7o=; b=4eBXmGwcp83L99p3eMsO+ARfOgjRZqEqHGoDav2I0yZssORjx44c7YX1C9ywMIAVebEq3u hUPWQkobsA3tavka9SESEfMjqIZjEFaP6OwvlRdxwbsakwbBAIz1ojG5TqOt6SzHKJbdZe KyYzu7a+m2fZBhcCfDVhmsQYXrMpNNL9+/uNKSSopNrY20iCGrXMIagm5EKjnzBhpK336y zV0FmdNXyafLXBGs6qFY9/BWDUmlMUwseCv2ANIAd99QwHq6FnGrL9cJfbXbRIgxY+rydq OUuYzkYVp6zsAdDWh7JWhL62GR7Bk+aKaBH2X2nb8sezDIBOJe+V600zp3eJ7A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1694690824; 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=rRBlDdvNX+xiBakKbGmgdBA7yGQ28OOQgzP56FD+i7o=; b=In2b9ZSlDBtF2SH7VtsLcsUbsaHO229ih/cCaClOJpQrPZQ1AVpZc+vjaMh0fvxSlgtGOX EOoWkNhY+5FHdtDw== From: "tip-bot2 for Nikolay Borisov" 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: Compile entry_SYSCALL32_ignore() unconditionally Cc: Nikolay Borisov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230623111409.3047467-4-nik.borisov@suse.com> References: <20230623111409.3047467-4-nik.borisov@suse.com> MIME-Version: 1.0 Message-ID: <169469082375.27769.12443727333195550673.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 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, 14 Sep 2023 04:27:19 -0700 (PDT) The following commit has been merged into the x86/entry branch of tip: Commit-ID: 370dcd58548a360bbf8a65b89b410d09f56bf0c6 Gitweb: https://git.kernel.org/tip/370dcd58548a360bbf8a65b89b410d09f56bf0c6 Author: Nikolay Borisov AuthorDate: Fri, 23 Jun 2023 14:14:06 +03:00 Committer: Thomas Gleixner CommitterDate: Thu, 14 Sep 2023 13:19:53 +02:00 x86/entry: Compile entry_SYSCALL32_ignore() unconditionally To limit the IA32 exposure on 64bit kernels while keeping the flexibility for the user to enable it when required, the compile time enable/disable via CONFIG_IA32_EMULATION is not good enough and will be complemented with a kernel command line option. Right now entry_SYSCALL32_ignore() is only compiled when CONFIG_IA32_EMULATION=n, but boot-time enable- / disablement obviously requires it to be unconditionally available. Remove the #ifndef CONFIG_IA32_EMULATION guard. Signed-off-by: Nikolay Borisov Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230623111409.3047467-4-nik.borisov@suse.com --- arch/x86/entry/entry_64.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 3be71ac..f71664d 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -1511,7 +1511,6 @@ nmi_restore: iretq SYM_CODE_END(asm_exc_nmi) -#ifndef CONFIG_IA32_EMULATION /* * This handles SYSCALL from 32-bit code. There is no way to program * MSRs to fully disable 32-bit SYSCALL. @@ -1522,7 +1521,6 @@ SYM_CODE_START(entry_SYSCALL32_ignore) mov $-ENOSYS, %eax sysretl SYM_CODE_END(entry_SYSCALL32_ignore) -#endif .pushsection .text, "ax" __FUNC_ALIGN