Thread (2 messages) 2 messages, 2 authors, 2021-11-19

Re: [PATCH] net: 802: Use memset_startat() to clear struct fields

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-11-19 11:50:23
Also in: linux-hardening, lkml

Hello:

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

On Thu, 18 Nov 2021 12:30:45 -0800 you wrote:
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.

Use memset_startat() so memset() doesn't get confused about writing
beyond the destination member that is intended to be the starting point
of zeroing through the end of the struct.

[...]
Here is the summary with links:
  - net: 802: Use memset_startat() to clear struct fields
    https://git.kernel.org/netdev/net-next/c/e3617433c3da

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