Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp761292imm; Thu, 6 Sep 2018 09:41:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY9ARspal2iihXxrowNgeHgnsYhh1uQtPEmEJlS6wN23jFZVWvI9N6D/PaKBxIR5h3pN4u8 X-Received: by 2002:a17:902:694a:: with SMTP id k10-v6mr3542321plt.166.1536252111824; Thu, 06 Sep 2018 09:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536252111; cv=none; d=google.com; s=arc-20160816; b=gwwoIh8xTt+8YywjUAUp1GAve5t4yD8mkcW/zeYBIi723/aBvIochSwDC+ycn3/vuD IQXMJPcgzQ6yMtSoPCFTuAJ5oJsqt+Hm/wVLygI7bXOe1Zm++LqwC1GMNc1ZuAVlSozb bA8HcWC30NWjJRmk9GFFOtLNJrwB4+/lgRNxTY5+ADJGZ7YUwJbHXWFQpeRDhU5QGIe6 k7jjc34pvX5XjsXm4o/MIQc5pKcrzEdw0e4dPnV738pYMl2AGYHrLfjHS9DHnYEtoW49 QrvWdZs+GSjKEo5jPhwU5QeAbsKQN8vdJevSk/rVHeAlJuUt0xwP9blqH4RFh/KUAVEu 8LdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Wlm/2akOmDOzhTREznTfzxeoJoyseVDGJ+1+AmvoRyY=; b=Of1JamAMSgXGyO7YeZjIzbBjyDvafWTKhvA71cDYEl/iwuPXyK5WNtkFP/d6IAxAIB qgKGRMEFPr2x6nb0Yh/FdxeXCjdovgU/OXpX5e9cvPbGllaCba2eUzRZNBrjj5KQUmqY Ykg/ao0/ovRM4cRsTAg42r7CFSfi/5cJ8Vu33eSDyhFnbBzF31an7lT67xrAv0Dvc9SM BMRB5sZ/eCp5QDN7sBhewu9VaRUuJMAJD9lrkLJe8INvuTScte+ZdRbS0i2SqczBHy1X nGlBV4J/Un+j1l+v7beWaTms7X7F/GG8ObkRQDIpvFkoVCXGbg/ke+YpaGh29XzmwCIH Eqww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RulWN5Ht; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22-v6si5214625plo.271.2018.09.06.09.41.35; Thu, 06 Sep 2018 09:41:51 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=RulWN5Ht; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbeIFVQW (ORCPT + 99 others); Thu, 6 Sep 2018 17:16:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40862 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbeIFVQW (ORCPT ); Thu, 6 Sep 2018 17:16:22 -0400 Received: by mail-pl1-f195.google.com with SMTP id s17-v6so5235453plp.7 for ; Thu, 06 Sep 2018 09:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wlm/2akOmDOzhTREznTfzxeoJoyseVDGJ+1+AmvoRyY=; b=RulWN5Ht+7LcJ8/lhC+x66AC1p2+Sdh9TRenJZU2RXb7Uz9sJH6056WB1FusLaeoua yjVQojqBkMTRSyROlkNEzUJ1ojtfIPvV2Cc8YTzT+mSv78EX7KjS1gpuzcSCGdpNDlfn npXdPjl+rOTmpyGeGFKZNkYSK/RyJjfQ9TUK72x5UvQJ1LkSZK4Q1a5V5eFCluVP/HWC RVI948DNvInDhYAhX7+VTubyx2VETbuJE2pXHoDMIbtDERQcGN+BROqr9s3PtaSSOulI r3QLcjCXuH6+R3W4VdUgqdq/csaEtqFOk4DL1KbiaJgMOhVjJdThC/1wMI3SmeLHbjVW uxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wlm/2akOmDOzhTREznTfzxeoJoyseVDGJ+1+AmvoRyY=; b=kYjpBx96MrBM17pXm/Yt0A6gdlp/ba7LLcgoXLGtCm5dw2G90nDp9xeT9W+Xw1DbyD RG0nTAS+uLimquBZdSiOHjnm43mV9//wzF/sILyAnunnRkUZt5RQJdYwcDzOVXXVVeR8 Lwy4uVF21WuoM8H7oQrPMK60RJ8mKZDUnYYhFSWQoNkFa7PyAvyLFjcPw55725qMalmY MWmuP1DsSGkzy0fH431WxwLOh4yQN1iroaCj6IQZGp4NbQX2rZeBnAXi/WHN2hYr+WiD j+OXgmh2Cb250A2+Jc8etBcNLvnr4d9TtZZjlrrPxrYJoQQep5B/FkP+tWUGtAcTeWeG PN9w== X-Gm-Message-State: APzg51BrLauBdH+iVA5KDUMou9OyNHh8JyIK0cMehToxG86uj2J7eWEc MBU9A8NuhVwJGtcI/jrkVZmzmAd+Nu2mZTc5rksCuA== X-Received: by 2002:a17:902:7102:: with SMTP id a2-v6mr3534422pll.217.1536252003143; Thu, 06 Sep 2018 09:40:03 -0700 (PDT) MIME-Version: 1.0 References: <20180905141032.b1ddaab53d1b2b3bada95415@linux-foundation.org> <20180906100543.GI3592@arm.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 6 Sep 2018 09:39:51 -0700 Message-ID: Subject: Re: [PATCH v6 00/18] khwasan: kernel hardware assisted address sanitizer To: Andrey Konovalov Cc: Will Deacon , Andrew Morton , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Christoph Lameter , Mark Rutland , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg KH , 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 , Kostya Serebryany , Evgenii Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya , Vishwath Mohan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 6, 2018 at 4:06 AM Andrey Konovalov wrote: > > On Thu, Sep 6, 2018 at 12:05 PM, Will Deacon wrote: > > On Wed, Sep 05, 2018 at 02:10:32PM -0700, Andrew Morton wrote: > >> On Wed, 29 Aug 2018 13:35:04 +0200 Andrey Konovalov wrote: > >> > >> > This patchset adds a new mode to KASAN [1], which is called KHWASAN > >> > (Kernel HardWare assisted Address SANitizer). > >> > >> We're at v6 and there are no reviewed-by's or acked-by's to be seen. > >> Is that a fair commentary on what has been happening, or have people > >> been remiss in sending and gathering such things? > > > > I still have concerns about the consequences of merging this as anything > > other than a debug option [1]. Unfortunately, merging it as a debug option > > defeats the whole point, so I think we need to spend more effort on developing > > tools that can help us to find and fix the subtle bugs which will arise from > > enabling tagged pointers in the kernel. > > I totally don't mind calling it a debug option. Do I need to somehow > specify it somewhere? > > Why does it defeat the point? The point is to ease KASAN-like testing > on devices with limited memory. I don't disagree with using it strictly for debug. When I say I want the series for Pixel phones, I should have been clearer that my intent is for a limited pool of internal testers to walk around with KHWASAN enabled devices; not general end users. It's hard enough today to get anyone to test KASAN/ASAN on their "daily driver" due to the memory usage and resulting performance. We don't ship KASAN or KUBSAN on by default to end users (nor plan to); it's used strictly for fuzzing through syzkaller (or by brave "dogfooders" on the internal kernel teams). KHWASAN would let these dogfooders go from being brave to fearless. -- Thanks, ~Nick Desaulniers