* [PATCH net] net: wwan: iosm: return the callback result of synchronous tasks
@ 2026-11-27 3:48 David Westen
0 siblings, 0 replies; only message in thread
From: David Westen @ 2026-11-27 3:48 UTC (permalink / raw)
To: netdev
Cc: Loic Poulain, Sergey Ryazanov, Johannes Berg, Andrew Lunn,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
M Chetan Kumar, David Westen
ipc_task_queue_send_task() is documented to return the callback's
result, but returns 0 whenever the callback succeeds.
ipc_protocol_msg_send() uses that result as the message ring slot that
points to its on-stack response, so a timeout clears slot 0 and leaves
the real slot pointing to the returned stack frame. A late reply then
calls complete() on it:
BUG: unable to handle page fault for address: fffffffffffffff8
RIP: 0010:complete+0x9c/0x2b0
Call Trace:
<IRQ>
ipc_protocol_msg_process
ipc_imem_tq_irq_cb
ipc_task_queue_handler
Return the callback result. The other callers see the same values as
before.
Reproduced on an XMM7360 by forcing pipe open and close timeouts.
Fixes: 3b575260cb86 ("net: iosm: bottom half")
Signed-off-by: David Westen <davidlwesten@gmail.com>
---
Notes:
The bug was found in an AI-assisted review of the driver. The
investigation, the test changes, the patch and this changelog were done
with an AI coding assistant (Claude Opus 5.5). I ran the tests and
reviewed the result.
drivers/net/wwan/iosm/iosm_ipc_task_queue.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/wwan/iosm/iosm_ipc_task_queue.c b/drivers/net/wwan/iosm/iosm_ipc_task_queue.c
index 7cb2f6a506d9..069075481825 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_task_queue.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_task_queue.c
@@ -162,10 +162,8 @@ int ipc_task_queue_send_task(struct iosm_imem *imem,
copy, size, is_copy);
if (is_copy)
kfree(copy);
- goto out;
}
- ret = 0;
out:
return ret;
}
--
2.56.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 3:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 3:48 [PATCH net] net: wwan: iosm: return the callback result of synchronous tasks David Westen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox