public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27605] New: tunables can't control xsave/xsavec selection in dl_runtime_resolve_*
@ 2021-03-18 17:45 dj at redhat dot com
  2021-03-18 17:54 ` [Bug libc/27605] " hjl.tools at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dj at redhat dot com @ 2021-03-18 17:45 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27605
           Summary: tunables can't control xsave/xsavec selection in
                    dl_runtime_resolve_*
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: dj at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

in sysdeps/x86/cpu-features.c, the decision to use xsave/xsavec is made -
indirectly, by computing the save set size - before the tunables have a chance
to affect it.  The logic in update_usable() should be deferred until after the
tunables check in init_cpu_features().  As it is, you can't control which
_dl_runtime_resolve_* ifunc is used, by disabling xsave/osxsave in tunables.

See: https://sourceware.org/pipermail/libc-alpha/2021-March/124133.html
See: https://bugzilla.redhat.com/show_bug.cgi?id=1937515

The desired result allows for a process to be migrated from a with-xsave
machine to a without-xsave machine, or across different with-xsavec machines,
by disabling all xsave/xsavec (with the usual caveats about not using extended
registers) completely.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-29 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 17:45 [Bug libc/27605] New: tunables can't control xsave/xsavec selection in dl_runtime_resolve_* dj at redhat dot com
2021-03-18 17:54 ` [Bug libc/27605] " hjl.tools at gmail dot com
2021-03-18 18:10 ` dj at redhat dot com
2021-03-18 20:25 ` hjl.tools at gmail dot com
2021-03-19 13:30 ` hjl.tools at gmail dot com
2021-03-29 13:07 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).