Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939973ybi; Wed, 12 Jun 2019 11:04:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwdqfOON3vDOsgg0mGvMAIih9NMQzeTxwHHBO/ro+m1O9SdjWbhkcO+GZt6SHuZm8uJ5Hn X-Received: by 2002:a17:902:2aa9:: with SMTP id j38mr44235095plb.206.1560362657527; Wed, 12 Jun 2019 11:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362657; cv=none; d=google.com; s=arc-20160816; b=QpsHJD/PDU85l6YOPB/q8a+OL2XlpzrDzUlSS1CE+paqrYZiLrVubAlRXfeccKAKaK vpDPySiZ02og7LTnG57SZm/Z7ZeIYRCL+irShPGRnczVjL3SRVZX/LWjzdHJmaPdijzm 3w6oRknqYYGGCDtUyrFBTeWcqYG+RMv8n+6ZiJPE2Bgkcp3sIP9DOMypTzxilHds+JM1 YkFztvNP2iGWELfZcVpQFrMqe6sFmsy6qXMVZ467+MSvMi/kOf/wh8BTZqfog898+p+U AdFlB0McHsT5LwMjr9ZM3d32knZEqNqq4BKZmwco6in39nIRYJQR+hWe9DyqxV/2wfqK oBWg== 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=iF2iHP0sh3i9aMJ0ZWP1skoopTO1AW+kS7L+Aj2wDV8=; b=ldjCaC6J1zoZPjTMLouIXJvwe+QtrsMHzAlYJ+EIwngy4G+sXhj1z9Y4OQQvW229JV iUMGcozFHINujaAv2+BTLi7Hc6r/zZgqq0vqpY/Qhj9fykrsokjzISLs5aIXPCjDGAsD /MJgmC1bsonVzCYbbnRxFttP+S1AHHqUCQ0fLbi2EaOveOF5acSiJ46jBg7LvyGX2oHt ZpTULgBhcuVNZkTOfhnm8qJyOghFYk7f1qLhR/zjetcpqP3pZUGyWdVArVHOj2cvzx+b W8yFF4ZFzygWVxfhmN+yYnCrvoXxQ7thQlA0feA5WqsJh8FbZ/chgqQziHrxScoz1ozi cPHw== 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 q28si410355pgm.545.2019.06.12.11.04.02; Wed, 12 Jun 2019 11:04:17 -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 S2438070AbfFLO4D (ORCPT + 99 others); Wed, 12 Jun 2019 10:56:03 -0400 Received: from foss.arm.com ([217.140.110.172]:55116 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438002AbfFLO4C (ORCPT ); Wed, 12 Jun 2019 10:56:02 -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 AE3052B; Wed, 12 Jun 2019 07:56:01 -0700 (PDT) Received: from C02TF0J2HF1T.local (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5860F3F557; Wed, 12 Jun 2019 07:55:42 -0700 (PDT) Date: Wed, 12 Jun 2019 15:55:38 +0100 From: Catalin Marinas To: Andrey Konovalov Cc: linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, 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: <20190612145537.GG28951@C02TF0J2HF1T.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 01:43:20PM +0200, 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 You need your signed-off-by here since you are contributing it. And thanks for adding the comment to the TIF definition. -- Catalin