mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
io_uring/cmd_net: fix wrong argument types for skb_queue_splice()
commit46447367a5upstream. 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:9e4ed359b8("io_uring/netcmd: add tx timestamping cmd support") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c4741f6e7
commit
c85d2cfc5e
@@ -126,7 +126,7 @@ static int io_uring_cmd_timestamp(struct socket *sock,
|
|||||||
|
|
||||||
if (!unlikely(skb_queue_empty(&list))) {
|
if (!unlikely(skb_queue_empty(&list))) {
|
||||||
scoped_guard(spinlock_irqsave, &q->lock)
|
scoped_guard(spinlock_irqsave, &q->lock)
|
||||||
skb_queue_splice(q, &list);
|
skb_queue_splice(&list, q);
|
||||||
}
|
}
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user