syzbot


memory leak in mld_newpack (2)

Status: auto-obsoleted due to no activity on 2024/01/14 17:18
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+6667f589ca803e522dd5@syzkaller.appspotmail.com
First crash: 301d, last: 252d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] memory leak in mld_newpack (2) 0 (1) 2023/07/13 06:18
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in mld_newpack net C 2 596d 1014d 22/26 fixed on 2023/02/24 13:50
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/01/14 16:58 19m retest repro upstream OK log
2023/11/05 09:52 19m retest repro upstream report log
2023/08/27 09:07 21m retest repro upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88811bcfc000 (size 2048):
  comm "kworker/0:2", pid 2509, jiffies 4295029694 (age 93.370s)
  hex dump (first 32 bytes):
    00 00 33 33 00 00 00 16 fa 19 b9 c5 55 d7 86 dd  ..33........U...
    60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00  `....$..........
  backtrace:
    [<ffffffff8154c38b>] __do_kmalloc_node mm/slab_common.c:984 [inline]
    [<ffffffff8154c38b>] __kmalloc_node_track_caller+0x4b/0x120 mm/slab_common.c:1005
    [<ffffffff83e184ec>] kmalloc_reserve+0x9c/0x180 net/core/skbuff.c:575
    [<ffffffff83e1bb55>] __alloc_skb+0xd5/0x230 net/core/skbuff.c:644
    [<ffffffff83e24b6f>] alloc_skb include/linux/skbuff.h:1289 [inline]
    [<ffffffff83e24b6f>] alloc_skb_with_frags+0x6f/0x340 net/core/skbuff.c:6228
    [<ffffffff83e116b3>] sock_alloc_send_pskb+0x3a3/0x3e0 net/core/sock.c:2782
    [<ffffffff842fc401>] sock_alloc_send_skb include/net/sock.h:1871 [inline]
    [<ffffffff842fc401>] mld_newpack.isra.0+0x81/0x220 net/ipv6/mcast.c:1748
    [<ffffffff842fc66c>] add_grhead+0xcc/0xf0 net/ipv6/mcast.c:1851
    [<ffffffff842fce63>] add_grec+0x7d3/0x840 net/ipv6/mcast.c:1989
    [<ffffffff842ff31f>] mld_send_cr net/ipv6/mcast.c:2115 [inline]
    [<ffffffff842ff31f>] mld_ifc_work+0x26f/0x750 net/ipv6/mcast.c:2653
    [<ffffffff812b19e4>] process_one_work+0x2c4/0x620 kernel/workqueue.c:2597
    [<ffffffff812b233d>] worker_thread+0x5d/0x5c0 kernel/workqueue.c:2748
    [<ffffffff812bbde3>] kthread+0x133/0x180 kernel/kthread.c:389
    [<ffffffff81002b5f>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

BUG: memory leak
unreferenced object 0xffff88811bcfd800 (size 2048):
  comm "kworker/0:4", pid 5090, jiffies 4295029925 (age 91.060s)
  hex dump (first 32 bytes):
    00 00 33 33 00 00 00 16 aa aa aa aa aa 1b 86 dd  ..33............
    60 00 00 00 00 38 00 01 00 00 00 00 00 00 00 00  `....8..........
  backtrace:
    [<ffffffff8154c38b>] __do_kmalloc_node mm/slab_common.c:984 [inline]
    [<ffffffff8154c38b>] __kmalloc_node_track_caller+0x4b/0x120 mm/slab_common.c:1005
    [<ffffffff83e184ec>] kmalloc_reserve+0x9c/0x180 net/core/skbuff.c:575
    [<ffffffff83e1bb55>] __alloc_skb+0xd5/0x230 net/core/skbuff.c:644
    [<ffffffff83e24b6f>] alloc_skb include/linux/skbuff.h:1289 [inline]
    [<ffffffff83e24b6f>] alloc_skb_with_frags+0x6f/0x340 net/core/skbuff.c:6228
    [<ffffffff83e116b3>] sock_alloc_send_pskb+0x3a3/0x3e0 net/core/sock.c:2782
    [<ffffffff842fc401>] sock_alloc_send_skb include/net/sock.h:1871 [inline]
    [<ffffffff842fc401>] mld_newpack.isra.0+0x81/0x220 net/ipv6/mcast.c:1748
    [<ffffffff842fc66c>] add_grhead+0xcc/0xf0 net/ipv6/mcast.c:1851
    [<ffffffff842fce63>] add_grec+0x7d3/0x840 net/ipv6/mcast.c:1989
    [<ffffffff842ff31f>] mld_send_cr net/ipv6/mcast.c:2115 [inline]
    [<ffffffff842ff31f>] mld_ifc_work+0x26f/0x750 net/ipv6/mcast.c:2653
    [<ffffffff812b19e4>] process_one_work+0x2c4/0x620 kernel/workqueue.c:2597
    [<ffffffff812b233d>] worker_thread+0x5d/0x5c0 kernel/workqueue.c:2748
    [<ffffffff812bbde3>] kthread+0x133/0x180 kernel/kthread.c:389
    [<ffffffff81002b5f>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/09 06:08 upstream 1c7873e33645 668cb1fa .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in mld_newpack
* Struck through repros no longer work on HEAD.