Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1827800rbb; Tue, 27 Feb 2024 02:25:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVYP3zzpz32nx7z2CrLl74w7C6NdSWpnQmaNqODJLheRoGcoSlNCdfwYnaXciPq0WSijd0ixFX9XB/e092LcnUBseCdfkmw0DAcciEqtw== X-Google-Smtp-Source: AGHT+IFweQu936bBzhERpAxdr5/UXU2aju2sy98xkIOJUjXw9abEvpshhlML3mdSlJg5jJKoPdDi X-Received: by 2002:a05:6214:1314:b0:68f:e2e7:bebd with SMTP id pn20-20020a056214131400b0068fe2e7bebdmr2364828qvb.38.1709029506063; Tue, 27 Feb 2024 02:25:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709029506; cv=pass; d=google.com; s=arc-20160816; b=pcRhUAOU4DnpAIYmYjLnbLv7km3abmriQ4P9dTKqDhQxXKI+u0gnYy/w/9aLHTDR2q 6IbXITo3TrQhiqoBystXsfKqsAm1lY0yfNsBWB8ZT5v1SpgUwVY3vUpA9WJsnIRQXXuW mzXHL6oXw6o9922Ird0Z6nq3zItYkVMP8NmTNKxCqQ8k5nng/faRDCl0O1mAtNh+ab+h RyosSfrzTF5kjISXRNWY06hamI30vbKVgu/hw4TVBWcAr7AyiTOWEvoO98dTXWyeUYYP 4VrpgDNk6ISv9PBYH8uJCXbn6fJphvXmmQuaITtZ46SU+7KWYRRW1MlM6XYvH7B8Y4l9 8+0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=JCdHzu2wkDIMV3N9KhEnaZn7nt+SUq/lt3fcc9JJLCM=; fh=Z+88dmKCpd7PoAtVcbIZlO7PCUakBJnbncou3+gqpw8=; b=bSA6X/GalR+u63IRTPv0GVLwhWgV7Xrd3wV6tPlzzKwqQhJag+yypTFNPZRqGFsyc3 YoqD6iSyaZOlZoscn7dQs+yZGTZCJAiuWXNI2tRHQ/N+ZDpFcONXRMdeT+m7QJqic8fR fVwzFYY2JjwrL1JJF9QpHYxLL1OuRcneQe2MKTCyNHHNmvTCYcYwt/q0LSufBww+G5yc i+RvxKeeIkWDzIxjxm4LAFYNDhHfBgQE63xxaQfPefygEXiDf8dv24PqPxEf1anAhz/q hSlM0k149OF5W55s//Icv5mbvtvJeWFkXPLFRQm7RAKbXiJcvMxZSGR+RD+y8pMbs4Sw l6Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=X3o4ZMum; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-83027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fo12-20020ad45f0c000000b0068f7892eafcsi6998442qvb.511.2024.02.27.02.25.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 02:25:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=X3o4ZMum; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-83027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C230D1C22FB2 for ; Tue, 27 Feb 2024 10:25:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 049EC13849F; Tue, 27 Feb 2024 10:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="X3o4ZMum" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 902FF137C42; Tue, 27 Feb 2024 10:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709029499; cv=none; b=jNE7IP8vw6XoYG9pOJFU1YUBIo87YAp6emEiIMtzj6tydS2OVG7zjzoRPUl5tHL9w3WvFAv7NSYU+YaEMTja+8hwH1m9HXSmEeMlWaMSPhOGJ0Nm5yukiJ6JQA7K1Qu0hHUzFYhNKCdRbPTscd88Lq9E0/p5vno5aKWpdn7vRz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709029499; c=relaxed/simple; bh=Nnpde2MjTfV728iSxOzMQcbJzt7c4u2O0FM7Rw5PJgw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NRSWtc9PXT+GYYiEzKldkpmdDjllIzR1EvzsAZQ20HpxRQXkkT97SHCSzOrSc0kuaKBBmunUExsGT8weKVXYZfLio9r9tLsKQZNCYWgNaNrKDLUpBhc36GcKAwb0LzgwdOy3HoLHIx+jc44JKnxDrLvJgImJwNhNGLGMsRIu69M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=X3o4ZMum; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JCdHzu2wkDIMV3N9KhEnaZn7nt+SUq/lt3fcc9JJLCM=; b=X3o4ZMumh+WSsbya++ZFhtGQtB 3jMjGFRyAKDrQ6bMJQKbd5y2qsY7D3/VmDpfzHkMH6PakulAFqF4HNgsDc+owbvCfZ25CP4XYfCH8 UI1Bniqs7Jl4UNl7QATUXCDQ4jt5ilvkda3mO8VTmuqAWYPbOZo1ZNyepxPTNnIe0Hn8zYSQ1TKht bIHEJ2YbLwz0NAk4PA2pJ8O6+fUsmTVV+IlhQK6S+xBqMUsrvHTTA032uvVTQJ9WktNmcvAj3bs18 X05XBlfCFGcbmJCi8KFVH92pbunbs7dz9v//Po5GYryvsw2rE6JPZ2AUOoV+6jgR8tKVzoKMDTHe2 k+PD2pug==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36722) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1reudi-0007kH-1R; Tue, 27 Feb 2024 10:24:46 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1reudc-0007J2-Nc; Tue, 27 Feb 2024 10:24:40 +0000 Date: Tue, 27 Feb 2024 10:24:40 +0000 From: "Russell King (Oracle)" To: Zev Weiss Cc: linux-parisc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Helge Deller , Florent Revest , "James E.J. Bottomley" , "Borislav Petkov (AMD)" , Yin Fengwei , "Mike Rapoport (IBM)" , Andrew Morton , Kees Cook , Yang Shi , Rick Edgecombe , Oleg Nesterov , David Hildenbrand , Stefan Roesch , Josh Triplett , Ondrej Mosnacek , Miguel Ojeda , linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Sam James , stable@vger.kernel.org Subject: Re: [PATCH RESEND 1/2] prctl: Generalize PR_SET_MDWE support check to be per-arch Message-ID: References: <20240227013546.15769-4-zev@bewilderbeest.net> <20240227013546.15769-5-zev@bewilderbeest.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240227013546.15769-5-zev@bewilderbeest.net> Sender: Russell King (Oracle) On Mon, Feb 26, 2024 at 05:35:41PM -0800, Zev Weiss wrote: > There exist systems other than PARISC where MDWE may not be feasible > to support; rather than cluttering up the generic code with additional > arch-specific logic let's add a generic function for checking MDWE > support and allow each arch to override it as needed. > > Signed-off-by: Zev Weiss > Cc: # v6.3+ PA-RISC folk need to ack/review-by this patch. Alternatively, it needs to be restructured to add the arch_memory_deny_write_exec_supported() override without touching the PA-RISC code, which then makes the Arm patch independent of the status of the PA-RISC patch. That will allow the Arm issue to be solved even if an ack is not forthcoming for the PA-RISC parts. Alternatively, I wonder whether akpm would be willing to pick up this patch set as-is. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!