]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ubifs: skip dumping tnc tree when zroot is null
authorpangliyuan <pangliyuan1@huawei.com>
Tue, 24 Dec 2024 08:18:23 +0000 (16:18 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 18 Jan 2025 14:31:35 +0000 (15:31 +0100)
commitbdb0ca39e0acccf6771db49c3f94ed787d05f2d7
tree2254247ca4e63c2f30a37606d833fb53eec6fab3
parent844c6fdc13cf3d9d251533631988a58f8356a8c8
ubifs: skip dumping tnc tree when zroot is null

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: 1e51764a3c2a ("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>
fs/ubifs/debug.c