android_kernel_asus_sm8350/fs/pstore
Jiasheng Jiang 8430a8e8e8 pstore/ram: Add check for kstrdup
[ Upstream commit d97038d5ec2062733c1e016caf9baaf68cf64ea1 ]

Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.

Fixes: e163fdb3f7f8 ("pstore/ram: Regularize prz label allocation lifetime")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230614093733.36048-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-27 08:37:06 +02:00
..
ftrace.c
inode.c
internal.h
Kconfig pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES 2023-01-18 11:41:40 +01:00
Makefile
platform.c
pmsg.c pstore: Revert pmsg_lock back to a normal mutex 2023-05-17 11:35:45 +02:00
ram_core.c pstore/ram: Add check for kstrdup 2023-07-27 08:37:06 +02:00
ram.c pstore/ram: Fix error return code in ramoops_probe() 2023-01-18 11:40:52 +01:00