linux/fs/ubifs
Richard Weinberger 95a22d2084 ubifs: Check data node size before truncate
Check whether the size is within bounds before using it.
If the size is not correct, abort and dump the bad data node.

Cc: Kees Cook <keescook@chromium.org>
Cc: Silvio Cesare <silvio.cesare@gmail.com>
Cc: stable@vger.kernel.org
Fixes: 1e51764a3c ("UBIFS: add new flash file system")
Reported-by: Silvio Cesare <silvio.cesare@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2018-08-15 00:25:20 +02:00
..
budget.c UBIFS: extend debug/message capabilities 2015-03-25 11:08:41 +02:00
commit.c UBIFS: extend debug/message capabilities 2015-03-25 11:08:41 +02:00
compress.c UBIFS: extend debug/message capabilities 2015-03-25 11:08:41 +02:00
crypto.c fscrypt: make fscrypt_operations.max_namelen an integer 2018-05-20 16:21:03 -04:00
debug.c ubifs: Fix cut and paste error on sb type comparisons 2017-05-08 20:48:41 +02:00
debug.h UBIFS: print less 2012-08-31 17:32:58 +03:00
dir.c ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
file.c ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
find.c ubifs: use swap macro in swap_dirty_idx 2018-08-15 00:25:08 +02:00
gc.c ubifs: gc: Fix typo 2018-08-15 00:06:15 +02:00
io.c Rename superblock flags (MS_xyz -> SB_xyz) 2017-11-27 13:05:09 -08:00
ioctl.c fs, fscrypt: add an S_ENCRYPTED inode flag 2017-10-18 19:52:36 -04:00
journal.c ubifs: Check data node size before truncate 2018-08-15 00:25:20 +02:00
Kconfig ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
key.h ubifs: Add assert to dent_key_init() 2017-07-14 22:49:06 +02:00
log.c ubifs: log: Some spelling fixes 2018-06-07 15:53:15 +02:00
lprops.c ubifs: Fix memory leak in lprobs self-check 2018-08-15 00:06:15 +02:00
lpt_commit.c ubifs: lpt: Fix wrong pnode number range in comment 2018-06-07 15:53:15 +02:00
lpt.c treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
Makefile ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
master.c UBIFS: extend debug/message capabilities 2015-03-25 11:08:41 +02:00
misc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.h fs: ubifs: replace CURRENT_TIME_SEC with current_time 2017-05-08 17:15:15 -07:00
orphan.c UBIFS: extend debug/message capabilities 2015-03-25 11:08:41 +02:00
recovery.c ubifs: Remove unnecessary assignment 2017-05-08 20:48:47 +02:00
replay.c ubifs: Spelling fix someting -> something 2018-06-07 15:53:14 +02:00
sb.c ubifs: use timespec64 for inode timestamps 2018-08-15 00:06:16 +02:00
scan.c ubifs: remove unnecessary assignment 2018-04-04 23:48:10 +02:00
shrinker.c ubifs: tnc: use monotonic znode timestamp 2018-08-15 00:06:16 +02:00
super.c ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
tnc_commit.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
tnc_misc.c ubifs: tnc: use monotonic znode timestamp 2018-08-15 00:06:16 +02:00
tnc.c ubifs: tnc: use monotonic znode timestamp 2018-08-15 00:06:16 +02:00
ubifs-media.h ubifs: Raise write version to 5 2016-12-12 23:07:38 +01:00
ubifs.h ubifs: introduce Kconfig symbol for xattr support 2018-08-15 00:25:14 +02:00
xattr.c ubifs: xattr: Don't operate on deleted inodes 2018-08-15 00:06:15 +02:00