lists.openwall.net   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]
Message-Id: <175615741923.2091902.12040309987283385487.b4-ty@kernel.org>
Date: Mon, 25 Aug 2025 14:30:23 -0700
From: Kees Cook <kees@...nel.org>
To: viro@...iv.linux.org.uk,
	brauner@...nel.org,
	Xichao Zhao <zhao.xichao@...o.com>
Cc: Kees Cook <kees@...nel.org>,
	jack@...e.cz,
	linux-fsdevel@...r.kernel.org,
	linux-mm@...ck.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] binfmt_elf: Replace offsetof() with struct_size() in fill_note_info()

On Wed, 13 Aug 2025 19:50:58 +0800, Xichao Zhao wrote:
> When dealing with structures containing flexible arrays, struct_size()
> provides additional compile-time checks compared to offsetof(). This
> enhances code robustness and reduces the risk of potential errors.
> 
> 

Applied to for-next/execve, thanks!

[1/1] binfmt_elf: Replace offsetof() with struct_size() in fill_note_info()
      https://git.kernel.org/kees/c/a728ce8ffbd2

Take care,

-- 
Kees Cook


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ