aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2022-08-10 18:41:13 +0800
committerPaolo Bonzini <[email protected]>2022-08-10 15:08:29 -0400
commit66d42ac73fc680dbd7a1402f8b44967426522d0f (patch)
treef61847152cf55980ac9700509e40576ccf02521e /lib/mpi/mpi-cmp.c
parentb74ed7a68ec183403763571a54ca3dcc24cf19eb (diff)
KVM: selftests: Make rseq compatible with glibc-2.35
The rseq information is registered by TLS, starting from glibc-2.35. In this case, the test always fails due to syscall(__NR_rseq). For example, on RHEL9.1 where upstream glibc-2.35 features are enabled on downstream glibc-2.34, the test fails like below. # ./rseq_test ==== Test Assertion Failure ==== rseq_test.c:60: !r pid=112043 tid=112043 errno=22 - Invalid argument 1 0x0000000000401973: main at rseq_test.c:226 2 0x0000ffff84b6c79b: ?? ??:0 3 0x0000ffff84b6c86b: ?? ??:0 4 0x0000000000401b6f: _start at ??:? rseq failed, errno = 22 (Invalid argument) # rpm -aq | grep glibc-2 glibc-2.34-39.el9.aarch64 Fix the issue by using "../rseq/rseq.c" to fetch the rseq information, registred by TLS if it exists. Otherwise, we're going to register our own rseq information as before. Reported-by: Yihuang Yu <[email protected]> Suggested-by: Florian Weimer <[email protected]> Suggested-by: Mathieu Desnoyers <[email protected]> Suggested-by: Paolo Bonzini <[email protected]> Signed-off-by: Gavin Shan <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions