syzbot


memory leak in packet_setsockopt

Status: fixed on 2019/06/20 05:27
Subsystems: net
[Documentation on labels]
Fix commit: afa0925c6fcc packet: unconditionally free po->rollover
First crash: 1850d, last: 1834d

Sample crash report:
e list of known hosts.
executing program
BUG: memory leak
unreferenced object 0xffff8881154fc400 (size 128):
  comm "syz-executor633", pid 7053, jiffies 4294942670 (age 7.960s)
  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 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000f75a746c>] kmemleak_alloc_recursive include/linux/kmemleak.h:55 [inline]
    [<00000000f75a746c>] slab_post_alloc_hook mm/slab.h:439 [inline]
    [<00000000f75a746c>] slab_alloc mm/slab.c:3326 [inline]
    [<00000000f75a746c>] kmem_cache_alloc_trace+0x13d/0x280 mm/slab.c:3553
    [<00000000c8c2cfee>] kmalloc include/linux/slab.h:547 [inline]
    [<00000000c8c2cfee>] kzalloc include/linux/slab.h:742 [inline]
    [<00000000c8c2cfee>] fanout_add net/packet/af_packet.c:1653 [inline]
    [<00000000c8c2cfee>] packet_setsockopt+0xcad/0x1160 net/packet/af_packet.c:3811
    [<00000000378a346c>] __sys_setsockopt+0x98/0x120 net/socket.c:2072
    [<000000000f9ca17f>] __do_sys_setsockopt net/socket.c:2083 [inline]
    [<000000000f9ca17f>] __se_sys_setsockopt net/socket.c:2080 [inline]
    [<000000000f9ca17f>] __x64_sys_setsockopt+0x26/0x30 net/socket.c:2080
    [<000000003debe27f>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301
    [<0000000020f89c0b>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/07 05:47 upstream 01047631df81 698773cb .config console log report syz C ci-upstream-gce-leak
2019/06/06 03:34 upstream 156c05917e09 a547defc .config console log report syz C ci-upstream-gce-leak
2019/05/31 23:12 upstream 036e34310931 142ce681 .config console log report syz C ci-upstream-gce-leak
2019/05/31 05:08 upstream 20f944965601 d9aaf3c2 .config console log report syz C ci-upstream-gce-leak
2019/05/30 13:40 upstream bec7550cca10 d9aaf3c2 .config console log report syz C ci-upstream-gce-leak
2019/05/26 18:57 upstream 35efb51eee22 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/24 22:12 upstream c50bbf615f2f 85c57315 .config console log report syz C ci-upstream-gce-leak
2019/05/22 17:43 upstream 9c7db5004280 84b9d384 .config console log report syz C ci-upstream-gce-leak
2019/05/22 01:29 upstream 5bdd9ad875b6 13427bd9 .config console log report syz C ci-upstream-gce-leak
2019/05/21 09:43 upstream f49aa1de9836 8285069f .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.