Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6247468ybi; Wed, 29 May 2019 05:14:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwan3GfTDrS/B7fTICH4vISITEUU+yfs2OCj7ynvUw55GxBTG7QR2vrcJPgTOl1luf5GDnG X-Received: by 2002:a63:2d0:: with SMTP id 199mr80197343pgc.188.1559132041052; Wed, 29 May 2019 05:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559132041; cv=none; d=google.com; s=arc-20160816; b=b0Lf/9GKA97hQ1O5U4/Udmd/D9PTHMDmqX4nh2xEe1QzREmoHC+5AVp9ekG6NgupmQ 27tAnzV2wYu0yYyv/IjmAJNR/PqB+uSkd6SNWQ9yc81usuwQuGzdkxDNJZCsbLaVSYIQ 9SuTRUDXoVnHIuyqehfXEbgf9v42yYP054fDjfhRhoLQyMs+QecgJaMdeDWVAqdWEm7O 833aMAGycJp3hTG0e1oZXSJAW94UNhw8ailUoLSQUpdxxuWPlZKwRgAWdK/OCzU//Z1d OJxzldIPbOhgy3qG9NHT6ePjrnOMG3P2oiXSmZ2/xgFwMaW3eimApkz997zN3YrQce8d GnVA== 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=/Wuhn5LqusNy/UN1Lqdyf/phpVe4JSLD1UQTmNYzIPw=; b=dM0iYlOJCwbblpu07A/BkrHnTaD3K9F59X5ov7JZT/Mf3xrqKwMnR0h+1QBn4sK2Ww GKwg92CmeZeUaKj8L6ni5C6kvha/qbjA7YBIuhUmMyrwphS5HEXdG9lsceZslGRurUKo 1xVgALlub7ElqkMcWpFlpOgfRieRP54fQRFUlATx1C68Q3H3JgbrJY4PfudPlUhIQkyk 1nj6GPSG8zLqe8HDl8jtTBgrsg4fLmRVk/hjiRCsRuawQ6Jf7dOq5O22s55wGWcdDP6M UcCRJz1I/ab5YZ9XMv0z5agSuuI1GVjyjG7e1n7gmI453CwKk0fPNOGE3DsLrMkpFD+s Eobg== 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 k6si24594452plt.204.2019.05.29.05.13.44; Wed, 29 May 2019 05:14:01 -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 S1726784AbfE2MMg (ORCPT + 99 others); Wed, 29 May 2019 08:12:36 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44588 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbfE2MMf (ORCPT ); Wed, 29 May 2019 08:12:35 -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 DDBEE80D; Wed, 29 May 2019 05:12:34 -0700 (PDT) Received: from mbp (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9733C3F59C; Wed, 29 May 2019 05:12:28 -0700 (PDT) Date: Wed, 29 May 2019 13:12:25 +0100 From: Catalin Marinas To: Christoph Hellwig Cc: Andrey Konovalov , Kees Cook , Evgenii Stepanov , Linux ARM , Linux Memory Management List , LKML , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, kvm@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Vincenzo Frascino , Will Deacon , Mark Rutland , Andrew Morton , Greg Kroah-Hartman , Yishai Hadas , Felix Kuehling , Alexander Deucher , Christian Koenig , Mauro Carvalho Chehab , Jens Wiklander , Alex Williamson , Leon Romanovsky , Dmitry Vyukov , Kostya Serebryany , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Robin Murphy , Luc Van Oostenryck , Dave Martin , Kevin Brodsky , Szabolcs Nagy , Elliott Hughes , Khalid Aziz Subject: Re: [PATCH v15 00/17] arm64: untag user pointers passed to the kernel Message-ID: <20190529121225.q2zjgurxqnohvmkg@mbp> References: <20190521182932.sm4vxweuwo5ermyd@mbp> <201905211633.6C0BF0C2@keescook> <6049844a-65f5-f513-5b58-7141588fef2b@oracle.com> <20190523201105.oifkksus4rzcwqt4@mbp> <20190524101139.36yre4af22bkvatx@mbp> <20190529061126.GA18124@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190529061126.GA18124@infradead.org> 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 On Tue, May 28, 2019 at 11:11:26PM -0700, Christoph Hellwig wrote: > On Tue, May 28, 2019 at 04:14:45PM +0200, Andrey Konovalov wrote: > > Thanks for a lot of valuable input! I've read through all the replies > > and got somewhat lost. What are the changes I need to do to this > > series? > > > > 1. Should I move untagging for memory syscalls back to the generic > > code so other arches would make use of it as well, or should I keep > > the arm64 specific memory syscalls wrappers and address the comments > > on that patch? > > It absolutely needs to move to common code. Having arch code leads > to pointless (often unintentional) semantic difference between > architectures, and lots of boilerplate code. That's fine by me as long as we agree on the semantics (which shouldn't be hard; Khalid already following up). We should probably also move the proposed ABI document [1] into a common place (or part of since we'll have arm64-specifics like prctl() calls to explicitly opt in to memory tagging). [1] https://lore.kernel.org/lkml/20190318163533.26838-1-vincenzo.frascino@arm.com/T/#u -- Catalin