syzbot


divide error in __tcp_select_window

Status: fixed on 2021/03/10 01:48
Subsystems: net
[Documentation on labels]
Fix commit: fd8976790a6c mptcp: be careful on MPTCP-level ack.
First crash: 1250d, last: 1245d
Cause bisection: introduced by (bisect log) :
commit b1e8eb11fb9cf666d8ae36bbcf533233a504c921
Author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date: Fri Oct 23 16:33:08 2020 +0000

  mac80211: fix kernel-doc markups

Crash: BUG: sleeping function called from invalid context in sta_info_move_state (log)
Repro: C syz .config
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in __tcp_select_window (2) net C done 4 1110d 1112d 20/26 fixed on 2021/11/10 00:50
android-49 divide error in __tcp_select_window 2 2444d 2445d 0/3 closed as invalid on 2019/01/01 20:10

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8489 Comm: syz-executor726 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__tcp_select_window+0x509/0xa60 net/ipv4/tcp_output.c:3008
Code: 44 89 ff e8 29 35 fb f9 45 39 e7 0f 8d 20 ff ff ff e8 4b 3d fb f9 44 89 e3 e9 13 ff ff ff e8 3e 3d fb f9 44 89 e0 44 89 e3 99 <f7> 7c 24 04 29 d3 e9 fc fe ff ff e8 27 3d fb f9 44 89 f1 48 89 ea
RSP: 0018:ffffc90003aaf678 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8774f250
RDX: 0000000000000000 RSI: ffffffff8774f2b2 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888018dc020b
R10: 0000000000000000 R11: 1ffffffff1cfe604 R12: 0000000000000000
R13: 1ffff92000755ed3 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000002359880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000c0 CR3: 0000000011561000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tcp_cleanup_rbuf+0x486/0x5b0 net/ipv4/tcp.c:1587
 mptcp_send_ack+0x165/0x1b0 net/mptcp/protocol.c:444
 mptcp_recvmsg+0x1081/0x1ab0 net/mptcp/protocol.c:1607
 inet_recvmsg+0x11b/0x5d0 net/ipv4/af_inet.c:848
 sock_recvmsg_nosec net/socket.c:884 [inline]
 sock_recvmsg net/socket.c:902 [inline]
 sock_recvmsg net/socket.c:898 [inline]
 ____sys_recvmsg+0x2c4/0x600 net/socket.c:2553
 ___sys_recvmsg+0x127/0x200 net/socket.c:2595
 do_recvmmsg+0x24d/0x6c0 net/socket.c:2695
 __sys_recvmmsg net/socket.c:2774 [inline]
 __do_sys_recvmmsg net/socket.c:2797 [inline]
 __se_sys_recvmmsg net/socket.c:2790 [inline]
 __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2790
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4402c9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 7b 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe3c286d58 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402c9
RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000100 R11: 0000000000000246 R12: 0000000000401ad0
R13: 0000000000401b60 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 565476b36a831272 ]---
RIP: 0010:__tcp_select_window+0x509/0xa60 net/ipv4/tcp_output.c:3008
Code: 44 89 ff e8 29 35 fb f9 45 39 e7 0f 8d 20 ff ff ff e8 4b 3d fb f9 44 89 e3 e9 13 ff ff ff e8 3e 3d fb f9 44 89 e0 44 89 e3 99 <f7> 7c 24 04 29 d3 e9 fc fe ff ff e8 27 3d fb f9 44 89 f1 48 89 ea
RSP: 0018:ffffc90003aaf678 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8774f250
RDX: 0000000000000000 RSI: ffffffff8774f2b2 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888018dc020b
R10: 0000000000000000 R11: 1ffffffff1cfe604 R12: 0000000000000000
R13: 1ffff92000755ed3 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000002359880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f640c03d028 CR3: 0000000011561000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1119):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/21 07:12 net-next-old c900378316d3 68068804 .config console log report syz C ci-upstream-net-kasan-gce
2020/11/26 10:38 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 09:38 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 08:01 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 05:45 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 05:02 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 03:56 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 02:08 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 01:35 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 00:34 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 23:55 net-next-old 062547380d1f 2f1cec62 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 20:56 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 19:53 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 18:44 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 18:08 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 15:30 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 15:10 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 14:05 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 13:18 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 12:04 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 11:04 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 09:29 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 08:42 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 07:34 net-next-old 470dfd808ac4 1a1f4bd8 .config console log report info ci-upstream-net-kasan-gce
2020/11/25 04:40 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/25 03:25 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/25 02:50 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/25 00:43 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/25 00:04 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/24 23:01 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/24 21:22 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/24 19:39 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/24 18:19 net-next-old d5a05e69ac6e e34b696c .config console log report info ci-upstream-net-kasan-gce
2020/11/24 17:09 net-next-old 5112cf59d76d 1ab681a4 .config console log report info ci-upstream-net-kasan-gce
2020/11/24 15:55 net-next-old 5112cf59d76d 1ab681a4 .config console log report info ci-upstream-net-kasan-gce
2020/11/21 05:29 net-next-old c900378316d3 740ff461 .config console log report info ci-upstream-net-kasan-gce
2020/11/26 07:32 linux-next 62918e6fd7b5 2f1cec62 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/26 06:31 linux-next 62918e6fd7b5 2f1cec62 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/26 03:19 linux-next 62918e6fd7b5 2f1cec62 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/26 03:10 linux-next 62918e6fd7b5 2f1cec62 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/25 22:46 linux-next 62918e6fd7b5 2f1cec62 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/25 16:34 linux-next 62918e6fd7b5 1a1f4bd8 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/25 10:31 linux-next 62918e6fd7b5 1a1f4bd8 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/25 06:22 linux-next 62918e6fd7b5 1a1f4bd8 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/25 01:43 linux-next 62918e6fd7b5 e34b696c .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/24 19:59 linux-next 62918e6fd7b5 e34b696c .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.