linux/fs/overlayfs
Miklos Szeredi 1d88f18373 ovl: fix xattr get and set with selinux
inode_doinit_with_dentry() in SELinux wants to read the upper inode's xattr
to get security label, and ovl_xattr_get() calls ovl_dentry_real(), which
depends on dentry->d_inode, but d_inode is null and not initialized yet at
this point resulting in an Oops.

Fix by getting the upperdentry info from the inode directly in this case.

Reported-by: Eryu Guan <eguan@redhat.com>
Fixes: 09d8b58673 ("ovl: move __upperdentry to ovl_inode")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-20 11:08:21 +02:00
..
copy_up.c ovl: mark parent impure and restore timestamp on ovl_link_up() 2017-07-04 22:08:15 +02:00
dir.c ovl: mark parent impure on ovl_link() 2017-07-13 22:06:45 +02:00
inode.c ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
overlayfs.h ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00
ovl_entry.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
readdir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
super.c ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00
util.c ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00