Unknown ORC entry type 5 on RHEL 9 kernel

Stephen Brennan <[email protected]> Thu, 04 Dec 2025 12:06:54 -0800
Newsgroups org.kernel.vger.linux-debuggers
Message-ID <[email protected]>
Hi Philipp,

I wanted to let you know about an issue with drgn's stack unwinding on
the RHEL 9 kernel. It looks like that kernel backports some ORC changes,
without including a change Omar made (including an .orc_header section)
to help identify the ORC format version. I've included more details on
this drgn issue:

https://github.com/osandov/drgn/issues/578

The result is that drgn can't unwind stacks on the RHEL 9 kernel. I
think the best path forward would be to include the .orc_header patch:
b9f174c811e3a ("x86/unwind/orc: Add ELF section with ORC version identifier")

As it is, the RHEL 9 drgn can't unwind stacks on the RHEL 9 kernel,
which seems less than ideal.

Thanks,
Stephen