On Sun, 14 Dec 2025 12:58:57 +0000, [email protected] wrote:
> FIELD_GET() and FIELD_PREP() are mainly useful for hardware register
> accesses, but here they are being used for some very simple oprations.
>
> This wouldn't matter much, but they contain a lot of compile-time
> checks (that really aren't needed here) that bloat the expansion
> of FIELD_GET(GENMASK(7, 1), func) to over 18KB.
> Even with the 'bloat reduced' FIELD_GET/PREP they are still hundreds of
> characters.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] Fortify: Use C arithmetic not FIELD_xxx() in FORTIFY_REASON defines
https://git.kernel.org/kees/c/a71a95ac693c
Take care,
--
Kees Cook