Project

General

Profile

Actions

Bug #76745

closed
XX

Crimson: seastar log heap-buffer-overflow

Bug #76745: Crimson: seastar log heap-buffer-overflow

Added by Xuehan Xu 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

https://pulpito.ceph.com/xuxuehan-2026-05-19_01:26:23-crimson-rados-wip-new-128-distro-debug-trial/219224/

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@=================================================================
==33142==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x525000007100 at pc 0x7f5d79a79829 bp 0x7fffa08bb440 sp 0x7fffa08babf8
READ of size 8261 at 0x525000007100 thread T0
    #0 0x7f5d79a79828 in write.part.0 (/lib64/libasan.so.8+0x79828) (BuildId: ad7620e2d73aec35a93d534569dfc5af69229262)
    #1 0x7f5d784facec in std::__basic_file<char>::xsputn(char const*, long) (/lib64/libstdc++.so.6+0xfacec) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)
    #2 0x7f5d7852c86c in std::basic_filebuf<char, std::char_traits<char> >::_M_convert_to_external(char*, long) (/lib64/libstdc++.so.6+0x12c86c) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)
    #3 0x7f5d7852cd1a in std::basic_filebuf<char, std::char_traits<char> >::overflow(int) (/lib64/libstdc++.so.6+0x12cd1a) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)
    #4 0x7f5d7852a88c in std::basic_filebuf<char, std::char_traits<char> >::sync() (/lib64/libstdc++.so.6+0x12a88c) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)
    #5 0x7f5d78557a65 in std::ostream::flush() (/lib64/libstdc++.so.6+0x157a65) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)
    #6 0x556cd5ec51fb in seastar::logger::do_log(seastar::log_level, seastar::logger::log_writer&) /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/util/log.cc:358
    #7 0x556cd568bad3 in seastar::logger::log(seastar::log_level, seastar::logger::rate_limit&, seastar::logger::log_writer&, seastar::logger::format_info) /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/include/seastar/util/log.hh:320
    #8 0x556cd5876486 in seastar::reactor::task_queue::run_tasks() /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/reactor.cc:2705
    #9 0x556cd57d87cc in seastar::reactor::task_queue_group::run_tasks() /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/reactor.cc:3193
    #10 0x556cd57d8fa5 in seastar::reactor::task_queue_group::run_some_tasks() /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/reactor.cc:3177
    #11 0x556cd591ab43 in seastar::reactor::do_run() /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/reactor.cc:3345
    #12 0x556cd591c474 in seastar::reactor::run() /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/reactor.cc:3237
    #13 0x556cd5587d9f in seastar::app_template::run_deprecated(int, char**, std::function<void ()>&&) /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/app-template.cc:266
    #14 0x556cd55885ca in seastar::app_template::run(int, char**, std::function<seastar::future<int> ()>&&) /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/seastar/src/core/app-template.cc:160
    #15 0x556ccc2acd5b in main /usr/src/debug/ceph-21.0.0-1419.gba94bc7f.el10.x86_64/src/crimson/osd/main.cc:133
    #16 0x7f5d7825258d in __libc_start_call_main (/lib64/libc.so.6+0x2a58d) (BuildId: 1e3e48dbffd641e15d0c912086334c9e3436917c)
    #17 0x7f5d78252648 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x2a648) (BuildId: 1e3e48dbffd641e15d0c912086334c9e3436917c)
    #18 0x556ccbdc4e54 in _start (/usr/bin/ceph-osd-crimson+0xd0ee54) (BuildId: 69439e49ae8ecb8bd6cfcecdeff7e3029da0c063)

0x525000007100 is located 0 bytes after 8192-byte region [0x525000005100,0x525000007100)
allocated by thread T0 here:
    #0 0x7f5d79afd598 in operator new[](unsigned long) (/lib64/libasan.so.8+0xfd598) (BuildId: ad7620e2d73aec35a93d534569dfc5af69229262)
    #1 0x7f5d7852c6e3 in std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer() (/lib64/libstdc++.so.6+0x12c6e3) (BuildId: 8a2cddcba07e4ea90cc3d075b24f67b790af1aaf)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/lib64/libasan.so.8+0x79828) (BuildId: ad7620e2d73aec35a93d534569dfc5af69229262) in write.part.0
Shadow bytes around the buggy address:
  0x525000006e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x525000006f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x525000006f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x525000007000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x525000007080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x525000007100:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x525000007180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x525000007200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x525000007280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x525000007300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x525000007380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==33142==ABORTING
daemon-helper: command failed with exit status 1

Related issues 1 (0 open — 1 closed)

Is duplicate of crimson - Bug #76524: AddressSanitizer: heap-buffer-overflow in write.part.0 (seastar::logger)ResolvedKefu Chai

Actions

XX Updated by Xuehan Xu 6 months ago Actions #1

  • Is duplicate of Bug #76524: AddressSanitizer: heap-buffer-overflow in write.part.0 (seastar::logger) added

UB Updated by Upkeep Bot 6 months ago Actions #2

  • Status changed from New to Resolved
Actions

Also available in: PDF Atom