From: "Günther Noack" <gnoack@google.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: io-uring <io-uring@vger.kernel.org>
Subject: Re: [PATCH] io_uring/cmd_net: fix wrong argument types for skb_queue_splice()
Date: Fri, 21 Nov 2025 09:53:59 +0100 [thread overview]
Message-ID: <aSAop5CDhDmh_0I-@google.com> (raw)
In-Reply-To: <2b6dacfa-5e44-49da-b81f-51710e2584cf@kernel.dk>
On Thu, Nov 20, 2025 at 01:24:14PM -0700, Jens Axboe wrote:
> If timestamp retriving needs to be retried and the local list of
> SKB's already has entries, then it's spliced back into the socket
> queue. However, the arguments for the splice helper are transposed,
> causing exactly the wrong direction of splicing into the on-stack
> list. Fix that up.
>
> Cc: stable@vger.kernel.org
> Reported-by: Google Big Sleep <big-sleep-vuln-reports+bigsleep-462435176@google.com>
> Fixes: 9e4ed359b8ef ("io_uring/netcmd: add tx timestamping cmd support")
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
>
> ---
>
> diff --git a/io_uring/cmd_net.c b/io_uring/cmd_net.c
> index 27a09aa4c9d0..3b75931bd569 100644
> --- a/io_uring/cmd_net.c
> +++ b/io_uring/cmd_net.c
> @@ -127,7 +127,7 @@ static int io_uring_cmd_timestamp(struct socket *sock,
>
> if (!unlikely(skb_queue_empty(&list))) {
> scoped_guard(spinlock_irqsave, &q->lock)
> - skb_queue_splice(q, &list);
> + skb_queue_splice(&list, q);
> }
> return -EAGAIN;
> }
>
> --
Thanks for the quick patch!
Reviewed-by: Günther Noack <gnoack@google.com>
Tested-by: Günther Noack <gnoack@google.com>
—Günther
prev parent reply other threads:[~2025-11-21 8:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 20:24 [PATCH] io_uring/cmd_net: fix wrong argument types for skb_queue_splice() Jens Axboe
2025-11-21 8:53 ` Günther Noack [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=aSAop5CDhDmh_0I-@google.com \
--to=gnoack@google.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/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