From: Jens Axboe Date: Thu, 20 Nov 2025 18:40:15 +0000 (-0700) Subject: io_uring/cmd_net: fix wrong argument types for skb_queue_splice() X-Git-Tag: v6.17.10~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c85d2cfc5e24e6866b56c7253fd4e1c7db35986c;p=thirdparty%2Fkernel%2Fstable.git io_uring/cmd_net: fix wrong argument types for skb_queue_splice() commit 46447367a52965e9d35f112f5b26fc8ff8ec443d upstream. 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 Fixes: 9e4ed359b8ef ("io_uring/netcmd: add tx timestamping cmd support") Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- diff --git a/io_uring/cmd_net.c b/io_uring/cmd_net.c index 3866fe6ff541d..2bd24e8a5aeab 100644 --- a/io_uring/cmd_net.c +++ b/io_uring/cmd_net.c @@ -126,7 +126,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; }