diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2024-07-11 08:27:09 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-07-11 11:18:31 +0300 |
commit | 50bd5a0c658d132507673c4d59347c025dd149ed (patch) | |
tree | 065eafc4e3328e68157f744c675c1e6f749bd316 /scripts/clang-tools/gen_compile_commands.py | |
parent | 0c237341d994adbafed2a0d372275de39efa4a98 (diff) | |
download | linux-50bd5a0c658d132507673c4d59347c025dd149ed.tar.xz |
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 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions