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: 11107499 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 2241C184E for ; Wed, 21 Aug 2019 16:47:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E26952332A for ; Wed, 21 Aug 2019 16:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E26952332A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F1E276B030A; Wed, 21 Aug 2019 12:47:46 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EA7E26B0319; Wed, 21 Aug 2019 12:47:46 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D207E6B031B; Wed, 21 Aug 2019 12:47:46 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0066.hostedemail.com [216.40.44.66]) by kanga.kvack.org (Postfix) with ESMTP id A7A156B030A for ; Wed, 21 Aug 2019 12:47:46 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 45B968248AB4 for ; Wed, 21 Aug 2019 16:47:46 +0000 (UTC) X-FDA: 75847016532.04.tank18_9515b7911a27 X-Spam-Summary: 2,0,0,a97812895b5d8c33,d41d8cd98f00b204,catalin.marinas@arm.com,:linux-arm-kernel@lists.infradead.org::akpm@linux-foundation.org:vincenzo.frascino@arm.com:will@kernel.org:andreyknvl@google.com:szabolcs.nagy@arm.com:kevin.brodsky@arm.com:dave.martin@arm.com:dave.hansen@intel.com:linux-doc@vger.kernel.org:linux-arch@vger.kernel.org,RULES_HIT:41:355:379:541:800:967:973:988:989:1260:1261:1263:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:1801:2393:2525:2559:2563:2682:2685:2693:2859:2895:2901:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3867:3868:3870:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4184:4250:4321:4605:5007:6119:6261:7875:7903:8599:8634:9025:10004:10913:11232:11658:11914:12043:12291:12292:12297:12555:12679:12682:12783:12986:13069:13161:13229:13311:13357:13845:13846:13894:14096:14180:14181:14384:14394:14581:14721:14849:21060:21080:21230:21451:21627:21795:30003:30030:30051:30054:30055:30070, 0,RBL:21 X-HE-Tag: tank18_9515b7911a27 X-Filterd-Recvd-Size: 2621 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Wed, 21 Aug 2019 16:47:43 +0000 (UTC) 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 Cc: Andrew Morton , Vincenzo Frascino , Will Deacon , Andrey Konovalov , Szabolcs Nagy , Kevin Brodsky , Dave P Martin , Dave Hansen , linux-doc@vger.kernel.org, linux-arch@vger.kernel.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-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: 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