]> git.ipfire.org Git - thirdparty/linux.git/commit
coredump: Use __counted_by_ptr for struct core_name::corename
authorKees Cook <kees@kernel.org>
Mon, 20 Oct 2025 22:01:17 +0000 (15:01 -0700)
committerKees Cook <kees@kernel.org>
Sat, 17 Jan 2026 19:00:37 +0000 (11:00 -0800)
commitfac4ab5cd0ad8d3abce6d2b519c9f0d26c8f2abc
tree9185398c2bdb3fcf97dc909cb0aeeaa2956b16d3
parenta120a832e3ebca48474d7183ddeadf4138472535
coredump: Use __counted_by_ptr for struct core_name::corename

Use the __counted_by annotation now available for struct pointer
members, __counted_by_ptr(). Move assignments to immediately
after allocation.

Link: https://patch.msgid.link/20251020220118.1226740-3-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
fs/coredump.c