Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4123

Have dbus log a warning when disconnecting a client due to message corruption

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • rhel-8.7.0
    • dbus
    • None
    • Moderate
    • rhel-display-desktop-foundation
    • ssg_display
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:

      This is related to systemd BZ #2158724.

      When a DBus client sends a non-UTF8 message through the bus, DBus disconnects the client without logging anything, we makes it hard to understand the reason for disconnection.
      In my case, I was troubleshooting for BZ #2158724, I could see with strace that the systemd connection was getting disconnected after dbus read some messages.
      To find out this was due to a message corruption detection (done by validate_body_helper() function), I had to set up a breakpoint within gdb in various failure locations, which is definitely not user-friendly.
      If DBus was reporting where the corruption is and for which connection, this would have helped speed up the troubleshooting

      Version-Release number of selected component (if applicable):

      dbus-1.12.8-x

      How reproducible:

      Send a non-UTF8 message through the bus, didn't build any reproducer for that.

              dking@redhat.com David King
              rhn-support-rmetrich Renaud Métrich
              David King David King
              Desktop QE Desktop QE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: