syzbot


memory leak in ip_mc_add_src

Status: fixed on 2019/06/18 17:49
Subsystems: net
[Documentation on labels]
Fix commit: 3580d04aa674 ipv4/igmp: fix another memory leak in igmpv3_del_delrec()
First crash: 1880d, last: 1856d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in ip_mc_add_src (3) net C 332 1129d 1803d 0/27 closed as invalid on 2022/10/12 18:48
upstream memory leak in ip_mc_add_src (2) net C 7 1814d 1843d 12/27 fixed on 2019/08/05 13:45

Sample crash report:
e list of known hosts.
executing program
BUG: memory leak
unreferenced object 0xffff8881215467c0 (size 64):
  comm "softirq", pid 0, jiffies 4294943817 (age 8.320s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 e0 00 00 01 00 00 00 00  ................
    02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<0000000012b00557>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<0000000012b00557>] slab_post_alloc_hook mm/slab.h:439 [inline]
    [<0000000012b00557>] slab_alloc mm/slab.c:3326 [inline]
    [<0000000012b00557>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
    [<00000000bd2eba84>] kmalloc include/linux/slab.h:547 [inline]
    [<00000000bd2eba84>] kzalloc include/linux/slab.h:742 [inline]
    [<00000000bd2eba84>] ip_mc_add1_src net/ipv4/igmp.c:1976 [inline]
    [<00000000bd2eba84>] ip_mc_add_src+0x36b/0x400 net/ipv4/igmp.c:2100
    [<0000000040f2ce22>] ip_mc_msfilter+0x22d/0x310 net/ipv4/igmp.c:2484
    [<00000000f173bfee>] do_ip_setsockopt.isra.0+0x1795/0x1930 net/ipv4/ip_sockglue.c:959
    [<000000003eb427d0>] ip_setsockopt+0x3b/0xb0 net/ipv4/ip_sockglue.c:1248
    [<00000000ba7d700d>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2610
    [<0000000042a768f0>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3124
    [<00000000acc3fd55>] __sys_setsockopt+0x98/0x120 net/socket.c:2072
    [<00000000534b5f64>] __do_sys_setsockopt net/socket.c:2083 [inline]
    [<00000000534b5f64>] __se_sys_setsockopt net/socket.c:2080 [inline]
    [<00000000534b5f64>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2080
    [<00000000aed6bfdd>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
    [<0000000018bef60b>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/14 08:32 upstream c11fb13a117e 998ccc76 .config console log report syz C ci-upstream-gce-leak
2019/06/09 20:58 upstream d1fdb6d8f6a4 0159583c .config console log report syz C ci-upstream-gce-leak
2019/06/08 15:50 upstream 79c3ba3206c7 0159583c .config console log report syz C ci-upstream-gce-leak
2019/06/05 12:07 upstream 788a024921c4 bfb4a51e .config console log report syz C ci-upstream-gce-leak
2019/06/03 22:57 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-gce-leak
2019/05/30 07:22 upstream bec7550cca10 d9aaf3c2 .config console log report syz C ci-upstream-gce-leak
2019/05/28 22:39 upstream 9fb67d643f6f 6bd61501 .config console log report syz C ci-upstream-gce-leak
2019/05/26 14:02 upstream 35efb51eee22 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/24 21:39 upstream c50bbf615f2f 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/23 02:46 upstream 54dee406374c 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/23 00:02 upstream 54dee406374c 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/22 15:45 upstream 9c7db5004280 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/22 11:31 upstream 9c7db5004280 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/21 07:09 upstream f49aa1de9836 8285069f .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.