From patchwork Thu Aug 15 15:43:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 11095897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 181F113A0 for ; Thu, 15 Aug 2019 15:44:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09BD828703 for ; Thu, 15 Aug 2019 15:44:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F21E12872F; Thu, 15 Aug 2019 15:44:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D8CB2094F for ; Thu, 15 Aug 2019 15:44:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B9F766B02A2; Thu, 15 Aug 2019 11:44:11 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B4F846B02A4; Thu, 15 Aug 2019 11:44:11 -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 A66036B02A5; Thu, 15 Aug 2019 11:44:11 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0099.hostedemail.com [216.40.44.99]) by kanga.kvack.org (Postfix) with ESMTP id 86A896B02A2 for ; Thu, 15 Aug 2019 11:44:11 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 382184FEC for ; Thu, 15 Aug 2019 15:44:11 +0000 (UTC) X-FDA: 75825083502.15.cat62_7b8920b745f32 X-HE-Tag: cat62_7b8920b745f32 X-Filterd-Recvd-Size: 3390 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Thu, 15 Aug 2019 15:44:08 +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 D9BA528; Thu, 15 Aug 2019 08:44:07 -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 339C33F706; Thu, 15 Aug 2019 08:44:06 -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 v8 0/2] arm64 tagged address ABI Date: Thu, 15 Aug 2019 16:43:58 +0100 Message-Id: <20190815154403.16473-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: X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series contains an update to the arm64 tagged address ABI documentation posted here (v7): http://lkml.kernel.org/r/20190807155321.9648-1-catalin.marinas@arm.com together some adjustments to Andrey's patches (already queued through different trees) following the discussions on the ABI documents: http://lkml.kernel.org/r/cover.1563904656.git.andreyknvl@google.com If there are not objections, I propose that that patch 1 (mm: untag user pointers in mmap...) goes via the mm tree while the other 4 are routed via the arm64 tree. Changes in v8: - removed mmap/munmap/mremap/brk from the list of syscalls not accepting tagged pointers - added ioctl() to the list of syscalls not accepting tagged pointers - added shmat/shmdt to a list of syscalls not accepting tagged pointers - prctl() now requires all unused arguments to be 0 - note about two-stage ABI relaxation since even without the prctl() opt-in, the tag is still ignored on a few syscalls (untagged_addr() in the kernel is unconditional) - compilable example code together with syscall use - added a note on tag preservation in the tagged-pointers.rst document - various rewordings and cleanups Catalin Marinas (3): mm: untag user pointers in mmap/munmap/mremap/brk arm64: Tighten the PR_{SET,GET}_TAGGED_ADDR_CTRL prctl() unused arguments arm64: Change the tagged_addr sysctl control semantics to only prevent the opt-in Vincenzo Frascino (2): arm64: Define Documentation/arm64/tagged-address-abi.rst arm64: Relax Documentation/arm64/tagged-pointers.rst Documentation/arm64/tagged-address-abi.rst | 155 +++++++++++++++++++++ Documentation/arm64/tagged-pointers.rst | 23 ++- arch/arm64/kernel/process.c | 17 ++- kernel/sys.c | 4 + mm/mmap.c | 5 + mm/mremap.c | 6 +- 6 files changed, 191 insertions(+), 19 deletions(-) create mode 100644 Documentation/arm64/tagged-address-abi.rst