From patchwork Wed Aug 7 15:53:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 11082379 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 EB88214F6 for ; Wed, 7 Aug 2019 15:53:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D842E284B5 for ; Wed, 7 Aug 2019 15:53:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC2B028A8B; Wed, 7 Aug 2019 15:53:33 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 734FF284B5 for ; Wed, 7 Aug 2019 15:53:33 +0000 (UTC) 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=x5fPCMgHyzrq/H5+3lsXppOdVZ2Fy33+uhYUACHu794=; b=nqkJBDb2DpzoJ1 hrG51dn8S83m71DYb7glAlKuq34TetgBni250en5bbj1RCje8yK6PT0fSZGIyvp1W5AHg2ytYy147 vQLr1pBckXt77IcuVdHIRYC2oWXFfNVLTS+XBLxJhqtS0siJ5/8uV7fl98PyoeSPrWgdX1ElbaHmM slUB9LpQ5+0zxBs/lX38IXF4FJZLX8Kjwv7YSC/SRlYxxXmus3WYqy6W9AqVXwR6XfPt9bwr2Oyna qwZ2UWMV+dCGG55ORVofaEo5MdpuQt5SU4Ulf/bBFG8Efn3Tv4qpVYKuTVCm6WNWDrFrvDkZcbPvx eFul7rNlDK6Iu3XYesNw==; 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 1hvOFo-0004P9-Lz; Wed, 07 Aug 2019 15:53:32 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hvOFl-0004Nq-6x for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2019 15:53:30 +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 92B60344; Wed, 7 Aug 2019 08:53:26 -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 3CD9C3F706; Wed, 7 Aug 2019 08:53:25 -0700 (PDT) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 0/2] arm64 tagged address ABI Date: Wed, 7 Aug 2019 16:53:19 +0100 Message-Id: <20190807155321.9648-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-20190807_085329_299019_AE76AF3D X-CRM114-Status: GOOD ( 10.62 ) 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 , Will Deacon , Dave Hansen , Vincenzo Frascino Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Thanks for the feedback so far. This is an updated series documenting the AArch64 Tagged Address ABI as implemented by these patches: http://lkml.kernel.org/r/cover.1563904656.git.andreyknvl@google.com Version 6 of the documentation series is available here: http://lkml.kernel.org/r/20190725135044.24381-1-vincenzo.frascino@arm.com Changes in v7: - Dropped the MAP_PRIVATE requirements for tagged pointers for both anonymous and file mappings. One reason is that we can't enforce such restriction anyway. The other reason is that a future series implementing support for the hardware MTE will detect incompatibilities of the new PROT_MTE flag with various mmap() options. - As a consequence of the above, I removed Szabolcs ack as I'm not sure he's ok with the change. - Clarified the sysctl and prctl() interaction and reordered the descriptions. - Reworded the prctl(PR_SET_MM) restrictions. - Removed the description of the tag preservation from the first patch as it didn't really make sense (the syscall ABI has always preserved all registers other than x0 on return to user). - s/ARM64/AArch64/ for consistency with the tagged-pointers.rst document. - Other minor rewordings. Vincenzo Frascino (2): arm64: Define Documentation/arm64/tagged-address-abi.rst arm64: Relax Documentation/arm64/tagged-pointers.rst Documentation/arm64/tagged-address-abi.rst | 151 +++++++++++++++++++++ Documentation/arm64/tagged-pointers.rst | 23 +++- 2 files changed, 167 insertions(+), 7 deletions(-) create mode 100644 Documentation/arm64/tagged-address-abi.rst