diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2024-07-11 05:27:09 +0000 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2024-07-11 10:18:31 +0200 |
commit | 50bd5a0c658d132507673c4d59347c025dd149ed (patch) | |
tree | 065eafc4e3328e68157f744c675c1e6f749bd316 /tools/testing/selftests/net/af_unix | |
parent | 0c237341d994adbafed2a0d372275de39efa4a98 (diff) |
selftests/bpf: Add timer lockup selftest
Add a selftest that tries to trigger a situation where two timer callbacks
are attempting to cancel each other's timer. By running them continuously,
we hit a condition where both run in parallel and cancel each other.
Without the fix in the previous patch, this would cause a lockup as
hrtimer_cancel on either side will wait for forward progress from the
callback.
Ensure that this situation leads to a EDEADLK error.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/net/af_unix')
0 files changed, 0 insertions, 0 deletions