Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp826984ybi; Wed, 19 Jun 2019 08:30:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0Qg6+E3RnY3f/y3zp8JpR73BYFz5d1zuGZijn2glqSNs0upVz5JNpYgxzCYRVj2qEId4T X-Received: by 2002:a17:90a:628a:: with SMTP id d10mr11667117pjj.7.1560958209326; Wed, 19 Jun 2019 08:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560958209; cv=none; d=google.com; s=arc-20160816; b=TA9U110XbCeLmsxFyaKmWJw8TNc+3jZi0nO/FTWG/KX9Wi8DTkXKkrWQypFBi11TI5 NTcy49vVYh9iqbCndJKmkqG0WiAgZzXxYPPtUPflMvCj6Rizt6pel88lEgC+zhDPQIRw l403sCb8OUP7QfgdJz/tDUKm1qk1Aezb/Ks9FVkzOGS4HZdaLLqq7zZ43lpZ9XZAy6gb zS1PUhwZ69pWhhygXSKKesaU95EE8AvVU96ZPKeuleNY4c8zsTr8l+hHqdjwfA/RVgQA uq5TIjVwSW0tzPf0YAbpo7kInz6+MBRF19RvnCSbQ2soi+bJJxc1OK26ADvTfJgbqkkM mHuw== 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=eKGn5LLcBuT3iCgZhbQ3TYpAv9mS7PjvVGzmeyR21gE=; b=TkuMPLJLg3NjVmFsOa9j/5AtB/FnahAlHsx7/hQ2vH4E2Xv3LfGFPUwf+dqC4/0thc qZlZeW/zNnK28eXgvUyOhRLj7N3RoxnH+dn5UWyjj9O3LC1ikdtdHDtQCZfT48PHH/Pp p4i8ElCIR9pyuANjGfJlkhHF2ULGPIHgr4QZFZlboL/TflqXo86GzZ5fE9rzh30g5oPI zCT052y/fyVEkt5/HhfFfyg+Eg8IZGpFDL8WDE7krri13AQanmTQcPGHmFrjtxrlO3vo ISehCmTocktJEEINbcMRhkjzGbi5LT5+xYjjd7CRXZiH2hvGtXUFFPT54HboS7w99dn/ XedA== 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 j12si14189392plk.272.2019.06.19.08.29.52; Wed, 19 Jun 2019 08:30:09 -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 S1729414AbfFSP3r (ORCPT + 99 others); Wed, 19 Jun 2019 11:29:47 -0400 Received: from foss.arm.com ([217.140.110.172]:45134 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727250AbfFSP3r (ORCPT ); Wed, 19 Jun 2019 11:29:47 -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 EF1DA344; Wed, 19 Jun 2019 08:29:45 -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 4E94C3F246; Wed, 19 Jun 2019 08:29:41 -0700 (PDT) Date: Wed, 19 Jun 2019 16:29:39 +0100 From: Catalin Marinas To: Andrey Konovalov Cc: 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 , Kees Cook , Yishai Hadas , Felix Kuehling , Alexander Deucher , Christian Koenig , Mauro Carvalho Chehab , Jens Wiklander , Alex Williamson , Leon Romanovsky , Luc Van Oostenryck , Dave Martin , Khalid Aziz , enh , Jason Gunthorpe , Christoph Hellwig , Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Robin Murphy , Kevin Brodsky , Szabolcs Nagy Subject: Re: [PATCH v17 03/15] arm64: Introduce prctl() options to control the tagged user addresses ABI Message-ID: <20190619152938.GD25211@arrakis.emea.arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jun 19, 2019 at 04:45:02PM +0200, Andrey Konovalov wrote: > On Wed, Jun 12, 2019 at 1:43 PM Andrey Konovalov wrote: > > From: Catalin Marinas > > > > It is not desirable to relax the ABI to allow tagged user addresses into > > the kernel indiscriminately. This patch introduces a prctl() interface > > for enabling or disabling the tagged ABI with a global sysctl control > > for preventing applications from enabling the relaxed ABI (meant for > > testing user-space prctl() return error checking without reconfiguring > > the kernel). The ABI properties are inherited by threads of the same > > application and fork()'ed children but cleared on execve(). > > > > The PR_SET_TAGGED_ADDR_CTRL will be expanded in the future to handle > > MTE-specific settings like imprecise vs precise exceptions. > > > > Signed-off-by: Catalin Marinas > > Catalin, would you like to do the requested changes to this patch > yourself and send it to me or should I do that? I'll send you an updated version this week. -- Catalin