Commit 3d9c463f authored by Brandon Kammerdiener's avatar Brandon Kammerdiener Committed by Alexei Starovoitov
Browse files

selftests/bpf: add test for softlock when modifying hashmap while iterating



Add test that modifies the map while it's being iterated in such a way that
hangs the kernel thread unless the _safe fix is applied to
bpf_for_each_hash_elem.

Signed-off-by: default avatarBrandon Kammerdiener <brandon.kammerdiener@intel.com>
Link: https://lore.kernel.org/r/20250424153246.141677-3-brandon.kammerdiener@intel.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarHou Tao <houtao1@huawei.com>
parent 75673fda
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment