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 X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C29AC433B4 for ; Sat, 15 May 2021 23:19:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 33E4861289 for ; Sat, 15 May 2021 23:19:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33E4861289 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 984306B0070; Sat, 15 May 2021 19:19:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 95CC56B0071; Sat, 15 May 2021 19:19:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 84B106B0072; Sat, 15 May 2021 19:19:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0006.hostedemail.com [216.40.44.6]) by kanga.kvack.org (Postfix) with ESMTP id 52BFF6B0070 for ; Sat, 15 May 2021 19:19:33 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id DD9BEA8F6 for ; Sat, 15 May 2021 23:19:32 +0000 (UTC) X-FDA: 78145034184.09.B69E46E Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf07.hostedemail.com (Postfix) with ESMTP id 2D8A9A0000FC for ; Sat, 15 May 2021 23:19:31 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 6BEA761289; Sat, 15 May 2021 23:19:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621120766; bh=1KA+yRG7lNb2frG45ynfDXbIDn18ohy7oZkqwoBxdL0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=lp4IcVtSFGOnzvPd+SzPr2z7lt/owAJpamTC0AsPiqXUGPa80gr6lSGr90LGUpRmJ 4b0B22jMUt38QeV9WIujHI5ofU1HGk5DbXmIcSdOyC8cDLO61CG0UnJp3USl/8AOVH gH8lhLKeoakmB885Xio3iD5rha4xRddoNdQjxspon+1CbArRlsqA5Ap3SmUp+cpk3t 3IQuAwo4lIijuEJCi9bWWCBsj8FGLWy5tVHZs+IxUbLFWsWsKGenPJx3B/c5SCfLMM 5FzjMJa9u5U79iH1NtfJWw82lVRbKWgLFOAsfdUYTewVAWhVJZi+Bljq442imIBAPh //bWH0cQeapcA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 344105C064E; Sat, 15 May 2021 16:19:26 -0700 (PDT) Date: Sat, 15 May 2021 16:19:26 -0700 From: "Paul E. McKenney" To: Vlastimil Babka Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, ming.lei@redhat.com, riel@fb.com, jweiner@fb.com, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, glittao@gmail.com Subject: Re: [BUG] Shudown-time lockdep splat in next-20210514 Message-ID: <20210515231926.GB4441@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210515204622.GA2672367@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 2D8A9A0000FC Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lp4IcVtS; spf=pass (imf07.hostedemail.com: domain of "SRS0=ic6J=KK=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org" designates 198.145.29.99 as permitted sender) smtp.mailfrom="SRS0=ic6J=KK=paulmck-ThinkPad-P17-Gen-1.home=paulmck@kernel.org"; dmarc=pass (policy=none) header.from=kernel.org X-Rspamd-Server: rspam04 X-Stat-Signature: e4sj5rcfy8nd9g73wz6fhhcic84rxkit X-HE-Tag: 1621120771-25201 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 Sat, May 15, 2021 at 11:09:13PM +0200, Vlastimil Babka wrote: > On 5/15/21 10:46 PM, Paul E. McKenney wrote: > > Hello! > > > > I am seeing the following lockdep splat in next-20210514. It happens > > at shutdown time in all rcutorture scenarios that enable lockdep. It > > happens consistently on 2-hour runs, and I am trying it on shorter runs. > > If it reproduces nicely, I will try bisection. > > > > In the meantime, does this ring a bell for anyone? > > Hm, I think it will be > ad36bafb3bcdf mm/slub: use stackdepot to save stack trace in objects > > can you try this please? > > diff --git a/mm/slub.c b/mm/slub.c > index 6b896b8c36f0..04824dae2e32 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -623,7 +623,7 @@ static void set_track(struct kmem_cache *s, void *object, > > if (addr) { > #ifdef CONFIG_STACKDEPOT > - p->handle = save_stack_depot_trace(GFP_KERNEL); > + p->handle = save_stack_depot_trace(GFP_NOWAIT); > #endif > p->addr = addr; > p->cpu = smp_processor_id(); Works like a charm! Tested-by: Paul E. McKenney Thanx, Paul