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

glibc: Add basic stap --dyninst test to gating tests

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

    • Low
    • TestOnly
    • 3
    • rhel-pt-c-libs
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PT C Libraries 2025 S15, PT C Libraries 2025 S16, PT C Libraries 2026 S02
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      We should add a basic stap --dyninst test to glibc gating, to make sure this keeps working. This is important because we are making many dynamic linker changes.

      We should run stap like this, as a non-root user:

      $ stap --dyninst -e 'probe process("/usr/bin/getent").function("main") {println(pn())}' -c /usr/bin/getent passwd root
      process("/usr/bin/getent").function("main@/usr/src/debug/glibc-2.34-244.el9.x86_64/nss/getent.c:980")
      root:x:0:0:root:/root:/bin/bash
      $ 

      The crucial part is the output line in the middle (starting with process).

      Note that stap needs glibc-debuginfo, glibc-common-debuginfo, gcc, systemtap-devel. Not all these dependencies are declared. And stap --dyninst may incorrectly fail if Secure Boot is active on the system.

      Note: This change needs to be applied to all active branch (c8s, c9s, c10s).

              skolosov@redhat.com Sergey Kolosov
              fweimer@redhat.com Florian Weimer
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              Sergey Kolosov Sergey Kolosov
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: