Skip to content
Commit d7f214ae authored by Byeonguk Jeong's avatar Byeonguk Jeong Committed by Alexei Starovoitov
Browse files

selftests/bpf: Add test for trie_get_next_key()



Add a test for out-of-bounds write in trie_get_next_key() when a full
path from root to leaf exists and bpf_map_get_next_key() is called
with the leaf node. It may crashes the kernel on failure, so please
run in a VM.

Signed-off-by: default avatarByeonguk Jeong <jungbu2855@gmail.com>
Acked-by: default avatarHou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/Zxx4ep78tsbeWPVM@localhost.localdomain


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 13400ac8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment