diff options
author | Benjamin Berg <benjamin.berg@intel.com> | 2025-03-14 16:08:15 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-03-18 13:06:20 +0300 |
commit | 887c5c12e80c8424bd471122d2e8b6b462e12874 (patch) | |
tree | 259c6a7ccefbdbc5af825a49012d6a4eb1c6bd99 /lib/crypto/mpi/mpiutil.c | |
parent | 089db01ea7eb4f366be45b9390a04f1c601c0071 (diff) | |
download | linux-887c5c12e80c8424bd471122d2e8b6b462e12874.tar.xz |
um: work around sched_yield not yielding in time-travel mode
sched_yield by a userspace may not actually cause scheduling in
time-travel mode as no time has passed. In the case seen it appears to
be a badly implemented userspace spinlock in ASAN. Unfortunately, with
time-travel it causes an extreme slowdown or even deadlock depending on
the kernel configuration (CONFIG_UML_MAX_USERSPACE_ITERATIONS).
Work around it by accounting time to the process whenever it executes a
sched_yield syscall.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250314130815.226872-1-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions