From patchwork Fri Oct 27 18:08:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13438784 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28A60C25B6F for ; Fri, 27 Oct 2023 18:09:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B42A86B03E2; Fri, 27 Oct 2023 14:09:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACAAD6B03E3; Fri, 27 Oct 2023 14:09:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9471D6B03E4; Fri, 27 Oct 2023 14:09:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7F30A6B03E2 for ; Fri, 27 Oct 2023 14:09:38 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 5E17A1CAE40 for ; Fri, 27 Oct 2023 18:09:38 +0000 (UTC) X-FDA: 81392029236.03.F26FED7 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf14.hostedemail.com (Postfix) with ESMTP id B2A1210000E for ; Fri, 27 Oct 2023 18:09:36 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698430176; a=rsa-sha256; cv=none; b=C9pJHIDqFw5lPDOD41r4/GmCLRQ3csAt0u0GDjTKW8El1mxmTKMCadJUDuAof/odvZPxQS hek/4B6IHiUD0kDjqevOPi9L3iWG9tyqLvbS5Qs3FbTmxZxYjOzdjjWSZZnWEB/K2W05Zn CzYK/0aRq6Y1vc7JzyJSBvVI/wTfDzo= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698430176; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fP0hZBQLW0r5LPMNDw9vkQWBkTgVKFZIvfc9QkLlChM=; b=HF0xu4BSAMVj8YcBoBN0JvV34NClQ8HYO7aruR8ghxPkJa5CBv8jQYWRFueirLopIyFWIF RbZKbWeMaPDnlCq5K22k6E9uC/AJHuBWsFLenOGiLprJIG1zo8YaZ1kbuz9eoYRCHh3Buz ZBjYdT64mo3FPMRBA+lAPpWLQDmof2M= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 809C51424; Fri, 27 Oct 2023 11:10:17 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B264B3F64C; Fri, 27 Oct 2023 11:09:33 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, broonie@kernel.org, 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, James Morse , Suzuki K Poulose , Zenghui Yu Subject: [PATCH v2 13/24] arm64: stop using generic mm_hooks.h Date: Fri, 27 Oct 2023 19:08:39 +0100 Message-Id: <20231027180850.1068089-14-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231027180850.1068089-1-joey.gouly@arm.com> References: <20231027180850.1068089-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: B2A1210000E X-Stat-Signature: kgiepfboc8m5aijou7saawrf8oaonp3h X-HE-Tag: 1698430176-36420 X-HE-Meta: U2FsdGVkX1/S9i0dhoBt+jgxj3mgpizoWFSMcHj2thnN6aqGoiM5HjxVikSxEjlz5TBWnUy1EY7mmlw2ypHL+lRPYZgsbY+qd6bDrUKC8BfZamA6wMu/PC8BV5fIwpEtrGUhAsVzySyyvzZolgAq6uPlQ4JsolApgzk7uT/a+3Oh7N6/p+llp0GfnyokF1PBGEjui1bXfdTLCQ9+weRpoZvb+a9zWLrfmSssyF+rc0kU8ebEywS1o6U96ppxeYSD6imAWaxoIWTmDOzHxiyXj1QmDfz7lxx8qL1vNlqm903hJGgYdsRVCB895HH/rbFie8e1ebDKYJwHoJnOi8OwuapntlSq9q+lAKRkuXuz1sWBkiZtKlDFwlF/OA38Iz7PkN2qnOcLgAzKZt6eXnzPLYPJ91HW3I80rTMrKU1OaPVnbmfVZhFoahUtUVqTo5AcOIXhunEa1t6A9Bs2G+GuGaBE40qAs+l9+8TRLWvcO1NulPbgqcRbBzDhuEUiM4McXhpDayqbuIVW/veTV4GmWWIFFLXjYvuWP7zD/m8fW9+hcX+Sf4zAyhfJP+J/e+vx2LUsCkXis55ZJl6kOaIh43NES4RiakXLHB9l1i+wEQAguW6T+zV8/1tUZh+MQ0NSrLZVAr/NIqO7d3GTylshZn/9HqEdaZZ+fbyLS1+jGXusI9A1XF1Xxhyf3RQtqOXM/Jcswatszqp3NLPnas23aCMwya7B7swLALSX246kLngIJ9Dnp4MVfv1WtR/nNcHHSx9egP+LyFEhe3OH5ba/a+3ynUdQ/NsqPc5f6eW8zK5zsfCtfbG9BkkUrftXbVbR7MCuvg27RE1lJBTq9mEx7jvbpmh9ZVKif95VhTkdjg1fDFnMHIdeUul6DEXhAAzE+SKtilnpgm5c1iCiB1aUfO52zExWMnTsY7245VSgwT+2CH8wp0S1RGIIQN64/U8/1VO+GxcyDvYzj4insAt qO29B+6R lVzFo+esAA/7SFL+6ApmltdTkTuSDVpHdjTjiS/47xX1z01F2y5ecclgDcdrgpSYBqITKpmvVdHEFo4C+NRvCS/H2HbUMdtHTSXhFEYyWGmvGVUX0jSFG+MBiO8binaJOAu+bGYZSg8AhE6mGq8yRlQPqKwipEhuo6VfJ7c3aCWW9fN2yrJ76bysESrIiMlKRCSZNJB5XnoSpo/aQDXRwDAJ/kAXCobLKvKreABWvrYVXTIKqluyp8zHLBevy8xzpbOC+k13abcXbtHU= 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: List-Subscribe: List-Unsubscribe: These functions will be extended to support pkeys. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/mmu_context.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h index a6fb325424e7..c0eeed54225e 100644 --- a/arch/arm64/include/asm/mmu_context.h +++ b/arch/arm64/include/asm/mmu_context.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -209,6 +208,20 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) return 0; } +static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) +{ + return 0; +} + +static inline void arch_exit_mmap(struct mm_struct *mm) +{ +} + +static inline void arch_unmap(struct mm_struct *mm, + unsigned long start, unsigned long end) +{ +} + #ifdef CONFIG_ARM64_SW_TTBR0_PAN static inline void update_saved_ttbr0(struct task_struct *tsk, struct mm_struct *mm) @@ -298,6 +311,12 @@ static inline unsigned long mm_untag_mask(struct mm_struct *mm) return -1UL >> 8; } +static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, + bool write, bool execute, bool foreign) +{ + return true; +} + #include #endif /* !__ASSEMBLY__ */