Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp36044ybl; Fri, 9 Aug 2019 02:03:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDz+NfhZu725d9DmxWjGWo4AQUBpWsuf76Vc3S2e8DuAsZZ4gP8QRFs4pv7d69ziqqbMBO X-Received: by 2002:a17:90a:cb12:: with SMTP id z18mr8028398pjt.82.1565341393806; Fri, 09 Aug 2019 02:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565341393; cv=none; d=google.com; s=arc-20160816; b=lgTVO95M9L5vllhZIXyOpGxJtjuIM99LpIr/GYLd9+HdWUOnoXOELf3+X/bx6isJhZ 2G/7tlr80ZWtd/QG9vKWPPV/MowTSM57Fe6qSU36YNlXHHITZtkOQ90GCBFRWE67XFyz W6l6q35Kqz30WgL2lzJhOxSJctUX0QDVAOsPKT7UbJUopJ2ZVI4Rs0MvaCaM3pfomJol mNCZHadtUfAvvUgs+0NGlJRGVVlG2hPfMjLc+n8CmjMt+4SihOjIJCyzuYXSApwrH7AF FBMlD5G4T+ux5i6FRFFa0tnWuip/SKuBB+/fBhTVwaHX3rhotONqtCgCLAnsnA0j5gNE pfsQ== 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=cIZenNjhcT3PJatqyvA+wCJG/AFZZSYeOgVg7EZztoo=; b=tOXUWvvZV5/aRKPuGZyc2xv2epueL750lyBDEBK7Ac8Bop+ukBB2uN3E+1Qdo+22Vc uMj5HORv0CbKWNg/i5Z4O629CCBS3JvhJhXt7irsrmEywBQgCix8zkw3K/HBxX/VVuVm ZT7SfRS2SU2NG+xkl3mJQ6N3T33+G/wqcRwyffUKBtzJIlSz5W38vHCn+2p2hsMXBlED qHFE/bG6YBVlhaEc0O1SvVpBX87XSmS1+kGuO54QY75zWL8Lf4QAsGUNpPtZ00DoJXHb cjetHKmi8x/1HhTByZkWj/bakfhbwPo11dGjlqGOT84KFVL83yl2Iiaz9fY/6fMsVtHY XO3w== 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 c7si3904015pjo.88.2019.08.09.02.02.55; Fri, 09 Aug 2019 02:03:13 -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 S2406052AbfHIJAZ (ORCPT + 99 others); Fri, 9 Aug 2019 05:00:25 -0400 Received: from foss.arm.com ([217.140.110.172]:43754 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405974AbfHIJAZ (ORCPT ); Fri, 9 Aug 2019 05:00:25 -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 5F595344; Fri, 9 Aug 2019 02:00:24 -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 796343F706; Fri, 9 Aug 2019 02:00:19 -0700 (PDT) Date: Fri, 9 Aug 2019 10:00:17 +0100 From: Catalin Marinas To: Kees Cook Cc: Andrew Morton , Andrey Konovalov , Will Deacon , Will Deacon , Vincenzo Frascino , Mark Rutland , kvm@vger.kernel.org, Szabolcs Nagy , dri-devel@lists.freedesktop.org, Kostya Serebryany , Khalid Aziz , "open list:KERNEL SELFTEST FRAMEWORK" , Felix Kuehling , Jacob Bramley , Leon Romanovsky , linux-rdma@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christoph Hellwig , Jason Gunthorpe , Linux ARM , Dave Martin , Evgeniy Stepanov , linux-media@vger.kernel.org, Kevin Brodsky , Ruben Ayrapetyan , Ramana Radhakrishnan , Alex Williamson , Mauro Carvalho Chehab , Dmitry Vyukov , Linux Memory Management List , Greg Kroah-Hartman , Yishai Hadas , LKML , Jens Wiklander , Lee Smith , Alexander Deucher , enh , Robin Murphy , Christian Koenig , Luc Van Oostenryck , Dave Hansen Subject: Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel Message-ID: <20190809090016.GA23083@arrakis.emea.arm.com> References: <20190724140212.qzvbcx5j2gi5lcoj@willie-the-truck> <20190724142059.GC21234@fuggles.cambridge.arm.com> <20190806171335.4dzjex5asoertaob@willie-the-truck> <201908081410.C16D2BD@keescook> <20190808153300.09d3eb80772515f0ea062833@linux-foundation.org> <201908081608.A4F6711@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201908081608.A4F6711@keescook> 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 Thu, Aug 08, 2019 at 04:09:04PM -0700, Kees Cook wrote: > On Thu, Aug 08, 2019 at 03:33:00PM -0700, Andrew Morton wrote: > > On Thu, 8 Aug 2019 14:12:19 -0700 Kees Cook wrote: > > > > > > The ones that are left are the mm ones: 4, 5, 6, 7 and 8. > > > > > > > > Andrew, could you take a look and give your Acked-by or pick them up directly? > > > > > > Given the subsystem Acks, it seems like 3-10 and 12 could all just go > > > via Andrew? I hope he agrees. :) > > > > I'll grab everything that has not yet appeared in linux-next. If more > > of these patches appear in linux-next I'll drop those as well. > > > > The review discussion against " [PATCH v19 02/15] arm64: Introduce > > prctl() options to control the tagged user addresses ABI" has petered > > out inconclusively. prctl() vs arch_prctl(). > > I've always disliked arch_prctl() existing at all. Given that tagging is > likely to be a multi-architectural feature, it seems like the controls > should live in prctl() to me. It took a bit of grep'ing to figure out what Dave H meant by arch_prctl(). It's an x86-specific syscall which we do not have on arm64 (and possibly any other architecture). Actually, we don't have any arm64 specific syscalls, only the generic unistd.h, hence the confusion. For other arm64-specific prctls like SVE we used the generic sys_prctl() and I can see x86 not being consistent either (PR_MPX_ENABLE_MANAGEMENT). In general I disagree with adding any arm64-specific syscalls but in this instance it can't even be justified. I'd rather see some clean-up similar to arch_ptrace/ptrace_request than introducing new syscall numbers (but as I suggested in my reply to Dave, that's for another patch series). -- Catalin