Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796126559; b=AGQDDmikvR0V7aq4rrlNupJ7uVSmvCGLSz971a9bnd/pU9hsleAP/l/Xm8GCNLyVxgHn O6L8jstlSScvZO2ntYLzhCawOKAhvhSXO9gMpowge3ABfIIj1e/v96sX78l44DRw0DGzN JU3aZmRByqjxK+Y00omB/MXvcrshpOD6uiE59eic/+oRK+pCmf6nHsUxDbfz0PWV5xsjv MCX7tODSJgjeYMRgx8gtQxvOHGhHIKHgj4kOkQwLRrSMmGep1Ff4JbNywfnwknawWq9iR GVCmBEiG8X8ioeZTt0E4InHtpGcx1eLdS+qEmlz616i4kRqaOgvV4dgNh51Ca7ugfSw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796126559; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=mq5zo64b63gR//CZwWur30jsmZpd3p+478JKyuJLBDw=; b=pnCiR1kdyi4reELLwgYqX7JZ89X9Mw+wbJ/m/H688+P4PZA8xyNvD7Rj/c3p2WeI0dw6 XpA/DH9wizCcixzhd7DUHZNwc2k1/krZLIE92VGRgWBHZ9hwMEOBCRL9j0pU3DmFoG/1p h4RwYS3XQIcstEXvMI8iilcpzLptgiII12hbF6+oKHnQBjuC3AbK7uI/QlzpUlwCjIzAD uiesFtmS+EoF23+J04u3k/Xqf8HQMbtraTWNIkXhiVotM+yfrdUMxfKfBvUeZKeT4yxJA FuqgJ+RHesRyBWPekmUL/G57Xy5ajpyQHBmYfu8sDeCy74BXQenclCUVIFIwop4VFnw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VvlrzkyA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD546606A325; Tue, 1 Dec 2026 12:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VvlrzkyA Received: by smtp.kernel.org (Postfix) with ESMTPSA id C82DB1F000C1; Tue, 1 Dec 2026 12:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796126559; bh=mq5zo64b63gR//CZwWur30jsmZpd3p+478JKyuJLBDw=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=VvlrzkyAJG7cskY+qybydWcRV5H1iKGlocGwjpT7KaxoxnwS6YuOA7Y2HIbP33lcc kYA7H3gFGlmt/Au/GR9Etnlomk4L7fBWDcTMpcMvhyPDHB0AKCbrRtWLYcr9BmLLUW B+60h6FcHrH7upI0qPzjehmvEDMKjMNAhvqGetmMPJ7/BfGmhsaFrp6EiU99v5LIse lHJ6O2hDl5+5JGchkoE0T+ukp4ioGtYVU7cA9+1jHW32ryEGKPMbzrqO0CPP/Wo4Ur 5plep/PZ0FvZxJsUWfGeP/6BOe3yNIe7r3h4kWIEA7MlLJX9hvGU++S5kJM7d/wo5q leoY8eXgi6kGQ== From: Srinivas Kandagatla To: Ekansh Gupta , Arnd Bergmann , Greg Kroah-Hartman , Anandu Krishnan E , Vinayak Katoch Cc: Bharath Kumar , Chenna Kesava Raju , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, stable@vger.kernel.org In-Reply-To: <20261127-fix-put-work-irq-deadlock-v1-1-3aa66fe4f2c9@oss.qualcomm.com> References: <20261127-fix-put-work-irq-deadlock-v1-1-3aa66fe4f2c9@oss.qualcomm.com> Subject: Re: [PATCH] misc: fastrpc: make put_work scheduling lock-free Message-Id: <179612655757.44969.14911275802501042575.b4-ty@kernel.org> Date: Tue, 01 Dec 2026 12:02:37 +0000 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.3 On Fri, 27 Nov 2026 15:34:09 +0530, Vinayak Katoch wrote: > fastrpc_context_schedule_put_work() guards the once-only schedule_work() > with fl->lock. That helper is called from fastrpc_rpmsg_callback(), which > runs in hard-IRQ context on the glink rx interrupt, while every other > user of fl->lock takes it with a plain spin_lock() in process context > with interrupts enabled. > > If the glink interrupt fires on a CPU that is already holding fl->lock, > for example fastrpc_context_put_wq() -> fastrpc_context_free() or > fastrpc_free_map() running in a kworker on that CPU, the handler spins > on the lock the interrupted code holds. The holder can never run again, > so the CPU hangs with interrupts masked, an RCU stall is reported for > it, and the system is eventually reset by the watchdog. It is easy to > hit because schedule_work() queues onto the local CPU's worker pool, so > the worker that takes fl->lock tends to run on the very CPU that > receives the glink interrupt. > > [...] Applied, thanks! [1/1] misc: fastrpc: make put_work scheduling lock-free commit: a14e8ddc12f6f7ef91e4a6a7724783d66b7af63a Best regards, -- Srinivas Kandagatla