syzbot


WARNING in kcm_write_msgs

Status: upstream: reported C repro on 2020/03/30 19:34
Reported-by: syzbot+c94d23ea2ec93cf2df7e@syzkaller.appspotmail.com
First crash: 1479d, last: 455d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in kcm_write_msgs origin:upstream C 2 12d 141d 0/3 upstream: reported C repro on 2023/11/28 05:07
upstream WARNING in kcm_write_msgs net C done 443 12d 1490d 0/26 upstream: reported C repro on 2020/03/19 07:10
linux-4.14 WARNING in kcm_write_msgs C inconclusive 2 460d 1466d 0/1 upstream: reported C repro on 2020/04/12 04:13
Fix bisection attempts (19)
Created Duration User Patch Repo Result
2021/11/09 15:24 15m bisect fix linux-4.19.y error job log (0)
2021/10/10 14:54 29m bisect fix linux-4.19.y job log (0) log
2021/09/10 14:25 28m bisect fix linux-4.19.y job log (0) log
2021/08/11 13:52 32m bisect fix linux-4.19.y job log (0) log
2021/07/12 07:43 23m bisect fix linux-4.19.y job log (0) log
2021/06/12 07:15 27m bisect fix linux-4.19.y job log (0) log
2021/05/13 06:28 35m bisect fix linux-4.19.y job log (0) log
2021/03/26 12:04 23m bisect fix linux-4.19.y job log (0) log
2021/02/24 09:26 23m bisect fix linux-4.19.y job log (0) log
2021/01/25 02:51 23m bisect fix linux-4.19.y job log (0) log
2020/12/26 02:26 24m bisect fix linux-4.19.y job log (0) log
2020/11/26 02:01 24m bisect fix linux-4.19.y job log (0) log
2020/10/27 01:37 24m bisect fix linux-4.19.y job log (0) log
2020/09/27 01:09 24m bisect fix linux-4.19.y job log (0) log
2020/08/28 00:42 27m bisect fix linux-4.19.y job log (0) log
2020/07/28 20:51 27m bisect fix linux-4.19.y job log (0) log
2020/06/28 20:27 23m bisect fix linux-4.19.y job log (0) log
2020/05/29 20:01 25m bisect fix linux-4.19.y job log (0) log
2020/04/29 19:34 27m bisect fix linux-4.19.y job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9616 at net/kcm/kcmsock.c:629 kcm_write_msgs.cold+0x112/0x13f net/kcm/kcmsock.c:629
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 9616 Comm: syz-executor170 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:kcm_write_msgs.cold+0x112/0x13f net/kcm/kcmsock.c:629
Code: c7 44 24 58 00 00 00 00 48 8b 80 50 02 00 00 48 89 44 24 28 e9 b3 8e 4a ff e8 82 bf 4e f9 48 c7 c7 c0 33 62 89 e8 e1 f0 df ff <0f> 0b 8b 44 24 70 41 bc ea ff ff ff 89 44 24 58 e9 8d 8f 4a ff e8
RSP: 0018:ffff8880a300f988 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 00000000000000c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1014601f23
RBP: ffff88809b94d0c0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000008000
R13: ffff88809dfd2f40 R14: ffff88809b94d000 R15: 0000000000000000
 kcm_sendmsg+0x1ba7/0x2100 net/kcm/kcmsock.c:1035
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 sock_write_iter+0x287/0x3c0 net/socket.c:966
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f25eab06049
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 15 00 00 90 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:00007f25eaab32f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f25eab904e0 RCX: 00007f25eab06049
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f25eab5cb84 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f25eab5c4f8
R13: 0000000020000240 R14: 656c6c616b7a7973 R15: 00007f25eab904e8
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/18 20:54 linux-4.19.y 3f8a27f9e27b 4620c2d9 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 WARNING in kcm_write_msgs
2020/03/30 19:33 linux-4.19.y 54b4fa6d3955 c8d1cc20 .config console log report syz C ci2-linux-4-19
2022/03/25 22:41 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
2022/03/12 07:27 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
2022/02/26 09:51 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
2022/02/20 10:40 linux-4.19.y 3f8a27f9e27b 3cd800e4 .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
2021/07/12 13:40 linux-4.19.y fcfbdfe9626e a4869c92 .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
2021/04/13 03:50 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 WARNING in kcm_write_msgs
* Struck through repros no longer work on HEAD.