syzbot


memory leak in mld_newpack

Status: upstream: reported C repro on 2021/07/26 00:29
Reported-by: syzbot+dcd3e13cf4472f2e0ba1@syzkaller.appspotmail.com
Fix commit: a43206156263 usbnet: Fix memory leak in usbnet_disconnect()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci2-upstream-usb]
First crash: 437d, last: 15d
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/23 00:03 16m yepeilin.cs@gmail.com patch upstream OK log
2022/09/21 06:26 16m yepeilin.cs@gmail.com patch upstream OK log
2022/09/21 00:27 16m yepeilin.cs@gmail.com patch upstream OK log
2021/09/30 03:04 8m phind.uet@gmail.com linux-next report log
2021/08/22 15:32 8m phind.uet@gmail.com linux-next report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810bb0bb00 (size 240):
  comm "kworker/0:2", pid 143, jiffies 4294946271 (age 15.640s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 bb b0 0b 81 88 ff ff  ................
    00 70 aa 11 81 88 ff ff 80 10 e9 44 81 88 ff ff  .p.........D....
  backtrace:
    [<ffffffff8387bb59>] __alloc_skb+0x1f9/0x270 net/core/skbuff.c:422
    [<ffffffff8388255a>] alloc_skb include/linux/skbuff.h:1257 [inline]
    [<ffffffff8388255a>] alloc_skb_with_frags+0x6a/0x340 net/core/skbuff.c:6021
    [<ffffffff8387508f>] sock_alloc_send_pskb+0x39f/0x3d0 net/core/sock.c:2665
    [<ffffffff83d4eb01>] sock_alloc_send_skb include/net/sock.h:1866 [inline]
    [<ffffffff83d4eb01>] mld_newpack.isra.0+0x81/0x200 net/ipv6/mcast.c:1748
    [<ffffffff83d4ed26>] add_grhead+0xa6/0xc0 net/ipv6/mcast.c:1851
    [<ffffffff83d4f4fc>] add_grec+0x7bc/0x820 net/ipv6/mcast.c:1989
    [<ffffffff83d514e3>] mld_send_cr net/ipv6/mcast.c:2115 [inline]
    [<ffffffff83d514e3>] mld_ifc_work+0x273/0x750 net/ipv6/mcast.c:2653
    [<ffffffff8127afca>] process_one_work+0x2ba/0x5f0 kernel/workqueue.c:2289
    [<ffffffff8127b8e9>] worker_thread+0x59/0x5b0 kernel/workqueue.c:2436
    [<ffffffff81284c95>] kthread+0x125/0x160 kernel/kthread.c:376
    [<ffffffff8100224f>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306


Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2022/09/16 22:13 upstream 6879c2d3b960 dd9a85ff .config log report syz C memory leak in mld_newpack
ci-upstream-gce-leak 2021/07/22 00:25 upstream 8cae8cd89f05 29c3f20f .config log report syz memory leak in mld_newpack
* Struck through repros no longer work on HEAD.