Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3516017rdb; Wed, 27 Dec 2023 09:45:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzItYSA308obWHU5QScdqS5ZP0qORqp7FUIRaDBhx1NyNrNoKx1Wi7bjjut3rN2vHcPaCb X-Received: by 2002:a50:9ee3:0:b0:552:2b83:42e3 with SMTP id a90-20020a509ee3000000b005522b8342e3mr5478712edf.41.1703699112210; Wed, 27 Dec 2023 09:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703699112; cv=none; d=google.com; s=arc-20160816; b=dnV4r+IyY38ZwH2saXzHVqGNUnFUo8wz/iwLCZLB2SjDrbGYT38RHrLJ1pSK69G6G7 5bhg8UKm9ApYtHEuQBLmdzuTuZlU5ZBUTovZrpgdgD8x8IWRuJNIaJ9Bw9JgJsYBDD+R SaIVbhJ3BJEK4jgtXo4gfQHx3zWpXcwDPovmlqF/Sx5teRAw5kRyJcqC7CK/hEppuffx qsQBQWo5i21X7oxXTbo8lRrkxBJey+svJNRe7PJxwNdRjGNMi28gBwBURdfRYp4gH6zz zGqrox9PR7plPGTKlKv1rdkDaTu+WDWn2lTXfT/baMM4bM03KyQa+erOpFlXhRY0ynUM fnwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=IijGyDJlNdIFWsVBwI/OZtAC73/0ucV8TiF4nNbafsQ=; fh=M5+f4TzCbqV8/qi/NZKpvA5mi82Hu4F3kTza2DV/m8M=; b=OLxh4Gs1MzV431/HMeF8v7NoWZYTBcSOqnHhxsWugvJTpqET3pxgpZGGP+14v1isSd bV62Z9MPssK92MSrX/yb1r2NW5hOvZuHY37NagMkjwf9bzHqQ0V+RH+cLsAeyWP4EB0M IEvnplKyaadGW18O2riAQ6evm/zJWvpC58RUZAzxt+NXZGms9dmpSDQb1/qhpgx5k6Yx naAaPTuAVBAphqSElvjDyBEACZlzqpofB/5L86n9fMIUS7xw0OPOtMSDBV+pRL2aQ+X2 zrI38d4rmV/Eo3+JNNIomlEb05Zk3YFvv3QKEV4LAfPabqQ3q2JpBfYcOCXq5jKUQ5Rg 5uRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12186-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d22-20020a50f696000000b00554fafea2besi1976079edn.114.2023.12.27.09.45.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 09:45:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12186-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EFF181F212DA for ; Wed, 27 Dec 2023 17:45:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5E8B46540; Wed, 27 Dec 2023 17:45:04 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09C8746524; Wed, 27 Dec 2023 17:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-6dbca8c6eeeso1109332a34.1; Wed, 27 Dec 2023 09:45:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703699102; x=1704303902; 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=IijGyDJlNdIFWsVBwI/OZtAC73/0ucV8TiF4nNbafsQ=; b=N2FQakHUnSzgkmI4UylhwnWI0grw/x5uddZG+Ie9Md6qgAhabr5ytiboTFjafwGBEL hyXpw5PaSHBsjrCvJhXsoZhQaVmI1w8EWBtt/xQp3BjModg/fsERmNCzUxM9s9htlU5m xBKx8Io/ENa6ZYiLIXCb3zD4cUZE+UK8AnuU+m/B0S7FiIXEaRW/r+udt0okMUcRFXjy I8mBYUHEod/vtEi7pLXaQtMrE6UoWy0zY+VUAuVUilVBv7lpLjKZrKvT2ohtCBao4wFN pXj3eiCt/JOIfY7ZW+t2WHCg1l1GssZ6SGrYQjYCiAYHuXx5z+w+/YkXWC4dJ5RnuIrx ckjA== X-Gm-Message-State: AOJu0YxkMDc5cavLkp9LuJ1LUyyAYqe0s0l7XWkMh0yxWKIqUdAEsoj/ 5ONY9Q9C1TJ2qVdqQw11OWGT2gPj8HdIiNHxI+c= X-Received: by 2002:a05:6820:358:b0:593:fbd5:10aa with SMTP id m24-20020a056820035800b00593fbd510aamr12501632ooe.1.1703699102027; Wed, 27 Dec 2023 09:45:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2023122701-mortify-deed-4e66@gregkh> In-Reply-To: <2023122701-mortify-deed-4e66@gregkh> From: "Rafael J. Wysocki" Date: Wed, 27 Dec 2023 18:44:51 +0100 Message-ID: Subject: Re: [BUG] mutex deadlock of dpm_resume() in low memory situation To: Greg KH Cc: Youngmin Nam , rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, d7271.choe@samsung.com, janghyuck.kim@samsung.com, hyesoo.yu@samsung.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023 at 5:08=E2=80=AFPM Greg KH wrote: > > On Wed, Dec 27, 2023 at 05:42:50PM +0900, Youngmin Nam wrote: > > Could you look into this issue ? > > Can you submit a patch that resolves the issue for you, as you have a > way to actually test this out? That would be the quickest way to get it > resolved, and to help confirm that this is even an issue at all. This is a real problem, unfortunately, and the fix would require some infra changes AFAICS. To address it, we would need a variant of async_schedule_node_domain() that would bail out on low memory instead of attempting to run the stuff synchronously which is harmful (not just for the deadlock reason) in the suspend-resume paths. I'll try to cut a test patch shortly.