bisecting fixing commit since f3438b4c4e692b49b7dc2bab864d20381024be16 building syzkaller on 6c236867ce33c0c16b102e02a08226d7eb9b2046 testing commit f3438b4c4e692b49b7dc2bab864d20381024be16 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 7017a0c4f7b8aba116c68298b6497f46355d6772ccc5abae69dc43d2a65a856a all runs: crashed: divide error in tcp_reno_cong_avoid testing current HEAD 0ee7c3e25d8c28845fceb4dd1c3cb5f50b9c45a9 testing commit 0ee7c3e25d8c28845fceb4dd1c3cb5f50b9c45a9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 09d45ae727f86813ddc4d16d6795d9c06bc5254a53b12303d550f8c04b0c4f58 all runs: crashed: divide error in tcp_reno_cong_avoid revisions tested: 2, total time: 20m26.165887015s (build: 13m19.573947008s, test: 6m35.816903207s) the crash still happens on HEAD commit msg: Merge tag 'iomap-5.15-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux crash: divide error in tcp_reno_cong_avoid divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10191 Comm: syz-executor.5 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tcp_cong_avoid_ai net/ipv4/tcp_cong.c:420 [inline] RIP: 0010:tcp_reno_cong_avoid+0x1fd/0x2b0 net/ipv4/tcp_cong.c:450 Code: ab 48 09 00 00 44 89 e5 45 39 ec 41 0f 47 ed 85 c0 89 ab 40 09 00 00 0f 85 01 ff ff ff 48 83 c4 08 5b 5d 41 5c 41 5d c3 31 d2 f5 01 c1 89 93 44 09 00 00 89 8b 40 09 00 00 e9 30 ff ff ff c7 RSP: 0018:ffffc9000a0376b0 EFLAGS: 00010246 RAX: 0000000000000011 RBX: ffff88802c66a340 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000f5595c44 RDI: ffff88802c66ac84 RBP: 0000000000000000 R08: dffffc0000000000 R09: 00000000b8180d44 R10: 00000000d7c1637b R11: ffff88802c66ab30 R12: 0000000000000000 R13: 00000000ffffffff R14: 0000000000000011 R15: ffff88802c66ac80 FS: 00007fde376bd700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002e6f708 CR3: 000000001b73b000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tcp_cdg_cong_avoid+0x47d/0x1410 net/ipv4/tcp_cdg.c:293 tcp_cong_avoid net/ipv4/tcp_input.c:3091 [inline] tcp_cong_control net/ipv4/tcp_input.c:3449 [inline] tcp_ack+0x312f/0x56b0 net/ipv4/tcp_input.c:3850 tcp_rcv_established+0x4e0/0x2100 net/ipv4/tcp_input.c:5887 tcp_v4_do_rcv+0x4f4/0x760 net/ipv4/tcp_ipv4.c:1694 sk_backlog_rcv include/net/sock.h:1023 [inline] __release_sock+0x113/0x360 net/core/sock.c:2655 __sk_flush_backlog+0x1d/0x30 net/core/sock.c:2675 sk_flush_backlog include/net/sock.h:1110 [inline] tcp_sendmsg_locked+0x223e/0x2e40 net/ipv4/tcp.c:1305 tcp_sendmsg+0x23/0x40 net/ipv4/tcp.c:1461 sock_sendmsg_nosec net/socket.c:703 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:723 __sys_sendto+0x1a4/0x270 net/socket.c:2022 __do_sys_sendto net/socket.c:2034 [inline] __se_sys_sendto net/socket.c:2030 [inline] __x64_sys_sendto+0xd8/0x1b0 net/socket.c:2030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fde376bd188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 00000000fffffd46 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 00000000000001f4 R10: 00000000000081f4 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffdc6566dbf R14: 00007fde376bd300 R15: 0000000000022000 Modules linked in: ---[ end trace b3d085347c06803e ]--- RIP: 0010:tcp_cong_avoid_ai net/ipv4/tcp_cong.c:420 [inline] RIP: 0010:tcp_reno_cong_avoid+0x1fd/0x2b0 net/ipv4/tcp_cong.c:450 Code: ab 48 09 00 00 44 89 e5 45 39 ec 41 0f 47 ed 85 c0 89 ab 40 09 00 00 0f 85 01 ff ff ff 48 83 c4 08 5b 5d 41 5c 41 5d c3 31 d2 f5 01 c1 89 93 44 09 00 00 89 8b 40 09 00 00 e9 30 ff ff ff c7 RSP: 0018:ffffc9000a0376b0 EFLAGS: 00010246 RAX: 0000000000000011 RBX: ffff88802c66a340 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000f5595c44 RDI: ffff88802c66ac84 RBP: 0000000000000000 R08: dffffc0000000000 R09: 00000000b8180d44 R10: 00000000d7c1637b R11: ffff88802c66ab30 R12: 0000000000000000 R13: 00000000ffffffff R14: 0000000000000011 R15: ffff88802c66ac80 FS: 00007fde376bd700(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005680c0 CR3: 000000001b73b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ab stos %eax,%es:(%rdi) 1: 48 09 00 or %rax,(%rax) 4: 00 44 89 e5 add %al,-0x1b(%rcx,%rcx,4) 8: 45 39 ec cmp %r13d,%r12d b: 41 0f 47 ed cmova %r13d,%ebp f: 85 c0 test %eax,%eax 11: 89 ab 40 09 00 00 mov %ebp,0x940(%rbx) 17: 0f 85 01 ff ff ff jne 0xffffff1e 1d: 48 83 c4 08 add $0x8,%rsp 21: 5b pop %rbx 22: 5d pop %rbp 23: 41 5c pop %r12 25: 41 5d pop %r13 27: c3 retq 28: 31 d2 xor %edx,%edx * 2a: f7 f5 div %ebp <-- trapping instruction 2c: 01 c1 add %eax,%ecx 2e: 89 93 44 09 00 00 mov %edx,0x944(%rbx) 34: 89 8b 40 09 00 00 mov %ecx,0x940(%rbx) 3a: e9 30 ff ff ff jmpq 0xffffff6f 3f: c7 .byte 0xc7