]> www.infradead.org Git - users/hch/misc.git/commit
selftests/rseq: Fix mm_cid test failure
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 9 Oct 2024 01:28:01 +0000 (21:28 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 11 Oct 2024 21:05:05 +0000 (15:05 -0600)
commita0cc649353bb726d4aa0db60dce467432197b746
tree51808f6c6e8810a103fe07e9a1021d5bf729385d
parent34d5b600172b846161e507bdce132c98d9cc9701
selftests/rseq: Fix mm_cid test failure

Adapt the rseq.c/rseq.h code to follow GNU C library changes introduced by:

glibc commit 2e456ccf0c34 ("Linux: Make __rseq_size useful for feature detection (bug 31965)")

Without this fix, rseq selftests for mm_cid fail:

./run_param_test.sh
Default parameters
Running test spinlock
Running compare-twice test spinlock
Running mm_cid test spinlock
Error: cpu id getter unavailable

Fixes: 18c2355838e7 ("selftests/rseq: Implement rseq mm_cid field support")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
CC: Boqun Feng <boqun.feng@gmail.com>
CC: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
CC: Carlos O'Donell <carlos@redhat.com>
CC: Florian Weimer <fweimer@redhat.com>
CC: linux-kselftest@vger.kernel.org
CC: stable@vger.kernel.org
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/rseq/rseq.c
tools/testing/selftests/rseq/rseq.h