From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel Date: Thu, 1 Aug 2019 08:36:47 -0700 Message-ID: <96fd8da4-a912-f6cc-2b32-5791027dbbd5@intel.com> References: <8c618cc9-ae68-9769-c5bb-67f1295abc4e@intel.com> <13b4cf53-3ecb-f7e7-b504-d77af15d77aa@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Andrey Konovalov , Kevin Brodsky 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" , Catalin Marinas , Vincenzo Frascino , Will Deacon , Mark Rutland , Andrew Morton , Greg Kroah-Hartman , Kees Cook , Yishai Hadas , Felix Kuehling , Alexander Deucher List-Id: dri-devel@lists.freedesktop.org On 8/1/19 5:48 AM, Andrey Konovalov wrote: > On Thu, Aug 1, 2019 at 2:11 PM Kevin Brodsky wrote: >> On 31/07/2019 17:50, Dave Hansen wrote: >>> On 7/23/19 10:58 AM, Andrey Konovalov wrote: >>>> The mmap and mremap (only new_addr) syscalls do not currently accept >>>> tagged addresses. Architectures may interpret the tag as a background >>>> colour for the corresponding vma. >>> What the heck is a "background colour"? :) >> Good point, this is some jargon that we started using for MTE, the idea being that >> the kernel could set a tag value (specified during mmap()) as "background colour" for >> anonymous pages allocated in that range. >> >> Anyway, this patch series is not about MTE. Andrey, for v20 (if any), I think it's >> best to drop this last sentence to avoid any confusion. > Sure, thanks! OK, but what does that mean for tagged addresses getting passed to mmap/mremap? That sentence read to me like "architectures might allow tags for ...something...". So do we accept tagged addresses into those syscalls?