Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp253635rdd; Wed, 22 Nov 2023 15:13:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCUdCz/2LlSIG3cCzmh8Xo5KsYbQ/gpMIo/wtiasKeM4ffP9PXQAKWcQDX74GnDFLiCV3E X-Received: by 2002:a05:6808:d1:b0:3a9:ba39:6d6e with SMTP id t17-20020a05680800d100b003a9ba396d6emr4336885oic.0.1700694806754; Wed, 22 Nov 2023 15:13:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700694806; cv=none; d=google.com; s=arc-20160816; b=FLFniO1LT/B3f91lp50UGyuBsq+HtAQ/XGmQFQJdDmpCov9yS9AuvUSGa3rWNitc68 9C5TeDpPKG/j6PubB832lOOmdrclpaxkyatfO7ewnBroAv9nl8Ru4e4roUKIMXIcsvr/ PAFrAWifD27MMcaWLHpkByKh0+z5wyXea8GWa9I99RXXRo4Ya7H+DnphutZ2b4y2ygwt 8isJvngQ3oKbtVFh+qGkq2q2OQQTU1JvBAbEb/9dzK7UbCKy2pXjPprNH37hkVF+GOAP FSvtHADD6kUx578zzxdeKdiR+MBcKzm+2CAH/Y84iZwqsh2dBM0J9SY3duM0t8zODAH4 4UPw== 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=Nwznl9KTGkJM5XPuI3izDsWPQdxM5T7uw0a2p5x8c0w=; fh=NCHtEozBmskezwQJYaDd8FyKLYTfvS+9oxv91JlPuYk=; b=y3jbbGXr4iMxDKxfSyyCwiD9HPoBlSJQ/c1Xe9Hk35tAcszw3SdQNyNDhfWwlVvE5e W1vTwMfc0qhlf0AypdOjRL8fLyMHrlqPlr4jy4OJ75yx3zK2UbmZEtfKrNnfO77tVlq+ qvBgIRrqkbbZaxDfrIR5zQjzerUDkKeJyXygvam2C8NEjxnX97EA/rYQx2aAPpsz2WAJ zz65reLbKTvgJ/+p2TKSosNoyA7TDADqavMqzoEQaKE7BwvI/3+5R/FNmo68YsyTKZ6Y 2vpLP3fV8U4TcAyozk6nRkHW9g63t89WFoauPo2fRG5SkdudCaAhA0SIcWuFqiLP/eWD AxNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aNDnyVO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h27-20020a63531b000000b005c179c0075dsi74614pgb.883.2023.11.22.15.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:13:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aNDnyVO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 30F33822B2E9; Wed, 22 Nov 2023 15:13:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233574AbjKVXNQ (ORCPT + 99 others); Wed, 22 Nov 2023 18:13:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjKVXNP (ORCPT ); Wed, 22 Nov 2023 18:13:15 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0286D8 for ; Wed, 22 Nov 2023 15:13:11 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1cf897c8de1so1738615ad.0 for ; Wed, 22 Nov 2023 15:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700694791; x=1701299591; 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=Nwznl9KTGkJM5XPuI3izDsWPQdxM5T7uw0a2p5x8c0w=; b=aNDnyVO3t/phxPKhbMBku1r2qL12Wy0WAs/hoUpijyIe9EkDu1WxNKLm4c+C9n77T3 5ki4itmuucUnd5dfYVHTWbrnAfxmQ4Ay3RNvAjm3XK2q9PfMxS4UTxlnO/MjT6m7BAko 7iDdugljrG4DT2FXjODOca3S0KY2EcG3mwsWgAs9IpjU0+oNjvngnTS5MzlgegIfk8QL p61YHvXtRe9qANdU6tebwDPYHEPYWzQ9vB6GyaUzAAR1ykuCjZbzly4ZxzeouTsH3tYc P+zjGQq++YynCWPKpLxc7BL4raq4QkmE2Xpc227l6S+bzJK0Oo9iAn+0w06UKKX2W6Q4 5HIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700694791; x=1701299591; 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=Nwznl9KTGkJM5XPuI3izDsWPQdxM5T7uw0a2p5x8c0w=; b=VvffK0RiIyyUQmAJ2TKOMGbUH2ZMztmt4MJstowxMpsesNwMt9Ep2D6T31IzAvsjdD Eplmj96c5Bwd/0oeGsnTewvfS5d37ZKZ4r6NsjYacN2+iUQDpZ84sOA4B0LaFpWZgm8m OfxLur41jpNYfvLBkh5k4gweqNTw6PJW3hnkQeQjmSip6Sw2eDCtl8Lm9Prc4szOBPxZ Wk18/0MdLRop8f5d92eGOea09ob99rjk9URPjpCPmQWRa9l5wVC64pNmij1b/dlD3Dsj fobDN9CUpCO2TVr/4BpHzfQJkOet3E4F/GESJD3VBcnCGpd9u/dQuPorvFxJNU5ACVxl fNOg== X-Gm-Message-State: AOJu0YxnmDcnqcRrHSDzyKN0CoH9Ito+ZDjTIcT+jjR/vvLnnLH9tUbj TCRaSL7DqqKbtZANCHrDrcloXLi3ySZ3fD0Xn30= X-Received: by 2002:a17:90b:38c8:b0:280:14ac:a6db with SMTP id nn8-20020a17090b38c800b0028014aca6dbmr4019309pjb.18.1700694790978; Wed, 22 Nov 2023 15:13:10 -0800 (PST) MIME-Version: 1.0 References: <5cef104d9b842899489b4054fe8d1339a71acee0.1700502145.git.andreyknvl@google.com> In-Reply-To: From: Andrey Konovalov Date: Thu, 23 Nov 2023 00:13:00 +0100 Message-ID: Subject: Re: [BISECTED] Boot hangs when SLUB_DEBUG_ON=y To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: andrey.konovalov@linux.dev, Andrew Morton , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev , Evgenii Stepanov , Oscar Salvador , Linux Memory Management List , LKML , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:13:24 -0800 (PST) On Wed, Nov 22, 2023 at 4:17=E2=80=AFAM 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. Hi Hyeonggon, Just mailed a fix. Thank you for the report!