syzbot


memory leak in bpf (2)

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+5d895828587f49e7fe9b@syzkaller.appspotmail.com
Fix commit: ccff81e1d028 bpf: Fix false positive kmemleak report in bpf_ringbuf_area_alloc()
First crash: 548d, last: 476d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in bpf C 9 596d 678d 0/24 closed as invalid on 2021/03/01 16:21
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/07 23:09 16m rkovhaev@gmail.com patch upstream OK

Sample crash report:
Warning: Permanently added '10.128.0.74' (ECDSA) to the list of known hosts.
executing program
executing program
BUG: memory leak
unreferenced object 0xffff8881133295c0 (size 64):
  comm "syz-executor529", pid 8395, jiffies 4294943939 (age 8.130s)
  hex dump (first 32 bytes):
    40 48 3c 04 00 ea ff ff 00 48 3c 04 00 ea ff ff  @H<......H<.....
    c0 e7 3c 04 00 ea ff ff 80 e7 3c 04 00 ea ff ff  ..<.......<.....
  backtrace:
    [<ffffffff8139511c>] kmalloc_node include/linux/slab.h:577 [inline]
    [<ffffffff8139511c>] __bpf_map_area_alloc+0xfc/0x120 kernel/bpf/syscall.c:300
    [<ffffffff813d2414>] bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:90 [inline]
    [<ffffffff813d2414>] bpf_ringbuf_alloc kernel/bpf/ringbuf.c:131 [inline]
    [<ffffffff813d2414>] ringbuf_map_alloc kernel/bpf/ringbuf.c:170 [inline]
    [<ffffffff813d2414>] ringbuf_map_alloc+0x134/0x350 kernel/bpf/ringbuf.c:146
    [<ffffffff8139c8d3>] find_and_alloc_map kernel/bpf/syscall.c:122 [inline]
    [<ffffffff8139c8d3>] map_create kernel/bpf/syscall.c:828 [inline]
    [<ffffffff8139c8d3>] __do_sys_bpf+0x7c3/0x2fe0 kernel/bpf/syscall.c:4375
    [<ffffffff842df20d>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2021/03/28 01:03 upstream 0f4498cef9f5 a8529b82 .config log report syz C memory leak in bpf
ci-upstream-gce-leak 2021/06/08 14:19 upstream 614124bea77e b718257f .config log report syz memory leak in bpf
ci-upstream-gce-leak 2021/05/28 11:24 upstream 97e5bf604b7a 858ea628 .config log report syz memory leak in bpf
* Struck through repros no longer work on HEAD.