Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: fix kernel page fault in lpm map trie_get_next_key
@ 2018-01-26 23:06 Yonghong Song
  2018-01-26 23:06 ` [PATCH bpf-next 1/2] " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yonghong Song @ 2018-01-26 23:06 UTC (permalink / raw)
  To: ast, daniel, edumazet, netdev; +Cc: kernel-team

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(-)

-- 
2.9.5

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-27  1:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-26 23:06 [PATCH bpf-next 0/2] bpf: fix kernel page fault in lpm map trie_get_next_key Yonghong Song
2018-01-26 23:06 ` [PATCH bpf-next 1/2] " Yonghong Song
2018-01-26 23:06 ` [PATCH bpf-next 2/2] tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_map Yonghong Song
2018-01-27  1:10 ` [PATCH bpf-next 0/2] bpf: fix kernel page fault in lpm map trie_get_next_key Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox