]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:11 +0000 (12:50 +0100)
commit1787cd67bb94b106555ffe64f887f6aa24b47010
treee7f2fb03ad458426e698fbcc33ce2ceea4797a37
parente5536677da803ed54a29a446515c28dce7d3d574
ubifs: skip dumping tnc tree when zroot is null

[ Upstream commit bdb0ca39e0acccf6771db49c3f94ed787d05f2d7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ubifs/debug.c