From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by kanga.kvack.org (Postfix) with ESMTP id 1DF366B060F for ; Thu, 8 Nov 2018 09:48:13 -0500 (EST) Received: by mail-io1-f72.google.com with SMTP id d12-v6so23027897iof.10 for ; Thu, 08 Nov 2018 06:48:13 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j2-v6sor7034246itj.14.2018.11.08.06.48.12 for (Google Transport Security); Thu, 08 Nov 2018 06:48:12 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Andrey Konovalov Date: Thu, 8 Nov 2018 15:48:10 +0100 Message-ID: Subject: Re: [PATCH v8 0/8] arm64: untag user pointers passed to the kernel Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Catalin Marinas Cc: Will Deacon , Mark Rutland , Robin Murphy , Kees Cook , Kate Stewart , Greg Kroah-Hartman , Andrew Morton , Ingo Molnar , "Kirill A . Shutemov" , Shuah Khan , Linux ARM , "open list:DOCUMENTATION" , Linux Memory Management List , linux-arch , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Chintan Pandya , Luc Van Oostenryck , Andrey Konovalov On Thu, Nov 8, 2018 at 3:36 PM, Andrey Konovalov wrote: [...] > Changes in v8: > - Rebased onto 65102238 (4.20-rc1). > - Added a note to the cover letter on why syscall wrappers/shims that untag > user pointers won't work. > - Added a note to the cover letter that this patchset has been merged into > the Pixel 2 kernel tree. > - Documentation fixes, in particular added a list of syscalls that don't > support tagged user pointers. Hi Catalin, I've changed the documentation to be more specific, please take a look. I haven't done anything about adding a way for the user to find out that the kernel supports this ABI extension. I don't know what would the the preferred way to do this, and we haven't received any comments on that from anybody else. Probing "on some innocuous syscall currently returning -EFAULT on tagged pointer arguments" works though, as you mentioned. As mentioned in the cover letter, this patchset has been merged into the Pixel 2 kernel tree. Thanks!