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

strace fails to build with current glibc fortification

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.2
    • strace
    • None
    • Yes
    • Important
    • 1
    • rhel-kernel-tracing-perf
    • 18
    • 22
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CK Parent Issues In Progress
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      strace rebuild fails with current glibc versions (glibc-2.39-86.el10, glibc-2.39-91.el10, ...), this way:

      In file included from /usr/include/features.h:503,
                       from /usr/include/bits/libc-header-start.h:33,
                       from /usr/include/stdint.h:26,
                       from /usr/lib/gcc/x86_64-redhat-linux/14/include/stdint.h:9,
                       from tests.h:27,
                       from group_req.c:11:
      In function ‘inet_pton’,
          inlined from ‘main’ at group_req.c:48:2:
      /usr/include/bits/inet-fortified.h:49:10: error: call to ‘__inet_pton_chk_warn’ declared with attribute warning: inet_pton called with a destination buffer size too small [-Werror=attribute-warning]
         49 |   return __glibc_fortify (inet_pton, __sz, sizeof (char),
            |          ^~~~~~~~~~~~~~~
      In function ‘inet_pton’,
          inlined from ‘main’ at group_req.c:51:2:
      /usr/include/bits/inet-fortified.h:49:10: error: call to ‘__inet_pton_chk_warn’ declared with attribute warning: inet_pton called with a destination buffer size too small [-Werror=attribute-warning]
         49 |   return __glibc_fortify (inet_pton, __sz, sizeof (char),
            |          ^~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      

      This seems to be caused by incorrect call of inet_pton() function from a strace test.

              mpetlan@redhat.com Michael Petlan
              mpetlan@redhat.com Michael Petlan
              Michael Petlan Michael Petlan
              Qiao Zhao Qiao Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: