linux-yocto/fs/pstore
Kees Cook 16ddd67bb5 pstore: Change kmsg_bytes storage size to u32
[ Upstream commit 5674609535 ]

The types around kmsg_bytes were inconsistent. The global was unsigned
long, the argument to pstore_set_kmsg_bytes() was int, and the filesystem
option was u32. Given other internal limits, there's not much sense
in making a single pstore record larger than INT_MAX and it can't be
negative, so use u32 everywhere. Additionally, use READ/WRITE_ONCE and a
local variable in pstore_dump() to avoid kmsg_bytes changing during a
dump.

Link: https://lore.kernel.org/r/20250206191655.work.798-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:58 +02:00
..
blk.c pstore/blk: trivial typo fixes 2025-02-08 09:56:51 +01:00
ftrace.c
inode.c pstore: Change kmsg_bytes storage size to u32 2025-05-29 11:02:58 +02:00
internal.h pstore: Change kmsg_bytes storage size to u32 2025-05-29 11:02:58 +02:00
Kconfig pstore: Replace crypto API compression with zlib_deflate library calls 2023-07-17 16:08:58 -07:00
Makefile
platform.c pstore: Change kmsg_bytes storage size to u32 2025-05-29 11:02:58 +02:00
pmsg.c pstore update for v6.4-rc1 2023-04-27 17:03:40 -07:00
ram_core.c pstore: ram_core: fix possible overflow in persistent_ram_init_ecc() 2023-12-08 14:15:00 -08:00
ram_internal.h pstore/ram: Set freed addresses to NULL 2022-10-19 09:25:39 -07:00
ram.c pstore/ramoops: Add ramoops.mem_name= command line option 2024-06-19 18:05:14 +03:00
zone.c pstore/zone: Don't clear memory twice 2024-03-09 12:33:22 -08:00