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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AC1FC54798 for ; Tue, 5 Mar 2024 10:56:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3ZnoQgvDTVTjMUvEJRJc1jMVsDasuIFrBLAZCbgQo5Y=; b=QvtOH5SuAuphc0 Db6o/DSpeUsKJPzQr05pQlhvcs4FVXZ0UDJ6uG2W2EVg/d2AN1IRtABRYnGTDBRzRCSDt3rQKNEM+ YxlcM7pPYfh5iToFKa1PNtF7qqmpwR4sKAuDu9nPSlQ3KJDSVHoWRspiJpidvya/vRNH1s3kjgxLd UK+D3fWEevolubAqAi5gr2WKWXAe8kn2nOdKzkoXlyriuUaCU+Nqg91Qym2EAC96M6VwxG3cGgC6c QS1geyFwMKwmW4vZW+5zP6RUaarHaK5uJtHA4JHXa3uYa1gIHQS3mD03YlvR5vuvNee0EUMY/I7ko guxUq6WTjVdeOF2/4RDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhST3-0000000DCZw-1pmG; Tue, 05 Mar 2024 10:56:17 +0000 Received: from smtp-out2.suse.de ([2a07:de40:b251:101:10:150:64:2]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhSSw-0000000DCWn-20d9 for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2024 10:56:14 +0000 Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id ECF26767C2; Tue, 5 Mar 2024 10:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709636167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8FNpbwf/Kd2K6dwYnw6gac//GPVMgX+mgVMBZa1f57Q=; b=sZhdRbGP11tYX1Hs1zl37OdKGHJCVJOfLFmA5cMKFT95KWhpxDBqtTxUbgy2Ky9F7rlvzz EzL2Gy+/gTcqVSAs2NHjTJ+Hadx0vajC5AqROepMMTjEU2i/FhpR6VXPOoIOZHqVkelq6j XsNB+KqSXtIsKRrREaC6gPn30Tp9kjA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709636167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8FNpbwf/Kd2K6dwYnw6gac//GPVMgX+mgVMBZa1f57Q=; b=Bsu6cyvkv+DgWW8aXCAdbl2VoyAnKfTMmlGRXcCTnBYZDjEmuG5PUeHmU4/zKt3ycseeC6 dPXqCSROq/+4dYBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709636165; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8FNpbwf/Kd2K6dwYnw6gac//GPVMgX+mgVMBZa1f57Q=; b=hNE3TfRMSXwY63+QnZjvh1CAvBbxFEoGhWr2Ud282dTWjPHLGoBQQ1QEIDnsSIWOrdmqYu 50TNuZ3ovCIxcsHSThZPwiw/rNKntDNqL0/ssupLSv5PL+qLx6iN8ZvwMtQTiivncqR89k Okbyz0cWTC7Cp6dndWFkp2uVH/l4Mjo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709636165; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8FNpbwf/Kd2K6dwYnw6gac//GPVMgX+mgVMBZa1f57Q=; b=9RKvI0YeQLL2//ciZ5iSbZZzt/QoYxvS3pyUmL0TmS/xQGGOxjO8iCBLB9V50A2rxLxOUq JofBGjCPa2BaJaCw== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id D0E4C13466; Tue, 5 Mar 2024 10:56:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id nNeEMUX65mVoBwAAn2gu4w (envelope-from ); Tue, 05 Mar 2024 10:56:05 +0000 Date: Tue, 5 Mar 2024 11:56:05 +0100 From: Andrea della Porta To: Andrea della Porta Cc: Jonathan Corbet , Catalin Marinas , Will Deacon , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] arm64: Add the arm64.no32bit_el0 command line option Message-ID: Mail-Followup-To: Andrea della Porta , Jonathan Corbet , Catalin Marinas , Will Deacon , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20240207105847.7739-1-andrea.porta@suse.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240207105847.7739-1-andrea.porta@suse.com> Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=hNE3TfRM; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=9RKvI0Ye X-Spamd-Result: default: False [3.29 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BAYES_SPAM(5.10)[100.00%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[7]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: ECF26767C2 X-Spamd-Bar: +++ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240305_025610_700690_8146567B X-CRM114-Status: GOOD ( 20.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11:58 Wed 07 Feb , Andrea della Porta wrote: > Introducing the field 'el0' to the idreg-override for register > ID_AA64PFR0_EL1. This field is also aliased to the new kernel > command line option 'arm64.no32bit_el0' as a more recognizable > and mnemonic name to disable the execution of 32 bit userspace > applications (i.e. avoid Aarch32 execution state in EL0) from > kernel command line. > > Changes in V2: > - fixed the order of appearance of arm64.no32bit_el0 entry in > kernel-parameters.txt documentation. > > Link: https://lore.kernel.org/r/ZVTleETzfFUchs77@apocalypse > Signed-off-by: Andrea della Porta > --- > Documentation/admin-guide/kernel-parameters.txt | 3 +++ > arch/arm64/kernel/idreg-override.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 65731b060e3f..fa7cdf2f4f3a 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -415,6 +415,9 @@ > arcrimi= [HW,NET] ARCnet - "RIM I" (entirely mem-mapped) cards > Format: ,, > > + arm64.no32bit_el0 [ARM64] Unconditionally disable the execution of > + 32 bit applications > + > arm64.nobti [ARM64] Unconditionally disable Branch Target > Identification support > > diff --git a/arch/arm64/kernel/idreg-override.c b/arch/arm64/kernel/idreg-override.c > index e30fd9e32ef3..642cda19e42d 100644 > --- a/arch/arm64/kernel/idreg-override.c > +++ b/arch/arm64/kernel/idreg-override.c > @@ -86,6 +86,7 @@ static const struct ftr_set_desc pfr0 __prel64_initconst = { > .override = &id_aa64pfr0_override, > .fields = { > FIELD("sve", ID_AA64PFR0_EL1_SVE_SHIFT, pfr0_sve_filter), > + FIELD("el0", ID_AA64PFR0_EL1_EL0_SHIFT, NULL), > {} > }, > }; > @@ -197,6 +198,7 @@ static const struct { > { "arm64.nomops", "id_aa64isar2.mops=0" }, > { "arm64.nomte", "id_aa64pfr1.mte=0" }, > { "nokaslr", "arm64_sw.nokaslr=1" }, > + { "arm64.no32bit_el0", "id_aa64pfr0.el0=1" }, > }; > > static int __init parse_hexdigit(const char *p, u64 *v) > -- > 2.41.0 > A gentle ping about this patch... any thoughts about it? Many thanks, Andrea _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel