This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/22641] Merge error in x86 XSAVE dynamic linker trampoline commit in 2.23


https://sourceware.org/bugzilla/show_bug.cgi?id=22641

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.23/master has been updated
       via  fbd72f14904b8a81816528e0cc5bb3315fc70a47 (commit)
      from  26d289bb92b6d1125536644f607c73617463477d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fbd72f14904b8a81816528e0cc5bb3315fc70a47

commit fbd72f14904b8a81816528e0cc5bb3315fc70a47
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Jan 11 16:54:40 2018 +0100

    x86: Fix mis-merge of XSAVE ld.so trampoline selection [BZ #22641]

    The change is best viewed with “diff -w”:

    @@ -226,6 +226,7 @@ init_cpu_features (struct cpu_features *cpu_features)
          /* Determine if FMA4 is usable.  */
          if (HAS_CPU_FEATURE (FMA4))
            cpu_features->feature[index_FMA4_Usable] |= bit_FMA4_Usable;
    +   }

           /* For _dl_runtime_resolve, set xsave_state_size to xsave area
         size + integer register save size and align it to 64 bytes.  */
    @@ -292,7 +293,6 @@ init_cpu_features (struct cpu_features *cpu_features)
            }
        }
         }
    -    }

     #if !HAS_CPUID
     no_cpuid:

    Without this change, XSAVE support will never be selected unless the CPU
    also supports AVX, which is not what we want.  For example, if AVX is
    disabled, but MPX is supported, the BND registers are not preserved if
    we use FXSAVE instead of XSAVE.

    This fixes commit 26d289bb92b6d1125536644f607c73617463477d (x86-64:
    Use fxsave/xsave/xsavec in _dl_runtime_resolve).

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |    5 ++
 NEWS                       |    1 +
 sysdeps/x86/cpu-features.c |  100 ++++++++++++++++++++++----------------------
 3 files changed, 56 insertions(+), 50 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]