WSL2-Linux-Kernel/fs/pstore
Kunwu Chan 0ff96ec22a pstore/zone: Add a null pointer check to the psz_kmsg_read
[ Upstream commit 98bc7e26e14fbb26a6abf97603d59532475e97f8 ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240118100206.213928-1-chentao@kylinos.cn
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:01:43 +02:00
..
Kconfig
Makefile
blk.c
ftrace.c
inode.c
internal.h
platform.c pstore/platform: Add check for kstrdup 2023-11-20 11:08:13 +01:00
pmsg.c
ram.c pstore/ram: Fix crash when setting number of cpus to an odd number 2024-02-23 08:54:39 +01:00
ram_core.c pstore: ram_core: fix possible overflow in persistent_ram_init_ecc() 2024-01-25 14:52:35 -08:00
zone.c pstore/zone: Add a null pointer check to the psz_kmsg_read 2024-04-13 13:01:43 +02:00