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

annocheck reports stack-prot test fails for libm.so.6 and libc.so.6 on ppc64le

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-9.4
    • None
    • annobin
    • None
    • annobin-12.31-1.el9
    • None
    • None
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • 18
    • 22
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • ppc64le
    • None

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

      annocheck reports stack-prot test fails on ppc64le architecture for the following files from glibc:

      /usr/lib64/glibc-hwcaps/power10/libm.so.6
      /usr/lib64/glibc-hwcaps/power10/libc.so.6

      Please provide the package NVR for which bug is seen:

      glibc-2.34-87.el9.ppc64le
      annobin-annocheck-12.28-1.el9.ppc64le
      RHEL compose: RHEL-9.4.0-20231114.19

      How reproducible:

      deterministic

      Steps to reproduce

      1. dnf install -y annobin-annocheck
      2. dnf debuginfo-install -y glibc
      3. annocheck --verbose --skip-all --test-stack-prot /usr/lib64/glibc-hwcaps/power10/libm.so.6 /usr/lib64/glibc-hwcaps/power10/libc.so.6

      Expected results

      No fails for stack-prot test.

      Actual results

      # annocheck --verbose --skip-all --test-stack-prot /usr/lib64/glibc-hwcaps/power10/libm.so.6  /usr/lib64/glibc-hwcaps/power10/libc.so.6
      annocheck: Version 12.28.
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: info: Command line options not recorded in DWARF DW_AT_producer variable.
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: info: ALSO written in C (source: DW_AT_language string).
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: PASS: stack-prot test because option found in DW_AT_producer string 
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: FAIL: stack-prot test because stack protection not enabled (../sysdeps/powerpc/powerpc64/le/fpu/multiarch/e_log.c:__ieee754_log_ifunc) 
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-stack-prot.html
      Hardened: /usr/lib64/glibc-hwcaps/power10/libm.so.6: Overall: FAIL.
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: PASS: stack-prot test because option found in DW_AT_producer string 
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: info: ALSO written in Assembler (source: DW_AT_language string).
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: info: Command line options not recorded in DWARF DW_AT_producer variable.
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: FAIL: stack-prot test because stack protection not enabled (init-first.c) 
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-stack-prot.html
      Hardened: /usr/lib64/glibc-hwcaps/power10/libc.so.6: Overall: FAIL.
      

      Note: Same files from glibc-2.34-84 are passing the stack-prot test.

              nickc@redhat.com Nick Clifton
              mmarhefk@redhat.com Matus Marhefka
              Nick Clifton Nick Clifton
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: