Thread (3 messages) flat view 3 messages, 3 authors, 2021-05-25

Re: [PATCH net v2] net: zero-initialize tc skb extension on allocation

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-05-25 22:40:13

Hello:

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

On Tue, 25 May 2021 16:21:52 +0300 you wrote:
Function skb_ext_add() doesn't initialize created skb extension with any
value and leaves it up to the user. However, since extension of type
TC_SKB_EXT originally contained only single value tc_skb_ext->chain its
users used to just assign the chain value without setting whole extension
memory to zero first. This assumption changed when TC_SKB_EXT extension was
extended with additional fields but not all users were updated to
initialize the new fields which leads to use of uninitialized memory
afterwards. UBSAN log:

[...]
Here is the summary with links:
  - [net,v2] net: zero-initialize tc skb extension on allocation
    https://git.kernel.org/netdev/net/c/9453d45ecb6c

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