Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2523471ybe; Thu, 12 Sep 2019 10:39:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwizSHy1/M/I0WYFcWVaeBrS6VqHNmk8uSFtlUvar2BOoETT4FYUxqA8oKqkEKKZqdUkFzb X-Received: by 2002:a17:906:529a:: with SMTP id c26mr35914717ejm.232.1568309984873; Thu, 12 Sep 2019 10:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568309984; cv=none; d=google.com; s=arc-20160816; b=sPI5X93w6GVRtcdKlDUOXpWURgDQIjmgfu0kppvg0LUbfHJH7/7GwTs7CfYDNLzmm/ kupfDYJ80y55qFnnhAVWratbRDv5R5WfwVPUPH+YpYJRRXpEdFPrJk+oK60fM1z7OGL5 Lg46y8a3cRzMh26qpwlzT4D/E8l+s+aM4JGwTexWM5QSsRjfhGUpaAZafBdO9kJCP0Rr dZPRCvQW/UdnNkLR0kvn8JuZ0gyFbjMPRk7CIXJmf2ge9qiGjZ3mXIUgF4srMW8u1u34 UjmcUkfMJgblMqjnkStsszeWt86fezM7LCQq3s9/HkKNkBqk7dfJw30+0aJhGhhuxfKy 1DSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=XkZczbCDt2l/sxUaS0rSKffilt/iWRQLp6GQT05SWcM=; b=cqvEATZ7+qhIt6fdVsKiQLNL3VxJegHMVSfNOe3KiGSAcd6RriP0wR9YF1XglgvMdr d6WaRJDZ8eC6S4Ru5aBbCTFlo6ZKW83Q3GDZIH9qhEAdPmWwCfZPqjnG4pDMVQrkfrfk vtGQaU19kv2RF1TyycsTumVnslmuS6f5KwFDGXa+jAEY8ThRstz0bTO5GpDDWEXqItum cs+6MBlDiinPdIqETaxQdJeuVujFJuSuKAlBhx8oBzNkg2dW1ofpIKQTPWDdFs5cUSQf OoIDMsU3MT7lHrP26PNAtL1FNr+POkBvNjgIrphhHSwjopghPvg+KA9nnqcZBoUtbNLi 4M1A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si16471717edm.313.2019.09.12.10.39.21; Thu, 12 Sep 2019 10:39:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732436AbfILOIh (ORCPT + 99 others); Thu, 12 Sep 2019 10:08:37 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56496 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732389AbfILOIh (ORCPT ); Thu, 12 Sep 2019 10:08:37 -0400 X-UUID: 88ef5b91e7cc45ca9b12d53609cb2ee6-20190912 X-UUID: 88ef5b91e7cc45ca9b12d53609cb2ee6-20190912 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1916237428; Thu, 12 Sep 2019 22:08:30 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Sep 2019 22:08:28 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Sep 2019 22:08:27 +0800 Message-ID: <1568297308.19040.5.camel@mtksdccf07> Subject: Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator From: Walter Wu To: Vlastimil Babka CC: Qian Cai , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , "Andrew Morton" , Martin Schwidefsky , Andrey Konovalov , "Arnd Bergmann" , , , , , , Date: Thu, 12 Sep 2019 22:08:28 +0800 In-Reply-To: References: <20190911083921.4158-1-walter-zh.wu@mediatek.com> <5E358F4B-552C-4542-9655-E01C7B754F14@lca.pw> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > extern void __reset_page_owner(struct page *page, unsigned int order); > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index 6c9682ce0254..dc560c7562e8 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -41,6 +41,8 @@ config KASAN_GENERIC > select SLUB_DEBUG if SLUB > select CONSTRUCTORS > select STACKDEPOT > + select PAGE_OWNER > + select PAGE_OWNER_FREE_STACK > help > Enables generic KASAN mode. > Supported in both GCC and Clang. With GCC it requires version 4.9.2 > @@ -63,6 +65,8 @@ config KASAN_SW_TAGS > select SLUB_DEBUG if SLUB > select CONSTRUCTORS > select STACKDEPOT > + select PAGE_OWNER > + select PAGE_OWNER_FREE_STACK > help What is the difference between PAGE_OWNER+PAGE_OWNER_FREE_STACK and DEBUG_PAGEALLOC? If you directly enable PAGE_OWNER+PAGE_OWNER_FREE_STACK PAGE_OWNER_FREE_STACK,don't you think low-memory device to want to use KASAN?