syzbot


WARNING in kcm_write_msgs
Status: upstream: reported C repro on 2020/03/19 07:10
Reported-by: syzbot+52624bdfbf2746d37d70@syzkaller.appspotmail.com
First crash: 804d, last: 13d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in kcm_write_msgs C inconclusive 1 716d 776d 0/1 upstream: reported C repro on 2020/04/12 04:13
linux-4.19 WARNING in kcm_write_msgs C error 7 64d 789d 0/1 upstream: reported C repro on 2020/03/30 19:34

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3878 at net/kcm/kcmsock.c:629 kcm_write_msgs+0x10ba/0x1990 net/kcm/kcmsock.c:629
Modules linked in:
CPU: 1 PID: 3878 Comm: syz-executor360 Not tainted 5.18.0-rc6-syzkaller-00085-gf3f19f939c11 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kcm_write_msgs+0x10ba/0x1990 net/kcm/kcmsock.c:629
Code: 07 00 00 48 8b 44 24 68 45 31 e4 48 8b 74 24 08 48 89 70 10 e9 d5 f3 ff ff e8 a2 85 01 f9 0f 0b e9 09 f5 ff ff e8 96 85 01 f9 <0f> 0b 41 bc ea ff ff ff e9 b7 f3 ff ff e8 84 85 01 f9 48 8b 7c 24
RSP: 0018:ffffc900037af9a0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000000c0 RCX: 0000000000000000
RDX: ffff888079688000 RSI: ffffffff8877bb1a RDI: 0000000000000003
RBP: ffff88801dcec8c0 R08: 0000000000008000 R09: 0000000000000000
R10: ffffffff8877b194 R11: 0000000000000000 R12: 0000000000008000
R13: ffff88806b5abc80 R14: ffff88801dcec800 R15: 0000000000000000
FS:  00007ff2b72a8700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd491f1960 CR3: 0000000016da8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kcm_sendmsg+0x1e01/0x2420 net/kcm/kcmsock.c:1035
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
 sock_write_iter+0x283/0x3c0 net/socket.c:1061
 call_write_iter include/linux/fs.h:2050 [inline]
 new_sync_write+0x38a/0x560 fs/read_write.c:504
 vfs_write+0x7c0/0xac0 fs/read_write.c:591
 ksys_write+0x1e8/0x250 fs/read_write.c:644
 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:0x7ff2b7317c99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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:00007ff2b72a82f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff2b73a0430 RCX: 00007ff2b7317c99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007ff2b736d98c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff2b736d068
R13: 656c6c616b7a7973 R14: 0100000000000000 R15: 00007ff2b73a0438
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/06/10 22:15 upstream f09eacca59d2 347a5dc3 .config log report syz C
ci-upstream-kasan-gce-smack-root 2021/03/02 19:41 upstream 7a7fd0de4a98 347a5dc3 .config log report syz C
ci-upstream-kasan-gce-smack-root 2021/01/10 10:56 upstream 2ff90100ace8 347a5dc3 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/11/12 13:08 upstream 3d5e28bff7ad 347a5dc3 .config log report syz C
Crashes (174):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/05/13 19:01 upstream f3f19f939c11 107f6434 .config log report syz C WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/05/13 19:08 net f3f19f939c11 107f6434 .config log report syz C WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/05/13 18:27 net-next b67fd3d9d942 107f6434 .config log report syz C WARNING in kcm_write_msgs
ci-upstream-kasan-gce-smack-root 2020/04/20 19:40 upstream ae83d0b416db 347a5dc3 .config log report syz C
ci-upstream-kasan-gce-root 2020/04/19 02:11 upstream 90280eaa88ac 365fba24 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/03/26 00:43 net 919a23e9d6cc 41f049cc .config log report syz C
ci-upstream-net-kasan-gce 2020/03/25 23:53 net-next 29f3490ba9d2 41f049cc .config log report syz C
ci-upstream-kasan-gce-root 2022/04/02 10:19 upstream 8467b0ed6ce3 79a2a8fc .config log report info WARNING in kcm_write_msgs
ci-upstream-kasan-gce 2022/03/15 16:04 upstream 09688c0166e7 9e8eaa75 .config log report info WARNING in kcm_write_msgs
ci-upstream-kasan-gce 2021/12/27 07:01 upstream fc74e0a40e4f e4f103c4 .config log report info WARNING in kcm_write_msgs
ci-upstream-kasan-gce-selinux-root 2021/10/10 04:30 upstream 7fd2bf83d59a 838e7e2c .config log report info WARNING in kcm_write_msgs
ci-upstream-kasan-gce-smack-root 2021/07/11 06:42 upstream 3dbdb38e2869 8f5a7b8c .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/03/17 04:15 net dea2d93a8ba4 dfa9a8ed .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/03/06 02:46 net c6a502c22999 7bdd8b2c .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/02/18 09:45 net 7a2fb9128515 3cd800e4 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/18 20:20 net 2836615aa22d 731a2d23 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/17 23:40 net 9ea674d7ca4f 731a2d23 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/12 07:43 net 29b3881b7977 44d1319a .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/11 10:14 net 7d6019b602de 1884f55a .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/09 19:23 net 6dc9a23e2906 2ca0d385 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/06 01:28 net b3c8e0de473e 6acc789a .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2022/01/03 17:41 net 1ef5e1d0dca5 4a3f34f2 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/23 06:35 net d1652b70d07c 6caa12e4 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/22 22:20 net 99d7fbb5cedf 6caa12e4 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/14 09:20 net 884d2b845477 5d14b1ea .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/09 05:10 net fd31cb0c6a34 a4a2a501 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/06 04:29 net 2be6d4d16a08 a617004c .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/05 22:49 net 2be6d4d16a08 a617004c .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/12/05 16:33 net 2be6d4d16a08 a617004c .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/11/30 15:49 net 1a59c9c55585 80270552 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/05/15 21:13 net-next d9713088158b 744a39e2 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/05/13 16:58 net-next b67fd3d9d942 107f6434 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/04/29 21:43 net-next 17d49e6e8012 44a5ca63 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/04/28 02:14 net-next 03fa8fc93e44 8a1f1f07 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/04/16 19:13 net-next 0339d25a2807 8bcc32a6 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/04/15 18:00 net-next edf45f007a31 8bcc32a6 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/04/14 08:17 net-next 9386ebccfc59 b17b2923 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/03/21 19:22 net-next d96657dc9238 e2d91b1d .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/03/11 21:18 net-next 59d5923536ac 9e8eaa75 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/02/17 01:32 net-next 5a8fb33e5305 2bea8a27 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/02/05 03:28 net-next 41414c9bdbb8 e13a05ed .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/02/03 12:32 net-next 52dae93f3bad 4ebb2798 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/02/01 00:55 net-next b43471cc1032 6b7c57fe .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/29 18:42 net-next 0a78117213c4 495e00c5 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/19 01:27 net-next fe8152b38d3a 731a2d23 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/17 08:21 net-next fe8152b38d3a 723cfaf0 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/17 06:33 net-next fe8152b38d3a 723cfaf0 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/16 20:50 net-next fe8152b38d3a 723cfaf0 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/14 22:55 net-next fe8152b38d3a 53e00b45 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/13 15:13 net-next fe8152b38d3a 44d1319a .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2022/01/13 06:08 net-next fe8152b38d3a 44d1319a .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2021/12/29 07:00 net-next 271d3be1c3b6 76c8cf06 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2021/12/27 21:20 net-next 32f52e8e78d3 5140bd58 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-kasan-gce 2021/12/06 00:36 net-next ce83278f313c a617004c .config log report info WARNING in kcm_write_msgs
ci-upstream-linux-next-kasan-gce-root 2022/03/11 13:42 linux-next 91265a6da44d 9e8eaa75 .config log report info WARNING in kcm_write_msgs
ci-upstream-net-this-kasan-gce 2021/01/16 18:12 net bcd0cf19ef82 65a7a854 .config log report info
ci-upstream-net-this-kasan-gce 2020/03/15 04:32 net 94b18a87efdd 749688d2 .config log report