]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix helper bpf_map_peek_elem_proto pointing to wrong callback
authorMircea Cirjaliu <mcirjaliu@bitdefender.com>
Tue, 19 Jan 2021 20:53:18 +0000 (21:53 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 19 Jan 2021 21:04:08 +0000 (22:04 +0100)
commit6abdbcb3ab6ca47f5e82d66f5624e24fcaa54a34
tree52653445fbe86d9614777afe8a4ff95f35acadd1
parent3c5cc6cf59c363a6e33f39942d4293a84fe3e136
bpf: Fix helper bpf_map_peek_elem_proto pointing to wrong callback

I assume this was obtained by copy/paste. Point it to bpf_map_peek_elem()
instead of bpf_map_pop_elem(). In practice it may have been less likely
hit when under JIT given shielded via f422d9f57954 ("bpf, verifier: avoid
retpoline for map push/pop/peek operation").

Fixes: 7d049345a115 ("bpf: add queue and stack maps")
Signed-off-by: Mircea Cirjaliu <mcirjaliu@bitdefender.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Mauricio Vasquez <mauriciovasquezbernal@gmail.com>
Link: https://lore.kernel.org/bpf/AM7PR02MB6082663DFDCCE8DA7A6DD6B1BBA30@AM7PR02MB6082.eurprd02.prod.outlook.com
kernel/bpf/helpers.c