Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9807861ybi; Wed, 24 Jul 2019 10:16:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUgvNB5zXmUO4Q0q2gvU02M5ptZoQnsj9SnGUibGB1L3uUHnsW8rqTWdXpPnWJtO5VFzaC X-Received: by 2002:a63:c302:: with SMTP id c2mr77417988pgd.300.1563988611835; Wed, 24 Jul 2019 10:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563988611; cv=none; d=google.com; s=arc-20160816; b=0kNMKWQY6ZKFixqFjUQvUq3gioBGrqqyVOwYqhmaPzNu/SDJZUqwozb7ldz/9Ru9y/ B6AbtPYM+uC47sQspvciqBkzJPtiQGqxjAhhRFlxzpg7G7ZJlVTBv/8DO/dudI7w/Ulo msD4WNra2ROWHgvnKuV0EfOshQZg6SwvUTFznsHp5G/DNsJaiqwTAuj/bYmXhcS2cl12 GmQyXegcV1WbrHk0D79vzZo+YH25puLrAkkAVVk/O9CZDCX8TflDpm1PQyO+Xjlb8TbY aUhi/PWU86GpFszMm2rw21sa9fSbjsM9MCPxZDVjG8GTZipKJy2PW47jPxdEQDgWJ3mK K0mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6ODrP6DcHvPLc7qyA9XPL9ii1GE+u/9TjfvkOvUPkKI=; b=x/li2g+cKPsMwXDydQwB+0dpbKbPGWoJnIs/EZHusfaRdHPPquGXdUIHA4La2hvYL4 cDM6SYR14xOsUnVxyht0uNfhMNs9NyRDXINfLzaFHr2jG9LYjyGyJ4+7/9778jtwG1+s ambQwUH/vRCUN5QbgeG8nW/xSQIPlFdJqR36uIPOEwToYHn/59f27W5QNMHcwLhh8sCJ wyMCA/Tbg8CA0ygXsBy8NdjaK7hyLczdY6ipzyLCf7JPPrGCEuESrlV3zOL87kwlzOLU WVv7+pyM4pNGAFv2cH2EpMcuIJ9fKdRy03OZawVJ2eM+jSAJAcz85LrlodQQ1bbvdeEa +MOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y70si15818958pfg.184.2019.07.24.10.16.37; Wed, 24 Jul 2019 10:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387399AbfGXRM1 (ORCPT + 99 others); Wed, 24 Jul 2019 13:12:27 -0400 Received: from foss.arm.com ([217.140.110.172]:44146 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbfGXRM0 (ORCPT ); Wed, 24 Jul 2019 13:12:26 -0400 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 0E49528; Wed, 24 Jul 2019 10:12:26 -0700 (PDT) Received: from [10.1.196.72] (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3CE253F71F; Wed, 24 Jul 2019 10:12:21 -0700 (PDT) Subject: Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel To: Will Deacon , Andrey Konovalov Cc: Will Deacon , Andrew Morton , Catalin Marinas , Mark Rutland , kvm@vger.kernel.org, Szabolcs Nagy , dri-devel@lists.freedesktop.org, Kostya Serebryany , Khalid Aziz , "open list:KERNEL SELFTEST FRAMEWORK" , Felix Kuehling , Jacob Bramley , Leon Romanovsky , linux-rdma@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christoph Hellwig , Jason Gunthorpe , Linux ARM , Dave Martin , Evgeniy Stepanov , linux-media@vger.kernel.org, Kevin Brodsky , Kees Cook , Ruben Ayrapetyan , Ramana Radhakrishnan , Alex Williamson , Mauro Carvalho Chehab , Dmitry Vyukov , Linux Memory Management List , Greg Kroah-Hartman , Yishai Hadas , LKML , Jens Wiklander , Lee Smith , Alexander Deucher , enh , Robin Murphy , Christian Koenig , Luc Van Oostenryck References: <20190724140212.qzvbcx5j2gi5lcoj@willie-the-truck> <20190724142059.GC21234@fuggles.cambridge.arm.com> From: Vincenzo Frascino Message-ID: Date: Wed, 24 Jul 2019 18:12:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190724142059.GC21234@fuggles.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will and Andrey, On 24/07/2019 15:20, Will Deacon wrote: > On Wed, Jul 24, 2019 at 04:16:49PM +0200, Andrey Konovalov wrote: >> On Wed, Jul 24, 2019 at 4:02 PM Will Deacon wrote: >>> On Tue, Jul 23, 2019 at 08:03:29PM +0200, Andrey Konovalov wrote: >>>> On Tue, Jul 23, 2019 at 7:59 PM Andrey Konovalov wrote: >>>>> >>>>> === Overview >>>>> >>>>> 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. >>>>> >>>>> Right now the kernel is already able to handle user faults with tagged >>>>> pointers, due to these patches: >>>>> >>>>> 1. 81cddd65 ("arm64: traps: fix userspace cache maintenance emulation on a >>>>> tagged pointer") >>>>> 2. 7dcd9dd8 ("arm64: hw_breakpoint: fix watchpoint matching for tagged >>>>> pointers") >>>>> 3. 276e9327 ("arm64: entry: improve data abort handling of tagged >>>>> pointers") >>>>> >>>>> This patchset extends tagged pointer support to syscall arguments. >>> >>> [...] >>> >>>> Do you think this is ready to be merged? >>>> >>>> Should this go through the mm or the arm tree? >>> >>> I would certainly prefer to take at least the arm64 bits via the arm64 tree >>> (i.e. patches 1, 2 and 15). We also need a Documentation patch describing >>> the new ABI. >> >> Sounds good! Should I post those patches together with the >> Documentation patches from Vincenzo as a separate patchset? > > Yes, please (although as you say below, we need a new version of those > patches from Vincenzo to address the feedback on v5). The other thing I > should say is that I'd be happy to queue the other patches in the series > too, but some of them are missing acks from the relevant maintainers (e.g. > the mm/ and fs/ changes). > I am actively working on the document and will share v6 with the requested changes in the next few days. > Will > -- Regards, Vincenzo