[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176833458660.2173122.12494481595218803859.b4-ty@kernel.org>
Date: Tue, 13 Jan 2026 12:03:07 -0800
From: Kees Cook <kees@...nel.org>
To: Alexander Lobakin <aleksander.lobakin@...el.com>,
linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org,
david.laight.linux@...il.com
Cc: Kees Cook <kees@...nel.org>
Subject: Re: [PATCH 1/1] Fortify: Use C arithmetic not FIELD_xxx() in FORTIFY_REASON defines
On Sun, 14 Dec 2025 12:58:57 +0000, david.laight.linux@...il.com 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
Powered by blists - more mailing lists