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: 09d8b586731b ("ovl: move __upperdentry to ovl_inode")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-20 11:08:21 +02:00
..
2017-05-05 15:24:52 -04:00
2017-05-12 15:57:15 -07:00
2017-06-14 19:37:23 +02:00
2017-07-04 04:05:05 +02:00
2017-07-04 04:05:05 +02:00
2017-06-05 16:59:12 +02:00
2017-04-19 14:21:23 +02:00
2017-06-04 11:56:53 -07:00
2017-06-05 16:56:38 +02:00
2017-04-20 12:09:55 -06:00
2017-07-04 04:05:05 +02:00
2017-05-05 13:36:10 -07:00
2017-07-04 04:05:05 +02:00
2017-04-17 12:52:27 -04:00
2017-02-27 18:43:46 -08:00
2016-12-14 23:48:11 -05:00
2017-02-27 18:43:46 -08:00
2017-05-08 17:15:12 -07:00
2017-06-09 16:28:01 -04:00