Re: [PATCH v2 0/2] qnx4: Avoid confusing compiler about buffer lengths

From: Kees Cook
Date: Tue Dec 12 2023 - 16:20:25 EST


On Thu, 30 Nov 2023 12:51:17 -0800, Kees Cook wrote:
> This attempts to fix the issue Ronald Monthero found[1]. Avoids using a
> too-short struct buffer when reading the string, by using the existing
> struct union.
>
> -Kees
>
> [1] https://lore.kernel.org/lkml/20231112095353.579855-1-debug.penguin32@xxxxxxxxx/
>
> [...]

I'll put these in -next since there's been no more discussion on it.

Applied to for-next/hardening, thanks!

[1/2] qnx4: Extract dir entry filename processing into helper
https://git.kernel.org/kees/c/49a85c02a189
[2/2] qnx4: Use get_directory_fname() in qnx4_match()
https://git.kernel.org/kees/c/0a0fb20f5e08

Take care,

--
Kees Cook