]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uapi: stddef.h: Introduce __kernel_nonstring
authorKees Cook <kees@kernel.org>
Fri, 7 Feb 2025 00:48:13 +0000 (16:48 -0800)
committerKees Cook <kees@kernel.org>
Fri, 28 Feb 2025 19:51:32 +0000 (11:51 -0800)
commit3407caa69a06932f87bd22f62aa257fb1593ce7a
treed35fc0b269027a5fa46413bb5f3ec621c12a9405
parentc0e1d4656ea5fbecee9942fb2fc83ab579433421
uapi: stddef.h: Introduce __kernel_nonstring

In order to annotate byte arrays in UAPI that are not C strings (i.e.
they may not be NUL terminated), the "nonstring" attribute is needed.
However, we can't expose this to userspace as it is compiler version
specific.

Signed-off-by: Kees Cook <kees@kernel.org>
include/uapi/linux/stddef.h