Project

General

Profile

Actions

Bug #44362

closed

osd: uninitialized memory in sendmsg

Added by Sage Weil about 4 years ago. Updated over 3 years ago.

Status:
Can't reproduce
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  <kind>SyscallParam</kind>
  <what>Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s)</what>
  <stack>
    <frame>
      <ip>0xC24CAF7</ip>
      <obj>/usr/lib64/libpthread-2.28.so</obj>
      <fn>sendmsg</fn>
    </frame>
    <frame>
      <ip>0x10C685F</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>do_sendmsg</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>PosixStack.cc</file>
      <line>80</line>
    </frame>
    <frame>
      <ip>0x10C685F</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>PosixConnectedSocketImpl::send(ceph::buffer::v14_2_0::list&amp;, bool)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>PosixStack.cc</file>
      <line>129</line>
    </frame>
    <frame>
      <ip>0x107C8D0</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>send</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>Stack.h</file>
      <line>100</line>
    </frame>
    <frame>
      <ip>0x107C8D0</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>AsyncConnection::_try_send(bool)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>AsyncConnection.cc</file>
      <line>330</line>
    </frame>
    <frame>
      <ip>0x107CEFA</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>AsyncConnection::write(ceph::buffer::v14_2_0::list&amp;, std::function&lt;void (long)&gt;, bool)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>AsyncConnection.cc</file>
      <line>309</line>
    </frame>
    <frame>
      <ip>0x10A7BA5</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ProtocolV2::write(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, CtFun&lt;ProtocolV2&gt;&amp;, ceph::buffer::v14_2_0::list&amp;)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>777</line>
    </frame>
...
  <auxwhat>Address 0xfc93680 is 0 bytes inside a block of size 4,096 alloc'd</auxwhat>
  <stack>
    <frame>
      <ip>0xA80751C</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>memalign</fn>
      <dir>/builddir/build/BUILD/valgrind-3.15.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>908</line>
    </frame>
    <frame>
      <ip>0xA807629</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>posix_memalign</fn>
      <dir>/builddir/build/BUILD/valgrind-3.15.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>1072</line>
    </frame>
    <frame>
      <ip>0xEE4B8D</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>create</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/common</dir>
      <file>buffer.cc</file>
      <line>120</line>
    </frame>
    <frame>
      <ip>0xEE4B8D</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ceph::buffer::v14_2_0::list::refill_append_space(unsigned int)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/common</dir>
      <file>buffer.cc</file>
      <line>1324</line>
    </frame>
    <frame>
      <ip>0xEE4FFA</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ceph::buffer::v14_2_0::list::append_hole(unsigned int)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/common</dir>
      <file>buffer.cc</file>
      <line>1444</line>
    </frame>
    <frame>
      <ip>0x10C7690</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ceph::crypto::onwire::AES128GCM_OnWireTxHandler::authenticated_encrypt_final()</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>crypto_onwire.cc</file>
      <line>121</line>
    </frame>
    <frame>
      <ip>0x10C48DE</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>get_buffer</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>frames_v2.h</file>
      <line>274</line>
    </frame>
    <frame>
      <ip>0x10C48DE</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>Ct&lt;ProtocolV2&gt;* ProtocolV2::write&lt;ceph::msgr::v2::AuthSignatureFrame&gt;(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, CtFun&lt;ProtocolV2&gt;&amp;, ceph::msgr::v2::AuthSignatureFrame&amp;)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>763</line>
    </frame>
    <frame>
      <ip>0x10B27B8</ip>
      <obj>/usr/bin/ceph-osd</obj>
      <fn>ProtocolV2::handle_auth_done(ceph::buffer::v14_2_0::list&amp;)</fn>
      <dir>/usr/src/debug/ceph-15.1.0-1465.g4941ea0.el8.x86_64/src/msg/async</dir>
      <file>ProtocolV2.cc</file>
      <line>1873</line>
    </frame>

/a/sage-2020-03-01_17:33:08-rados-wip-sage2-testing-2020-03-01-0811-distro-basic-smithi/4816360

Related issues 1 (0 open1 closed)

Related to RADOS - Bug #38827: valgrind: UninitCondition in ceph::crypto::onwire::AES128GCM_OnWireRxHandler::authenticated_decrypt_update_final()ResolvedRadoslaw Zarzynski03/20/2019

Actions
Actions

Also available in: Atom PDF