Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1054661rdf; Wed, 22 Nov 2023 04:38:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgnXYc4gU1jrK4SeqGdyB9sJ7FERG73hpjISFhYnIqAg/eEKXVho/BHDRKpAett8HmpbWH X-Received: by 2002:a05:6e02:1a0c:b0:35a:f493:5667 with SMTP id s12-20020a056e021a0c00b0035af4935667mr2188597ild.20.1700656705785; Wed, 22 Nov 2023 04:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700656705; cv=none; d=google.com; s=arc-20160816; b=qUhmiWFF7MEfui00nU4/qcDQ7E0UQp2IyQPA6QayrwSSJ2qa5TEd1uomW/TRsPFpCZ gznKgS9sQaByrAzzBPd3aaX3+3S4UJRldxdy5tcq/hOeMeYo0z8Gs1gbhDq5TJcGB+vt MKG/2p76yex6n39fLWv/6A9OGpfD8dfa1M+jBiCiZD0eaGs1rtPdd+Jfd0CATWORT5HM T8t5UqMP91HUpfJ3EoGdvzayhmxhZaFDDHjPrQj3P2l/hmWPsOzM+qvWc6IW+TldB8i5 wuTujiAfFkgu/BxW6uFKwXxi1l4QVHwuTonhoX4PdqOMfeedZkJnk4OpXHZH0kp2/02G LbuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=47LDcSAfuEcl+L6+R5MtrU7Ds/aa57XUWW6702q4oOE=; fh=AzPFh6Rre3Ch5CqfGYMsrICBkpkRPKUkO/eDUAZOClc=; b=gUWRvEG1qtgXR6bmHiO1V4OZA1150erll05zWVdxoihdLfDFfx4oFcl4Ew5bJNEEKa iM4/vYDUfcfzfidqvQhvjd5YY6lqxSlgRxiohFKQSoKuj+hBjvQ3xWPBw3v0q/8S4zZZ +MV0IZqV0W7dt4wbnGPy5IQ54dbGqVoxq3i5a8z/Ky0Au3c7vUHhykl4bNxWHqnl6q3S Mwhnx9CjxpHPOuK6uggHyYMo4EP6MEm8a4Z7Zk6jCzCNwjMKsagvXihLsdoMLlpWMxUs EljBcIkVsZ5ZDGSkJmGnH6DFVgqV6Li7G8lVGbmvmlnbpU+bnrOHFeNcHJRJJjWYIx/B 9Huw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X6MRJ5TF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bm2-20020a656e82000000b005acf0458523si12706659pgb.612.2023.11.22.04.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 04:38:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X6MRJ5TF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C1DF281113B4; Wed, 22 Nov 2023 04:38:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343747AbjKVMiM (ORCPT + 99 others); Wed, 22 Nov 2023 07:38:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbjKVMiL (ORCPT ); Wed, 22 Nov 2023 07:38:11 -0500 Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71688E7 for ; Wed, 22 Nov 2023 04:38:07 -0800 (PST) Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-7c43ca1b178so192612241.3 for ; Wed, 22 Nov 2023 04:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700656686; x=1701261486; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=47LDcSAfuEcl+L6+R5MtrU7Ds/aa57XUWW6702q4oOE=; b=X6MRJ5TFbVX5FLcagwIBSYK/LVs/8E7uVRAl9V0UoZ6k18A2WUsDzHx7XOW8L2DY5Q +26Xc1s+dXdFi0FBwAjdzfICZKOXaYeSjlKr4RNNTORLHP2S6IOI2/7aqaeVTDbwWNtF BSTVygZUbgDTcLJ87cBfpmTju3KABbsKOUCTfq9fBRdlkSblDyAgxMB3lQ6v5+DJgrOF t5FYniPydJ8HyUtTEv8wvvdyIfBFLQM/cvLEdGLWE1RAOC6yLu/vImZDDSRMkFYxU11Z 4qz6xo/7MPodGfLBZgXTmMJqFVc2aBisKgXp3UIppHRSJRjTPDd8fvMWpE0D50de1FsT s0Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700656686; x=1701261486; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=47LDcSAfuEcl+L6+R5MtrU7Ds/aa57XUWW6702q4oOE=; b=vvmODfxcX1CwXzwA74lzKcPO4yYnrDC7nVplXI6/pKbp8pGJxbhQsEovi0llTrfdBz Hb5XqrUlLRIovxXW6jEqLaNvNlUBMfvV/DzJKYKSryR71zIS+6TDEKAEyvPxxyvNJCSn 0Z2zScZfEiRVKbSi474S3z5k0sE/fuYgENMaC5ziQiGp7EBLB35Num9vr/r2dLFZ3N7u NxfXy+GMzk2F2CccAmsrsyYskMGmbhLZ+txj7Vi9f+/lNgGH0bVbS1ZbnQx6BIwoFKUu kPK0Z2VUDa+SSJ8gS104WBPNe1dyTlKnq0mayEadZIoLgibSl5ekPiaC3xUamPo0Xx7+ dPWQ== X-Gm-Message-State: AOJu0Yxr2QvEPdUWqaR9RAr3Jjn5dDkwZbYwbeDZoLuKkJoSNlS1mR5R U+szAhZJro+aTMO2LHRNL5LvyKoDAyRmLEB8XGs= X-Received: by 2002:a1f:cb86:0:b0:49d:c1f5:d491 with SMTP id b128-20020a1fcb86000000b0049dc1f5d491mr2245888vkg.15.1700656686405; Wed, 22 Nov 2023 04:38:06 -0800 (PST) MIME-Version: 1.0 References: <5cef104d9b842899489b4054fe8d1339a71acee0.1700502145.git.andreyknvl@google.com> In-Reply-To: From: Hyeonggon Yoo <42.hyeyoo@gmail.com> Date: Wed, 22 Nov 2023 21:37:53 +0900 Message-ID: Subject: [REGRESSION] Boot hangs when SLUB_DEBUG_ON=y and KASAN_GENERIC=y To: andrey.konovalov@linux.dev Cc: Andrew Morton , Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev , Evgenii Stepanov , Oscar Salvador , Linux Memory Management List , LKML , Andrey Konovalov , regressions@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 04:38:22 -0800 (PST) On Wed, Nov 22, 2023 at 12:17=E2=80=AFPM Hyeonggon Yoo <42.hyeyoo@gmail.com= > wrote: > > On Tue, Nov 21, 2023 at 1:08=E2=80=AFPM wrot= e: > > > > From: Andrey Konovalov > > > > Evict alloc/free stack traces from the stack depot for Generic KASAN > > once they are evicted from the quaratine. > > > > For auxiliary stack traces, evict the oldest stack trace once a new one > > is saved (KASAN only keeps references to the last two). > > > > Also evict all saved stack traces on krealloc. > > > > To avoid double-evicting and mis-evicting stack traces (in case KASAN's > > metadata was corrupted), reset KASAN's per-object metadata that stores > > stack depot handles when the object is initialized and when it's evicte= d > > from the quarantine. > > > > Note that stack_depot_put is no-op if the handle is 0. > > > > Reviewed-by: Marco Elver > > Signed-off-by: Andrey Konovalov > > I observed boot hangs on a few SLUB configurations. > > Having other users of stackdepot might be the cause. After passing > 'slub_debug=3D-' which disables SLUB debugging, it boots fine. Looks like I forgot to Cc regzbot. If you need more information, please let me know. #regzbot introduced: f0ff84b7c3a Thanks, Hyeonggon > compiler version: gcc-11 > config: https://download.kerneltesting.org/builds/2023-11-21-f121f2/.conf= ig > bisect log: https://download.kerneltesting.org/builds/2023-11-21-f121f2/b= isect.log.txt > > [dmesg] > (gdb) lx-dmesg > [ 0.000000] Linux version 6.7.0-rc1-00136-g0e8b630f3053 > (hyeyoo@localhost.localdomain) (gcc (GCC) 11.3.1 20221121 (R3[ > 0.000000] Command line: console=3DttyS0 root=3D/dev/sda1 nokaslr > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted > 6.7.0-rc1-00136-g0e8b630f3053 #22 > [ 0.000000] RIP: 0010:setup_arch+0x500/0x2250 > [ 0.000000] Code: c6 09 08 00 48 89 c5 48 85 c0 0f 84 58 13 00 00 > 48 c1 e8 03 48 83 05 be 97 66 00 01 80 3c 18 00 0f3[ 0.000000] RSP: > 0000:ffffffff86007e00 EFLAGS: 00010046 ORIG_RAX: 0000000000000009 > [ 0.000000] RAX: 1fffffffffe40088 RBX: dffffc0000000000 RCX: 1ffffffff= 11ed630 > [ 0.000000] RDX: 0000000000000000 RSI: feec4698e8103000 RDI: ffffffff8= 8f6b180 > [ 0.000000] RBP: ffffffffff200444 R08: 8000000000000163 R09: 1ffffffff= 11ed628 > [ 0.000000] R10: ffffffff88f7a150 R11: 0000000000000000 R12: 000000000= 0000010 > [ 0.000000] R13: ffffffffff200450 R14: feec4698e8102444 R15: feec4698e= 8102444 > [ 0.000000] FS: 0000000000000000(0000) GS:ffffffff88d5b000(0000) > knlGS:0000000000000000 > [ 0.000000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 0.000000] CR2: ffffffffff200444 CR3: 0000000008f0e000 CR4: 000000000= 00000b0 > [ 0.000000] Call Trace: > [ 0.000000] > [ 0.000000] ? show_regs+0x87/0xa0 > [ 0.000000] ? early_fixup_exception+0x130/0x310 > [ 0.000000] ? do_early_exception+0x23/0x90 > [ 0.000000] ? early_idt_handler_common+0x2f/0x40 > [ 0.000000] ? setup_arch+0x500/0x2250 > [ 0.000000] ? __pfx_setup_arch+0x10/0x10 > [ 0.000000] ? vprintk_default+0x20/0x30 > [ 0.000000] ? vprintk+0x4c/0x80 > [ 0.000000] ? _printk+0xba/0xf0 > [ 0.000000] ? __pfx__printk+0x10/0x10 > [ 0.000000] ? init_cgroup_root+0x10f/0x2f0 > --Type for more, q to quit, c to continue without paging-- > [ 0.000000] ? cgroup_init_early+0x1e4/0x440 > [ 0.000000] ? start_kernel+0xae/0x790 > [ 0.000000] ? x86_64_start_reservations+0x28/0x50 > [ 0.000000] ? x86_64_start_kernel+0x10e/0x130 > [ 0.000000] ? secondary_startup_64_no_verify+0x178/0x17b > [ 0.000000]