Thread (2 messages) flat view 2 messages, 2 authors, 2022-09-05

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-09-05 14:00:27
Also in: linux-hardening, lkml, netfilter-devel

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:

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

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