Thread (3 messages) flat view 3 messages, 3 authors, 2021-09-09

Re: [PATCH] vhost_net: fix OoB on sendmsg() failure.

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-09 10:00:29
Also in: kvm

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed,  8 Sep 2021 13:42:09 +0200 you wrote:
If the sendmsg() call in vhost_tx_batch() fails, both the 'batched_xdp'
and 'done_idx' indexes are left unchanged. If such failure happens
when batched_xdp == VHOST_NET_BATCH, the next call to
vhost_net_build_xdp() will access and write memory outside the xdp
buffers area.

Since sendmsg() can only error with EBADFD, this change addresses the
issue explicitly freeing the XDP buffers batch on error.

[...]
Here is the summary with links:
  - vhost_net: fix OoB on sendmsg() failure.
    https://git.kernel.org/netdev/net/c/3c4cea8fa7f7

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help