From patchwork Mon Sep 30 12:29:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlastimil Babka X-Patchwork-Id: 11166579 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D1C01599 for ; Mon, 30 Sep 2019 12:29:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 138952086A for ; Mon, 30 Sep 2019 12:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 138952086A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C135C6B0003; Mon, 30 Sep 2019 08:29:31 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BC3E76B0005; Mon, 30 Sep 2019 08:29:31 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADC296B0006; Mon, 30 Sep 2019 08:29:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id 8EC616B0003 for ; Mon, 30 Sep 2019 08:29:31 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 37176813E for ; Mon, 30 Sep 2019 12:29:31 +0000 (UTC) X-FDA: 75991517742.10.shake59_5311b9d781d04 X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,vbabka@suse.cz,:akpm@linux-foundation.org::linux-kernel@vger.kernel.org:kasan-dev@googlegroups.com:cai@lca.pw:kirill.shutemov@linux.intel.com:willy@infradead.org:mgorman@techsingularity.net:mhocko@kernel.org:vbabka@suse.cz:aryabinin@virtuozzo.com:dvyukov@google.com:kirill@shutemov.name:walter-zh.wu@mediatek.com,RULES_HIT:30054:30070,0,RBL:195.135.220.15:@suse.cz:.lbl8.mailshell.net-62.2.6.2 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:35,LUA_SUMMARY:none X-HE-Tag: shake59_5311b9d781d04 X-Filterd-Recvd-Size: 2733 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Sep 2019 12:29:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E8F55B01F; Mon, 30 Sep 2019 12:29:28 +0000 (UTC) From: Vlastimil Babka To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Qian Cai , "Kirill A. Shutemov" , Matthew Wilcox , Mel Gorman , Michal Hocko , Vlastimil Babka , Andrey Ryabinin , Dmitry Vyukov , "Kirill A. Shutemov" , Walter Wu Subject: [PATCH v2 0/3] followups to debug_pagealloc improvements through page_owner Date: Mon, 30 Sep 2019 14:29:13 +0200 Message-Id: <20190930122916.14969-1-vbabka@suse.cz> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Changes since v1 [3]: - Kirill suggested further decoupling of freeing stack capture from KASAN and debug_pagealloc. Also the stackdepot handle is now only allocated in page_ext when actually used (it was simpler than I initially thought). As that was a large change, I've dropped Reviewed-by from Andrey Ryabinin. - More minor changes suggested by Kirill. These are followups to [1] which made it to Linus meanwhile. Patches 1 and 3 are based on Kirill's review, patch 2 on KASAN request [2]. It would be nice if all of this made it to 5.4 with [1] already there (or at least Patch 1). [1] https://lore.kernel.org/linux-mm/20190820131828.22684-1-vbabka@suse.cz/ [2] https://lore.kernel.org/linux-arm-kernel/20190911083921.4158-1-walter-zh.wu@mediatek.com/ [3] https://lore.kernel.org/r/20190925143056.25853-1-vbabka%40suse.cz Vlastimil Babka (3): mm, page_owner: fix off-by-one error in __set_page_owner_handle() mm, page_owner: decouple freeing stack trace from debug_pagealloc mm, page_owner: rename flag indicating that page is allocated .../admin-guide/kernel-parameters.txt | 8 ++ Documentation/dev-tools/kasan.rst | 3 + include/linux/page_ext.h | 10 +- include/linux/page_owner.h | 1 + mm/page_ext.c | 24 ++-- mm/page_owner.c | 117 ++++++++++++------ 6 files changed, 109 insertions(+), 54 deletions(-)