syzbot


memory leak in ip6_mc_add_src (2)

Status: closed as invalid on 2020/09/28 07:57
Subsystems: net
[Documentation on labels]
First crash: 1681d, last: 1681d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in ip6_mc_add_src net C 1 1715d 1715d 12/26 fixed on 2019/09/06 20:45

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888120959480 (size 64):
  comm "syz-executor.0", pid 6827, jiffies 4294964332 (age 14.310s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000aa363c7a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000aa363c7a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000aa363c7a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000aa363c7a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<0000000061ebcc27>] kmalloc include/linux/slab.h:552 [inline]
    [<0000000061ebcc27>] kzalloc include/linux/slab.h:686 [inline]
    [<0000000061ebcc27>] ip6_mc_add1_src net/ipv6/mcast.c:2237 [inline]
    [<0000000061ebcc27>] ip6_mc_add_src+0x31f/0x420 net/ipv6/mcast.c:2357
    [<00000000086fb6bc>] ip6_mc_source+0x4a8/0x600 net/ipv6/mcast.c:449
    [<0000000018184e69>] do_ipv6_setsockopt.isra.0+0x1b92/0x1dd0 net/ipv6/ipv6_sockglue.c:748
    [<000000008c50074b>] ipv6_setsockopt+0x89/0xd0 net/ipv6/ipv6_sockglue.c:944
    [<00000000d9fa3d41>] tcp_setsockopt net/ipv4/tcp.c:3150 [inline]
    [<00000000d9fa3d41>] tcp_setsockopt+0x46/0x80 net/ipv4/tcp.c:3144
    [<00000000fb802b33>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<000000009fe7b950>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<00000000fba6b1a4>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<00000000fba6b1a4>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<00000000fba6b1a4>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000150bd4f3>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000c21e1bc5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

BUG: memory leak
unreferenced object 0xffff88811ce64100 (size 64):
  comm "syz-executor.0", pid 6838, jiffies 4294964979 (age 7.840s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000aa363c7a>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000aa363c7a>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000aa363c7a>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000aa363c7a>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<0000000061ebcc27>] kmalloc include/linux/slab.h:552 [inline]
    [<0000000061ebcc27>] kzalloc include/linux/slab.h:686 [inline]
    [<0000000061ebcc27>] ip6_mc_add1_src net/ipv6/mcast.c:2237 [inline]
    [<0000000061ebcc27>] ip6_mc_add_src+0x31f/0x420 net/ipv6/mcast.c:2357
    [<00000000086fb6bc>] ip6_mc_source+0x4a8/0x600 net/ipv6/mcast.c:449
    [<0000000018184e69>] do_ipv6_setsockopt.isra.0+0x1b92/0x1dd0 net/ipv6/ipv6_sockglue.c:748
    [<000000008c50074b>] ipv6_setsockopt+0x89/0xd0 net/ipv6/ipv6_sockglue.c:944
    [<00000000d9fa3d41>] tcp_setsockopt net/ipv4/tcp.c:3150 [inline]
    [<00000000d9fa3d41>] tcp_setsockopt+0x46/0x80 net/ipv4/tcp.c:3144
    [<00000000fb802b33>] sock_common_setsockopt+0x38/0x50 net/core/sock.c:3142
    [<000000009fe7b950>] __sys_setsockopt+0x10f/0x220 net/socket.c:2084
    [<00000000fba6b1a4>] __do_sys_setsockopt net/socket.c:2100 [inline]
    [<00000000fba6b1a4>] __se_sys_setsockopt net/socket.c:2097 [inline]
    [<00000000fba6b1a4>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2097
    [<00000000150bd4f3>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000c21e1bc5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/30 05:12 upstream a3c0e7b1fe1f c1ad5441 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.