Re: [PATCH] virtio_net: fix integer overflow in stats
From: patchwork-bot+netdevbpf
Date: Mon Oct 21 2024 - 07:20:34 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 16 Oct 2024 13:27:07 -0400 you wrote:
> Static analysis on linux-next has detected the following issue
> in function virtnet_stats_ctx_init, in drivers/net/virtio_net.c :
>
> if (vi->device_stats_cap & VIRTIO_NET_STATS_TYPE_CVQ) {
> queue_type = VIRTNET_Q_TYPE_CQ;
> ctx->bitmap[queue_type] |= VIRTIO_NET_STATS_TYPE_CVQ;
> ctx->desc_num[queue_type] += ARRAY_SIZE(virtnet_stats_cvq_desc);
> ctx->size[queue_type] += sizeof(struct virtio_net_stats_cvq);
> }
>
> [...]
Here is the summary with links:
- virtio_net: fix integer overflow in stats
https://git.kernel.org/netdev/net/c/d95d9a31aceb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html