kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 19210 Comm: syz-executor0 Not tainted 4.14.0-rc7-next-20171103+ #10 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 task: ffff88003bb74000 task.stack: ffff88002aa20000 RIP: 0010:sctp_stream_free+0xc3/0x1b0 net/sctp/stream.c:209 RSP: 0018:ffff88002aa268a0 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffff8800378e1658 RCX: ffffffff84b1f998 RDX: 0000000000000001 RSI: ffffc9000134b000 RDI: 0000000000000008 RBP: ffff88002aa268e0 R08: ffffffff860d4b18 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: ffffed0006f1c2cb FS: 00007fdfe8937700(0000) GS:ffff88003ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004c7964 CR3: 000000003d2e9000 CR4: 00000000000006f0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: sctp_association_free+0x301/0x930 net/sctp/associola.c:367 sctp_sf_do_unexpected_init.isra.28+0x67e/0x13b0 net/sctp/sm_statefuns.c:1589 sctp_sf_do_5_2_1_siminit+0x35/0x40 net/sctp/sm_statefuns.c:1645 sctp_do_sm+0x18a/0x6a30 net/sctp/sm_sideeffect.c:1190 sctp_assoc_bh_rcv+0x283/0x4b0 net/sctp/associola.c:1065 sctp_inq_push+0x23b/0x300 net/sctp/inqueue.c:95 sctp_backlog_rcv+0x177/0xaa0 net/sctp/input.c:350 sk_backlog_rcv include/net/sock.h:909 [inline] __release_sock+0x124/0x360 net/core/sock.c:2264 release_sock+0xa4/0x2a0 net/core/sock.c:2776 sctp_getsockopt+0x5d8/0x70b0 net/sctp/socket.c:7169 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2924 SYSC_getsockopt net/socket.c:1882 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1864 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x447c89 RSP: 002b:00007fdfe8936bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fdfe89376cc RCX: 0000000000447c89 RDX: 000000000000006f RSI: 0000000000000084 RDI: 0000000000000013 RBP: 0000000000000086 R08: 000000002000b000 R09: 0000000000000000 R10: 000000002000affc R11: 0000000000000246 R12: 00000000004a96f0 R13: 0000000000000000 R14: 00007fdfe89369c8 R15: 00007fdfe8936b38 Code: 48 c1 e8 03 4c 01 f0 48 89 45 d0 e8 18 9e bd fc 41 80 3f 00 0f 85 f1 00 00 00 48 8b 03 4c 01 e8 48 8d 78 08 48 89 fa 48 c1 ea 03 <42> 80 3c 32 00 0f 85 c3 00 00 00 48 8b 78 08 41 83 c4 01 e8 35 RIP: sctp_stream_free+0xc3/0x1b0 net/sctp/stream.c:209 RSP: ffff88002aa268a0 ---[ end trace 694706ba313fa2e1 ]---