linux/fs/f2fs
Randall Huang 5811f24abd f2fs: fix to avoid memory leakage in f2fs_listxattr
commit 688078e7f3 upstream.

In f2fs_listxattr, there is no boundary check before
memcpy e_name to buffer.
If the e_name_len is corrupted,
unexpected memory contents may be returned to the buffer.

Signed-off-by: Randall Huang <huangrandall@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:32:55 +02:00
..
Kconfig
Makefile
acl.c
acl.h
checkpoint.c f2fs: Add a new CP flag to help fsck fix resize SPO issues 2020-04-23 10:36:33 +02:00
data.c f2fs: fix to add swap extent correctly 2020-03-05 16:43:48 +01:00
debug.c
dir.c
extent_cache.c
f2fs.h f2fs: fix to show norecovery mount option 2020-04-23 10:36:32 +02:00
file.c
gc.c f2fs: Fix mount failure due to SPO after a successful online resize FS 2020-04-23 10:36:33 +02:00
gc.h
hash.c
inline.c
inode.c
namei.c
node.c f2fs: fix to wait all node page writeback 2020-04-23 10:36:42 +02:00
node.h
recovery.c
segment.c
segment.h
shrinker.c
super.c f2fs: fix NULL pointer dereference in f2fs_write_begin() 2020-04-23 10:36:39 +02:00
sysfs.c f2fs: fix memleak of kobject 2020-02-24 08:36:53 +01:00
trace.c
trace.h
verity.c
xattr.c f2fs: fix to avoid memory leakage in f2fs_listxattr 2020-04-29 16:32:55 +02:00
xattr.h