lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 06 Oct 2023 10:50:28 +0000
To: Gustavo A. R. Silva <>
Subject: Re: [PATCH v2] net: sched: cls_u32: Fix allocation size in u32_init()


This patch was applied to netdev/net.git (main)
by David S. Miller <>:

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()

You are awesome, thank you!
Deet-doot-dot, I am a bot.

Powered by blists - more mailing lists