summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-12-05 16:49:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-27 14:02:19 +0100
commitcbd952b2c4e6eb5dcfdb931e74eff1607f31b496 (patch)
treed2afec9f29978563380b98f5acaa621d7f476943 /scripts/objdiff
parent28433d0b7b29558fb3543fa49bfd675c8fe80edd (diff)
downloadlinux-cbd952b2c4e6eb5dcfdb931e74eff1607f31b496.tar.gz
linux-cbd952b2c4e6eb5dcfdb931e74eff1607f31b496.tar.bz2
linux-cbd952b2c4e6eb5dcfdb931e74eff1607f31b496.zip
ceph: fix memory leaks in __ceph_sync_read()
commit d6fd6f8280f0257ba93f16900a0d3d3912f32c79 upstream. In two `break` statements, the call to ceph_release_page_vector() was missing, leaking the allocation from ceph_alloc_page_vector(). Instead of adding the missing ceph_release_page_vector() calls, the Ceph maintainers preferred to transfer page ownership to the `ceph_osd_request` by passing `own_pages=true` to osd_req_op_extent_osd_data_pages(). This requires postponing the ceph_osdc_put_request() call until after the block that accesses the `pages`. Cc: stable@vger.kernel.org Fixes: 03bc06c7b0bd ("ceph: add new mount option to enable sparse reads") Fixes: f0fe1e54cfcf ("ceph: plumb in decryption during reads") Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions