From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C44DAC433EF for ; Mon, 14 Mar 2022 16:20:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BCBC8D0001; Mon, 14 Mar 2022 12:20:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36BB36B0072; Mon, 14 Mar 2022 12:20:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 234208D0001; Mon, 14 Mar 2022 12:20:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0117.hostedemail.com [216.40.44.117]) by kanga.kvack.org (Postfix) with ESMTP id 10E9F6B0071 for ; Mon, 14 Mar 2022 12:20:23 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id BAB75A15C6 for ; Mon, 14 Mar 2022 16:20:22 +0000 (UTC) X-FDA: 79243504284.16.EBE2736 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf09.hostedemail.com (Postfix) with ESMTP id 4605214000A for ; Mon, 14 Mar 2022 16:20:20 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BF715210F6; Mon, 14 Mar 2022 16:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1647274818; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KzYMEtu5lGd+7jkZ0DahqSJurPiBuUODohRK/bWM34c=; b=EGwc1wzljvBJTwEQY1joLi7cIDsnsMS0sU2lFm9v7DGWib5BBYmDPRzEBzU9jvCZC+0djn GJ7MYF6LG2kAj8PQm1c48Mc0jUbVRoNe1AFC+YFP+5ahbfHg+K00k3buKtbG5uf5uYkC8A qZDgBwa9Fd6V7uS2deq2A3HqTTwZvt4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1647274818; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KzYMEtu5lGd+7jkZ0DahqSJurPiBuUODohRK/bWM34c=; b=hFEtDddvyDM/2xhbscwcH6A5Af6XAWqsgHdpDQn/O+DzU3ouAmIigbrl9HuUhYYXeFc5FZ LQDKIpjx3tYZ6yCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 983CD13ADA; Mon, 14 Mar 2022 16:20:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QyJjJEJrL2LDKwAAMHmgww (envelope-from ); Mon, 14 Mar 2022 16:20:18 +0000 Message-ID: <3d2872e9-b17f-a9f9-cad1-09a7fff85b5b@suse.cz> Date: Mon, 14 Mar 2022 17:20:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [mm/slub] ae107fa919: BUG:unable_to_handle_page_fault_for_address Content-Language: en-US From: Vlastimil Babka To: Mike Rapoport , Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: kernel test robot , Oliver Glitta , lkp@lists.01.org, lkp@intel.com, LKML , linux-mm@kvack.org References: <20220311145427.GA1227220@odroid> <667d594b-bdad-4082-09d5-7b0587af2ae3@suse.cz> <20220311164600.GA1234616@odroid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4605214000A X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=EGwc1wzl; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=hFEtDddv; dmarc=none; spf=pass (imf09.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz X-Stat-Signature: xfuimbryojjiqtb51a8rysujhm4xeitx X-Rspamd-Server: rspam04 X-HE-Tag: 1647274820-113862 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: On 3/12/22 14:08, Vlastimil Babka wrote: > On 3/12/22 13:06, Mike Rapoport wrote: >>>>> Ideas? implementing something like kmem_cache_init_early() again? >>>> >>>> I think we could simply make CONFIG_SLUB_DEBUG_ON select/depend on >>>> STACKDEPOT_ALWAYS_INIT? >>> >>> Oh, sounds better. >>> >>> If we make CONFIG_SLUB_DEBUG_ON select STACK_DEPOT_ALWAYS_INIT, >>> that is simple solution. but stackdepot will be initialized on >>> slub_debug=- too. > > Valid point. > >>> But I think no one will set CONFIG_SLUB_DEBUG_ON=y if not debugging... >> >> If memory wasted by stack_table is a real concern, we may free it after >> parsing slub_debug or add a condition taking into account >> CONFIG_SLUB_DEBUG_ON and slub_debug=- to the >> >> if (slub_debug & SLAB_STORE_USER) >> stack_depot_want_early_init(); >> >> But I agree that if somebody runs a kernel with CONFIG_SLUB_DEBUG_ON=y, the >> goal is to have slub debugging on, so making CONFIG_SLUB_DEBUG_ON select >> STACK_DEPOT_ALWAYS_INIT totally makes sense to me. > > Agree. We had to decouple stackdpepot init from CONFIG_SLUB_DEBUG > because almost everyone enables CONFIG_SLUB_DEBUG by default, but on > smaller systems doesn't want to always pay the price even if unused. > But I don't expect anyone to enable CONFIG_SLUB_DEBUG_ON and then run > with slub_debug=- by default, and complain. If anyone like that exists, > they could also add the stackdepot_disable parameter. Pushed fixed version to https://git.kernel.org/cgit/linux/kernel/git/vbabka/linux.git slub-stackdepot-v3r1 for now As it's too late to target 5.18 now, will post v3 properly after merge window and add to slab-next towards 5.19 then. >>> I don't think making CONFIG_SLUB_DEBUG_ON depend on >>> CONFIG_STACKDEPOT_ALWAYS_INIT is good solution. only KASAN selects it. >>> >>> -- >>> Thank you, You are awesome! >>> Hyeonggon :-) >> >