ubifs: Pass node length in all node dumping callers
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 16 Jun 2020 07:11:44 +0000 (15:11 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:12:32 +0000 (22:12 +0100)
commita33e30a0e023e9d1866866ca895c7789f48445e7
tree383b2fd9b04365a17ed31c4b624d278cf8e23607
parentc8be097530a82e004f98378c3afc5cd35efc4f57
ubifs: Pass node length in all node dumping callers

Function ubifs_dump_node() has been modified to avoid memory oob
accessing while dumping node, node length (corresponding to the
size of allocated memory for node) should be passed into all node
dumping callers.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
15 files changed:
fs/ubifs/commit.c
fs/ubifs/debug.c
fs/ubifs/file.c
fs/ubifs/io.c
fs/ubifs/journal.c
fs/ubifs/master.c
fs/ubifs/orphan.c
fs/ubifs/recovery.c
fs/ubifs/replay.c
fs/ubifs/sb.c
fs/ubifs/scan.c
fs/ubifs/super.c
fs/ubifs/tnc.c
fs/ubifs/tnc_misc.c
fs/ubifs/ubifs.h