deepin-kernel/fs/ubifs
pangliyuan 11cdf84337 ubifs: skip dumping tnc tree when zroot is null
[ Upstream commit bdb0ca39e0 ]

Clearing slab cache will free all znode in memory and make
c->zroot.znode = NULL, then dumping tnc tree will access
c->zroot.znode which cause null pointer dereference.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=219624#c0
Fixes: 1e51764a3c ("UBIFS: add new flash file system")
Signed-off-by: pangliyuan <pangliyuan1@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-10 01:59:56 +08:00
..
Kconfig
Makefile
auth.c
budget.c ubifs: Reserve one leb for each journal head while doing budget 2023-02-02 21:13:40 +01:00
commit.c
compress.c ubifs: Remove return in compr_exit() 2023-04-21 22:31:03 +02:00
crypto.c
debug.c ubifs: skip dumping tnc tree when zroot is null 2025-02-10 01:59:56 +08:00
debug.h
dir.c Revert "ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path" 2024-12-10 20:42:38 +08:00
file.c ubifs: Set page uptodate in the correct place 2024-04-03 15:28:20 +02:00
find.c
gc.c
io.c ubifs: Fix kernel-doc 2023-02-02 21:13:53 +01:00
ioctl.c ubifs: convert to ctime accessor functions 2023-07-24 10:30:05 +02:00
journal.c ubifs: convert to ctime accessor functions 2023-07-24 10:30:05 +02:00
key.h
log.c
lprops.c
lpt.c
lpt_commit.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
master.c
misc.c
misc.h
orphan.c
recovery.c
replay.c
sb.c
scan.c
shrinker.c
super.c ubifs: Correct the total block count by deducting journal reservation 2024-12-10 20:45:09 +08:00
sysfs.c ubifs: make kobj_type structures constant 2023-02-13 22:29:54 +01:00
tnc.c ubifs: fix possible dereference after free 2024-03-06 14:48:34 +00:00
tnc_commit.c ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit 2024-12-10 20:45:09 +08:00
tnc_misc.c
ubifs-media.h
ubifs.h fs: drop the timespec64 argument from update_time 2023-08-11 09:04:57 +02:00
xattr.c ubifs: convert to ctime accessor functions 2023-07-24 10:30:05 +02:00