]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix a buffer leak in __ceph_setxattr()
authorViacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Thu, 9 Apr 2026 19:26:02 +0000 (12:26 -0700)
committerViacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Wed, 15 Apr 2026 18:42:53 +0000 (11:42 -0700)
commitf593508d06765372d9eabeb443dee7b9448a4872
tree55008d98a00ac2784dcc72712c2a728835cc84a5
parenta0900008c815e35862b690ac4ca971a836ddefb5
ceph: fix a buffer leak in __ceph_setxattr()

The old_blob in __ceph_setxattr() can store
ci->i_xattrs.prealloc_blob value during the retry.
However, it is never called the ceph_buffer_put()
for the old_blob object. This patch fixes the issue of
the buffer leak.

Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
cc: Alex Markuze <amarkuze@redhat.com>
cc: Ilya Dryomov <idryomov@gmail.com>
cc: Patrick Donnelly <pdonnell@redhat.com>
cc: Ceph Development <ceph-devel@vger.kernel.org>
fs/ceph/xattr.c