fortify: Use const variables for __member_size tracking
authorKees Cook <keescook@chromium.org>
Fri, 7 Apr 2023 19:27:10 +0000 (12:27 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 16 May 2023 21:09:01 +0000 (14:09 -0700)
commit21a2c74b0a2a784228c9e3af63cff96d0dea7b8a
tree0994930954bfec87bb018250397e3544d8963f68
parent3bf301e1ab85e18ed0e337ce124dc71d6d7b5fd7
fortify: Use const variables for __member_size tracking

The sizes reported by __member_size should never change in a given
function. Mark them as such.

Suggested-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230407192717.636137-4-keescook@chromium.org
include/linux/fortify-string.h