Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5998528ybe; Tue, 10 Sep 2019 11:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzkrx5JaQvk5PsVEc5rd9ydaSC9FJRGtQ3Iz58Wrmnc2wbThF9mhwi/A8rZ7cQgIj97dEg X-Received: by 2002:a17:906:c799:: with SMTP id cw25mr9921191ejb.107.1568141856956; Tue, 10 Sep 2019 11:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141856; cv=none; d=google.com; s=arc-20160816; b=MiDVM4nTXxWmt0iFIbuRC69eD8TVAADa/JblOQ5QBRjbVT04LZL3NF+YeOG9Tv2TWG 0czYlt4vEhJSXBCihrWHfV+P4S9Xbf/75FxQl2dVC9E4yoU6/dAFDLPEadWaL2tT7nz1 9J1EwqjMkHy8FpwoO6ZfbdIytykYcIo2BPzKhq2iVHsTXkaR6aZ7ybsErNIr+UZ48aw7 oW1W0/ZEzPGYY8lvozAynpud4YnsdzsX5778hSqXkmM//j8ZfsMGcn+PUHv4iRD96eDf ba5e6OIyUhb+82YhH3yHZuOrjMLf2XFnPV90Sj6+hxU2xvlyyrx0Yg5SRexmWZ2xthPT SNrw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CbX2FEkadAat3q38Tu9TxNfnJGJ6eiN4NhilyOmYsh8=; b=U3Gg4WW5C6Tdvfv2muKKvw2OuQavaNDTfuYXA5130W3Vs/gw5irxjra8AGSoYZ0XHM c3a6zkHb0M93Zf02sfJRhyBakSbHV9Lrmj2Irq0Tg910GUrPl34/L087CJbKQJk7fPXV C9JJWNJqmR220OuhtaFUxCAGhRjLAaT8JjaVL9S+pvrel03EfwY5nja5ODQEJv76izsI 77C10u7Y4uBjb235HIhrdjAz12FvOA1YKwThMNh2vD8RsOUt5zafCk1pKpvx0W+ZDbBL O+rIVaOcz0D/taFOf8qA8acm5yG+ZSJ/oZ0nY9UH/HG/FpRr22q3rvHratRxrH5BRKBT ex6w== 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 k19si8791748eds.71.2019.09.10.11.57.13; Tue, 10 Sep 2019 11:57:36 -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 S1727432AbfIJLx3 (ORCPT + 99 others); Tue, 10 Sep 2019 07:53:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:42046 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725981AbfIJLx2 (ORCPT ); Tue, 10 Sep 2019 07:53:28 -0400 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 82DF2B061; Tue, 10 Sep 2019 11:53:26 +0000 (UTC) Subject: Re: [PATCH v2 0/2] mm/kasan: dump alloc/free stack for page allocator To: Andrey Ryabinin , walter-zh.wu@mediatek.com, Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Andrew Morton , Martin Schwidefsky , Will Deacon , Andrey Konovalov , Arnd Bergmann , Thomas Gleixner , Michal Hocko , Qian Cai Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com References: <20190909082412.24356-1-walter-zh.wu@mediatek.com> From: Vlastimil Babka Message-ID: <4faedb4d-f16c-1917-9eaa-b0f9c169fa50@suse.cz> Date: Tue, 10 Sep 2019 13:53:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/19 12:50 PM, Andrey Ryabinin wrote: > > > For slab objects we memorize both alloc and free stacks. You'll never know in advance what information will be usefull > to fix an issue, so it usually better to provide more information. I don't think we should do anything different for pages. Exactly, thanks. > Given that we already have the page_owner responsible for providing alloc/free stacks for pages, all that we should in KASAN do is to > enable the feature by default. Free stack saving should be decoupled from debug_pagealloc into separate option so that it can be enabled > by KASAN and/or debug_pagealloc. Right. Walter, can you do it that way, or should I? Thanks, Vlastimil