original_kernel/fs/ceph
Yan, Zheng 8179a101eb ceph: fix recursion between ceph_set_acl() and __ceph_setattr()
ceph_set_acl() calls __ceph_setattr() if the setacl operation needs
to modify inode's i_mode. __ceph_setattr() updates inode's i_mode,
then calls posix_acl_chmod().

The problem is that __ceph_setattr() calls posix_acl_chmod() before
sending the setattr request. The get_acl() call in posix_acl_chmod()
can trigger a getxattr request. The reply of the getxattr request
can restore inode's i_mode to its old value. The set_acl() call in
posix_acl_chmod() sees old value of inode's i_mode, so it calls
__ceph_setattr() again.

Cc: stable@vger.kernel.org # needs backporting for < 4.9
Link: http://tracker.ceph.com/issues/19688
Reported-by: Jerry Lee <leisurelysw24@gmail.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Luis Henriques <lhenriques@suse.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-04-25 21:08:26 +02:00
..
Kconfig
Makefile
acl.c
addr.c sched/headers: Prepare for the reduction of <linux/sched.h>'s signal API dependency 2017-03-02 08:42:37 +01:00
cache.c ceph: fix spelling mistake: "enabing" -> "enabling" 2017-02-20 12:16:05 +01:00
cache.h
caps.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
ceph_frag.c
debugfs.c ceph: convert bools in ceph_mds_request to a new r_req_flags field 2017-02-20 12:16:08 +01:00
dir.c ceph: do a LOOKUP in d_revalidate instead of GETATTR 2017-02-20 12:16:10 +01:00
export.c ceph: add a new flag to indicate whether parent is locked 2017-02-20 12:16:08 +01:00
file.c libceph, rbd, ceph: WRITE | ONDISK -> WRITE 2017-02-24 19:04:57 +01:00
inode.c ceph: fix recursion between ceph_set_acl() and __ceph_setattr() 2017-04-25 21:08:26 +02:00
ioctl.c ceph: fix bogus endianness change in ceph_ioctl_set_layout 2017-02-20 12:16:07 +01:00
ioctl.h
locks.c
mds_client.c ceph: tidy some white space in get_nonsnap_parent() 2017-02-23 22:22:02 +01:00
mds_client.h ceph: add a new flag to indicate whether parent is locked 2017-02-20 12:16:08 +01:00
mdsmap.c
snap.c
strings.c
super.c ceph: remove special ack vs commit behavior 2017-02-24 19:04:57 +01:00
super.h statx: Add a system call to make enhanced file info available 2017-03-02 20:51:15 -05:00
xattr.c