From nobody Sun Feb 8 14:07:02 2026 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 C7F041E7C19 for ; Sat, 27 Dec 2025 07:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766819209; cv=none; b=AP/nOfNK3wS/TC380GJ+ZvnW44deq/xdGqczyWQHcOzkV82JIqOAiaHzeM2KQ3BSeIygZhjqtDQJOLdL0qV6L4+RIIcbUHSvCPQuCpyD9RAEPQiu24qjgPkDO2hCc9defk8F5ltcxp7AwNpVhroYno54q67WFePYAQ8c1qwrWOc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766819209; c=relaxed/simple; bh=AG7uc6xlEVF00LCeho/FB/MvDMWjdxTraI6UkbsOS9o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=twbG8fs+TQelOciqz+f3E2SJwyPTJ8EEys+d/iSr6/ROoYP32v5hCyKR9/jZcCj5Jfa+q09Vu+PJHUE63h3LrgCOcOEwvM0pqPrgCcqppyZGKsP4fu/1i6oW00baAK/hENILPksDYs6E53sMHx9hX7hSjzE5c+hdRS1hQ3Th4UM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=alypQ+U/; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="alypQ+U/" Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20251227070634epoutp0105176dc64e9fcf0da9ea802dd8d25a77~FALI51RBX3073630736epoutp01u for ; Sat, 27 Dec 2025 07:06:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20251227070634epoutp0105176dc64e9fcf0da9ea802dd8d25a77~FALI51RBX3073630736epoutp01u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1766819194; bh=/rkTIxiElWI5s27YLFLws3t5rr63qHfD9Gj0Tb/uj9k=; h=From:To:Cc:Subject:Date:References:From; b=alypQ+U/ywIa88QXPZc/fxzkBTEc8t9mkOHbuKK2F54Q89SormZbjfBGzeuht93s0 gr1DZ7WtWxonOvD9S0HVI/0zWNq4z8ZFzyVnNb1ah8I1Yr5MTMt+ta/8kK4iDV5BXk JQeIBSg3rspOs/xDh0TVGWDRHIyDcYPLUsOkb7I0= Received: from epsnrtp03.localdomain (unknown [182.195.42.155]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPS id 20251227070633epcas1p26607d24b08ae7a000ab202e69330c15b~FALIloIss1811818118epcas1p2z; Sat, 27 Dec 2025 07:06:33 +0000 (GMT) Received: from epcas1p4.samsung.com (unknown [182.195.38.114]) by epsnrtp03.localdomain (Postfix) with ESMTP id 4ddYS969g5z3hhT4; Sat, 27 Dec 2025 07:06:33 +0000 (GMT) Received: from epsmtip1.samsung.com (unknown [182.195.34.30]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20251227070633epcas1p3a8f7c19c9f5114a46765073fa16ba449~FALHxTE3y0494004940epcas1p3w; Sat, 27 Dec 2025 07:06:33 +0000 (GMT) Received: from U20PB1-0362.tn.corp.samsungelectronics.net (unknown [10.91.131.200]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20251227070632epsmtip17f6ceccf1fb97cee4a0c484ee9ea9231~FALHtFAif1002810028epsmtip1X; Sat, 27 Dec 2025 07:06:32 +0000 (GMT) From: Seongsu Park To: catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Seongsu Park Subject: [PATCH] arm64: Fix PIE_E1 mapping for _PAGE_READONLY_EXEC Date: Sat, 27 Dec 2025 16:06:25 +0900 Message-Id: <20251227070625.217349-1-sgsu.park@samsung.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CMS-MailID: 20251227070633epcas1p3a8f7c19c9f5114a46765073fa16ba449 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P cpgsPolicy: CPGSC10-711,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20251227070633epcas1p3a8f7c19c9f5114a46765073fa16ba449 References: _PAGE_READONLY_EXEC should map to PIE_RX instead of PIE_R in PIE_E1 Signed-off-by: Seongsu Park --- arch/arm64/include/asm/pgtable-prot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/pgtable-prot.h b/arch/arm64/include/asm= /pgtable-prot.h index 161e8660eddd..ca14f61dee81 100644 --- a/arch/arm64/include/asm/pgtable-prot.h +++ b/arch/arm64/include/asm/pgtable-prot.h @@ -180,7 +180,7 @@ static inline bool __pure lpa2_is_enabled(void) PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_GCS), PIE_NONE_O) | \ PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_GCS_RO), PIE_NONE_O) | \ PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_EXECONLY), PIE_NONE_O) | \ - PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_READONLY_EXEC), PIE_R) | \ + PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_READONLY_EXEC), PIE_RX) | \ PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_SHARED_EXEC), PIE_RW) | \ PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_READONLY), PIE_R) | \ PIRx_ELx_PERM_PREP(pte_pi_index(_PAGE_SHARED), PIE_RW) | \ --=20 2.25.1