Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7016842imm; Wed, 27 Jun 2018 18:17:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe90QwT9jNvVz/bj0FDAGDKOmDXId05eRFAGvmXr3C5CCB+dCR+9vbQEWLfs1Ke+CZI5v+/ X-Received: by 2002:a62:f206:: with SMTP id m6-v6mr7944182pfh.171.1530148659938; Wed, 27 Jun 2018 18:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530148659; cv=none; d=google.com; s=arc-20160816; b=NkfiiLYhCn6KMKvIAxCqN1RTnmsEuRhzPd7aFP5N1brlF8LsUlWURCIzmfJI42meBb G9gTweHjVy9SHDfMXyzF3L65s4YVFAV2VitWpp9Kq0Vqobyy08adIWZRVBR6/g9EECrw z+SgiCbGYI37zteNJofkgFqjNN+nAyYzQYKYnEhFICzUdTu3CuwICqE0vqhYfQrhWJ/6 vvHcC0CIJC+7rvr/dPJw8tD0UaZtq0UGK+j+1XeppH44Be8TyNLAenOFRACMutWw7lyd LC2F4Yf3utvyBRB2NemwwIu3iQg5JWq1YlDFk4CzXpcIixho3zyt3F7g0IWDCi1iibG5 QKog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ABkOQw0I3oikPOv7kV8kEuS65sfLapmSGH9R9M6POmc=; b=mlnufwLr8xOtMYOR5i4Kp9oOiAqQiw5/KukZwvfSVUFKvqtS0Ugv3ImEMBTdLaqZa9 7y87IlT4AvR4h1ljrz4vP1m7vGZTV/mjZG5SUsr73/mp/WvMhx7Tu+Owphzznr8pTH4l BH8vCiByhaM2xpZGUXa3XC0RP/jX/CYCdUzq7j8Sng5czuUq2/lqNkiXzfT0NP1lFTRn 1xNVWMA8u96eW+2QDcC0cFnC2NhiiULSXh+CAP5HN3wjVE0JUEbBAoXtJsw+OBTBrr6U XUHgXReBk4lmhz7rjqeWK/SAx95YjKhRNb6cu4pRoh3kTDD6n/hAjGt9zILQNO89lVwx 87Ag== 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 r9-v6si4669534pgf.664.2018.06.27.18.17.25; Wed, 27 Jun 2018 18:17:39 -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 S932152AbeF1BLn (ORCPT + 99 others); Wed, 27 Jun 2018 21:11:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51066 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932090AbeF1BLm (ORCPT ); Wed, 27 Jun 2018 21:11:42 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BA82CC74; Thu, 28 Jun 2018 01:11:39 +0000 (UTC) Date: Wed, 27 Jun 2018 18:11:38 -0700 From: Andrew Morton To: Vishwath Mohan Cc: Kostya Serebryany , andreyknvl@google.com, aryabinin@virtuozzo.com, Alexander Potapenko , Dmitry Vyukov , catalin.marinas@arm.com, will.deacon@arm.com, cl@linux.com, mark.rutland@arm.com, Nick Desaulniers , marc.zyngier@arm.com, dave.martin@arm.com, ard.biesheuvel@linaro.org, ebiederm@xmission.com, mingo@kernel.org, Paul Lawrence , geert@linux-m68k.org, arnd@arndb.de, kirill.shutemov@linux.intel.com, gregkh@linuxfoundation.org, kstewart@linuxfoundation.org, rppt@linux.vnet.ibm.com, kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sparse@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org, Evgenii Stepanov , Lee.Smith@arm.com, Ramana.Radhakrishnan@arm.com, Jacob.Bramley@arm.com, Ruben.Ayrapetyan@arm.com, Jann Horn , Mark Brand , cpandya@codeaurora.org Subject: Re: [PATCH v4 00/17] khwasan: kernel hardware assisted address sanitizer Message-Id: <20180627181138.14c9b66e13b8778506205f89@linux-foundation.org> In-Reply-To: References: <20180627160800.3dc7f9ee41c0badbf7342520@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Jun 2018 17:59:00 -0700 Vishwath Mohan wrote: > > > > time consume much less memory, trading that off for somewhat imprecise > > > > bug detection and being supported only for arm64. > > > > > > Why do we consider this to be a worthwhile change? > > > > > > Is KASAN's memory consumption actually a significant problem? Some > > > data regarding that would be very useful. > > > > On mobile, ASAN's and KASAN's memory usage is a significant problem. > > Not sure if I can find scientific evidence of that. > > CC-ing Vishwath Mohan who deals with KASAN on Android to provide > > anecdotal evidence. > > > Yeah, I can confirm that it's an issue. Like Kostya mentioned, I don't have > data on-hand, but anecdotally both ASAN and KASAN have proven problematic > to enable for environments that don't tolerate the increased memory > pressure well. This includes, > (a) Low-memory form factors - Wear, TV, Things, lower-tier phones like Go > (c) Connected components like Pixel's visual core > > > > These are both places I'd love to have a low(er) memory footprint option at > my disposal. Thanks. It really is important that such information be captured in the changelogs. In as much detail as can be mustered.