From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: DJ Delorie <dj@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: tunables vs osxsave vs checkpointing vs _dl_runtime_resolve
Date: Fri, 19 Mar 2021 16:43:35 +0000 [thread overview]
Message-ID: <20210319164334.GA3876@arm.com> (raw)
In-Reply-To: <xn8s6knzxw.fsf@rhel8.vm>
The 03/18/2021 13:18, DJ Delorie via Libc-alpha wrote:
>
> In response to this customer bug...
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1937515
>
> I spent some time digging into this code, and was able to reproduce it
> using criu (checkpoint/restore in userspace). In a nutshell: if you
> create a task on a machine WITH xsave (or xsavec), and migrate it
> (somehow) to a machine WITHOUT xsave (or xsavec), any further DSO
> calls will fail because we've already chosen an xsave/xsavec resolver.
>
> This, of course, is guaranteed to fail, and cannot be fixed. With
> criu I had to override the checks with a command line option just to
> prove my point.
>
> However, if you *know* you might do this, there should be a way to use
> tunables to avoid xsave/xsavec - with the usual caveats about "YMMV" -
> so that a process could be migrated across such CPUs without fault.
>
> Our tunables almost provide this.
so are we supposed to handle migrations to machines with
different arch extensions?
cpu_features based decisions can break across different
machines and there is no reliable (future proof) way to
request baseline arch features.
on aarch64 the closest is glibc.cpu.name=generic tunable
but it only affects the cpuid (which fixes most libc
ifunc selection logic, but e.g. not if the cpu has bti
or not, there is glibc.cpu.hwcap_mask but not hacap2 mask
so bti cannot be turned off in glibc if the hw has it)
next prev parent reply other threads:[~2021-03-19 16:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 17:18 DJ Delorie
2021-03-18 17:29 ` H.J. Lu
2021-03-18 17:45 ` DJ Delorie
2021-03-18 20:39 ` H.J. Lu
2021-03-19 3:40 ` DJ Delorie
2021-03-19 4:16 ` H.J. Lu
2021-03-19 4:35 ` DJ Delorie
2021-03-18 17:32 ` Florian Weimer
2021-03-18 17:47 ` DJ Delorie
2021-03-18 17:57 ` Florian Weimer
2021-03-18 18:19 ` DJ Delorie
2021-03-19 16:43 ` Szabolcs Nagy [this message]
2021-03-19 21:12 ` DJ Delorie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210319164334.GA3876@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).