From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Konovalov Subject: Re: [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel Date: Fri, 9 Mar 2018 18:58:00 +0100 Message-ID: References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: linux-mips@linux-mips.org, linux-sh@vger.kernel.org, Lee Smith , Benjamin Herrenschmidt , Will Deacon , Paul Mackerras , Shaohua Li , linux-arch@vger.kernel.org, Jacob Bramley , Michael Ellerman , "James E . J . Bottomley" , Geert Uytterhoeven , Catalin Marinas , Matt Turner , Evgeniy Stepanov , Naoya Horiguchi , adi-buildroot-devel@lists.sourceforge.net, Mike Rapoport , Al Viro , Thomas Gleixner , Richard Henderson , linux-cris-kernel@axis.com, Greg Kroah-Hartman , LKML Return-path: In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org On Fri, Mar 9, 2018 at 3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1520618283; cv=none; d=google.com; s=arc-20160816; b=Vy/7umGPsLMv+o5tgb2Y6+nDA5pF+gDVMF7/LWLiy0zb6NbgZOO852YyRPwnDTJ78Q 3RLk+WuwvUo6iiXxuKCJBms73h7yJ9AnrFtaeknuchO8Ok7pIkfSGjAH4NnSy7a84AhS 2QooPL/DoKlzOQWTB+0FKMC/krgYS1pEpR/ZduhBrtZcTx3GbBVm/6eGB6/SXPzhbLCt cSW3v4XD3lHAbsKDo96B3+DjATMytyutjmdXQIrZVsHGwAg13cJe5OLxu3QyNqHENyFy DHJZWG8jDN8uFziLLYohIJ16/c86v+dRfwxPufml4hRyo3yGVyxY3QJc6xylNicd8095 5CTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature:arc-authentication-results; bh=ytr0eCyhrSlYJUx6v/73vhT/W9iKGUGXQ0WwWeu81/g=; b=qPA32wwml8MoVtsCGFimkBRXOzf0W1p0J0f8Qx9IyYSlqA75FM3vT3Zw2o7nQu0tIk JECp4zsW4u2BQA/Ei5k02BEGyBDKBXh9+X8uBfy8qbHRLgCf23LO6FJo88A1J8wjjp38 vF+mDcBS+NThE1UziWPOhMhULQ1mbWLPIWH4qaVBy56G4QwlyM9cTg4OQuczJ8ji6vwR 4Zohh2AoSxI4AUQw03yjHpDTu0cdlnGK6nnYvuXPxKuTbVyGCnGnZmnhDbF7wTLH8ymM wRfq2XFOCndc514rWNg5G4pVPHsVunpI3zBSIoH3Yz65j1rFOTByvMm+E2JkJDlPR0Km 7+jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=D2GjXNID; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=D2GjXNID; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Google-Smtp-Source: AG47ELvgTJdVcFaeY9AnGrjJ7mPCt2UE4Uf0AhCvOg7h8XSyfqbF72EQuYH+b2TxzabYJRj9chxt9TAS3pX3Yvgh2Pk= MIME-Version: 1.0 In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> From: Andrey Konovalov Date: Fri, 9 Mar 2018 18:58:00 +0100 Message-ID: Subject: Re: [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel To: Robin Murphy Cc: Catalin Marinas , Will Deacon , Mark Rutland , Al Viro , Philippe Ombredanne , Greg Kroah-Hartman , Thomas Gleixner , Kate Stewart , Andrew Morton , "Kirill A . Shutemov" , Ingo Molnar , "Aneesh Kumar K . V" , Minchan Kim , Michal Hocko , Shaohua Li , Andrea Arcangeli , Anshuman Khandual , Mike Rapoport , Vlastimil Babka , Naoya Horiguchi , Shakeel Butt , Joonsoo Kim , Hugh Dickins , Mel Gorman , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Mike Kravetz , Zi Yan , Linux ARM , LKML , Linux Memory Management List , Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Mark Salter , Aurelien Jacquiot , Mikael Starvik , Jesper Nilsson , Tony Luck , Fenghua Yu , Geert Uytterhoeven , James Hogan , Michal Simek , Ralf Baechle , David Howells , Ley Foon Tan , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "James E . J . Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Palmer Dabbelt , Albert Ou , Chen Liqin , Lennox Wu , Yoshinori Sato , Rich Felker , "David S . Miller" , Ingo Molnar , "the arch/x86 maintainers" , Chris Zankel , Max Filippov , Arnd Bergmann , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, adi-buildroot-devel@lists.sourceforge.net, linux-c6x-dev@linux-c6x.org, linux-cris-kernel@axis.com, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-am33-list@redhat.com, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org, Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1594468997571598661?= X-GMAIL-MSGID: =?utf-8?q?1594483837686119105?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Fri, Mar 9, 2018 at 3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Konovalov Subject: Re: [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel Date: Fri, 9 Mar 2018 18:58:00 +0100 Message-ID: References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org To: Robin Murphy Cc: linux-mips@linux-mips.org, linux-sh@vger.kernel.org, Lee Smith , Benjamin Herrenschmidt , Will Deacon , Paul Mackerras , Shaohua Li , linux-arch@vger.kernel.org, Jacob Bramley , Michael Ellerman , "James E . J . Bottomley" , Geert Uytterhoeven , Catalin Marinas , Matt Turner , Evgeniy Stepanov , Naoya Horiguchi , adi-buildroot-devel@lists.sourceforge.net, Mike Rapoport , Al Viro , Thomas Gleixner , Richard Henderson , linux-cris-kernel@axis.com, Greg Kroah-Hartman , LKML List-Id: linux-arch.vger.kernel.org On Fri, Mar 9, 2018 at 3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 From: andreyknvl@google.com (Andrey Konovalov) Date: Fri, 9 Mar 2018 18:58:00 +0100 Subject: [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> Message-ID: To: linux-riscv@lists.infradead.org List-Id: linux-riscv.lists.infradead.org On Fri, Mar 9, 2018 at 3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 From: andreyknvl@google.com (Andrey Konovalov) Date: Fri, 9 Mar 2018 18:58:00 +0100 Subject: [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> List-ID: Message-ID: To: linux-snps-arc@lists.infradead.org On Fri, Mar 9, 2018@3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Konovalov Date: Fri, 9 Mar 2018 18:58:00 +0100 Subject: [OpenRISC] [RFC PATCH 0/6] arm64: untag user pointers passed to the kernel In-Reply-To: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> References: <963e112a-88a0-94bc-e6eb-0e9f9a6ee14a@arm.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: openrisc@lists.librecores.org On Fri, Mar 9, 2018 at 3:15 PM, Robin Murphy wrote: > Hi Andrey, > > On 09/03/18 14:01, Andrey Konovalov wrote: >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a memory debugging tool [1]) might use this feature and pass >> tagged user pointers to the kernel through syscalls or other interfaces. > > > If you propose changing the ABI, then > Documentation/arm64/tagged-pointers.txt needs to reflect the new one, since > passing nonzero tags via syscalls is currently explicitly forbidden. > > Robin. Hi Robin! I will include changes to Documentation/arm64/tagged-pointers.txt in the next version. Thanks!