Eric Dumazet
ad10c381d1
bpf: Add missing map_delete_elem method to bloom filter map
Without it, kernel crashes in map_delete_elem(), as reported
by syzbot.
BUG: kernel NULL pointer dereference, address: 0000000000000000
PGD 72c97067 P4D 72c97067 PUD 1e20c067 PMD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6518 Comm: syz-executor196 Not tainted 5.15.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002bafcb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 1ffff92000575f9f RCX: 0000000000000000
RDX: 1ffffffff1327aba RSI: 0000000000000000 RDI: ffff888025a30c00
RBP: ffffc90002baff08 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff818525d8 R11: 0000000000000000 R12: ffffffff8993d560
R13: ffff888025a30c00 R14: ffff888024bc0000 R15: 0000000000000000
FS: 0000555557491300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000070189000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
map_delete_elem kernel/bpf/syscall.c:1220 [inline]
__sys_bpf+0x34f1/0x5ee0 kernel/bpf/syscall.c:4606
__do_sys_bpf kernel/bpf/syscall.c:4719 [inline]
__se_sys_bpf kernel/bpf/syscall.c:4717 [inline]
__x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4717
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
Fixes: 9330986c03 ("bpf: Add bloom filter map implementation")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211031171353.4092388-1-eric.dumazet@gmail.com
2021-11-01 14:22:44 -07:00
..
2021-10-20 10:39:04 -07:00
2021-09-28 16:27:18 -07:00
2021-11-01 14:22:44 -07:00
2021-05-24 21:13:05 -07:00
2021-08-17 00:45:07 +02:00
2021-02-26 11:51:48 -08:00
2021-02-10 15:54:26 -08:00
2020-04-06 21:54:10 +02:00
2021-06-17 11:54:56 -07:00
2021-11-01 14:10:00 -07:00
2021-11-01 14:10:00 -07:00
2021-08-25 10:37:05 -07:00
2021-10-22 17:04:43 -07:00
2021-08-23 17:50:24 -07:00
2021-10-05 17:07:41 -07:00
2021-07-07 20:01:45 -07:00
2021-08-09 23:25:14 +02:00
2021-09-02 14:49:23 +02:00
2021-09-02 14:49:23 +02:00
2020-03-13 12:49:52 -07:00
2021-09-28 16:27:18 -07:00
2021-09-28 16:27:18 -07:00
2021-06-22 14:57:43 +02:00
2021-11-01 17:06:47 +01:00
2021-07-27 15:59:29 -07:00
2021-06-24 19:41:15 +02:00
2021-10-28 13:22:49 -07:00
2021-07-15 22:31:10 +02:00
2020-08-28 15:41:30 +02:00
2020-08-21 14:01:39 -07:00
2020-08-01 20:38:28 -07:00
2020-02-17 16:53:49 +01:00
2020-10-06 00:04:11 +02:00
2020-10-06 00:04:11 +02:00
2020-07-25 20:16:32 -07:00
2020-12-02 18:32:46 -08:00
2021-05-24 21:13:05 -07:00
2021-06-28 15:57:46 +02:00
2021-09-10 22:24:23 +02:00
2021-10-28 16:30:06 -07:00
2020-11-10 15:25:53 -08:00
2021-08-25 10:37:05 -07:00
2021-06-01 13:34:15 +02:00
2021-10-27 11:13:52 -07:00
2021-10-28 13:22:49 -07:00