selftests/rseq: Do not skip !allowed_cpus for mm_cid
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 11 Jan 2024 15:49:22 +0000 (10:49 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 22 Jan 2024 18:40:36 +0000 (11:40 -0700)
commitd53271c05965b4469c57a18c66585075df81c504
tree72972127e433a62493035c7bd1ad3c7ab91aee50
parent6613476e225e090cc9aad49be7fa504e290dd33d
selftests/rseq: Do not skip !allowed_cpus for mm_cid

Indexing with mm_cid is incompatible with skipping disallowed cpumask,
because concurrency IDs are based on a virtual ID allocation which is
unrelated to the physical CPU mask.

These issues can be reproduced by running the rseq selftests under a
taskset which excludes CPU 0, e.g.

  taskset -c 10-20 ./run_param_test.sh

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/rseq/basic_percpu_ops_test.c
tools/testing/selftests/rseq/param_test.c