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

[RHEL 9.6] drgn fails to print stack trace on x86

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.8
    • rhel-9.6
    • python-drgn
    • python-drgn-0.0.33-2.el9
    • None
    • Important
    • ZStream
    • 1
    • rhel-kernel-debug-kdb
    • 22
    • 24
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CK Parent Issues In Progress
    • Regression Exception
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Since kernel-5.14.0-517.el9 drgn fails to provide a stack trace for kernel threads. In particular it fails with

      >>> print(stack_trace(1))
      Traceback (most recent call last):
        File "<console>", line 1, in <module>
        File "/usr/lib64/python3.9/site-packages/drgn/__init__.py", line 312, in stack_trace
          return get_default_prog().stack_trace(thread)
      Exception: unknown ORC entry type 5
      

      This is because the rhel9 kernel is missing upstream commit b9f174c811e3 ("x86/unwind/orc: Add ELF section with ORC version identifier"). This commit depends on upstream commit 321648455061 ("kbuild: use obj-y instead extra-y for objects placed at the head"), which is quite invasive and shouldn't be backported this late in the RHEL9 cycle (see RHEL-27234 for details). So add a workaround in drgn instead.

              rh-ee-prudo Philipp Rudo
              rh-ee-prudo Philipp Rudo
              kdump team kdump team
              Jie Li Jie Li
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: