Message ID | 20230927140123.5283-11-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B57A6E80AAE for <linux-mm@archiver.kernel.org>; Wed, 27 Sep 2023 14:03:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51AC08D007C; Wed, 27 Sep 2023 10:03:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4CADB8D0002; Wed, 27 Sep 2023 10:03:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36BC78D007C; Wed, 27 Sep 2023 10:03:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 25B948D0002 for <linux-mm@kvack.org>; Wed, 27 Sep 2023 10:03:29 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0351B1CA9F2 for <linux-mm@kvack.org>; Wed, 27 Sep 2023 14:03:28 +0000 (UTC) X-FDA: 81282544938.28.7914DA5 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2053.outbound.protection.outlook.com [40.107.6.53]) by imf19.hostedemail.com (Postfix) with ESMTP id 8091C1A0121 for <linux-mm@kvack.org>; Wed, 27 Sep 2023 14:02:54 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=5Ab4Y5tz; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=5Ab4Y5tz; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.6.53 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1695823374; a=rsa-sha256; cv=pass; b=4us4n/tBCGdx5uTgaodapksee03Qan2bgHlzemP/E6m4qRTP8fPhiNHtrIF4D6EoMiurZ/ XrKcikU6Y8ERHcCtD1poF5CC/Vc2VqUOmdvT334YOvWhkFhb5V8XgJ2khPIMtCFBDap3B+ NwtydRZ+5yxy7Ak0imRab3yVJFGRJ18= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=5Ab4Y5tz; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=5Ab4Y5tz; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf19.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.6.53 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695823374; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=cEphZ7FSAyhFA2gyPB5fSFck49IXGee0EHT1BdmiAgY=; b=12MxaaIWtDo3TacavQ8HV8ocf5RzFNqCH41nvJJuSDlCCNk4z6ChWQUCi6voZvKgvhKy0T XzAGMduSaFI435Ip4SISrPwOVip4Zzat5R84opMQ8/QHzdQsM0x//9WRWTyK9+oCF0d7hQ DIcgDK2PpI2QMO2qbMXpWfXcaSdPF0Q= 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=cEphZ7FSAyhFA2gyPB5fSFck49IXGee0EHT1BdmiAgY=; b=5Ab4Y5tzLAGhgDjLLGh54MhvwGmLAs1NyAVkA4UIK2grMeKrZg1hlmV1TVwfHLz7stzrZtPXP/KVM9hjDUkKnCjoD9BoSXP8/D+EcWMiyE3vDM3S39FsaSpgRmAyWHzccOBRaw7rvQBaKEK8I0REHfDX3Djm9X+ASieBGS/OUtc= Received: from DB3PR08CA0015.eurprd08.prod.outlook.com (2603:10a6:8::28) by AS8PR08MB6536.eurprd08.prod.outlook.com (2603:10a6:20b:31d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21; Wed, 27 Sep 2023 14:02:40 +0000 Received: from DBAEUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:8:0:cafe::f9) by DB3PR08CA0015.outlook.office365.com (2603:10a6:8::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.35 via Frontend Transport; Wed, 27 Sep 2023 14:02:40 +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 DBAEUR03FT040.mail.protection.outlook.com (100.127.142.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:02:39 +0000 Received: ("Tessian outbound fb5c0777b309:v211"); Wed, 27 Sep 2023 14:02:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fa27c0bf9af9bd5d X-CR-MTA-TID: 64aa7808 Received: from 2ea7227955ac.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C42703F0-08CF-4811-87E8-7D027541B34C.1; Wed, 27 Sep 2023 14:01:49 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2ea7227955ac.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 27 Sep 2023 14:01:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VhY2LWKO9C0VvSLR6ovgW5y7O832Bb3a8WKiXY9XO+tZtQD7bWTiGpkZLfQMuONPwqVl3t1Uaaohnc+yrURC5FspKo4zx9arUz8ltzgYaIfXD+AJtR6zpCUiZA6a330Oj4nosz5s+MSpEo1webgnU2nO7EvLrwoBu8sF087ncNpAoX6V/tKBSuziL4MkeGKnMoZEbz3flI8ERmeVfWubwptH/8Qgdzi3MH4zlLKRw098iMx74S7jUKKq0OnNHPyKilyiua8Q9gmry3ZEsP3ZitkKoz0OaM2kiAWfKrOFyg7dmN58fr43lbMei6jaBsSjCrh0b/marAfbsgKkyArWdQ== 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=cEphZ7FSAyhFA2gyPB5fSFck49IXGee0EHT1BdmiAgY=; b=ehHhM1heIzlzjpIs/Uha3TjD1IEgUssuYpWuHfsOa5b5u5nJAuIlKCz8LeJr1nlXYx0J12dl2oZTYGDkFzRCHRbz4ugfzESDkKZYxwssdeLV9DdsQTycOMI1JwXlYo9Qvc9ZTCj+bZgi11cnAJbmbER022U1eW1VGZdYlCBMnPmY804rI1ny+DlxppyB8iUlPO967P4kQA7juhu2E891Lo5oAV48B0O2xsyhfy+4wk0jhtyjHgM/4K3QStLuhbQd6pygBObhvBaVJi1QEwOFJeN4Rc40L0HCWLzyBCyn4t8kKCRnNUllg9RpjOjkNwG9d9S+8HLV476l8OwvHQSNGA== 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=cEphZ7FSAyhFA2gyPB5fSFck49IXGee0EHT1BdmiAgY=; b=5Ab4Y5tzLAGhgDjLLGh54MhvwGmLAs1NyAVkA4UIK2grMeKrZg1hlmV1TVwfHLz7stzrZtPXP/KVM9hjDUkKnCjoD9BoSXP8/D+EcWMiyE3vDM3S39FsaSpgRmAyWHzccOBRaw7rvQBaKEK8I0REHfDX3Djm9X+ASieBGS/OUtc= Received: from DB9PR05CA0013.eurprd05.prod.outlook.com (2603:10a6:10:1da::18) by AS2PR08MB8718.eurprd08.prod.outlook.com (2603:10a6:20b:55e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21; Wed, 27 Sep 2023 14:01:47 +0000 Received: from DBAEUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1da:cafe::e7) by DB9PR05CA0013.outlook.office365.com (2603:10a6:10:1da::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:01:47 +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 DBAEUR03FT051.mail.protection.outlook.com (100.127.142.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.21 via Frontend Transport; Wed, 27 Sep 2023 14:01:47 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 27 Sep 2023 14:01:39 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 27 Sep 2023 14:01:38 +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.27 via Frontend Transport; Wed, 27 Sep 2023 14:01:38 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <akpm@linux-foundation.org>, <aneesh.kumar@linux.ibm.com>, <catalin.marinas@arm.com>, <dave.hansen@linux.intel.com>, <joey.gouly@arm.com>, <maz@kernel.org>, <oliver.upton@linux.dev>, <shuah@kernel.org>, <will@kernel.org>, <kvmarm@lists.linux.dev>, <linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>, <linux-kselftest@vger.kernel.org> Subject: [PATCH v1 10/20] arm64: mask out POIndex when modifying a PTE Date: Wed, 27 Sep 2023 15:01:13 +0100 Message-ID: <20230927140123.5283-11-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230927140123.5283-1-joey.gouly@arm.com> References: <20230927140123.5283-1-joey.gouly@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT051:EE_|AS2PR08MB8718:EE_|DBAEUR03FT040:EE_|AS8PR08MB6536:EE_ X-MS-Office365-Filtering-Correlation-Id: 70443957-3278-41e8-3f30-08dbbf626933 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: AhozLqvD/pQmxSKeVXhotmDCw+96hsgWioF2MeqpnGubt2mzspKsM9RprcSvKVCF+naCllJlaYBncoVfcj6kPfD1yt8fKpH+d/OEcQ0OyYEmrZBxgSznTdnXtgmtYu5jozqaMXE2OKfPUnuRl9FzL9lhtfP5IGJNh2jDlOZxeYoYkYuSzY5X4HzPnWEqQ7q5gPYCO8wyhfpPR8mdau4tPyH4/7PPwD/dtvSujvNL78lc4fIEf7vSwnarLA/YSdFjEt6CGSy1enWJV06xs5ZEGarT63G2YIWQPmhLPBZYWwzaUnS7Dt7eyR7OwbamkgdDIXGYiV/lSx42TGkcggHegqjzVci7fWVLDKtTUx+tIOHChzOINrqK+AMZcY2uWBw6ne3AOcvsjJeS3REZDB1ZxSjYXQ1Um1ncKHALU1GecvqF7DwZIZxjWWxnmLVKMCT1NVFJuPRzQpv64vHIKTRz5YNJUBQ8SPgR/363AUn7szDrl5tsFlEs3gBgT0lyAt8tKMd3TWjpTN2Vb03gsImSAQkzfjurRM2SW19ya6iziLYuGgQ7mHpEW/b4wKmZ08/5XgKl4242g2vf6HzGdFlZG4h/nsaa0Hv4dHOvqm3IxMc5mrS2SDmEEIs5V1wqEAjP8Fm5XrOVjnEv1pV37QNuC6oEzsbejoDu60ShhTj0R1BWyfcPLKk8QxfIoZy/ku8bkcZkEpMeZFwChtQqSaFHR92Dr9laUnhhQJHyZFOps09WgdzfheMthAreK1a564uM7BQo2oSF6aMEKEC3G5S9FQ== 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:(13230031)(4636009)(136003)(376002)(346002)(396003)(39860400002)(230922051799003)(82310400011)(186009)(1800799009)(451199024)(46966006)(40470700004)(36840700001)(40460700003)(44832011)(7696005)(6666004)(70206006)(81166007)(356005)(2616005)(70586007)(6916009)(54906003)(316002)(478600001)(86362001)(36860700001)(47076005)(426003)(336012)(82740400003)(1076003)(83380400001)(26005)(5660300002)(40480700001)(41300700001)(36756003)(4326008)(2906002)(8676002)(8936002)(7416002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8718 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b42636de-6186-4c5e-744e-08dbbf6249ec X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NGkbyQ0HBy50DzJvmcjx77sStos6c5r5Vz9vwgfwdYgYcureJbGji4tuIaaJSg/eNGo0v4x9Z/C/s+y12/wpKC7Zyy9teHAz3+j0W+YsI9y5/D3CQmto7flxTI2tABlK4xfOz5mOIkHbO8lOnbQU0h8+wwhbcgwB80MGW8HJF1S20yxatqE3j3wrcMUXNTtVXmKSkTwcL0QagZpGCN0wA77cUOaHygBFnhQbxyyVA6V433T6xIa6DBatkIivfLRd/ppj1kK2Rbv/qjSeGHX5peJzSQ8aEQ+cSOGC3KBoi1cOT9EgLISLqFhAU1Mc/3n6mtEd6kcEFTqaaSiT6SuXDITutmGUaXHjBWNgOicIjF/ytV8MMVk2n90tf0YCsUQQu415Mq+5BA4VzZ8eQ3vtr6JyKdEQZCVT0b7klaGFimpij5cRRWHUu9m/4A37izJ6zYZkqgZrN7Kd5MMgf8nOoKgp5vabCgE4fP2lfqYT/pVoIiyYZSsGCZhkZU/xa9fVfDeBid6AFVA//GqGVAHStTjSF84hu03HjOSrVAr098wMphdBSqlQtrln6Y2RwNFNEdZ3i8YjV+D7Ujc7urPhji6OK62oP/vAv2mAkzVyW9VmeyAIcg471LSSD2pDVhacPCSUgMbbGJGsQON8MKHmXep1nBpyhmJ4CKBYkk7byCBRkeVce6K5gM/fpJLTas5itn+QII0L7ymE7iZmf8+8F41tHa0w4nQDhiNvXzzkCsdecI2tmmFE3GQiRoVPSSF3 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:(13230031)(4636009)(376002)(136003)(396003)(39860400002)(346002)(230922051799003)(1800799009)(451199024)(82310400011)(186009)(36840700001)(46966006)(40470700004)(2906002)(41300700001)(44832011)(5660300002)(8936002)(4326008)(8676002)(6862004)(70586007)(316002)(70206006)(54906003)(336012)(1076003)(107886003)(26005)(426003)(478600001)(40460700003)(82740400003)(7696005)(6666004)(83380400001)(2616005)(36756003)(47076005)(36860700001)(40480700001)(86362001)(81166007);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 14:02:39.5254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70443957-3278-41e8-3f30-08dbbf626933 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: DBAEUR03FT040.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6536 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8091C1A0121 X-Stat-Signature: xdf5js7ju1ebg3fbdw64ubtykf5aj498 X-HE-Tag: 1695823374-467205 X-HE-Meta: U2FsdGVkX1/G9H8nnW3ZAl1GbcOmq3XocucDhRYXRF67jbcyqVroH40cd8mK/YkPR1eCfjC+OM6vwWLhXahX6oxYxsFyfyFFiJKqSfr+YeRPuZi1x1LZIBg03KmO3HudIS+zYi9++xeGw3mF0aJDhV00LTjgtgZnf4TrSmartHA03IP0bmiMZsSIbKSC6WB08Fi5kfeiwJ1/ODwhNJtFTkDMFcxmKk+BX8FGsoncLcInH6dUZt0kmPSLN1zpyy2yd9CFQeQot9gGQjgqEDq4bJ6vrnTkfTvoeTIJsAgaJuSJWp7KTFFQXZZtL3/6lW6vCdvi8JvPZYJT009drW8fwqxIqyur82/LkqoZQdkZ4AHckxF7W1OwFa+q3pV1xhrNwWdYFjxrPPBXCp8VUdBjuTN+6pm0u9z2tr1mzXf6ewmmYax4pITOSYRWW8CCgyHl6Q1KC0bsvHGPAo49qQc5zqBa4f6wHa5gsiYdqQ5oztE4Rh7Pi7pz/OcC9ddkJ2quKWusnRFQ6XdStYzWE3IJx1OUoxK1rGGTqh2EoJQ2BKhfT7APef7XMOB/rXjeDpvn11fr3En5RPQ1fQKFKBWiNtjxQ0UMXlAimcCVCnG0gE9L07cLgIA/evscY2R1A5eYv4FrOVAELyu04cnU3M53xDyxUttvZYw/HhmbPX6b1ZdzMDIeJQjc4++ixJlhufkcnEw7W6BmvxO0wit8LDWJNkIFqQ+81OE4+bjhusaCRPnheYoPW5YIdkUoPYRL5uNBYjsJCBPo5jIlIU/xAI96ZaCosB9ZX0W1V4Wtc12n7jIrNamMOGOzSdlIiWZ6M788EzcaTlrb73ExuK8aeCvDFtUShnyGtFx1WiwVBi5/G5hNIrH+wiXZByQT5AKyTIRDNF60JJX/tIuhVPqJHqJSO7MKg/I/Hsc4Wni73EEQvYaGFlbN/KSSR71BTi0jy8x/r4FYRjIoFDQ+QRJBXWc Mjn6Kwev MN4QWIsNF5l3Crq1jRKKBecf5niCwqjycozFBgQ6T8cEkFI5BTXmgHjDslmjmMaNX2mjyEk7WN+IUUCerLSERjD38L5UQebskP5ALealjwdfuKAJMT3asmPWxZeNPjXuba3lAOt0YO//zyyWwtkmLQJVnFRmGbW7WDtoFAyFytEPVt7R8zm4P1nWPyuNAX1plXnNt+iGsU9PqTzjFWSvaPIN0Z9mCH+qzNN0IY7DvZAn4bKFU3TsXkcSIKdJDDRgj0pRHNjYpr37MIUwUsLRrGbVv+iKyczYVAjH+BdcBjQT35Sbyf6StpJ9ZIYRtFo1sGunnvvKtcGPEXfYgnCEA5DvBLv03GZXQ3nAbGUZuwcgZ80Ur7RmBxcALYwt33NqEuM33I+0OosJGHwAePYszX6j7tZWAK1wTYmTzUye0+j+SNVM4szjAqOCAsjCgfTzWY9SsT9+36gAnu2k7uaJxe2WnOCEvKAG6mXMKYoplyEzJ0HakW9qfswOwaPQGVsergfKjoPiQImJOgK/nayfvdBFzYbHLjrikwvL53wZD8AWrYsH2nHOAYsKr7DiHk4+kXjFm X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Permission Overlay Extension
|
expand
|
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index 7f7d9b1df4e5..98ccfda05716 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -818,9 +818,10 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) * Normal and Normal-Tagged are two different memory types and indices * in MAIR_EL1. The mask below has to include PTE_ATTRINDX_MASK. */ - const pteval_t mask = PTE_USER | PTE_PXN | PTE_UXN | PTE_RDONLY | + pteval_t mask = PTE_USER | PTE_PXN | PTE_UXN | PTE_RDONLY | PTE_PROT_NONE | PTE_VALID | PTE_WRITE | PTE_GP | - PTE_ATTRINDX_MASK; + PTE_ATTRINDX_MASK | PTE_PO_IDX_MASK; + /* preserve the hardware dirty information */ if (pte_hw_dirty(pte)) pte = set_pte_bit(pte, __pgprot(PTE_DIRTY));
When a PTE is modified, the POIndex must be masked off so that it can be modified. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- arch/arm64/include/asm/pgtable.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)