Commit 2f626f2f authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Zheng Zengkai
Browse files

Revert "ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len"

mainline inclusion
from mainline-v5.11-rc1
commit c8be0975
category: bugfix
bugzilla: 182885 https://gitee.com/openeuler/kernel/issues/I4DDEL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c8be097530a82e004f98378c3afc5cd35efc4f57



-----------------------------------------------

This reverts commit acc5af3e ("ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len")

No need to avoid memory oob in dumping for data node alone. Later, node
length will be passed into function 'ubifs_dump_node()' which replaces
all node dumping places.

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Reviewed-by: default avatarZhang Xiaoxu <zhangxiaoxu5@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c6d00359
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment