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: Mon, 16 Oct 2023 11:29:16 +0200
From: Miquel Raynal <>
To: Christophe JAILLET <>,
	Miquel Raynal <>,
	Richard Weinberger <>,
	Vignesh Raghavendra <>,
	Heiko Stuebner <>,
	Kees Cook <>,
	"Gustavo A. R. Silva" <>,
	Nathan Chancellor <>,
	Nick Desaulniers <>,
	Tom Rix <>
Subject: Re: [PATCH] mtd: rawnand: rockchip: Use struct_size()

On Sun, 2023-10-01 at 07:44:04 UTC, Christophe JAILLET wrote:
> Use struct_size() instead of hand writing it.
> This is less verbose and more robust.
> While at it, prepare for the coming implementation by GCC and Clang of the
> __counted_by attribute. Flexible array members annotated with __counted_by
> can have their accesses bounds-checked at run-time checking via
> CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for
> strcpy/memcpy-family functions).
> Also remove a useless comment about the position of a flex-array in a
> structure.
> Signed-off-by: Christophe JAILLET <>
> Reviewed-by: Gustavo A. R. Silva <>
> Reviewed-by: Kees Cook <>
> Acked-by: Heiko Stuebner <>

Applied to nand/next, thanks.


Powered by blists - more mailing lists