Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5360844rdb; Wed, 13 Dec 2023 06:42:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJQe0RB5l+lXrn3M0a4pejgmL7/mH59DiGjcOkL2/SQZkNuS1KbSVHrzHVDfbe0rsqVEN2 X-Received: by 2002:a17:903:2283:b0:1d0:5531:ef8 with SMTP id b3-20020a170903228300b001d055310ef8mr8028915plh.22.1702478532330; Wed, 13 Dec 2023 06:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702478532; cv=none; d=google.com; s=arc-20160816; b=nWmcMcxynbKm/ViG3jfI+O/vTXzsnwMMc/P4P2fTcEInZHxZze/DvsA/gg2k0IDhjQ qCgW4fFIOza20NFuV0QsxnEQ+NflDGfV0t9lklif7Kk7apBWZ4VgU5b1gE3Q2CmLNLE8 DuDztKbgECjfddU42ooLrOHfdLr0IH0nNOOVPUem1Ef5JNkMlMt151stb+9XjheXSjHu dcUB402SNjesfYCGRyNFDhyMcVWGMOKQVW9J5kFvTTXI5QHdGPeTUjzAYtalr+OZ4NP0 FG991PqceqbxuKXvwKl/+g+1btX0Js7pRLTDculVx7m2bIXfRaoxCarV4niNcZTAlQNW 96qA== 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=ti4WWgukFD9JVeDjV7lFsBG44Mu7OstpF0433QBdo70=; fh=4GoNHihhI+tWJF1NFLFnJ4ihTBuEzThq1lQaveLpqU4=; b=b0MszjUJI7o+D0SRxX9lKPgqorXEgvE5jyof6Ba02QuWFvGWRrPMmIuegTP4d6zH2/ I/QL2/94nV37/mZlhZ1rvHMpVuJsPo3PpcjM4MfrRBE119J9OTmQ+9T9haZgciORhWES hKU1yXi6M+XjvWWyA5KWwSWNMWYNvY/AVKxMVKkSulVEJZ1Vf/mHE1nshFunjp7SoBUT OyZnPDkg9mI9T7Rd7hjPDWB2B6CewGgTwHECBvLDYPvYmh4+VhFUWpqdZWiHnWyIsWOj u6tWXV3SQHuy16vHMvTCd7zDL8TVFaXn3gwbNJ1GibEIGAypRvtAc7IdhQQTUjcM9qfP 1jTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=e6dNv0U0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c1-20020a170902aa4100b001d1d8b620c0si9259257plr.620.2023.12.13.06.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:42:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=e6dNv0U0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 5669C80C4D46; Wed, 13 Dec 2023 06:42:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441991AbjLMOlu (ORCPT + 99 others); Wed, 13 Dec 2023 09:41:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441994AbjLMOlt (ORCPT ); Wed, 13 Dec 2023 09:41:49 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D56B0 for ; Wed, 13 Dec 2023 06:41:55 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5c66e7eafabso5740305a12.0 for ; Wed, 13 Dec 2023 06:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702478515; x=1703083315; 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=ti4WWgukFD9JVeDjV7lFsBG44Mu7OstpF0433QBdo70=; b=e6dNv0U0zyGfzRgX1MVlgtOeX6pIzmVt3lwdd+HfLaUOEmYJ5OL/uh2y1tdLZe9mAi ahnHmUcQKlyNrSODG/Q98wPhn7fibVJJd16N2IrXNvvp3Wa0HBBLOYg/qMW9dGsP0RPI fN9LamdFCo6rA3O1p3WFzwgJ69XfRC5OLrBLwh15HzDoDV/tGYeC5PeW3IQG4NTWFxVO +i3dfAfwP1hcypyTGsB8BnWRXUHGdl37nAvXHXxGz3SN0aHy6WSxe1CErsO/AcE/eyv6 oJRk1gBlwHYnzzW9nUqvc3VopJvtprVv+KYuuJO+7jNAUfOWX+iVB8ysVRZzkds5ktSc 6mUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702478515; x=1703083315; 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=ti4WWgukFD9JVeDjV7lFsBG44Mu7OstpF0433QBdo70=; b=N2RM7Kl3/++a/bChABC8D3h/cQIn0jC1VQIu8GfaA6+mBI/ugA554/harmzBKuW75f wB5N6anpy7bz6FBVmXn+aK2U88QBS373g9x2UBdyCZgV2zeZUyk45OhLWynfnZy/7ZW7 T+q2IYG+R//dQeSsKb+EeMSH0t/+Eia/QMI8JYLh/W3jF8Tj9GLdQH5h/3zbKjHXrQjk TyB/5OC/B2K7lsCvdAaj+1zfJIyUW3h//umUJQgvEyFlgUeennA9GYE0tuUKyVEAaQVw PePFrGYij6dLhAnSWppdosyfcaP2+OpZoqQVc6Zj2Qvi+ovkUNYW/w20zvDzDdvu58yi 2jsQ== X-Gm-Message-State: AOJu0YwjQ6MqOE7w+NOh+jwEzRDpqJHFmjoTH4E38YVVJNg8zTeoGv8F qVSOJEmcfATFU8kA2MbFXnn7M8syIgJQjEWNIpY= X-Received: by 2002:a05:6a20:9706:b0:18a:e86f:f246 with SMTP id hr6-20020a056a20970600b0018ae86ff246mr7813053pzc.10.1702478515453; Wed, 13 Dec 2023 06:41:55 -0800 (PST) MIME-Version: 1.0 References: <6c38c31e304a55449f76f60b6f72e35f992cad99.1702339432.git.andreyknvl@google.com> <20231212125728.1a275e704db4a5f5ca30e15c@linux-foundation.org> In-Reply-To: <20231212125728.1a275e704db4a5f5ca30e15c@linux-foundation.org> From: Andrey Konovalov Date: Wed, 13 Dec 2023 15:41:44 +0100 Message-ID: Subject: Re: [PATCH mm 1/4] lib/stackdepot: add printk_deferred_enter/exit guards To: Andrew Morton Cc: Marco Elver , andrey.konovalov@linux.dev, 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 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:42:07 -0800 (PST) On Tue, Dec 12, 2023 at 9:57=E2=80=AFPM Andrew Morton wrote: > > 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, st= ack > > > 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@goog= le.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. Sure, I'll add them when I mail v2 after we figure out what to do with patch #2. Thanks!