syzbot


memory leak in sctp_stream_init_ext

Status: fixed on 2019/10/28 17:50
Reported-by: syzbot+7f3b6b106be8dcdcdeec@syzkaller.appspotmail.com
Fix commit: 3c52b0af059e lib/generic-radix-tree.c: add kmemleak annotations
First crash: 1286d, last: 1150d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in sctp_stream_init_ext (2) syz 2 606d 964d 0/24 auto-obsoleted due to no activity on 2022/10/10 13:43

Sample crash report:
executing program
executing program
executing program
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888117ca7280 (size 96):
  comm "syz-executor364", pid 6844, jiffies 4294941067 (age 48.690s)
  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:
    [<00000000fa0a2dc4>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<00000000fa0a2dc4>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<00000000fa0a2dc4>] slab_alloc mm/slab.c:3319 [inline]
    [<00000000fa0a2dc4>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
    [<00000000b2aab174>] kmalloc include/linux/slab.h:556 [inline]
    [<00000000b2aab174>] kzalloc include/linux/slab.h:690 [inline]
    [<00000000b2aab174>] sctp_stream_init_ext+0x2b/0xe0 net/sctp/stream.c:158
    [<00000000d04e8b57>] sctp_sendmsg_to_asoc+0x94a/0xa10 net/sctp/socket.c:1797
    [<000000003dab11c5>] sctp_sendmsg+0x2a6/0xc60 net/sctp/socket.c:2017
    [<0000000056b57466>] inet_sendmsg+0x3e/0x60 net/ipv4/af_inet.c:807
    [<000000000d34cfb2>] sock_sendmsg_nosec net/socket.c:637 [inline]
    [<000000000d34cfb2>] sock_sendmsg+0x54/0x70 net/socket.c:657
    [<000000004089e338>] __sys_sendto+0x148/0x1f0 net/socket.c:1952
    [<000000008c68b0f5>] __do_sys_sendto net/socket.c:1964 [inline]
    [<000000008c68b0f5>] __se_sys_sendto net/socket.c:1960 [inline]
    [<000000008c68b0f5>] __x64_sys_sendto+0x2a/0x30 net/socket.c:1960
    [<00000000eef8675b>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290
    [<00000000615c6484>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (34):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2019/10/13 15:50 upstream da94001239cc 2f661ec4 .config log report syz C
ci-upstream-gce-leak 2019/09/23 00:16 upstream f7c3bf8fa7e5 d96e88f3 .config log report syz C
ci-upstream-gce-leak 2019/09/18 06:17 upstream 7f2444d38f6b 03e0d245 .config log report syz C
ci-upstream-gce-leak 2019/09/18 05:19 upstream 7f2444d38f6b 03e0d245 .config log report syz C
ci-upstream-gce-leak 2019/09/17 18:50 upstream ad062195731b 13dcda9b .config log report syz C
ci-upstream-gce-leak 2019/09/15 03:59 upstream 1609d7604b84 32d59357 .config log report syz C
ci-upstream-gce-leak 2019/09/14 21:09 upstream a7f89616b737 32d59357 .config log report syz C
ci-upstream-gce-leak 2019/09/10 11:42 upstream 56037cadf604 a60cb4cd .config log report syz C
ci-upstream-gce-leak 2019/09/08 20:24 upstream 950b07c14e8c a60cb4cd .config log report syz C
ci-upstream-gce-leak 2019/09/08 09:43 upstream b3a9964cfa69 a60cb4cd .config log report syz C
ci-upstream-gce-leak 2019/09/05 23:56 upstream 3b47fd5ca9ea 040fda58 .config log report syz C
ci-upstream-gce-leak 2019/09/03 19:54 upstream 089cf7f6ecb2 48448e71 .config log report syz C
ci-upstream-gce-leak 2019/09/02 21:38 upstream 089cf7f6ecb2 14544a56 .config log report syz C
ci-upstream-gce-leak 2019/09/02 06:15 upstream 9f159ae07f07 db7c31ca .config log report syz C
ci-upstream-gce-leak 2019/09/01 17:09 upstream eea173097dfb bad3cce2 .config log report syz C
ci-upstream-gce-leak 2019/08/31 18:25 upstream 6525771f58cb fd37b39e .config log report syz C
ci-upstream-gce-leak 2019/08/25 01:04 upstream 361469211f87 d21c5d9d .config log report syz C
ci-upstream-gce-leak 2019/08/13 16:41 upstream d45331b00ddb 8620c2c2 .config log report syz C
ci-upstream-gce-leak 2019/08/06 11:25 upstream 0eb0ce0a78e1 6affd8e8 .config log report syz C
ci-upstream-gce-leak 2019/08/02 04:06 upstream 1e78030e5e5b 835dffe7 .config log report syz C
ci-upstream-gce-leak 2019/07/31 07:30 upstream 629f8205a6cc 7c7ded69 .config log report syz C
ci-upstream-gce-leak 2019/07/25 04:56 upstream bed38c3e2dca 32329ceb .config log report syz C
ci-upstream-gce-leak 2019/07/19 23:29 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-gce-leak 2019/06/24 18:55 upstream 241e39004581 472f0082 .config log report syz C
ci-upstream-gce-leak 2019/06/21 13:55 upstream abf02e2964b3 34bf9440 .config log report syz C
ci-upstream-gce-leak 2019/06/17 18:43 upstream 9e0babf2c06c 442206d7 .config log report syz C
ci-upstream-gce-leak 2019/06/15 21:43 upstream 0011572c8830 442206d7 .config log report syz C
ci-upstream-gce-leak 2019/06/15 16:11 upstream 0011572c8830 442206d7 .config log report syz C
ci-upstream-gce-leak 2019/06/10 10:28 upstream d1fdb6d8f6a4 0159583c .config log report syz C
ci-upstream-gce-leak 2019/06/09 13:24 upstream d1fdb6d8f6a4 0159583c .config log report syz C
ci-upstream-gce-leak 2019/05/31 02:32 upstream bec7550cca10 d9aaf3c2 .config log report syz C
ci-upstream-gce-leak 2019/09/11 09:09 upstream 3120b9a6a3f7 a60cb4cd .config log report syz
ci-upstream-gce-leak 2019/09/09 17:15 upstream f74c2bb98776 a60cb4cd .config log report syz
ci-upstream-gce-leak 2019/08/03 16:07 upstream 97b00aff2c45 6affd8e8 .config log report syz
* Struck through repros no longer work on HEAD.