Files
linux/fs/nfs
Miklos Szeredi 385e5edc29 nfs: use file_dentry()
commit be62a1a8fd upstream.

NFS may be used as lower layer of overlayfs and accessing f_path.dentry can
lead to a crash.

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

Fixes: 4bacc9c923 ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Tested-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: David Howells <dhowells@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-20 15:45:24 +09:00
..
2015-12-07 13:04:59 -08:00
2016-04-20 15:45:24 +09:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-04-20 15:45:24 +09:00
2015-04-23 15:16:14 -04:00
2015-02-03 11:06:34 -08:00
2015-10-08 10:45:51 -04:00
2016-04-20 15:45:24 +09:00
2015-04-23 15:16:14 -04:00
2015-04-23 15:16:14 -04:00
2016-01-07 18:45:36 -05:00
2015-10-15 16:07:36 -04:00
2015-10-15 16:07:21 -04:00