Re: [PATCH v4] netlink: Bounds-check struct nlmsgerr creation

From: patchwork-bot+netdevbpf
Date: Mon Sep 05 2022 - 10:00:27 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Fri, 2 Sep 2022 21:37:49 -0700 you wrote:
> In preparation for FORTIFY_SOURCE doing bounds-check on memcpy(),
> switch from __nlmsg_put to nlmsg_put(), and explain the bounds check
> for dealing with the memcpy() across a composite flexible array struct.
> Avoids this future run-time warning:
>
> memcpy: detected field-spanning write (size 32) of single field "&errmsg->msg" at net/netlink/af_netlink.c:2447 (size 16)
>
> [...]

Here is the summary with links:
- [v4] netlink: Bounds-check struct nlmsgerr creation
https://git.kernel.org/netdev/net-next/c/710d21fdff9a

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