Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4913016rdb; Tue, 12 Dec 2023 12:57:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9laLbX7JNvQJdvVzSzECp1WLPPcojqgfhGYGjgk8YOXyrBkK2dB5siycy/PpptjTea1ph X-Received: by 2002:a05:6e02:12c5:b0:35d:a8c0:8c94 with SMTP id i5-20020a056e0212c500b0035da8c08c94mr5798213ilm.107.1702414670507; Tue, 12 Dec 2023 12:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702414670; cv=none; d=google.com; s=arc-20160816; b=Yid6XPRtj/CssPmOu7Sj7uEjMEMrpDPyX9knBp8OTzPKSywMW3BbpZFGNBCd1w6w+p Rfg99TOm2k9MLHMnv1uWc6acziQuDLFnEiVdwI8F3Cijg6OxnhxU1cQd+k5p/wWD4whN xS+6gJIyvdUtSzcbuq6awO5/ISzOZvn/oQe+fXCNjiInwkU/Qua9qRtph1T/4Yo8Nxc+ nkCnGcUp5nO6ZocgCTvRnRbtofNCmbrkFxD6VkMiVBkR1sVPXn1d0lCwYeefCny2/n3H xYx61IVjAQgshjy9K5xji+bALa7EbpJnWY6OkPkRaCNW1ULPCuuERb6IFFEIiuRzrR8L aGmA== 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:date :dkim-signature; bh=dZJyZJLfQ6WgMHyGRVy4d5YLSkHOLPELn3w4IYaCN+Q=; fh=j+yJCijhZvypIl3NyKfHIn3cObmCdYCuiEiUtWohkkU=; b=h1FAMPIs3H+gACo4/vv7tqMGG00TCLWOPoeCOK7YfM/9e+JzoHUF6fgKoo+nJcj9DH jGLY/8or2P8GqAOm/YQX3etGWgTTlvgWdwyEGalzBxVK5rcQEb5aTVWoipDwobx/53u2 6IGpM1gQCXsH68tcsVDQCsVj2Lw3Cx4s8/YoIL7IWW7n0iWmbhWvAC0NCiFFAcOBXU0a VE1cRecTQLLGw6QilUZcuhtvp0CNIFanYacLZvuv2bXIz+EQ+n8vJPakPDBf9BD3a7Wz PZTzwKx4ABLSML86DnIrMuvvn1yFQSJQ+7n99jlFWDbJyuHznryT+BpO3RWBNXMuyzQv PnQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=e7knbxJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j12-20020a65428c000000b0059779ae58a0si8288572pgp.465.2023.12.12.12.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 12:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=e7knbxJn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CC8A88058A0C; Tue, 12 Dec 2023 12:57:47 -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 S1377393AbjLLU5Z (ORCPT + 99 others); Tue, 12 Dec 2023 15:57:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbjLLU5Y (ORCPT ); Tue, 12 Dec 2023 15:57:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5DB9C for ; Tue, 12 Dec 2023 12:57:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A61C433D9; Tue, 12 Dec 2023 20:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1702414650; bh=KLAi6edpD/jz7hYCHpCfsvUM9M3DmKv0l7/YKtSRRC8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=e7knbxJnlbITSwa0iGhG6i91+F3Jm8V7PLb0TQb8ioXWTpV/yQ8N1WUZXMKgYjljy 4OhppAYwgmv3NVXgay3I68ggS+37mBJobmt6vwEYHk4L+hghB7SgpxKdl3Gbkr1VAn MKYL8GId9UIgPJH6AhB77js/cfv15K7trRI6WVPU= Date: Tue, 12 Dec 2023 12:57:28 -0800 From: Andrew Morton To: Marco Elver Cc: andrey.konovalov@linux.dev, Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Tetsuo Handa , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: Re: [PATCH mm 1/4] lib/stackdepot: add printk_deferred_enter/exit guards Message-Id: <20231212125728.1a275e704db4a5f5ca30e15c@linux-foundation.org> In-Reply-To: References: <6c38c31e304a55449f76f60b6f72e35f992cad99.1702339432.git.andreyknvl@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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]); Tue, 12 Dec 2023 12:57:48 -0800 (PST) On Tue, 12 Dec 2023 19:59:29 +0100 Marco Elver wrote: > On Tue, 12 Dec 2023 at 01:14, wrote: > > > > From: Andrey Konovalov > > > > Stack depot functions can be called from various contexts that do > > allocations, including with console locks taken. At the same time, stack > > depot functions might print WARNING's or refcount-related failures. > > > > This can cause a deadlock on console locks. > > > > Add printk_deferred_enter/exit guards to stack depot to avoid this. > > > > Reported-by: Tetsuo Handa > > Closes: https://lore.kernel.org/all/000000000000f56750060b9ad216@google.com/ > > Signed-off-by: Andrey Konovalov > > Reviewed-by: Marco Elver > > Doesn't need Fixes, because the series is not yet in mainline, right? I've moved the series "stackdepot: allow evicting stack traces, v4" (please, not "the stack depot eviction series") into mm-nonmm-stable. Which is allegedly non-rebasing. So yes please, provide Fixes: on each patch.