diff options
author | Ben Wolsieffer <[email protected]> | 2023-10-19 16:45:49 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-10-27 11:53:42 +0200 |
commit | c73801ae4f22b390228ebf471d55668e824198b6 (patch) | |
tree | 3ff2d2f1871b78a9f626c9457a421e3ea4343fe4 /tools/perf/scripts/python/sched-migration.py | |
parent | 184fdf9fc7ae6ae7155768faa48fc609d1a24b7e (diff) |
futex: Don't include process MM in futex key on no-MMU
On no-MMU, all futexes are treated as private because there is no need
to map a virtual address to physical to match the futex across
processes. This doesn't quite work though, because private futexes
include the current process's mm_struct as part of their key. This makes
it impossible for one process to wake up a shared futex being waited on
in another process.
Fix this bug by excluding the mm_struct from the key. With
a single address space, the futex address is already a unique key.
Fixes: 784bdf3bb694 ("futex: Assume all mappings are private on !MMU systems")
Signed-off-by: Ben Wolsieffer <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: André Almeida <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions