linux-yocto/fs/ubifs
pangliyuan 1787cd67bb 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-03-13 12:50:11 +01:00
..
auth.c
budget.c ubifs: Reserve one leb for each journal head while doing budget 2023-03-11 13:57:24 +01:00
commit.c
compress.c
crypto.c
debug.c ubifs: skip dumping tnc tree when zroot is null 2025-03-13 12:50:11 +01:00
debug.h
dir.c ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path 2024-02-23 08:54:26 +01:00
file.c ubifs: Set page uptodate in the correct place 2024-04-10 16:18:35 +02:00
find.c
gc.c
io.c
ioctl.c
journal.c
Kconfig
key.h
log.c
lprops.c
lpt_commit.c
lpt.c
Makefile
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-14 19:51:20 +01:00
tnc_commit.c ubifs: authentication: Fix use-after-free in ubifs_tnc_end_commit 2024-12-14 19:51:20 +01:00
tnc_misc.c
tnc.c ubifs: Fix memleak when insert_old_idx() failed 2023-05-11 23:00:18 +09:00
ubifs-media.h
ubifs.h ubifs: Fix AA deadlock when setting xattr for encrypted file 2023-05-17 11:50:13 +02:00
xattr.c ubifs: Fix AA deadlock when setting xattr for encrypted file 2023-05-17 11:50:13 +02:00