linux/fs/ceph
Xiubo Li 8293614798 ceph: don't let check_caps skip sending responses for revoke msgs
commit 257e6172ab upstream.

If a client sends out a cap update dropping caps with the prior 'seq'
just before an incoming cap revoke request, then the client may drop
the revoke because it believes it's already released the requested
capabilities.

This causes the MDS to wait indefinitely for the client to respond
to the revoke. It's therefore always a good idea to ack the cap
revoke request with the bumped up 'seq'.

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/61782
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:49:42 +02:00
..
acl.c
addr.c ceph: fix blindly expanding the readahead windows 2023-07-23 13:49:41 +02:00
cache.c
cache.h
caps.c ceph: don't let check_caps skip sending responses for revoke msgs 2023-07-23 13:49:42 +02:00
ceph_frag.c
debugfs.c ceph: fix potential use-after-free bug when trimming caps 2023-05-11 23:03:05 +09:00
dir.c
export.c
file.c ceph: update the time stamps and try to drop the suid/sgid 2023-03-10 09:34:25 +01:00
inode.c
io.c
io.h
ioctl.c
ioctl.h
Kconfig
locks.c
Makefile
mds_client.c ceph: silence smatch warning in reconnect_caps_cb() 2023-06-09 10:34:16 +02:00
mds_client.h ceph: fix potential use-after-free bug when trimming caps 2023-05-11 23:03:05 +09:00
mdsmap.c
metric.c
metric.h
quota.c
snap.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-14 11:15:27 +02:00
strings.c
super.c
super.h ceph: add a dedicated private data for netfs rreq 2023-07-23 13:49:41 +02:00
util.c
xattr.c