Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp471594img; Wed, 20 Mar 2019 04:41:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/axbIRRckrrWio00uRtSPvMaqqX9KjveJuoSTbGvizTWgVZv12aIv26nZpfGsQg9DKECj X-Received: by 2002:a62:e418:: with SMTP id r24mr225269pfh.52.1553082073738; Wed, 20 Mar 2019 04:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553082073; cv=none; d=google.com; s=arc-20160816; b=Un+MkaaPMMuozX/yuXRrdICebIl8Hj0puyO7UsbEIS+LPs3P1IQyQAzgc9CnnmH6R/ +WBX/lrsLPyT6Yqy8hqwrIyRD99pxRtmMDmtz6g/x5AxLc2IBBYAMH9uL8ASMV0uaN+H BsS4OTlOLbLM8lbDCJYV6L1tSsdHwEZFEJeRROHUynq9XY5ulVZQk3vO6ori5xrFNAE9 aUeJx4hUpR5cS7A/ahYS3Wi4peyDdzN7fK+KGXWQFKJpceFEwFrj5zph+IPzxCaOmxBI w6i79GBC89PH3DYUYQ/hB4g9SdGCWjOkZJ4ZPIQUC7Tdz13nISDGQlE0jZUi6OStPZ73 9OzA== 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; bh=pY3E9J/FvgCYJx2iTDGip3j13VeoD2WhW5RpiF5tyZQ=; b=K9Ar9zFAyNIlRKNsaclDI1Ku+WdbhnyWWm3o/P60mkJwWyQk47jH0/hju4rIiCY15I He/v/TyUHPukl4teouIr/OFk52e/WS+QP1/sxWP5NuW/kxXwGO8jYql0cNDnkPcmI8hb 3m9CJjuaQVmTc1nY9nFLOR+OsOAzuXZvSBv3F1ekQxVLS0zldZvq8ezftfaDg7cavSmI y+m6pWZkwOzjagBQb4c0bGDtjCo20MKkoFUb4VuMjqarAavZgMAzFqACOdmUNTI4BYBA EuhBWn6po4tTJIIzCVPa3lA/5KbhujMMDtLcnNDTiCOgm/yMYejMXtTBuEFNpXTHzTc/ I+lA== 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 h9si1764917plk.373.2019.03.20.04.40.57; Wed, 20 Mar 2019 04:41:13 -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 S1727939AbfCTLZ5 (ORCPT + 99 others); Wed, 20 Mar 2019 07:25:57 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38328 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbfCTLZ4 (ORCPT ); Wed, 20 Mar 2019 07:25:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C199A1650; Wed, 20 Mar 2019 04:25:55 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C08D3F575; Wed, 20 Mar 2019 04:25:49 -0700 (PDT) Date: Wed, 20 Mar 2019 11:25:46 +0000 From: Catalin Marinas To: Andrew Morton Cc: Andrey Konovalov , Will Deacon , Mark Rutland , Robin Murphy , Kees Cook , Kate Stewart , Greg Kroah-Hartman , Ingo Molnar , "Kirill A . Shutemov" , Shuah Khan , Vincenzo Frascino , Eric Dumazet , "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Chintan Pandya , Luc Van Oostenryck , Dave Martin , Kevin Brodsky , Szabolcs Nagy , khalid.aziz@oracle.com Subject: Re: [PATCH v12 00/13] arm64: untag user pointers passed to the kernel Message-ID: <20190320112545.GB25040@arrakis.emea.arm.com> References: <20190319113212.ca1d56301112454dfb5a39ba@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190319113212.ca1d56301112454dfb5a39ba@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 19, 2019 at 11:32:12AM -0700, Andrew Morton wrote: > On Mon, 18 Mar 2019 18:17:32 +0100 Andrey Konovalov wrote: > > === Notes > > > > This patchset is meant to be merged together with "arm64 relaxed ABI" [3]. > > What does this mean, precisely? That neither series is useful without > the other? That either patchset will break things without the other? This series does the work of relaxing the ABI w.r.t. pointer syscall arguments for arm64 (while preserving backwards compatibility, we can't break this). Vincenzo's patches [1] document the ABI relaxation and introduce an AT_FLAG bit by which user space can check for the presence of such support. So I'd say [1] goes on top of this series. Once we agreed on the ABI definition, they should be posted as a single series. > Only a small fraction of these patches carry evidence of having been > reviewed. Fixable? That's fixable, though the discussions go back to last summer mostly at a higher level: are we sure these are the only places that need patching? The outcome of such discussions was a document clarifying which pointers user can tag and pass to the kernel based on the origins of the memory range (e.g. anonymous mmap()). I'd very much like to get input from the SPARC ADI guys on these series (cc'ing Khalid). While currently for arm64 that's just a software feature (the hardware one, MTE - memory tagging extensions, is coming later), the ADI has similar requirements regarding the user ABI. AFAICT from the SPARC example code, the user is not allowed to pass a tagged pointers (non-zero top byte) into the kernel. Feedback from the Google hwasan guys is that such approach is not practical for a generic deployment of this feature (e.g. automatic tagging of heap allocations). > Which maintainer tree would be appropriate for carrying these patches? Given that the arm64 changes are fairly minimal, the -mm tree works for me (once I reviewed/acked the patches and, ideally, get the SPARC people onboard with such approach). [1] https://lkml.org/lkml/2019/3/18/819 -- Catalin