On Sat, Nov 28, 2026 at 03:49:14AM +0000, netd…@kernel.org wrote:
> [Severity: High]
> The index is now correct. Can a late reply still call complete() on a
> returned stack frame if the remove task itself fails to queue?
Yes, but this isn't new. Before this patch, a timeout cleared slot 0
if the remove task was queued and nothing if it wasn't, so unless the
message was in slot 0, a late reply could reach the stack frame either
way. This patch fixes the queued case. The queue-full case is a
separate bug, where the return value of the remove task is ignored,
and is unchanged here.
> [Severity: Medium]
> Now that the exact callback result is used as an rsp_ring index, is the
> read of that result in ipc_task_queue_add_task() safe?
No, but this patch doesn't make it worse. A waiter that reads -1 already
returned an error while rsp_ring[index] still pointed at its response.
Before this patch, any other value led to slot 0 being cleared on a
timeout, which was already wrong.
Thanks,
David