From patchwork Wed Aug 21 16:47:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 11107507 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C7B19112C for ; Wed, 21 Aug 2019 16:47:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A55A72332A for ; Wed, 21 Aug 2019 16:47:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bmd7LIKf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A55A72332A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sbMrWzsSWcNeeTiQaTQbKaOR4+V1Sv/sNStkKtpZg5A=; b=bmd7LIKfEPo7R3 gZMyo7GRTTW6W9G049SZYickNtAgebTTSdPQ6Zr4IS7fQvE8ykcqYgCwqKJixuFxR81TBnNRjWBxx XZB5JNGOICbUdSt7zclT1pXQkbaAacgKNDYQzo9SVqnThySD+enjvHwLA++kNacl6fswZg3gn07pv td9e7gFm5DnpbAIDZD9rtBKFlKf2VmXA4+DSIOKWRBfp9r3gPXEUCQf43KYw2jW9hhByyrc3iSyT7 HA7JvqtcKF2U44WkadC5cM9H3v/8tI0vLvv8nZXmB0EsoqGUi4BRLLGcAKfFfINgm0ir8KVWay3CY uMNS1mXRFWL4+/ldjhVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i0TmB-0000c2-7D; Wed, 21 Aug 2019 16:47:59 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i0Tly-0000Kp-Lw for linux-arm-kernel@lists.infradead.org; Wed, 21 Aug 2019 16:47:48 +0000 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 B85EA360; Wed, 21 Aug 2019 09:47:42 -0700 (PDT) Received: from arrakis.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 09F003F718; Wed, 21 Aug 2019 09:47:40 -0700 (PDT) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: [PATCH v9 0/3] arm64 tagged address ABI Date: Wed, 21 Aug 2019 17:47:27 +0100 Message-Id: <20190821164730.47450-1-catalin.marinas@arm.com> X-Mailer: git-send-email 2.23.0.rc0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190821_094746_770407_E23B1CB4 X-CRM114-Status: UNSURE ( 8.23 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, Szabolcs Nagy , Andrey Konovalov , Kevin Brodsky , Dave Hansen , Andrew Morton , Vincenzo Frascino , Will Deacon , Dave P Martin Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi, This series is an update to the arm64 tagged address ABI documentation patches v8, posted here: http://lkml.kernel.org/r/20190815154403.16473-1-catalin.marinas@arm.com From v8, I dropped patches 2 and 3 as they've been queued by Will via the arm64 tree. Reposting patch 1 (unmodified) as it should be merged via the mm tree. Changes in v9: - Replaced the emphasized/bold font with a typewriter one for function/constant names - Simplified the mmap/brk bullet points when describing the tagged pointer origin - Reworded expected syscall behaviour with valid tagged pointers - Reworded the prctl/ioctl restrictions to clarify the allowed tagged pointers w.r.t. user data access by the kernel Catalin Marinas (1): mm: untag user pointers in mmap/munmap/mremap/brk Vincenzo Frascino (2): arm64: Define Documentation/arm64/tagged-address-abi.rst arm64: Relax Documentation/arm64/tagged-pointers.rst Documentation/arm64/tagged-address-abi.rst | 156 +++++++++++++++++++++ Documentation/arm64/tagged-pointers.rst | 23 ++- mm/mmap.c | 5 + mm/mremap.c | 6 +- 4 files changed, 178 insertions(+), 12 deletions(-) create mode 100644 Documentation/arm64/tagged-address-abi.rst