Re: [PATCH v2 bpf 2/2] selftests/bpf: Add test for trie_get_next_key()
From: Hou Tao
Date: Mon Oct 28 2024 - 21:33:23 EST
On 10/26/2024 1:04 PM, Byeonguk Jeong wrote:
> 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: Byeonguk Jeong <jungbu2855@xxxxxxxxx>
> ---
> v1 -> v2:
> - Fixed a build error.
> - Removed unnecessary comments about crash-on-failure warning.
> - Fix a variable to be initialized before using it.
> ---
Acked-by: Hou Tao <houtao1@xxxxxxxxxx>