Skip to content

bpf: fix kernel page fault in lpm map trie_get_next_key

Yonghong Song netdev 1 version Applied

Status from this message: Applied to bpf-next, thank you Yonghong!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: fix kernel page fault in lpm map trie_get_next_keykernel/bpf/lpm_trie.c+11 -150 replies
2/2tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_maptools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/test_lpm_map.c+96 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf: fix kernel page fault in lpm map trie_get_next_key

A kernel page fault which happens in lpm map trie_get_next_key is reported by syzbot and Eric. The issue was introduced by commit b471f2f1de8b ("bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map"). Patch #1 fixed the issue in the kernel and patch #2 adds a multithreaded test case in tools/testing/selftests/bpf/test_lpm_map.

Yonghong Song (2):
bpf: fix kernel page fault in lpm map trie_get_next_key tools/bpf: add a multithreaded stress test in bpf selftests
test_lpm_map

 kernel/bpf/lpm_trie.c                      | 26 ++++----
 tools/testing/selftests/bpf/Makefile       |  2 +-
 tools/testing/selftests/bpf/test_lpm_map.c | 95 ++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+), 16 deletions(-)
Signature · 1 line
2.9.5