Thread (2 messages) flat view 2 messages, 2 authors, 2021-06-16

Re: [PATCH] r8169: Avoid memcpy() over-reading of ETH_SS_STATS

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-16 20:10:12
Also in: linux-hardening, lkml

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed, 16 Jun 2021 12:53:59 -0700 you wrote:
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally reading across neighboring array fields.

The memcpy() is copying the entire structure, not just the first array.
Adjust the source argument so the compiler can do appropriate bounds
checking.

[...]
Here is the summary with links:
  - r8169: Avoid memcpy() over-reading of ETH_SS_STATS
    https://git.kernel.org/netdev/net/c/da5ac772cfe2

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