Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2141425rbb; Tue, 27 Feb 2024 11:55:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKPoUzw4wmAjSNw/JFP8o2DgpWkYNQCFBWuUn/ZT24K7Vp1zDh9obstzq5094kQtrKlVJZqH1LrX83DKMPIjaRdGJFmlEtWYXDNv09wA== X-Google-Smtp-Source: AGHT+IEtSZr2RALJInUmWuYAjAYgdJx24GxT/ClLHJvV1KSffVda5NdSOcugS0zRhxUegUmzA0ai X-Received: by 2002:a05:6808:15a5:b0:3c1:acc0:8441 with SMTP id t37-20020a05680815a500b003c1acc08441mr3384202oiw.2.1709063712984; Tue, 27 Feb 2024 11:55:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709063712; cv=pass; d=google.com; s=arc-20160816; b=dj37wMMlmYz4roGI9aq99fwv6t0wIvDKkZBqPVFWNa2OOfUlNX2iMZGeAgaE8R6znM 5pizZnaOmN6Vwz7MwzAettewMDIEvKhUka5MXEu1JiNGJbSMM0FcN5QIrv9fhXrmuIcL 4jAwYfRaq+zbMjpnZYoNU/gl+FqR+qERLb9tcAkXcg6rzerAC2yfFyvz4wrGpw8/k6X6 1UHViDjTYb07LbFJEs6Hdrm9rTR6ecGAbcYXqLCIlPPwb2EopciD8eEa7g0lUxoXSz0O MT7RRMfAhJYMW1hpDvhpCfj3GsGAKbj+x0xmQeGZ4hhhYGRBgIJ6r3rqHKdB7YSn7bvo FiGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=qABnCit5KPAiHr/Kp/IS0mrnJofA1cCmJBn+3gjrR+Q=; fh=PH9O8OEn9s9mrLRBEdBn9Bgq9MY6n3bOvvQradW0fOY=; b=PifccefgwVUFdsLcdyI4IdUHes/sWuknI/zdQR5e7DpKTr2JdjLvvpnriZihCSK432 sBNF9X1y3weij6AigH3AsrHim02IkraNhL2/cJE/QZNoDJabMdKoYG8p/70MYGMbQRwN 2rAL/KCJcU00ZT0NpSo5JKP2xYp1plWr+YNu0GQD4pVTznXBD2PDUI7EWXeytba1c6WI Rk/VO5+8btJ5L/okOu5nd9cPmpaEdBP6vLzcs4HP6M5P2NOr2LbBIkOTRwVEFmUPSwcW VupQBwMeFSE/XomYzpWkpON3wsRFpmC5l0/CGPPv0oLCYqHsX3LN3cLWSYeDyk1gO4x2 zEEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=e1E0+EV6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-83959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kl6-20020a056214518600b0068fc2ac7f59si8322263qvb.462.2024.02.27.11.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:55:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=e1E0+EV6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-83959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 7EC391C25A48 for ; Tue, 27 Feb 2024 19:55:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 627AE14A08B; Tue, 27 Feb 2024 19:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b="e1E0+EV6" Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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 D0171524A8; Tue, 27 Feb 2024 19:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709063704; cv=none; b=DoqeJ/IB8px2EqJOXgwxfRUOAQsVURAEVPTQduS2ulylaX7TuQz8LlkjX+98Rk8uHyzYIGNtWU3aB6BeXvvi7E8TXM4teh2TBMSM659iSWZ2sGVZxCICbyArf6yeEI2jhkEPWXr/bXwcFQvKkP7etuEAb3dqd3s312YEz5HZuR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709063704; c=relaxed/simple; bh=qABnCit5KPAiHr/Kp/IS0mrnJofA1cCmJBn+3gjrR+Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rE84iUNn1aAoFsCYWOnUnSCdEsbm6jbbdkUblCaEq5Qcv/d0jJVStOl1vLkVNEHVqSpUiBh7c5O9fSOeat0M/6b3NijQKRJKt6y6i/e19QaMS7sdRl195XfLVlMqhDcDV5gvhOw16sfkPkYbDgjHG0CZhulRWBo2fX0z3xEy2uE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b=e1E0+EV6; arc=none smtp.client-ip=212.227.15.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1709063649; x=1709668449; i=deller@gmx.de; bh=qABnCit5KPAiHr/Kp/IS0mrnJofA1cCmJBn+3gjrR+Q=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=e1E0+EV6cUARqjkZLOR7vyHMPZmHfvv/v9iuGO3g7eA74YM4BAvrQoeULtIXjtol w28+cNglFaeRqU3k/Yt/12BxTTZAJx/IEjOKfpmIoU8uis3lRKzHKMUHpboXWqdPx I+KYoRuKtvaZbl7N9LS+z5CJuwK2DVqXECZpsY3/AJOD5wMr0MZKBQuFr9tjxj8R6 ikQPugrrJyvVbAMgQePl4QstARrSxIOZpq3sMlMP+HLVwFDkQv1x7VxME0mmlYO9v emde3QWNDL5YviMPoq4M1XqqW9rq22W59NIfkSbeCC54IyeM5RRIT4q/jZCvhcB2K YbMBNoDMEO5YFVmiVQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.55] ([94.134.157.76]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mk0Ne-1rCYGH2jSy-00kOct; Tue, 27 Feb 2024 20:54:09 +0100 Message-ID: Date: Tue, 27 Feb 2024 20:53:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND 1/2] prctl: Generalize PR_SET_MDWE support check to be per-arch Content-Language: en-US To: "Russell King (Oracle)" , Zev Weiss Cc: linux-parisc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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 References: <20240227013546.15769-4-zev@bewilderbeest.net> <20240227013546.15769-5-zev@bewilderbeest.net> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= xsFNBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7qX0Axlq Lq+B5cfLpzkPAgKn11tfXFxP+hcP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Ai94ySuZT3fp1xGWWf5+1jX4ylC//w0Rj85QihTpA2MylORUNFvH0MRJx4mlFk XN6G+5jIIJhG46LUucQ28+VyEDNcGL3tarnkw8ngEhAbnvMJ2RTx8vGh7PssKaGzAUmNNZiG MB4mPKqvDZ02j1wp7vthQcOEg08z1+XHXb8ZZKST7yTVa5P89JymGE8CBGdQaAXnqYK3/yWf FwRDcGV6nxanxZGKEkSHHOm8jHwvQWvPP73pvuPBEPtKGLzbgd7OOcGZWtq2hNC6cRtsRdDx 4TAGMCz4j238m+2mdbdhRh3iBnWT5yPFfnv/2IjFAk+sdix1Mrr+LIDF++kiekeq0yUpDdc4 ExBy2xf6dd+tuFFBp3/VDN4U0UfG4QJ2fg19zE5Z8dS4jGIbLg== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:tw+ae2K+8HdN97zn0nU9mcLGLIbOqP1QiharSdPPjQBUObrxIMx EoAooahMNQ/jRMZvOYpqWMFZVD2Y+b0KqJO2OnK/OLp9Z3nsS3YfE4uvFb2DWZF7TkEveOx 6xy9KMtuxgqXp+7FWV+YOHTAcKpKiL1kx0/B7R4KOKyEI42N4ipny/nCn7m7LoMX/b9U427 yJWqz1prVRj1xfL4N3ipQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:agvPXLbsPcQ=;Nm4RFtKAvlwmH5rZU7YwIbOg/vD OUtTO7T05yGYGFjg036cUc39NdnAyE9cAdO6BBLS7ztuPGajfMBAuFcMPop+kauTeLgrCVt9I pVNftXBdEoqTX+9kaC2Ly+MxU1xV6rYL5a2tW5A7ZpQrkbM34Ofq+RSBxpBowf/Q9wFhMJWpl o8Q1olzUXJQ3W+pqj4M7iAhpZLI5uQAWAIyt5tLNaQLGLc/qUNzIkWKMLLsU3RIQjhN9c0i10 zO37V7thHtJflRDtZ3cSWqkei1XpnIGMW4OrBzTr0TdvtxO1PzSN05+Rw5cuW5imV93srBWJj vAXEZjYsam6q7BR8QB3IgstOnSo9FNSB9UaELj+epg1/Eako1UzWAHFc/d2ELs3iA+djaooUX kFH8M4/sWJo/kiICRYVRekXGsj+vWZ1U4KyLuQz/0lEzHdCjoJFTBjRjsSwTOjF1uq5sogmSC xkgwGVScd6JZmy5sMPzhXYG/QaqwjpxADWhEHYS7pfqtAzxIV685unv5GYKu6jdcO3LF+VDXa YLEUcGIeo4MLhmDrUuRtO26krxMqtV4YpMhiTLUnzPgqJxzzA7kmxJDBbISLK6Wb3nAb5IcxH 7aqDlewBDqfM9tpKWHb4uz/oqmhv1hYjr9vd4w+GIOYZqp+AZ78NqUO4FgY237f3RF4LnlMdg KHsTVwVoc7z5uQxOFMngM8g3iG6QxsaHgjHSZsMm3OqhIQrRLy6E2Zv5L/QBfqZ8Env3b1Cl0 NDsbyVPV2m3WNZoxFqZfr8aPJ0G/HA7ziF2f53b9RP8N4Qivtfj5mUk/CuJKG1s3qbkIN69xQ jTurXi/dcxVWgFweh+9fobRuumiJYzEADTtwfrf2dd4rs= On 2/27/24 11:24, Russell King (Oracle) wrote: > 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. I'm fine with patch 1/2: Acked-by: Helge Deller # parisc > 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. I have no preference, but I think both patches should be pushed together via arm tree or akpm. Helge