android_kernel_oneplus_msm8998/fs/overlayfs
Miklos Szeredi 714ac6de44 ovl: copy_up_xattr(): use strnlen
commit 8b326c61de08f5ca4bc454a168f19e7e43c4cc2a upstream.

Be defensive about what underlying fs provides us in the returned xattr
list buffer.  strlen() may overrun the buffer, so use strnlen() and WARN if
the contents are not properly null terminated.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 03:01:30 -04:00
..
copy_up.c ovl: copy_up_xattr(): use strnlen 2016-10-28 03:01:30 -04:00
dir.c ovl: Fix info leak in ovl_lookup_temp() 2016-10-28 03:01:30 -04:00
inode.c ovl: listxattr: use strnlen() 2016-09-15 08:27:52 +02:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h ovl: don't copy up opaqueness 2016-09-15 08:27:52 +02:00
readdir.c ovl: check dentry positiveness in ovl_cleanup_whiteouts() 2016-02-25 12:01:24 -08:00
super.c ovl: fix workdir creation 2016-09-15 08:27:52 +02:00