syzbot


general protection fault in sctp_stream_free

Status: fixed on 2018/01/31 00:24
Subsystems: sctp
[Documentation on labels]
Reported-by: syzbot+caf00b3331869268c9a4b8ec22b28127a3f3b306@syzkaller.appspotmail.com
Fix commit: 79d0895140e9 sctp: fix error path in sctp_stream_init
First crash: 2428d, last: 2375d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in sctp_stream_free (2) sctp C done 25 1631d 1641d 15/27 fixed on 2020/02/14 01:19

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
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: 1 PID: 19874 Comm: syz-executor6 Not tainted 4.15.0-rc3+ #133
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sctp_stream_free+0xc3/0x1b0 net/sctp/stream.c:209
RSP: 0018:ffff88019fd7f208 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff8801c45ccb18 RCX: ffffffff84bfbbe8
RDX: 0000000000000001 RSI: ffffc90002025000 RDI: 0000000000000008
RBP: ffff88019fd7f248 R08: 1ffff10033fafe10 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffffed00388b9963
FS:  0000000000000000(0000) GS:ffff8801db500000(0063) knlGS:00000000f7755b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000206ba000 CR3: 00000001c3d4e004 CR4: 00000000001626e0
Call Trace:
 sctp_association_free+0x301/0x930 net/sctp/associola.c:367
 sctp_sf_do_5_1B_init+0x67e/0xe80 net/sctp/sm_statefuns.c:467
 sctp_do_sm+0x18a/0x6a20 net/sctp/sm_sideeffect.c:1190
 sctp_endpoint_bh_rcv+0x379/0x8f0 net/sctp/endpointola.c:456
 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:907 [inline]
 __release_sock+0x124/0x360 net/core/sock.c:2264
 release_sock+0xa4/0x2a0 net/core/sock.c:2779
 sctp_connect+0xc3/0xf0 net/sctp/socket.c:4262
 inet_dgram_connect+0x16b/0x1f0 net/ipv4/af_inet.c:541
 SYSC_connect+0x204/0x470 net/socket.c:1619
 SyS_connect+0x24/0x30 net/socket.c:1600
 do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
 do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f59c79
RSP: 002b:00000000f775508c EFLAGS: 00000296 ORIG_RAX: 000000000000016a
RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 00000000200ba000
RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 48 c1 e8 03 4c 01 f0 48 89 45 d0 e8 38 1a b0 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 65 
RIP: sctp_stream_free+0xc3/0x1b0 net/sctp/stream.c:209 RSP: ffff88019fd7f208
---[ end trace beabd93584c440d3 ]---

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/16 05:36 upstream 7a3c296ae08f ac20b98c .config console log report ci-upstream-kasan-gce-386
2017/12/04 06:54 upstream ae64f9bd1d36 48359b97 .config console log report ci-upstream-kasan-gce-386
2017/11/23 09:04 upstream 5a787756b809 cb27b030 .config console log report ci-upstream-kasan-gce-386
2017/11/14 22:32 net-next-old 4497478c60c0 cf38de00 .config console log report ci-upstream-net-kasan-gce
2017/11/04 02:52 net-next-old 2a171788ba7b 7c537a4b .config console log report ci-upstream-net-kasan-gce
2017/11/27 03:24 linux-next b0a84f19a516 deb5f6ae .config console log report ci-upstream-next-kasan-gce
2017/11/23 20:32 linux-next 279a24799865 cb27b030 .config console log report ci-upstream-next-kasan-gce
2017/11/17 13:10 linux-next ee92513eae01 2f7fc0ff .config console log report skylake-linux-next-kasan-qemu
2017/11/09 09:22 linux-next 5515cf16e270 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/06 21:37 linux-next 5a3517e009e9 e0a2b195 .config console log report ci-upstream-next-kasan-gce
2017/11/05 06:21 linux-next 5a3517e009e9 e0a2b195 .config console log report ci-upstream-next-kasan-gce
2017/11/04 07:02 linux-next 5a3517e009e9 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/03 16:06 linux-next 5a3517e009e9 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/01 09:19 mmots 0f611fb6dcc0 e0a2b195 .config console log report ci-upstream-mmots-kasan-gce
2017/11/01 08:48 linux-next 36ef71cae353 e511d9f8 .config console log report ci-upstream-next-kasan-gce
2017/10/24 14:25 linux-next 36ef71cae353 e511d9f8 .config console log report ci-upstream-next-kasan-gce
2017/10/24 12:11 linux-next 36ef71cae353 e511d9f8 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.