Skip to contentSkip to conversation

vsock/virtio: fix MSG_PEEK ignoring skb offset when calculating bytes to copy

DISCUSSION Luigi Leonardi 2 participants 3 messages May 14 – May 15 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi stable maintainers,

I'd like to ask you to include the following patch to stable:

080f22f5d30233faf3d83be3098f35b8be9b7a00 ("vsock/virtio: fix MSG_PEEK ignoring skb offset when calculating bytes to copy")

This fixes a bug in virtio-vsock, that leads to an EFAULT when the user performs a partial recv followed by a peek that requests more bytes than are available.

Please apply it to
- 6.12.y
- 6.18.y

7.0.y already has it.

Luigi

#1 lore raw
Quoted 11 lines · Luigi Leonardi

Hi stable maintainers,

I'd like to ask you to include the following patch to stable:

080f22f5d30233faf3d83be3098f35b8be9b7a00 ("vsock/virtio: fix MSG_PEEK ignoring skb offset when calculating bytes to copy")

This fixes a bug in virtio-vsock, that leads to an EFAULT when the user performs a partial recv followed by a peek that requests more bytes than are available.

Quoted 5 lines

Please apply it to
- 6.12.y
- 6.18.y

7.0.y already has it.

I don't see it in 7.0.y, what commit id is it in there?

thanks,

greg k-h

#2 lore raw
Quoted 16 lines · Greg KH
Quoted 15 lines · Luigi Leonardi

Hi stable maintainers,

I'd like to ask you to include the following patch to stable:

080f22f5d30233faf3d83be3098f35b8be9b7a00 ("vsock/virtio: fix MSG_PEEK ignoring skb offset when calculating bytes to copy")

This fixes a bug in virtio-vsock, that leads to an EFAULT when the user performs a partial recv followed by a peek that requests more bytes than are available.

Please apply it to
- 6.12.y
- 6.18.y

Quoted 8 lines
Quoted 1 line

7.0.y already has it.

I don't see it in 7.0.y, what commit id is it in there?

thanks,

greg k-h

oops, you are right :)

Thanks,
Luigi