android_kernel_motorola_sm6375/fs/ceph
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viacheslav Dubeyko 3b88b1e46b ceph: add checking of wait_for_completion_killable() return value
[ Upstream commit b7ed1e29cfe773d648ca09895b92856bd3a2092d ]

The Coverity Scan service has detected the calling of
wait_for_completion_killable() without checking the return
value in ceph_lock_wait_for_completion() [1]. The CID 1636232
defect contains explanation: "If the function returns an error
value, the error value may be mistaken for a normal value.
In ceph_lock_wait_for_completion(): Value returned from
a function is not checked for errors before being used. (CWE-252)".

The patch adds the checking of wait_for_completion_killable()
return value and return the error code from
ceph_lock_wait_for_completion().

[1] https://scan5.scan.coverity.com/#/project-view/64304/10063?selectedIssue=1636232

Signed-off-by: Viacheslav Dubeyko <[email protected]>
Reviewed-by: Alex Markuze <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-12-03 12:45:15 +01:00
..
acl.c
addr.c ceph: remove the incorrect Fw reference check when dirtying pages 2024-11-08 16:20:35 +01:00
cache.c
cache.h
caps.c ceph: fix deadlock or deadcode of misusing dget() 2024-02-23 08:25:03 +01:00
ceph_frag.c
debugfs.c ceph: show tasks waiting on caps in debugfs caps file 2023-08-11 11:54:00 +02:00
dir.c
export.c
file.c ceph: fix possible integer overflow in ceph_zero_objects() 2025-07-17 18:24:50 +02:00
inode.c ceph: fix incorrect revoked caps assert in ceph_fill_file_size() 2023-10-25 11:53:19 +02:00
io.c
io.h
ioctl.c
ioctl.h
Kconfig
locks.c ceph: add checking of wait_for_completion_killable() return value 2025-12-03 12:45:15 +01:00
Makefile
mds_client.c ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
mds_client.h ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
mdsmap.c
quota.c
snap.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-14 10:59:57 +02:00
strings.c
super.c ceph: defer stopping mdsc delayed_work 2023-08-11 11:54:01 +02:00
super.h
xattr.c