Re: [PATCH 1/2] binfmt: Use struct_size()

From: Kees Cook
Date: Tue May 30 2023 - 18:53:17 EST


On Sun, 28 May 2023 18:20:24 +0200, Christophe JAILLET wrote:
> Use struct_size() instead of hand-writing it. It is less verbose, more
> robust and more informative.
>
>

Applied to for-next/execve, thanks!

[1/2] binfmt: Use struct_size()
https://git.kernel.org/kees/c/e6302d5a285b
[2/2] binfmt: Slightly simplify elf_fdpic_map_file()
https://git.kernel.org/kees/c/36650a357eac

--
Kees Cook