diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2024-07-11 05:27:09 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-07-11 10:18:31 +0200 |
commit | 50bd5a0c658d132507673c4d59347c025dd149ed (patch) | |
tree | 065eafc4e3328e68157f744c675c1e6f749bd316 /tools/testing/selftests/net/af_unix/unix_connect.c | |
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 <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240711052709.2148616-1-memxor@gmail.com
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions