Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1030870lqt; Tue, 19 Mar 2024 10:38:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwKsUzujAMKbJAB2Ciu9tsiWhQu6zCR4uKCIH0ozcCv5eGgnTmuJ0CZhHf6YZ+oFb5/QDot2e7GhgudwdM+f9Evkk1bSztlYrltwE6YA== X-Google-Smtp-Source: AGHT+IH/Mb2yii3yn+s9FZPP6uXlZwM/f+fXy9dJFWXgkuv0GUiG1za0zzC2ekv1tAekuJA6NvVW X-Received: by 2002:a05:6a20:7295:b0:1a3:10a8:9d60 with SMTP id o21-20020a056a20729500b001a310a89d60mr15745827pzk.54.1710869930339; Tue, 19 Mar 2024 10:38:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710869930; cv=pass; d=google.com; s=arc-20160816; b=qWfQ8xjkHL1EXsORtpIIW5KlLPxQBZ9qFEYMl2G78+8IPYVw4BpQsvSvgdcVw/MeVq wOzjfosf9MlJ5w/XDoqVvcXIeDySQ4tX1mjlRwoYgWT4/dA8RL3OB/Yra+bp7ATgx1D9 D9apyCrsRzAaAxCgKvOInNLyVuAHHIjLhEbk6xAhSYPDLoqoDHGZucK3ofZcgoPQwoBD GMzYwWIWEAK9VN8U8vhSYj7xi2Q0rKaHv+mbjHHKR+c0mld1+SBfZXY/Mt7FbTBXvRJ8 xbLY0duLSAeHDWzreEUTKxPRapZDkPo48V/didulFgRm6GDSaQbDEpIvOA1CkoynSadQ fSQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=3SfnrzwmkkMF8R9JhbYStPD6FosPH0R9WbGo/F4C5jY=; fh=V4/3lvRmPaoJxGPxxwrQwCDBGU1SK6ZiH1qK3dkGO6E=; b=aEfU/xn+0clM+hGCo9FbPgNYxzpvvbYYuRNRx7zEKIFdp+hy5BO8PZLs2ColRN+ulV h1DmUBRv2BFxTvK0zIi00PlC4QxMS1EdpZrtVcZuFS9ikxWPKuOzSzLQ4nwHaqlq75gZ B4Rf3aV8w3TntvX2xS0cLnVTwavIFAq8d3tAAbUlHJYX5hM/MVgLCppO6vM+qFJoQd85 uLE4PbIlXaY4q41CvBy4of3O8O7GKVLxPEzSewVK0qwyWwLC0GtTW4hvzlcaQHFb3bH8 XBok4YyEysfspmcjq99fyr9pmxCpQlkZi6MhqsNXaTySjGDaf8+A2VgSx0TEPi5k0RNM 1+xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=Yw23IB9o; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-107922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c29-20020a631c1d000000b005dc8b9af6bdsi10387034pgc.420.2024.03.19.10.38.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 10:38:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=Yw23IB9o; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-107922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 80F5DB21711 for ; Tue, 19 Mar 2024 17:38:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EFD92033E; Tue, 19 Mar 2024 17:37:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b="Yw23IB9o" Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (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 0007E19BDC; Tue, 19 Mar 2024 17:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=71.19.156.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710869871; cv=none; b=W9Lch6yuv+h2FMqrxnNAy3KywyPsaLI/ctplX0e41qdopeZ0MqjtBuhqPdWAQRy8Q5If3p1Agdv6tW1JMlLWiMHr1NnR4HdpdnWuel38tq1uJe1VSRDFXlIYRmcz8XKhV3e1MiEHveOCyKo3ab5EZYk1oQveBM/T4m5X3TUE2zQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710869871; c=relaxed/simple; bh=3SfnrzwmkkMF8R9JhbYStPD6FosPH0R9WbGo/F4C5jY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ddkIOmST5czSpzQEB0AiS8c190VCqoS5aceexd9in1/rKfpW2F/PKPxdXMv2tLmIu2h8ijuRavfRSwCStchv2cBz+iNpFz+SR6hGhXj2/kl8scahIf7Eqquygw9c/EiRzEp0npqOKffhiIRu4eruYdkFdYTbFdUT8gew+8U3Vr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net; spf=pass smtp.mailfrom=bewilderbeest.net; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b=Yw23IB9o; arc=none smtp.client-ip=71.19.156.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bewilderbeest.net Received: from hatter.bewilderbeest.net (unknown [IPv6:2602:61:712b:6300::2]) (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) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 8C49F6C5; Tue, 19 Mar 2024 10:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1710869867; bh=3SfnrzwmkkMF8R9JhbYStPD6FosPH0R9WbGo/F4C5jY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yw23IB9oMmIiDLLw4cX4HvHYB6lxgOSm1IJBbODouWBF6Tdg9DIANXgrscEsrepIn w05eEa0mr0polnd9iRwE9B69iugXx+h8TR/FTlvcRIZwBNtXDJfHVpjNVdn1GFUy9M k6xGaqa1kNQcU91A5R5+pBy5Xq8yeo6zMG2TgW/I= Date: Tue, 19 Mar 2024 10:37:45 -0700 From: Zev Weiss To: Helge Deller Cc: "Russell King (Oracle)" , 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 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; format=flowed Content-Disposition: inline In-Reply-To: On Tue, Feb 27, 2024 at 11:53:59AM PST, Helge Deller wrote: >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 Ping...Russell, Andrew, any thoughts on how this could move forward? Thanks, Zev