[v6.6] divide error in __tcp_select_window

2 views
Skip to first unread message

syzbot

unread,
Dec 13, 2025, 8:33:33 PM (10 days ago) Dec 13
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1440f1b4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=50aa7d3ef8f020d9a901
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/63699875f1dd/disk-5fa4793a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8506652fcb6f/vmlinux-5fa4793a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b30ceed1710/bzImage-5fa4793a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+50aa7d...@syzkaller.appspotmail.com

divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7181 Comm: syz.1.363 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__tcp_select_window+0x7a3/0x1270 net/ipv4/tcp_output.c:3114
Code: ff ff ff 44 89 e1 d3 e0 89 c1 f7 d1 41 01 ce 41 21 c6 e9 c5 00 00 00 e8 ab 9e 97 f8 e9 b8 00 00 00 e8 a1 9e 97 f8 44 89 f0 99 <f7> 7c 24 2c 41 29 d6 48 bb 00 00 00 00 00 fc ff df e9 9c 00 00 00
RSP: 0018:ffffc900193e7b00 EFLAGS: 00010283
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000
RDX: 0000000000000000 RSI: 00000000000002de RDI: 00000000000002df
RBP: ffffc900193e7bf0 R08: ffff888055942793 R09: 1ffff1100ab284f2
R10: dffffc0000000000 R11: ffffed100ab284f3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807cd6e4e8
FS: 00007f68ed03a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f48269750e0 CR3: 0000000025b6d000 CR4: 00000000003506e0
Call Trace:
<TASK>
tcp_select_window net/ipv4/tcp_output.c:276 [inline]
__tcp_transmit_skb+0xb40/0x32a0 net/ipv4/tcp_output.c:1368
tcp_transmit_skb net/ipv4/tcp_output.c:1440 [inline]
tcp_send_active_reset+0x35e/0x6c0 net/ipv4/tcp_output.c:3593
mptcp_do_fastclose+0x23a/0x310 net/mptcp/protocol.c:2820
mptcp_disconnect+0x1fc/0x520 net/mptcp/protocol.c:3282
inet_shutdown+0x1be/0x370 net/ipv4/af_inet.c:934
__sys_shutdown_sock net/socket.c:2436 [inline]
__sys_shutdown net/socket.c:2448 [inline]
__do_sys_shutdown net/socket.c:2456 [inline]
__se_sys_shutdown net/socket.c:2454 [inline]
__x64_sys_shutdown+0x174/0x1d0 net/socket.c:2454
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f68ec18f749
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f68ed03a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
RAX: ffffffffffffffda RBX: 00007f68ec3e5fa0 RCX: 00007f68ec18f749
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f68ec213f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f68ec3e6038 R14: 00007f68ec3e5fa0 R15: 00007fff5e1eb1f8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__tcp_select_window+0x7a3/0x1270 net/ipv4/tcp_output.c:3114
Code: ff ff ff 44 89 e1 d3 e0 89 c1 f7 d1 41 01 ce 41 21 c6 e9 c5 00 00 00 e8 ab 9e 97 f8 e9 b8 00 00 00 e8 a1 9e 97 f8 44 89 f0 99 <f7> 7c 24 2c 41 29 d6 48 bb 00 00 00 00 00 fc ff df e9 9c 00 00 00
RSP: 0018:ffffc900193e7b00 EFLAGS: 00010283
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000
RDX: 0000000000000000 RSI: 00000000000002de RDI: 00000000000002df
RBP: ffffc900193e7bf0 R08: ffff888055942793 R09: 1ffff1100ab284f2
R10: dffffc0000000000 R11: ffffed100ab284f3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807cd6e4e8
FS: 00007f68ed03a6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4824bd4f98 CR3: 0000000025b6d000 CR4: 00000000003506f0
----------------
Code disassembly (best guess), 2 bytes skipped:
0: ff 44 89 e1 incl -0x1f(%rcx,%rcx,4)
4: d3 e0 shl %cl,%eax
6: 89 c1 mov %eax,%ecx
8: f7 d1 not %ecx
a: 41 01 ce add %ecx,%r14d
d: 41 21 c6 and %eax,%r14d
10: e9 c5 00 00 00 jmp 0xda
15: e8 ab 9e 97 f8 call 0xf8979ec5
1a: e9 b8 00 00 00 jmp 0xd7
1f: e8 a1 9e 97 f8 call 0xf8979ec5
24: 44 89 f0 mov %r14d,%eax
27: 99 cltd
* 28: f7 7c 24 2c idivl 0x2c(%rsp) <-- trapping instruction
2c: 41 29 d6 sub %edx,%r14d
2f: 48 bb 00 00 00 00 00 movabs $0xdffffc0000000000,%rbx
36: fc ff df
39: e9 9c 00 00 00 jmp 0xda


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Dec 13, 2025, 9:03:29 PM (10 days ago) Dec 13
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10a709c2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=50aa7d3ef8f020d9a901
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15497e1a580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f0f1b4580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/63699875f1dd/disk-5fa4793a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8506652fcb6f/vmlinux-5fa4793a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b30ceed1710/bzImage-5fa4793a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+50aa7d...@syzkaller.appspotmail.com

divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5923 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__tcp_select_window+0x7a3/0x1270 net/ipv4/tcp_output.c:3114
Code: ff ff ff 44 89 e1 d3 e0 89 c1 f7 d1 41 01 ce 41 21 c6 e9 c5 00 00 00 e8 ab 9e 97 f8 e9 b8 00 00 00 e8 a1 9e 97 f8 44 89 f0 99 <f7> 7c 24 2c 41 29 d6 48 bb 00 00 00 00 00 fc ff df e9 9c 00 00 00
RSP: 0018:ffffc900032f7b00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888079f2da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032f7bf0 R08: ffff88807ade0e93 R09: 1ffff1100f5bc1d2
R10: dffffc0000000000 R11: ffffed100f5bc1d3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802148cae8
FS: 0000555576e05500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000180 CR3: 0000000076c6f000 CR4: 00000000003506e0
Call Trace:
<TASK>
tcp_select_window net/ipv4/tcp_output.c:276 [inline]
__tcp_transmit_skb+0xb40/0x32a0 net/ipv4/tcp_output.c:1368
tcp_transmit_skb net/ipv4/tcp_output.c:1440 [inline]
tcp_send_active_reset+0x35e/0x6c0 net/ipv4/tcp_output.c:3593
mptcp_do_fastclose+0x23a/0x310 net/mptcp/protocol.c:2820
mptcp_disconnect+0x1fc/0x520 net/mptcp/protocol.c:3282
inet_shutdown+0x1be/0x370 net/ipv4/af_inet.c:934
__sys_shutdown_sock net/socket.c:2436 [inline]
__sys_shutdown net/socket.c:2448 [inline]
__do_sys_shutdown net/socket.c:2456 [inline]
__se_sys_shutdown net/socket.c:2454 [inline]
__x64_sys_shutdown+0x174/0x1d0 net/socket.c:2454
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1d5a98f749
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc342f3648 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
RAX: ffffffffffffffda RBX: 00007f1d5abe5fa0 RCX: 00007f1d5a98f749
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f1d5aa13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1d5abe5fa0 R14: 00007f1d5abe5fa0 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__tcp_select_window+0x7a3/0x1270 net/ipv4/tcp_output.c:3114
Code: ff ff ff 44 89 e1 d3 e0 89 c1 f7 d1 41 01 ce 41 21 c6 e9 c5 00 00 00 e8 ab 9e 97 f8 e9 b8 00 00 00 e8 a1 9e 97 f8 44 89 f0 99 <f7> 7c 24 2c 41 29 d6 48 bb 00 00 00 00 00 fc ff df e9 9c 00 00 00
RSP: 0018:ffffc900032f7b00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888079f2da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032f7bf0 R08: ffff88807ade0e93 R09: 1ffff1100f5bc1d2
R10: dffffc0000000000 R11: ffffed100f5bc1d3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802148cae8
FS: 0000555576e05500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555576e05808 CR3: 0000000076c6f000 CR4: 00000000003506f0
----------------
Code disassembly (best guess), 2 bytes skipped:
0: ff 44 89 e1 incl -0x1f(%rcx,%rcx,4)
4: d3 e0 shl %cl,%eax
6: 89 c1 mov %eax,%ecx
8: f7 d1 not %ecx
a: 41 01 ce add %ecx,%r14d
d: 41 21 c6 and %eax,%r14d
10: e9 c5 00 00 00 jmp 0xda
15: e8 ab 9e 97 f8 call 0xf8979ec5
1a: e9 b8 00 00 00 jmp 0xd7
1f: e8 a1 9e 97 f8 call 0xf8979ec5
24: 44 89 f0 mov %r14d,%eax
27: 99 cltd
* 28: f7 7c 24 2c idivl 0x2c(%rsp) <-- trapping instruction
2c: 41 29 d6 sub %edx,%r14d
2f: 48 bb 00 00 00 00 00 movabs $0xdffffc0000000000,%rbx
36: fc ff df
39: e9 9c 00 00 00 jmp 0xda


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages