lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 12 Jan 2024 01:00:28 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Zhu Yanjun <yanjun.zhu@...el.com>
Cc: mst@...hat.com, jasowang@...hat.com, xuanzhuo@...ux.alibaba.com,
 davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
 virtualization@...ts.linux.dev, netdev@...r.kernel.org, yanjun.zhu@...ux.dev
Subject: Re: [PATCH v3 1/1] virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:

On Thu,  4 Jan 2024 10:09:02 +0800 you wrote:
> From: Zhu Yanjun <yanjun.zhu@...ux.dev>
> 
> Fix the warnings when building virtio_net driver.
> 
> "
> drivers/net/virtio_net.c: In function ‘init_vqs’:
> drivers/net/virtio_net.c:4551:48: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=]
>  4551 |                 sprintf(vi->rq[i].name, "input.%d", i);
>       |                                                ^~
> In function ‘virtnet_find_vqs’,
>     inlined from ‘init_vqs’ at drivers/net/virtio_net.c:4645:8:
> drivers/net/virtio_net.c:4551:41: note: directive argument in the range [-2147483643, 65534]
>  4551 |                 sprintf(vi->rq[i].name, "input.%d", i);
>       |                                         ^~~~~~~~~~
> drivers/net/virtio_net.c:4551:17: note: ‘sprintf’ output between 8 and 18 bytes into a destination of size 16
>  4551 |                 sprintf(vi->rq[i].name, "input.%d", i);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/net/virtio_net.c: In function ‘init_vqs’:
> drivers/net/virtio_net.c:4552:49: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 9 [-Wformat-overflow=]
>  4552 |                 sprintf(vi->sq[i].name, "output.%d", i);
>       |                                                 ^~
> In function ‘virtnet_find_vqs’,
>     inlined from ‘init_vqs’ at drivers/net/virtio_net.c:4645:8:
> drivers/net/virtio_net.c:4552:41: note: directive argument in the range [-2147483643, 65534]
>  4552 |                 sprintf(vi->sq[i].name, "output.%d", i);
>       |                                         ^~~~~~~~~~~
> drivers/net/virtio_net.c:4552:17: note: ‘sprintf’ output between 9 and 19 bytes into a destination of size 16
>  4552 |                 sprintf(vi->sq[i].name, "output.%d", i);
> 
> [...]

Here is the summary with links:
  - [v3,1/1] virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings
    https://git.kernel.org/netdev/net/c/e3fe8d28c67b

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



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ