android_kernel_oneplus_msm8998/fs/9p
Miklos Szeredi 7d9f345ca6 9p: use file_dentry()
commit b403f0e37a11f84f7ceaf40b0075499e5bcfd220 upstream.

v9fs may be used as lower layer of overlayfs and accessing f_path.dentry
can lead to a crash.  In this case it's a NULL pointer dereference in
p9_fid_create().

Fix by replacing direct access of file->f_path.dentry with the
file_dentry() accessor, which will always return a native object.

Reported-by: Alessio Igor Bogani <alessioigorbogani@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Tested-by: Alessio Igor Bogani <alessioigorbogani@gmail.com>
Fixes: 4bacc9c923 ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-10 11:49:27 +02:00
..
acl.c 9p: xattr simplifications 2015-11-13 20:34:33 -05:00
acl.h
cache.c
cache.h fs: 9p: cache.h: Add #define of include guard 2015-11-11 02:19:50 -05:00
fid.c
fid.h
Kconfig
Makefile 9p: xattr simplifications 2015-11-13 20:34:33 -05:00
v9fs.c 9p: remove unused option Opt_trans 2015-08-23 14:21:16 -05:00
v9fs.h
v9fs_vfs.h
vfs_addr.c
vfs_dentry.c
vfs_dir.c
vfs_file.c 9p: use file_dentry() 2016-08-10 11:49:27 +02:00
vfs_inode.c 9p: ->evict_inode() should kick out ->i_data, not ->i_mapping 2015-12-08 14:51:16 -05:00
vfs_inode_dotl.c fs/9p: remove unnecessary new_valid_dev() checks 2015-11-09 15:11:24 -08:00
vfs_super.c v9fs: fix error handling in v9fs_session_init() 2015-06-08 09:05:06 -06:00
xattr.c 9p: xattr simplifications 2015-11-13 20:34:33 -05:00
xattr.h 9p: xattr simplifications 2015-11-13 20:34:33 -05:00