]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/compression antibug check
authorMarcus Watts <mwatts@redhat.com>
Tue, 16 Jul 2024 21:16:10 +0000 (17:16 -0400)
committerMarcus Watts <mwatts@redhat.com>
Thu, 16 Oct 2025 20:43:41 +0000 (16:43 -0400)
commit1c7e33b0c1a27acfd6ada5f18d24e02a76af071b
treed99b5fed8eef38bbe1c20f36762cd30bace7d87e
parent17244c075d750e49cc16dfe75559fa099aba9590
rgw/compression antibug check

If another bug tells the compression filter to decompress more
data than is actually present, the resulting "end_of_buffer"
error was thrown.  The thrown exception unwinds the stack,
including a completion that is pending.  The resulting core dump
indicates a failure with this completion rather than the end of buffer
exception, which is misleading and not useful.

With this change, radosgw does not abort, and instead logs
a somewhat useful message before returning an "unknown" error
to the client.

Fixes: https://tracker.ceph.com/issues/23264
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_compression.cc