linux_dsm_epyc7002/fs/ubifs
Liu Song acc5af3efa ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len
In “ubifs_check_node”, when the value of "node_len" is abnormal,
the code will goto label of "out_len" for execution. Then, in the
following "ubifs_dump_node", if inode type is "UBIFS_DATA_NODE",
in "print_hex_dump", an out-of-bounds access may occur due to the
wrong "ch->len".

Therefore, when the value of "node_len" is abnormal, data length
should to be adjusted to a reasonable safe range. At this time,
structured data is not credible, so dump the corrupted data directly
for analysis.

Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>
2020-03-30 23:02:37 +02:00
..
auth.c
budget.c
commit.c
compress.c
crypto.c
debug.c
debug.h
dir.c ubifs: allow both hash and disk name to be provided in no-key names 2020-01-22 14:49:56 -08:00
file.c Merge branch 'imm.timestamp' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-02-05 05:02:42 +00:00
find.c
gc.c
io.c ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len 2020-03-30 23:02:37 +02:00
ioctl.c ubifs: Add support for FS_ENCRYPT_FL 2020-01-16 23:35:43 +01:00
journal.c ubifs: ubifs_jnl_write_inode: Fix a memory leak bug 2020-03-30 23:00:36 +02:00
Kconfig fscrypt: Allow modular crypto algorithms 2019-12-31 10:33:51 -06:00
key.h ubifs: allow both hash and disk name to be provided in no-key names 2020-01-22 14:49:56 -08:00
log.c
lprops.c
lpt_commit.c
lpt.c
Makefile
master.c
misc.c
misc.h
orphan.c ubifs: ubifs_add_orphan: Fix a memory leak bug 2020-03-30 23:02:30 +02:00
recovery.c
replay.c
sb.c Merge branch 'imm.timestamp' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-02-05 05:02:42 +00:00
scan.c
shrinker.c
super.c ubifs: Fix memory leak from c->sup_node 2020-01-19 23:22:57 +01:00
tnc_commit.c ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps 2019-11-17 22:22:54 +01:00
tnc_misc.c
tnc.c
ubifs-media.h
ubifs.h ubifs: use IS_ENCRYPTED() instead of ubifs_crypt_is_encrypted() 2020-01-20 10:43:46 -08:00
xattr.c