Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9620053ybi; Wed, 24 Jul 2019 07:11:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0ONoUt5mWYtobXpMUuTTq4/OCL/Mzyb3UcT54I05/PX/LEjgP8je4ZgQKWXpkwbTer/we X-Received: by 2002:aa7:8e18:: with SMTP id c24mr11616133pfr.24.1563977513138; Wed, 24 Jul 2019 07:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563977513; cv=none; d=google.com; s=arc-20160816; b=oz4SkspenWzWeJD/ylqPuOBo7tSRnCTRucF6KnWbum4Mlxv+tS6rsC3xZ6z1dqawdC +Y/D3RHwN+82mtIZ24i+lFrhzOyFsoW8MR+iOLSveN3AaVddln1SLwde086b2T0ecZ/b mmZA9WSimIww112K4EqPDJ0V4gpE/KGD95dknq2dqGBsYw5nImf4gT9VLlbiIHtIFxrS xMAeXaTpr1gi8msMYyPmI3+TGJM0lKK6BvjaSGOWNyjV5AqZkzkl8W3fstKdQoCl9q27 TRycD+uAV+k7O9Zo9PFcQ6UgWPLaMEANmcwfQFFzWlqK/ZMpbdAKB+EpgAJXVXE0zaLN Uupg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1WV08YSE1XBp/V/oL6QW3i+VMnK5snm1td59dPVRgYI=; b=m/6reyRu0/IIHCsfZYXIUo9LJCS6dAH01wQsBMqerw9NSME+Ms6yxo3gbdnSX/uX+y CKnfRZM1uLZe8/WiXdrY6RpsPcPaimcH1TWLKzAsXKG2gQDBbhnP5baMy2cHIO1HlVWQ 44Evb7lF3FsDjQ90hiCsgO4j/u+G6EStXkRQsrxQ9oflb2ZSUgglMh/ueVFwDnZleRGR vCznzZaYUXCNylAoIiJ8QOAggbpB+Tla2tdQyDoG/6Nx2rcYTsyOuxwFfTwsMwWXIiAt lP6ypLFUyZVoQDPHGFVYRAhYePWglrddr2P+BGwdV68IFtF3BMHIu3DX6SzX7R8wAUB5 zCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGjiQdK8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g94si40793516plb.142.2019.07.24.07.11.37; Wed, 24 Jul 2019 07:11:53 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HGjiQdK8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728287AbfGXOCY (ORCPT + 99 others); Wed, 24 Jul 2019 10:02:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:44322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfGXOCY (ORCPT ); Wed, 24 Jul 2019 10:02:24 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A09422BE8; Wed, 24 Jul 2019 14:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563976942; bh=akL4t3WLQfvH/sx6baSCdRPzrJPet6bQ0ZZAPYisZi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HGjiQdK87WShqPUCUDRg97LnVe6uyeIf9yy5HPpwultEhX+41Yn3D/DKXjIK8Af4f 0ygT0V9wgzsE+RPZ4QFVtqujFkiagNZGrOWFPz6QtW3TCSySYN2+CMJ5pNSGE1vClG 0S7ixJF2Qf9InXHgM9sSGPD0ag6vRkrIxQa7ibh4= Date: Wed, 24 Jul 2019 15:02:12 +0100 From: Will Deacon To: Andrey Konovalov Cc: Andrew Morton , Catalin Marinas , Mark Rutland , kvm@vger.kernel.org, Szabolcs Nagy , Will Deacon , dri-devel@lists.freedesktop.org, Kostya Serebryany , Khalid Aziz , "open list:KERNEL SELFTEST FRAMEWORK" , Felix Kuehling , Vincenzo Frascino , 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 Subject: Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel Message-ID: <20190724140212.qzvbcx5j2gi5lcoj@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrey, 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. Will