syzbot


kernel BUG at net/sctp/sm_sideeffect.c:LINE!

Status: upstream: reported C repro on 2020/03/24 18:52
Reported-by: syzbot+0472f587206363fdf382@syzkaller.appspotmail.com
First crash: 1576d, last: 1030d
Fix bisection: failed (error log, bisect log)
  
Fix bisection attempts (20)
Created Duration User Patch Repo Result
2021/10/23 02:01 12m bisect fix linux-4.19.y error job log
2021/09/22 05:57 37m bisect fix linux-4.19.y OK (0) job log log
2021/08/23 05:16 41m bisect fix linux-4.19.y OK (0) job log log
2021/07/24 04:39 36m bisect fix linux-4.19.y OK (0) job log log
2021/06/23 22:05 35m bisect fix linux-4.19.y OK (0) job log log
2021/05/24 21:25 39m bisect fix linux-4.19.y OK (0) job log log
2021/04/24 20:38 39m bisect fix linux-4.19.y OK (0) job log log
2021/03/25 11:47 29m bisect fix linux-4.19.y OK (0) job log log
2021/02/23 09:32 28m bisect fix linux-4.19.y OK (0) job log log
2021/02/19 05:47 19m bisect fix linux-4.19.y error job log
2021/01/19 04:16 31m bisect fix linux-4.19.y OK (0) job log log
2020/12/20 03:22 41m bisect fix linux-4.19.y OK (0) job log log
2020/11/20 02:43 38m bisect fix linux-4.19.y OK (0) job log log
2020/10/21 02:02 40m bisect fix linux-4.19.y OK (0) job log log
2020/09/21 01:11 38m bisect fix linux-4.19.y OK (0) job log log
2020/08/22 00:30 41m bisect fix linux-4.19.y OK (0) job log log
2020/07/22 23:50 39m bisect fix linux-4.19.y OK (0) job log log
2020/06/22 23:11 39m bisect fix linux-4.19.y OK (0) job log log
2020/05/23 22:31 40m bisect fix linux-4.19.y OK (0) job log log
2020/04/23 21:50 40m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
------------[ cut here ]------------
kernel BUG at net/sctp/sm_sideeffect.c:1538!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8352 Comm: syz-executor819 Not tainted 4.19.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1538 [inline]
RIP: 0010:sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
RIP: 0010:sctp_do_sm+0x41f6/0x4f20 net/sctp/sm_sideeffect.c:1170
Code: 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 2c 09 00 00 41 8b 9f b0 02 00 00 e9 fc f7 ff ff e8 4a ed cf fa <0f> 0b e8 43 ed cf fa 68 20 00 48 00 ff 74 24 08 e9 6e de ff ff e8
RSP: 0018:ffff8880a4b5f9a0 EFLAGS: 00010293
RAX: ffff888080dc05c0 RBX: 0000000000000003 RCX: ffffffff86977ac5
RDX: 0000000000000000 RSI: ffffffff8697b776 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff888080dc05c0 R09: ffffed1012866661
R10: ffffed1012866660 R11: ffff888094333307 R12: ffff8880a7dd25f0
R13: 0000000000000012 R14: dffffc0000000000 R15: ffff8880a7dd2200
FS:  0000000001b38940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe67e5ff8 CR3: 0000000092db8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sctp_primitive_SHUTDOWN+0x9b/0xc0 net/sctp/primitive.c:104
 sctp_close+0x3ce/0x7b0 net/sctp/socket.c:1545
 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:472
 __sock_release+0xcd/0x2a0 net/socket.c:579
 sock_close+0x15/0x20 net/socket.c:1140
 __fput+0x2cd/0x890 fs/file_table.c:278
 task_work_run+0x13f/0x1b0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x404d70
Code: 01 f0 ff ff 0f 83 c0 0f 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 1d a2 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 94 0f 00 00 c3 48 83 ec 08 e8 fa 04 00 00
RSP: 002b:00007ffd8f40b488 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000404d70
RDX: 000000000000006e RSI: 0000000000000084 RDI: 0000000000000003
RBP: 00007ffd8f40b4b0 R08: 0000000000000020 R09: 0000000000000003
R10: 0000000020000000 R11: 0000000000000246 R12: 00007ffd8f40b4e0
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace bda084c392ac197a ]---
RIP: 0010:sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1538 [inline]
RIP: 0010:sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
RIP: 0010:sctp_do_sm+0x41f6/0x4f20 net/sctp/sm_sideeffect.c:1170
Code: 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 2c 09 00 00 41 8b 9f b0 02 00 00 e9 fc f7 ff ff e8 4a ed cf fa <0f> 0b e8 43 ed cf fa 68 20 00 48 00 ff 74 24 08 e9 6e de ff ff e8
RSP: 0018:ffff8880a4b5f9a0 EFLAGS: 00010293
RAX: ffff888080dc05c0 RBX: 0000000000000003 RCX: ffffffff86977ac5
RDX: 0000000000000000 RSI: ffffffff8697b776 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff888080dc05c0 R09: ffffed1012866661
R10: ffffed1012866660 R11: ffff888094333307 R12: ffff8880a7dd25f0
R13: 0000000000000012 R14: dffffc0000000000 R15: ffff8880a7dd2200
FS:  0000000001b38940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe67e5ff8 CR3: 0000000092db8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/24 18:51 linux-4.19.y 14cfdbd39e31 68660b21 .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.