syzbot


memory leak in bpf (2)

Status: fixed on 2021/11/10 00:50
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+5d895828587f49e7fe9b@syzkaller.appspotmail.com
Fix commit: ccff81e1d028 bpf: Fix false positive kmemleak report in bpf_ringbuf_area_alloc()
First crash: 1147d, last: 1075d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 5.13 001/189] drm/etnaviv: fix NULL check before some freeing functions is not needed 201 (201) 2021/08/09 16:06
[PATCH 5.12 000/242] 5.12.18-rc1 review 258 (258) 2021/07/22 14:12
[PATCH 5.10 000/215] 5.10.51-rc1 review 225 (225) 2021/07/17 01:20
[PATCH 5.13 000/266] 5.13.3-rc1 review 276 (276) 2021/07/16 18:08
[PATCH AUTOSEL 5.10 001/137] drm/etnaviv: fix NULL check before some freeing functions is not needed 141 (141) 2021/07/12 22:03
[PATCH AUTOSEL 5.12 001/160] drm/etnaviv: fix NULL check before some freeing functions is not needed 160 (160) 2021/07/06 11:18
[PATCH] bpf: fix false positive kmemleak report in bpf_ringbuf_area_alloc() 2 (2) 2021/06/28 14:19
[syzbot] memory leak in bpf (2) 1 (2) 2021/04/07 19:40
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in bpf bpf C 9 1195d 1277d 0/26 closed as invalid on 2021/03/01 16:21
Last patch testing requests (1)
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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/28 01:03 upstream 0f4498cef9f5 a8529b82 .config console log report syz C ci-upstream-gce-leak memory leak in bpf
2021/06/08 14:19 upstream 614124bea77e b718257f .config console log report syz ci-upstream-gce-leak memory leak in bpf
2021/05/28 11:24 upstream 97e5bf604b7a 858ea628 .config console log report syz ci-upstream-gce-leak memory leak in bpf
* Struck through repros no longer work on HEAD.