]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ceph: fix possible integer overflow in ceph_zero_objects()
authorDmitry Kandybka <d.kandybka@gmail.com>
Tue, 22 Apr 2025 09:32:04 +0000 (12:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:57:34 +0000 (15:57 +0200)
commit42923c6e9cd7acbc9d521054923052323f314bb6
tree97e1bce07611abf554f7253cc086f1b098c0c03d
parentbfdbc927d1659b209e4e91c069ca1365b41e07f1
ceph: fix possible integer overflow in ceph_zero_objects()

[ Upstream commit 0abd87942e0c93964e93224836944712feba1d91 ]

In 'ceph_zero_objects', promote 'object_size' to 'u64' to avoid possible
integer overflow.

Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Kandybka <d.kandybka@gmail.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ceph/file.c