Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1886636ybm; Thu, 23 May 2019 08:10:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZBoI/ZFOj7LeTT3GvIwqBOBI1NnNP9nMKUjlqwC8ArKb4Rx9EuoikuQTOj+js3HfX10aL X-Received: by 2002:a17:902:b106:: with SMTP id q6mr45175506plr.215.1558624201471; Thu, 23 May 2019 08:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558624201; cv=none; d=google.com; s=arc-20160816; b=BXtxAclOB5UHBbdqSy8JsdpaujtKlEcP8jcOt+KszqyKd5yv66O9tymRrMxNFiYXUd GB3HwTvpotMWsilEqaWbmfwUbMXzjg3Zr8qypwW83vtV/ixV/V69qruNNk3hPxLArcnv 3syswF/OOSumQHQR0H68y0lPyhAI1EtKQ79xPuxBH/Zn1CiJxxd7qmhJL5xo62idtBUu sCcmXLY6KGmk5UZrh+jT063U81aAhAkvE55VpQBaWEcFUbNiVwFIu7nbuNE4qN02NjZe gTy/X6sxtMFEAweslRtemU3K+51Ptrm0WzfG27sLveTJ9nqjLZR4HVECdYGJ0kUEZYqM UFbQ== 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=ILz0DiqYRzeI063TKSdM5MgGJ1Ad4VRyn5X85ka81N8=; b=l405IQePNrLdc7fm3HJLTtQ0rmqqrUiPT0Fwu6/8vLPCQMgl34KTUmqOS1XoEZeS1t UOJCO8JaKDHh8AdzYjhz/H+KLnflCz0vRMypvi+eoalILHNcWQLgu7r0nDiOIf3q9g3i tch/F7DHSTJmbAK4OVKs3BoaIJC+7u6msd7b/f8iTTnwyOUX8uLAUlZQ+uOgEmay44g+ B6upUbDYiDuRMF1vsTM/KsCYqTZc3a6sDVFiTzNmiKAZPdUEJSxM8eOnr9qs/WmtqU2q 8FgdiNpXkEWUNsoXJ9t9wWVqCEVlTf/DV0PzFjMzi2E7AYq0y+FnJvNM5dj70NbB0IVn +R2Q== 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 w6si22498018pgf.337.2019.05.23.08.09.43; Thu, 23 May 2019 08:10:01 -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 S1730875AbfEWPI1 (ORCPT + 99 others); Thu, 23 May 2019 11:08:27 -0400 Received: from foss.arm.com ([217.140.101.70]:48564 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730672AbfEWPI1 (ORCPT ); Thu, 23 May 2019 11:08:27 -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 C7E5C80D; Thu, 23 May 2019 08:08:26 -0700 (PDT) Received: from mbp (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B63863F690; Thu, 23 May 2019 08:08:20 -0700 (PDT) Date: Thu, 23 May 2019 16:08:14 +0100 From: Catalin Marinas To: Kees Cook Cc: enh , Evgenii Stepanov , Andrey Konovalov , Khalid Aziz , 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 , Yishai Hadas , Felix Kuehling , Alexander Deucher , Christian Koenig , Mauro Carvalho Chehab , Jens Wiklander , Alex Williamson , Leon Romanovsky , Dmitry Vyukov , Kostya Serebryany , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Robin Murphy , Luc Van Oostenryck , Dave Martin , Kevin Brodsky , Szabolcs Nagy Subject: Re: [PATCH v15 00/17] arm64: untag user pointers passed to the kernel Message-ID: <20190523150813.x4btg5zxa4gl5o4q@mbp> References: <20190517144931.GA56186@arrakis.emea.arm.com> <20190521182932.sm4vxweuwo5ermyd@mbp> <201905211633.6C0BF0C2@keescook> <20190522101110.m2stmpaj7seezveq@mbp> <201905221157.A9BAB1F296@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201905221157.A9BAB1F296@keescook> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 12:21:27PM -0700, Kees Cook wrote: > If a process wants to not tag, that's also up to the allocator where > it can decide not to ask the kernel, and just not tag. Nothing breaks in > userspace if a process is NOT tagging and untagged_addr() exists or is > missing. This, I think, is the core way this doesn't trip over the > golden rule: an old system image will run fine (because it's not > tagging). A *new* system may encounter bugs with tagging because it's a > new feature: this is The Way Of Things. But we don't break old userspace > because old userspace isn't using tags. With this series and hwasan binaries, at some point in the future they will be considered "old userspace" and they do use pointer tags which expect to be ignored by both the hardware and the kernel. MTE breaks this assumption. -- Catalin