Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1411118imm; Tue, 3 Jul 2018 10:37:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWAsPLO+4dwg4qkwwD6Aa6UfOjU31dI45/gYpCjk/AGzJbXMj0ej/19ZEGz5g9OAuRuKVr X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr30643559plo.283.1530639428895; Tue, 03 Jul 2018 10:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530639428; cv=none; d=google.com; s=arc-20160816; b=ZeTmOjOqaw1TsHdbzV8hjpQHm5wpDQ0oTL6gBH4+9Dcp5/QxKsRmYq/s6FfcVO4WXH BsWj5wJlkegtNiwn1AXBi0uNfvPqSkcsX3EbHSOQF1z2xnyUIWhSpG1NYjVR1JSu8cDL 2N0omeq50Q/GXFiKd0Hvb4MpyPDXqfDf2Uwc0qj7QJTEuE4sT84VablWQP3MaeH3ygzI HveuwyJTwS44GnOBNlsAPrBhCCX44iahXlBZsczwSWi9WNqNOURZBbGfZrAPW7dlwZoI u+xeOxCQeldRphIraaC+SD5Q1Os75h4uNvwkcQfGoPqF7DQBuFuKUkGwJE1wAmXUpCGX T//A== 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:arc-authentication-results; bh=sXv6OUuqk5FdMijKV3ym4ho6zwqEteZc9Qtwe53qD1o=; b=Fox/gkbL5zMHMTVGsC/DM6lhqLj9pXZr+zc0Dpjw1fSnzVTH1TX1kAQ3WoWpwU5YOw MhxYfTOHh7DtVXYVXdaWTKJMHkCmTWjmJ0PnpLsYny7+0dUcK1sy5kBRV+9uZdO/flv1 N/rzo9ni2TNXp5ZLJ9yEKsw9b76J5mM+gohEo66lcBYLrLfoJAjiPyQro4VbTRgPnsLK aQaK+9Lk50im1b2Ut0xDn+sUUpfgYc48V4r5yIKUDYO02P43DP567T66RTa/OEPmDOCt WMgzZaw7kB89Mzsa8MKfJ8lBd9KGOe4tgYoEimhsGMZufrom7yKJKeGuRFCWG2jAdIqX ytzw== 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 t67-v6si1609303pfd.364.2018.07.03.10.36.54; Tue, 03 Jul 2018 10:37:08 -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 S934350AbeGCRfe (ORCPT + 99 others); Tue, 3 Jul 2018 13:35:34 -0400 Received: from foss.arm.com ([217.140.101.70]:53440 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934296AbeGCRfa (ORCPT ); Tue, 3 Jul 2018 13:35:30 -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 7F5017A9; Tue, 3 Jul 2018 10:35:29 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F3C13F5BA; Tue, 3 Jul 2018 10:35:29 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id F3C241AE55A7; Tue, 3 Jul 2018 18:36:08 +0100 (BST) Date: Tue, 3 Jul 2018 18:36:08 +0100 From: Will Deacon To: Andrey Konovalov Cc: Dave Martin , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Christoph Lameter , Andrew Morton , Mark Rutland , Nick Desaulniers , Marc Zyngier , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev , linux-doc@vger.kernel.org, LKML , Linux ARM , linux-sparse@vger.kernel.org, Linux Memory Management List , Linux Kbuild mailing list , Chintan Pandya , Jacob Bramley , Jann Horn , Ruben Ayrapetyan , Lee Smith , Kostya Serebryany , Mark Brand , Ramana Radhakrishnan , Evgeniy Stepanov Subject: Re: [PATCH v4 00/17] khwasan: kernel hardware assisted address sanitizer Message-ID: <20180703173608.GF27243@arm.com> References: <20180628105057.GA26019@e103592.cambridge.arm.com> <20180629110709.GA17859@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 06:36:10PM +0200, Andrey Konovalov wrote: > On Fri, Jun 29, 2018 at 1:07 PM, Will Deacon wrote: > > It might not seen sensible, but we could still be relying on this in the > > kernel and so this change would introduce a regression. I think we need > > a way to identify such pointer usage before these patches can seriously be > > considered for mainline inclusion. > > Another point that I have here is that KHWASAN is a debugging tool not > meant to be used in production. We're not trying to change the ABI or > something like that (referring to the other HWASAN patchset). We can > fix up the non obvious places where untagging is needed in a case by > case basis with additional patches when testing reveals it. Hmm, but elsewhere in this thread, Evgenii is motivating the need for this patch set precisely because the lower overhead means it's suitable for "near-production" use. So I don't think writing this off as a debugging feature is the right approach, and we instead need to put effort into analysing the impact of address tags on the kernel as a whole. Playing whack-a-mole with subtle tag issues sounds like the worst possible outcome for the long-term. Will