From patchwork Thu Apr 13 11:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13210146 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 576FFC77B6F for ; Thu, 13 Apr 2023 11:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aUt4fzUwKVWzZ+m0lOKx3lbpEAPUz05164m/80HNO5g=; b=mfkt7MVgPl3CMK eqi01xHL22yj9uBGP9PvTPYdsFX6HecJT9T9uUchMBrLV6H06P6v11R14uu+sqOYWCpgHzTd4f/SR 3vXOKXQKLZKUPKd6T6HT8mTjy58UPFVnfWLmQiIZvt/vth1DSvWwMWDEPe+orqyRaGvOWPqgU/HU1 PJUTAkmMaBhN75oNdvzJtM+0J6zezLP7lnF1HyDRWKn8weHZgwAD1Ue5P764XYWla57NncGy7ZNd7 yLhKFCKlXaUDrG716y4/UmULKxiNsOnWuziQWNumu3AYOx/Xlv0E5ubbyn4CP+CHJtNnUB8rENgo+ w//dMr3OETMj3xEMiDiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmumA-005ybX-0I; Thu, 13 Apr 2023 11:06:02 +0000 Received: from mail-db8eur05on20614.outbound.protection.outlook.com ([2a01:111:f400:7e1a::614] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmuls-005yOe-2K for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 11:05:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G9YoXAJgHz1hsYkS8QYefEgXjOQmd51F5A+Hk68zCkg=; b=1S8rl5ih9obeWklU0HCUY6ZaaAehq/M+Xxv5VZNVIbRroS083cr7vJ35MwtmGf3QUI2GvswPsAUMkLMymp9QZ8q8SXrRhTXIxCKBHS6fZrjqqx7bJqnL88Y1YcHPQwzREOElsY7MBc4S6Pskl52d5ETSSPWSm1bAwbLGzg0e154= Received: from AM5PR0402CA0018.eurprd04.prod.outlook.com (2603:10a6:203:90::28) by AM8PR08MB6530.eurprd08.prod.outlook.com (2603:10a6:20b:315::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 13 Apr 2023 11:05:33 +0000 Received: from AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:90:cafe::33) by AM5PR0402CA0018.outlook.office365.com (2603:10a6:203:90::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Thu, 13 Apr 2023 11:05:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT016.mail.protection.outlook.com (100.127.140.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.28 via Frontend Transport; Thu, 13 Apr 2023 11:05:33 +0000 Received: ("Tessian outbound 3a01b65b5aad:v136"); Thu, 13 Apr 2023 11:05:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2debb0a2b3ac97e1 X-CR-MTA-TID: 64aa7808 Received: from 3e227ccb0391.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 610A8F2C-E79B-4254-9105-F16551BAFCDF.1; Thu, 13 Apr 2023 11:05:26 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3e227ccb0391.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 13 Apr 2023 11:05:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cjyTYx0b8+uLvAwI9qITq4nlVPUG0BdKgs2JrXTac3X1uc1weciMfNw07HrzI9uivKlMnRtbJrzT2tJuy1Xc8+Ttm6PFjWsMC7rqPwztEmWZ9UCNWtxIKgw3nMNUM2XbXhNn3LO7BtYkaoQW1LxofJSmuCC9OaKpf1ylDQwgw/RBaGfzLDhl1nbTk64xv2Kt3I1pi2u+3RtiqACexEma4Cv/2ZkuC0AXy5kMJfXg4ry/PRZHM0Pq9zPs+0CAAfmzsk/iEN3VXcSooEzxgUaIsiYITymXLCHE+kw3xThKTBCjralBqZ9EbPTLqM78v8LtHRYf+SfI8qMawkLEBJrfcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G9YoXAJgHz1hsYkS8QYefEgXjOQmd51F5A+Hk68zCkg=; b=EAEzlNg5A9crfRWgU47h5vFz7Awz9R+/wOHqs/r/6iyT35nSgjI48vmHZ1AiOqw3axnnerOvOD5jPnMyA4sdAK2qlGnjiv1WRfZ9b5yik5SU7yZ6ppC3pfAsV37NZhm8Kl2c0ufL/hNUMIWmkkyKaNKwkV5HuyAVMr6fIZ9MXF5iNzX7q8Sbz/b8hNjZp3TSSOHCMVFdX5yIWTJZvgfE/8CUnXxf9/M4tjtpBMOedAX+DsPTjoXzSgHpJMLmoJNqt8S6ODN6my0kuLNWv2HVi1Ekdhtw8M+w177llwfloxg0k3UDTqbfjOnUEFLCIMHIRjYCz2rBhSHbmUTnltCM2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G9YoXAJgHz1hsYkS8QYefEgXjOQmd51F5A+Hk68zCkg=; b=1S8rl5ih9obeWklU0HCUY6ZaaAehq/M+Xxv5VZNVIbRroS083cr7vJ35MwtmGf3QUI2GvswPsAUMkLMymp9QZ8q8SXrRhTXIxCKBHS6fZrjqqx7bJqnL88Y1YcHPQwzREOElsY7MBc4S6Pskl52d5ETSSPWSm1bAwbLGzg0e154= Received: from AS9PR06CA0432.eurprd06.prod.outlook.com (2603:10a6:20b:49e::28) by DBBPR08MB6283.eurprd08.prod.outlook.com (2603:10a6:10:1f7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 13 Apr 2023 11:05:24 +0000 Received: from AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49e:cafe::93) by AS9PR06CA0432.outlook.office365.com (2603:10a6:20b:49e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Thu, 13 Apr 2023 11:05:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT045.mail.protection.outlook.com (100.127.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:23 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 11:05:18 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 13 Apr 2023 11:05:18 +0000 From: Joey Gouly To: CC: , , , , , , , , , , Subject: [PATCH v2 11/19] arm64: add PTE_UXN/PTE_WRITE to SWAPPER_*_FLAGS Date: Thu, 13 Apr 2023 12:05:05 +0100 Message-ID: <20230413110513.243326-12-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230413110513.243326-1-joey.gouly@arm.com> References: <20230413110513.243326-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT045:EE_|DBBPR08MB6283:EE_|AM7EUR03FT016:EE_|AM8PR08MB6530:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ba585e2-4f02-4af1-7b88-08db3c0f0053 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: sxXH0qvu4VgxDXwLGiLNSJziievwF1etH4Xy8jfcobkSoEJHT41+yeIcNMY26ECVeKluqY+AsT09n38NkBeoQQpKjsqaRNvXnRxfZHEK5nuoAdO2bHLgpG5MlEy+HkFY98G7Q9Ongyt0ps3kRVuwTEnJx+ljBSNogtxMbwUymjFbd5SG5RGq8ZOmYNPkRbiBcKRgDOwoLMU4ERkgzltMQs0yY3zfeUeN2kpxE9CvPMrb2qSs+OQAcWRq78tkwmviPi/CcPBZsgP55t9Z/GEyRbdEJ1Hx840n2df34UvwKWUvaGl+riqNEYYM4R8JYpPPnSpkPjinMSi0T0YU3VOTT7QbVXegkhRVb8tdEidyICyi3TqrhWVF7+vxNNg3/EThX9zxgMCDLM4qj6OnXVwIHS4Eh6v4G00gd8dmlJq/oRbmBkzNMfShZ83Y1FfXUJOtspMUOsFeJt1FAwdwzlhg35MqqisyH6mobb7vZ61UGdpQ7Ru5esFJoruSC8N5DyyvKsZxsB5FCm+cP9L7hH7c12fhWcpw5KPas5aWX43H4INt5QTlpElLkwPMdL60UGNf9vqyZB2rhCuAMa1KQsLqEIzuExAC+i5OwH8+ra5Ax5iHo5NyqaKmONGUFpKk86SvHcNKfrfH/JtfvoQTfrDBSyR5kZRWHzBMwi9yKjLPErJxDTCCGyDqvcQUfshFOrw1qt2bzzgkStu6cOlkfQJEKGUiNq0LgC66BST1QvpcWHQ= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199021)(40470700004)(36840700001)(46966006)(6666004)(7696005)(40460700003)(6916009)(70206006)(70586007)(4326008)(36756003)(2906002)(44832011)(86362001)(81166007)(82740400003)(356005)(41300700001)(5660300002)(82310400005)(8676002)(8936002)(316002)(478600001)(40480700001)(54906003)(1076003)(26005)(336012)(426003)(36860700001)(2616005)(186003)(47076005)(83380400001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6283 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d258cd79-2677-497a-c9c3-08db3c0efadb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +7KVjtgQ9PDy54gGqYfccD4zlRt4l2Aw3/XYCTAHe+NfBE6tmlfGLN9jGFigVR/G0Z1l9oxooIQs9uE3o2S1FjxWth+JKS+Cc7x/y+dM8VZwVxx/gOK6OiwlBLcOnX0QhubmS3mZ0HF+xqHSfh2Ygzn+16BxdZEZ3bGizEycSMzwKI7HcOkXZcAxpxu7xKXN5Sbgg6Xa4i6K/pZMQaUTLhRUVVjhcFVha9vGoSXyaXHRW9EQcQ6nd9MVsriZyUPpsGcD7dVyMNbKS30j1XGAlbQtXfk+dUKpk5wvXxSSnpOJDnwvjn4Pq6qvYNHw2bqQp3Gxh98nlrC4nVHX77Vlr70twojqtmr58tUxVOmi6rfdqnKaj5FytPtPDJZYVYgQyjxNJaTmOyFAnG3nee+3o4ukiNLSzwP2kazCYqjmPy/ZjiQHYx8vjL89aMSE3dU6cA48Cv+SM8PqDwG/FEAY5N+Tkl8JnmZTXlxYpyOme3or5gRW67a6ql2V/TziRUX5ageqC1nRdNchISxIxqVEhadtWiXBhM26iXyOj0FFJPcfoYvLwjoWKTPeT+6MF7T6bqa/F/CLH88Wng8lRpYwnne9yyzX4rMr4F/a7dSFtwFxSYa7Dirm50X9WsX9FZUa/mwDndpjEWte0I8k5h3FwaKx8ZuivBPO+GHcUBPCarDzzlcr0l7mnEMwDIAaf1WxJ3SUNzTdrGt1bZU0XrqPjg== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(346002)(376002)(396003)(451199021)(36840700001)(46966006)(40470700004)(40460700003)(2616005)(336012)(426003)(26005)(1076003)(186003)(2906002)(83380400001)(47076005)(8676002)(4326008)(6916009)(70586007)(70206006)(41300700001)(54906003)(316002)(478600001)(5660300002)(6666004)(107886003)(44832011)(7696005)(8936002)(40480700001)(36860700001)(81166007)(82740400003)(82310400005)(86362001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 11:05:33.0079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ba585e2-4f02-4af1-7b88-08db3c0f0053 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6530 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_040544_760877_AC75D991 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With PIE enabled, the swapper PTEs would have a Permission Indirection Index (PIIndex) of 0. A PIIndex of 0 is not currently used by any other PTEs. To avoid using index 0 specifically for the swapper PTEs, mark them as PTE_UXN and PTE_WRITE, so that they map to a PAGE_KERNEL_EXEC equivalent. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland --- arch/arm64/include/asm/kernel-pgtable.h | 4 ++-- arch/arm64/kernel/head.S | 8 ++++---- arch/arm64/mm/proc.S | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h index fcd14197756f..daf1909116f6 100644 --- a/arch/arm64/include/asm/kernel-pgtable.h +++ b/arch/arm64/include/asm/kernel-pgtable.h @@ -104,8 +104,8 @@ /* * Initial memory map attributes. */ -#define SWAPPER_PTE_FLAGS (PTE_TYPE_PAGE | PTE_AF | PTE_SHARED) -#define SWAPPER_PMD_FLAGS (PMD_TYPE_SECT | PMD_SECT_AF | PMD_SECT_S) +#define SWAPPER_PTE_FLAGS (PTE_TYPE_PAGE | PTE_AF | PTE_SHARED | PTE_UXN | PTE_WRITE) +#define SWAPPER_PMD_FLAGS (PMD_TYPE_SECT | PMD_SECT_AF | PMD_SECT_S | PTE_UXN | PTE_WRITE) #ifdef CONFIG_ARM64_4K_PAGES #define SWAPPER_RW_MMUFLAGS (PMD_ATTRINDX(MT_NORMAL) | SWAPPER_PMD_FLAGS) diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index b98970907226..989e2132af14 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -382,7 +382,7 @@ SYM_FUNC_START_LOCAL(create_idmap) adrp x0, init_idmap_pg_dir adrp x3, _text adrp x6, _end + MAX_FDT_SIZE + SWAPPER_BLOCK_SIZE - mov x7, SWAPPER_RX_MMUFLAGS + mov_q x7, SWAPPER_RX_MMUFLAGS map_memory x0, x1, x3, x6, x7, x3, IDMAP_PGD_ORDER, x10, x11, x12, x13, x14, EXTRA_SHIFT @@ -391,7 +391,7 @@ SYM_FUNC_START_LOCAL(create_idmap) adrp x2, init_pg_dir adrp x3, init_pg_end bic x4, x2, #SWAPPER_BLOCK_SIZE - 1 - mov x5, SWAPPER_RW_MMUFLAGS + mov_q x5, SWAPPER_RW_MMUFLAGS mov x6, #SWAPPER_BLOCK_SHIFT bl remap_region @@ -402,7 +402,7 @@ SYM_FUNC_START_LOCAL(create_idmap) bfi x22, x21, #0, #SWAPPER_BLOCK_SHIFT // remapped FDT address add x3, x2, #MAX_FDT_SIZE + SWAPPER_BLOCK_SIZE bic x4, x21, #SWAPPER_BLOCK_SIZE - 1 - mov x5, SWAPPER_RW_MMUFLAGS + mov_q x5, SWAPPER_RW_MMUFLAGS mov x6, #SWAPPER_BLOCK_SHIFT bl remap_region @@ -430,7 +430,7 @@ SYM_FUNC_START_LOCAL(create_kernel_mapping) adrp x3, _text // runtime __pa(_text) sub x6, x6, x3 // _end - _text add x6, x6, x5 // runtime __va(_end) - mov x7, SWAPPER_RW_MMUFLAGS + mov_q x7, SWAPPER_RW_MMUFLAGS map_memory x0, x1, x5, x6, x7, x3, (VA_BITS - PGDIR_SHIFT), x10, x11, x12, x13, x14 diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index 91410f488090..644e8daa25df 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -290,7 +290,7 @@ SYM_TYPED_FUNC_START(idmap_kpti_install_ng_mappings) isb mov temp_pte, x5 - mov pte_flags, #KPTI_NG_PTE_FLAGS + mov_q pte_flags, KPTI_NG_PTE_FLAGS /* Everybody is enjoying the idmap, so we can rewrite swapper. */ /* PGD */