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

glibc: Add workaround for certain dynamic TLS usage in interposed malloc [rhel-9.4.z]

    • glibc-2.34-100.el9_4.3
    • None
    • None
    • ZStream
    • 1
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 1
    • False
    • Yes
    • Red Hat Enterprise Linux
    • SST PT Libraries Sprint 7
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug):
      Consequence (what the user experience is when the bug occurs):
      Fix (what has changed to fix the bug; do not include overly technical details):
      Result (what happens now that the patch is applied):
      Show
      Cause (the user action or circumstances that trigger the bug): Consequence (what the user experience is when the bug occurs): Fix (what has changed to fix the bug; do not include overly technical details): Result (what happens now that the patch is applied):
    • Proposed
    • None

      This is a clone of issue RHEL-39992 to use for version rhel-9.4.z

      Original description:
      Upstream has merged a compatibility enhancement after the fix for RHEL-2123, which we should backport as well:

      commit afe42e935b3ee97bac9a7064157587777259c60e
      Author: Florian Weimer <fweimer@redhat.com>
      Date:   Mon Jun 3 10:49:40 2024 +0200
      
          elf: Avoid some free (NULL) calls in _dl_update_slotinfo
          
          This has been confirmed to work around some interposed mallocs.  Here
          is a discussion of the impact test ust/libc-wrapper/test_libc-wrapper
          in lttng-tools:
          
            New TLS usage in libgcc_s.so.1, compatibility impact
            <https://inbox.sourceware.org/libc-alpha/8734v1ieke.fsf@oldenburg.str.redhat.com/>
          
          Reportedly, this patch also papers over a similar issue when tcmalloc
          2.9.1 is not compiled with -ftls-model=initial-exec.  Of course the
          goal really should be to compile mallocs with the initial-exec TLS
          model, but this commit appears to be a useful interim workaround.
          
          Fixes commit d2123d68275acc0f061e73d5f86ca504e0d5a344 ("elf: Fix slow
          tls access after dlopen [BZ #19924]").
          
          Reviewed-by: Carlos O'Donell <carlos@redhat.com>
      

              skolosov@redhat.com Sergey Kolosov
              watson-automation Watson Automation
              Patsy Griffin Patsy Griffin
              Sergey Kolosov Sergey Kolosov
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: