syzbot


divide error in tcp_rcv_space_adjust

Status: auto-closed as invalid on 2022/08/30 02:07
Subsystems: net
[Documentation on labels]
First crash: 763d, last: 731d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in tcp_rcv_space_adjust (3) net C done 3 31d 32d 25/26 internal: reported C repro on 2024/04/30 11:12
upstream divide error in tcp_rcv_space_adjust (2) net 1 426d 426d 22/26 fixed on 2023/07/01 16:05

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10163 Comm: syz-executor.0 Not tainted 5.18.0-rc5-syzkaller-00028-ga7391ad35724 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:tcp_rcv_space_adjust+0x36f/0xa90 net/ipv4/tcp_input.c:739
Code: 00 00 00 00 fc ff df 4c 89 64 24 48 8b 44 24 04 44 89 f9 41 81 c7 80 03 00 00 c1 e1 04 44 29 f0 48 63 c9 48 01 e9 48 0f af c1 <49> f7 f6 48 8d 04 41 48 89 44 24 40 48 8b 44 24 30 48 c1 e8 03 48
RSP: 0018:ffffc90002f1f618 EFLAGS: 00010a07
RAX: 6b49aaea28bc2148 RBX: ffff8880231ea140 RCX: 00000001af4ff06c
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000003
RBP: 00000001af3ff42c R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff87cfaf7b R11: 0000000000000000 R12: ffff8880231eac70
R13: ffff88806f926080 R14: 0000000000000000 R15: 0000000000010344
FS:  00007f32b0862700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200015c0 CR3: 0000000045c1d000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tcp_recvmsg_locked+0xf2d/0x1fd0 net/ipv4/tcp.c:2509
 tcp_recvmsg+0x137/0x610 net/ipv4/tcp.c:2574
 inet6_recvmsg+0x11b/0x5e0 net/ipv6/af_inet6.c:671
 sock_recvmsg_nosec net/socket.c:948 [inline]
 sock_recvmsg net/socket.c:966 [inline]
 sock_recvmsg net/socket.c:962 [inline]
 ____sys_recvmsg+0x2be/0x5f0 net/socket.c:2632
 ___sys_recvmsg+0x127/0x200 net/socket.c:2674
 do_recvmmsg+0x24d/0x6d0 net/socket.c:2768
 __sys_recvmmsg net/socket.c:2847 [inline]
 __do_sys_recvmmsg net/socket.c:2870 [inline]
 __se_sys_recvmmsg net/socket.c:2863 [inline]
 __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2863
 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:0x7f32af6890e9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f32b0862168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f32af79bf60 RCX: 00007f32af6890e9
RDX: 0000000000000001 RSI: 0000000020000bc0 RDI: 0000000000000003
RBP: 00007f32af6e308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000122 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe344ede1f R14: 00007f32b0862300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tcp_rcv_space_adjust+0x36f/0xa90 net/ipv4/tcp_input.c:739
Code: 00 00 00 00 fc ff df 4c 89 64 24 48 8b 44 24 04 44 89 f9 41 81 c7 80 03 00 00 c1 e1 04 44 29 f0 48 63 c9 48 01 e9 48 0f af c1 <49> f7 f6 48 8d 04 41 48 89 44 24 40 48 8b 44 24 30 48 c1 e8 03 48
RSP: 0018:ffffc90002f1f618 EFLAGS: 00010a07
RAX: 6b49aaea28bc2148 RBX: ffff8880231ea140 RCX: 00000001af4ff06c
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000003
RBP: 00000001af3ff42c R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff87cfaf7b R11: 0000000000000000 R12: ffff8880231eac70
R13: ffff88806f926080 R14: 0000000000000000 R15: 0000000000010344
FS:  00007f32b0862700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200015c0 CR3: 0000000045c1d000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 6 bytes skipped:
   0:	df 4c 89 64          	fisttps 0x64(%rcx,%rcx,4)
   4:	24 48                	and    $0x48,%al
   6:	8b 44 24 04          	mov    0x4(%rsp),%eax
   a:	44 89 f9             	mov    %r15d,%ecx
   d:	41 81 c7 80 03 00 00 	add    $0x380,%r15d
  14:	c1 e1 04             	shl    $0x4,%ecx
  17:	44 29 f0             	sub    %r14d,%eax
  1a:	48 63 c9             	movslq %ecx,%rcx
  1d:	48 01 e9             	add    %rbp,%rcx
  20:	48 0f af c1          	imul   %rcx,%rax
* 24:	49 f7 f6             	div    %r14 <-- trapping instruction
  27:	48 8d 04 41          	lea    (%rcx,%rax,2),%rax
  2b:	48 89 44 24 40       	mov    %rax,0x40(%rsp)
  30:	48 8b 44 24 30       	mov    0x30(%rsp),%rax
  35:	48 c1 e8 03          	shr    $0x3,%rax
  39:	48                   	rex.W

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/05 12:28 upstream a7391ad35724 b3f09415 .config console log report info ci-qemu-upstream divide error in tcp_rcv_space_adjust
2022/04/30 16:50 upstream 8013d1d3d2e3 2df221f6 .config console log report info ci-upstream-kasan-gce-root divide error in tcp_rcv_space_adjust
2022/06/01 01:57 net-old 09e545f73814 3666edfe .config console log report info ci-upstream-net-this-kasan-gce divide error in tcp_rcv_space_adjust
* Struck through repros no longer work on HEAD.