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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 C9D9ACD11DF for ; Tue, 26 Mar 2024 23:21:41 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.a=rsa-sha256 header.s=2022a header.b=bf78/hZT; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4V45R82RXFz3dX5 for ; Wed, 27 Mar 2024 10:21:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.a=rsa-sha256 header.s=2022a header.b=bf78/hZT; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=codeconstruct.com.au (client-ip=203.29.241.158; helo=codeconstruct.com.au; envelope-from=andrew@codeconstruct.com.au; receiver=lists.ozlabs.org) Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4V45Q031fxz3bs0 for ; Wed, 27 Mar 2024 10:20:40 +1100 (AEDT) Received: from [192.168.68.112] (ppp118-210-177-226.adl-adc-lon-bras34.tpg.internode.on.net [118.210.177.226]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id C83DE200DB; Wed, 27 Mar 2024 07:20:38 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1711495239; bh=5LMuaTA//ft7/a0fu9qFOSDRNhm40x5yJd8VYwEv0qY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=bf78/hZTutL131ph65j5Om2Tjtd69+bUWAC48NpIQb6g3Ayxfj6AWvi8ASdiM2NcT ZnQVz8zn0rCYipALJ9xiQnI9zBZCS+0U6O4/9U30ESj2eTPBfTSwOaZT362J158LHT LGDuWSHOakQFnigIlPReQHItZKU8TBaoOkv7x0GsiVoS/HNYNIgV87+yqp2QccZ+F2 YbyVchJduHY/PmcNiNEk4FaSmG5XF/1sUW01BcMw5c1WKVZlLGgxB2xwR8LfI5RYuR FtHMIagVtC/VY67tZl1EHokZnInl3pKWInBpwBYP5nftcVzl9r05i4hjPWMkxW13Je e+JtAGypFjkMw== Message-ID: Subject: Re: [PATCH linux dev-6.6 0/2] ARM: prctl: Reject PR_SET_MDWE where not supported From: Andrew Jeffery To: Zev Weiss , Joel Stanley Date: Wed, 27 Mar 2024 09:50:38 +1030 In-Reply-To: <20240326194959.10777-4-zev@bewilderbeest.net> References: <20240326194959.10777-4-zev@bewilderbeest.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openbmc@lists.ozlabs.org Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Tue, 2024-03-26 at 12:49 -0700, Zev Weiss wrote: > [Re-sending as I forgot to CC the list the first time, apologies for > the duplication.] >=20 > OpenBMC on AST2400 has been badly broken for some time now due to > systemd services segfaulting on execve() after calls to > prctl(PR_SET_MDWE) spuriously succeeded. The MMU of the ARMv5 CPU in > the AST2400 cannot meaningfully support MDWE because it lacks distinct > read & execute page permissions (read implies execute), so these > patches ensure that the prctl to enable MDWE properly fails on > hardware where it isn't supported. >=20 > These patches have been posted and approved upstream [0], and while at > time of writing they haven't yet reached mainline or stable upstream, > they're on their way and should hopefully get merged soon [1, 2]. >=20 Nice, palmetto userspace behaves much better under qemu after applying these. Andrew