syzbot


memory leak in sctp_stream_init_ext (2)

Status: upstream: reported syz repro on 2020/04/17 03:45
Reported-by: syzbot+96e916d6f6f7617bc9fc@syzkaller.appspotmail.com
First crash: 895d, last: 537d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in sctp_stream_init_ext C 34 1081d 1216d 14/24 fixed on 2019/10/28 17:50
Patch testing requests:
Created Duration User Patch Repo Result
2020/10/16 23:41 15m anant.thazhemadam@gmail.com upstream OK

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888115e33180 (size 96):
  comm "syz-executor.0", pid 8681, jiffies 4294967587 (age 13.470s)
  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:
    [<ffffffff83d9be46>] kmalloc include/linux/slab.h:554 [inline]
    [<ffffffff83d9be46>] kzalloc include/linux/slab.h:684 [inline]
    [<ffffffff83d9be46>] sctp_stream_init_ext+0x26/0xf0 net/sctp/stream.c:171
    [<ffffffff83d8862d>] sctp_sendmsg_to_asoc+0xc4d/0xd20 net/sctp/socket.c:1793
    [<ffffffff83d905e2>] sctp_sendmsg+0x992/0x1030 net/sctp/socket.c:2013
    [<ffffffff839b5b45>] inet_sendmsg+0x45/0x70 net/ipv4/af_inet.c:821
    [<ffffffff8363aed6>] sock_sendmsg_nosec net/socket.c:654 [inline]
    [<ffffffff8363aed6>] sock_sendmsg+0x56/0x80 net/socket.c:674
    [<ffffffff8363deac>] __sys_sendto+0x15c/0x200 net/socket.c:1977
    [<ffffffff8363df76>] __do_sys_sendto net/socket.c:1989 [inline]
    [<ffffffff8363df76>] __se_sys_sendto net/socket.c:1985 [inline]
    [<ffffffff8363df76>] __x64_sys_sendto+0x26/0x30 net/socket.c:1985
    [<ffffffff842ded2d>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae

BUG: memory leak
unreferenced object 0xffff888115c7f380 (size 96):
  comm "syz-executor.0", pid 8690, jiffies 4294968173 (age 7.610s)
  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:
    [<ffffffff83d9be46>] kmalloc include/linux/slab.h:554 [inline]
    [<ffffffff83d9be46>] kzalloc include/linux/slab.h:684 [inline]
    [<ffffffff83d9be46>] sctp_stream_init_ext+0x26/0xf0 net/sctp/stream.c:171
    [<ffffffff83d8862d>] sctp_sendmsg_to_asoc+0xc4d/0xd20 net/sctp/socket.c:1793
    [<ffffffff83d905e2>] sctp_sendmsg+0x992/0x1030 net/sctp/socket.c:2013
    [<ffffffff839b5b45>] inet_sendmsg+0x45/0x70 net/ipv4/af_inet.c:821
    [<ffffffff8363aed6>] sock_sendmsg_nosec net/socket.c:654 [inline]
    [<ffffffff8363aed6>] sock_sendmsg+0x56/0x80 net/socket.c:674
    [<ffffffff8363deac>] __sys_sendto+0x15c/0x200 net/socket.c:1977
    [<ffffffff8363df76>] __do_sys_sendto net/socket.c:1989 [inline]
    [<ffffffff8363df76>] __se_sys_sendto net/socket.c:1985 [inline]
    [<ffffffff8363df76>] __x64_sys_sendto+0x26/0x30 net/socket.c:1985
    [<ffffffff842ded2d>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae


Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2021/04/09 14:32 upstream 4fa56ad0d12e 6a81331a .config log report syz memory leak in sctp_stream_init_ext
ci-upstream-gce-leak 2020/04/16 13:39 upstream 00086336a8d9 c743fcb3 .config log report syz
* Struck through repros no longer work on HEAD.