Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3891461ybi; Mon, 27 May 2019 07:38:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoorh7K0HRl4JVZ6nKKDXs0ygs3gj1Ila1UbvM30bG9K/zBEh7hDteQ76kpbR9jfOhVjs9 X-Received: by 2002:a63:441c:: with SMTP id r28mr47096974pga.255.1558967934111; Mon, 27 May 2019 07:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558967934; cv=none; d=google.com; s=arc-20160816; b=ojMxHGXSZJ9LtX74SbyGQggu1IzcuWu8UE6bqRiTB3vfzbxFhEiDuJAciwCMr9LZSF n4XujhP06z8Kz2r+CQedDcsCr2x0jr1crz/T2pZIU7auASO+hne7W17ybGLqtIbV1sbS RP8NgtaIUPVvgaV5M0KoJkugPAWKYo66MpafW0Rl8OG7wuqM83cTYyCZZc9XhlJ5m9+r hiXd1Lyw/zpkqBsgKvFeIU/LU8cj0mM1az/LeHyVUD3U/F04RopKLz0DNaXt9L61UbKt 2CTlr+f6byqe1UGdz9IuZawoF4emz9UTO4EiQxrGU9q1rMj/ktAr/bQoovavPdIjThut 3Drw== 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=m1a9/BBjk4boCMxy+N5e0MGffssE2NDgewBYpU/5jKw=; b=xoNFrrSTs356jBvCiZ1NaowP2p0Hgyovdnz3EikjFWUVd0YGDCffz0C0iGqTW14Aq3 LzQvHQN9EBKnn8i2E8gVH23Jfyd1TJXGgiBsjWRzCubaZ6Pgh3XU7j8QwyyMh2SEA1h8 ij4BWmHsQxOz0CNXusqdwjY9illSfqLCWO5EgwosZfHvMzkz754TvkuYi+ZLyisel/sX 2l+IXNGYYQEjfliCxoi7p0yF8wkSwz2DR2hloWPlg9E5uS1sLGkY/8TKIBcYUaXxtQJ4 gpVv+tQ1be4z/lV3a8Djgego3H4vKZXQ+NaYydDTcUC8SrvQZ1kJtlC6iVqwgUndGATX w17w== 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 h22si18779108pju.48.2019.05.27.07.38.37; Mon, 27 May 2019 07:38:54 -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 S1726654AbfE0Oha (ORCPT + 99 others); Mon, 27 May 2019 10:37:30 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37776 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbfE0Oh3 (ORCPT ); Mon, 27 May 2019 10:37:29 -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 5825FA78; Mon, 27 May 2019 07:37:29 -0700 (PDT) Received: from MBP.local (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 765183F59C; Mon, 27 May 2019 07:37:23 -0700 (PDT) Date: Mon, 27 May 2019 15:37:20 +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 , Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Robin Murphy , Luc Van Oostenryck , Dave Martin , Kevin Brodsky , Szabolcs Nagy Subject: Re: [PATCH v15 05/17] arms64: untag user pointers passed to memory syscalls Message-ID: <20190527143719.GA59948@MBP.local> References: <00eb4c63fefc054e2c8d626e8fedfca11d7c2600.1557160186.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00eb4c63fefc054e2c8d626e8fedfca11d7c2600.1557160186.git.andreyknvl@google.com> 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 Mon, May 06, 2019 at 06:30:51PM +0200, Andrey Konovalov wrote: > This patch is a part of a series that extends arm64 kernel ABI to allow to > pass tagged user pointers (with the top byte set to something else other > than 0x00) as syscall arguments. > > This patch allows tagged pointers to be passed to the following memory > syscalls: brk, get_mempolicy, madvise, mbind, mincore, mlock, mlock2, > mmap, mmap_pgoff, mprotect, mremap, msync, munlock, munmap, > remap_file_pages, shmat and shmdt. > > This is done by untagging pointers passed to these syscalls in the > prologues of their handlers. > > Signed-off-by: Andrey Konovalov Actually, I don't think any of these wrappers get called (have you tested this patch?). Following commit 4378a7d4be30 ("arm64: implement syscall wrappers"), I think we have other macro names for overriding the sys_* ones. -- Catalin