Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp788490pxu; Thu, 3 Dec 2020 12:39:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB4WZjcrYwKULDiOgXQKDMEnP23FsMGcGGR29vk1TH91rigi++kTUxsikqSLoYCt57ICdx X-Received: by 2002:a17:907:20f1:: with SMTP id rh17mr4092742ejb.147.1607027940842; Thu, 03 Dec 2020 12:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607027940; cv=none; d=google.com; s=arc-20160816; b=l5RfKspqHmy8cJ+n3h+M/QDPKuX3Pd2vhNiDM0GHV/acPwVoJeOP8reVRqgfs7NGKE 27YzKoXrU2eJtWx4JJ4aUbKhspublc5/SeK9Therww12txwuFvgB8BcOm/UCefJnO3Bi /ARp8rLlWLxiuxdKHq5DoGBYhVJ6dxfSB4aEltCYbz8vNT7e/80GsMBTgAs/hrS69e3A jaVil/iLtM6CVnhcyALNxoOWCoajMN2/lPuMC2Nf8XZCOWtoJfVJuuNKh90Kc4/GEatj pd+RJA0mbSrIYOjTaSiSeHCd4pUyUHuH1Gy7JdujdXmdf4IMYStiPpQ0o9un4gkAL+Pq moNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:dkim-signature :date; bh=26slEW2Tmsk3pbPNxp6XsiGy2XpUerGQii29Q5ICvNI=; b=JXh4nw0EaG6fo7tHAjnkr5kJZ4xwISuYmG5Htd37ZD/jHSAdlrz1Dn4iRK2BCLGn05 TTtkfrgE66kKpZ7fhoy9QaiVepV28TP03wRBOIuwT0XOr7PYU1W+Jb5heasiWe7syKmX VnX0eAp3g4fDWdcAQrUCbfxcVxw/1ktwGBKVgi2blEEwXPOvxtJ8vYOW4VPQyStxabbA WDINGKDwqkCjONtyAhiOe/fgukHD9e1p4A8zHAWsPqmkG5Ap7lrcVwuN3OBVZuDLt8B4 ICuPWS+xcBiEz21mQ9XKHP1qnm1vndzoo2ceL7ywSIa85ImmmA4xs4IvH5BY2jJixTSt kbyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ZoueEGZD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si71895ejr.245.2020.12.03.12.38.35; Thu, 03 Dec 2020 12:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ZoueEGZD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727799AbgLCUdh (ORCPT + 99 others); Thu, 3 Dec 2020 15:33:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:46106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbgLCUdg (ORCPT ); Thu, 3 Dec 2020 15:33:36 -0500 Date: Thu, 3 Dec 2020 12:32:53 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1607027575; bh=gEGaFy/MPP9aLCzSG99SHu4NetEFmu4fXcNmm4eN/p8=; h=From:To:Cc:Subject:In-Reply-To:References:From; b=ZoueEGZDNKqyvpXYqrfF2MDP39N38sJ4YSqH1EVKBHrW+Doo1/f2OEbTbHvxIaLFw QIn9s/f4JjpZ2vWWZOGSUkQ6t1bI+nEgCSbNh7MXZOybVt4iA3Q6yVIjBQ4eMBQeVo MS9B1+sqaAW1U/J4668eFz8AIjX0YKBE0Kyvazjc= From: Andrew Morton To: Vincenzo Frascino Cc: Andrey Konovalov , Catalin Marinas , vjitta@codeaurora.org, Minchan Kim , Alexander Potapenko , Dan Williams , Mark Brown , Masami Hiramatsu , LKML , ylal@codeaurora.org, vinmenon@codeaurora.org, kasan-dev , Stephen Rothwell , Linux-Next Mailing List , Qian Cai , Stephen Rothwell Subject: Re: [PATCH v2] lib: stackdepot: Add support to configure STACK_HASH_SIZE Message-Id: <20201203123253.c00767545ad35c09dabd44ef@linux-foundation.org> In-Reply-To: <55b7ba6e-6282-2cf6-c42c-272bdd23a607@arm.com> References: <1606365835-3242-1-git-send-email-vjitta@codeaurora.org> <7733019eb8c506eee8d29e380aae683a8972fd19.camel@redhat.com> <55b7ba6e-6282-2cf6-c42c-272bdd23a607@arm.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Dec 2020 17:26:59 +0000 Vincenzo Frascino wrote: > > > On 12/3/20 4:34 PM, Vincenzo Frascino wrote: > > Hi Andrey, > > > > On 12/3/20 4:15 PM, Andrey Konovalov wrote: > >> On Thu, Dec 3, 2020 at 5:04 PM Qian Cai wrote: > >>> > >>> On Thu, 2020-11-26 at 10:13 +0530, vjitta@codeaurora.org wrote: > >>>> From: Yogesh Lal > >>>> > >>>> Add a kernel parameter stack_hash_order to configure STACK_HASH_SIZE. > >>>> > >>>> Aim is to have configurable value for STACK_HASH_SIZE, so that one > >>>> can configure it depending on usecase there by reducing the static > >>>> memory overhead. > >>>> > >>>> One example is of Page Owner, default value of STACK_HASH_SIZE lead > >>>> stack depot to consume 8MB of static memory. Making it configurable > >>>> and use lower value helps to enable features like CONFIG_PAGE_OWNER > >>>> without any significant overhead. > >>>> > >>>> Suggested-by: Minchan Kim > >>>> Signed-off-by: Yogesh Lal > >>>> Signed-off-by: Vijayanand Jitta > >>> > >>> Reverting this commit on today's linux-next fixed boot crash with KASAN. > >>> > >>> .config: > >>> https://cailca.coding.net/public/linux/mm/git/files/master/x86.config > >>> https://cailca.coding.net/public/linux/mm/git/files/master/arm64.config > >> > >> Vincenzo, Catalin, looks like this is the cause of the crash you > >> observed. Reverting this commit from next-20201203 fixes KASAN for me. > >> > >> Thanks for the report Qian! > >> > > > > Thank you for this. I will try and let you know as well. > > > > Reverting the patch above works for me as well, and the problem seems to be the > order on which the initcalls are invoked. In fact stackdepot should be > initialized before kasan from what I can see. Thanks, all. I'll drop lib-stackdepot-add-support-to-configure-stack_hash_size.patch.