[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<169658942837.16254.5390070465876130493.git-patchwork-notify@kernel.org>
Date: Fri, 06 Oct 2023 10:50:28 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Gustavo A. R. Silva <gustavoars@...nel.org>
Cc: jhs@...atatu.com, xiyou.wangcong@...il.com, jiri@...nulli.us,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org, keescook@...omium.org
Subject: Re: [PATCH v2] net: sched: cls_u32: Fix allocation size in u32_init()
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@...emloft.net>:
On Wed, 4 Oct 2023 15:19:37 +0200 you wrote:
> commit d61491a51f7e ("net/sched: cls_u32: Replace one-element array
> with flexible-array member") incorrecly replaced an instance of
> `sizeof(*tp_c)` with `struct_size(tp_c, hlist->ht, 1)`. This results
> in a an over-allocation of 8 bytes.
>
> This change is wrong because `hlist` in `struct tc_u_common` is a
> pointer:
>
> [...]
Here is the summary with links:
- [v2] net: sched: cls_u32: Fix allocation size in u32_init()
https://git.kernel.org/netdev/net/c/c4d49196ceec
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists