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

[RHEL-10 Beta] stalld: buffer overflow detected in find_debugfs_sched_debug()

    • None
    • Important
    • rhel-sst-kernel-rts
    • ssg_core_kernel
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Run stalld.

      Please provide the package NVR for which bug is seen:

      [root@vm-10-0-186-45 ~]# cat /etc/redhat-release 
      Red Hat Enterprise Linux release 10.0 Beta (Plow)
      [root@vm-10-0-186-45 ~]# rpm -q stalld
      stalld-1.19.1-1.el10.x86_64

      How reproducible:

      Always.

      Steps to reproduce

      1. stalld

      Expected results

      stalld starts w/o exceptions.

      Actual results

      [root@vm-10-0-186-45 ~]# stalld
      *** buffer overflow detected ***: terminated
      Aborted (core dumped)
      [root@vm-10-0-186-45 ~]# gdb stalld
      GNU gdb (Red Hat Enterprise Linux) 14.1-8.el10
      Copyright (C) 2023 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      Type "show copying" and "show warranty" for details.
      This GDB was configured as "x86_64-redhat-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <https://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
          <http://www.gnu.org/software/gdb/documentation/>.For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from stalld...
      Reading symbols from /usr/lib/debug/usr/bin/stalld-1.19.1-1.el10.x86_64.debug...
      (gdb) run
      Starting program: /usr/bin/stalld 
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib64/libthread_db.so.1".
      *** buffer overflow detected ***: terminatedProgram received signal SIGABRT, Aborted.
      0x00007ffff7e6a26c in __pthread_kill_implementation () from /lib64/libc.so.6
      Missing separate debuginfos, use: dnf debuginfo-install glibc-2.39-2.el10.x86_64
      (gdb) bt
      #0  0x00007ffff7e6a26c in __pthread_kill_implementation () from /lib64/libc.so.6
      #1  0x00007ffff7e153b6 in raise () from /lib64/libc.so.6
      #2  0x00007ffff7dfd8fa in abort () from /lib64/libc.so.6
      #3  0x00007ffff7dfe956 in __libc_message_impl.cold () from /lib64/libc.so.6
      #4  0x00007ffff7ef0efb in __fortify_fail () from /lib64/libc.so.6
      #5  0x00007ffff7ef0886 in __chk_fail () from /lib64/libc.so.6
      #6  0x00007ffff7e56184 in __vsprintf_internal () from /lib64/libc.so.6
      #7  0x00007ffff7ef2039 in __sprintf_chk () from /lib64/libc.so.6
      #8  0x000055555555a7f1 in sprintf (__s=0x5555555639c0 "/sys/kernel/debug/sched/debug", 
          __fmt=0x55555555c29c "%s/%s") at /usr/include/bits/stdio2.h:30
      #9  find_debugfs_sched_debug () at src/utils.c:479
      #10 find_sched_debug_path () at src/utils.c:522
      #11 sched_debug_init () at src/sched_debug.c:609
      #12 0x000055555555732f in main (argc=<optimized out>, argv=<optimized out>)
          at src/stalld.c:1286

              rhn-gps-chwhite William White
              shichen@redhat.com Shizhao Chen
              Clark Williams Clark Williams
              Chang Yin Chang Yin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: