From: "David Westen" <davidlwesten@gmail.com>
To: <netdev-bot+sashiko@kernel.org>, <davidlwesten@gmail.com>
Cc: <netdev@vger.kernel.org>, <loic.poulain@oss.qualcomm.com>,
<ryazanov.s.a@gmail.com>, <johannes@sipsolutions.net>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@kernel.org>, <kuba@kernel.org>, <pabeni@redhat.com>,
<m.chetan.kumar@intel.com>
Subject: Re: [PATCH net] net: wwan: iosm: return the callback result of synchronous tasks
Date: Sat, 28 Nov 2026 08:32:20 -0800 [thread overview]
Message-ID: <DN6ZL0TMFP2Z.IJRMRCHH07ME@gmail.com> (raw)
In-Reply-To: <179583775492.3135.6308026077719961194@kernel.org>
On Sat, Nov 28, 2026 at 03:49:14AM +0000, netdev-bot+sashiko@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
prev parent reply other threads:[~2026-11-28 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 3:48 [PATCH net] net: wwan: iosm: return the callback result of synchronous tasks David Westen
2026-11-28 3:49 ` netdev-bot+sashiko
2026-11-28 16:32 ` David Westen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN6ZL0TMFP2Z.IJRMRCHH07ME@gmail.com \
--to=davidlwesten@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=m.chetan.kumar@intel.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ryazanov.s.a@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox