------------[ cut here ]------------ WARNING: CPU: 1 PID: 28953 at net/kcm/kcmsock.c:637 kcm_write_msgs+0x11e9/0x14b0 Modules linked in: CPU: 1 PID: 28953 Comm: syz-executor.1 Not tainted 6.3.0-rc6-syzkaller-00168-g95abc817ab3a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:kcm_write_msgs+0x11e9/0x14b0 net/kcm/kcmsock.c:637 Code: 5c 24 14 89 de e8 97 f9 b5 f7 85 db 8b 44 24 28 0f 45 c3 48 81 c4 90 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 c7 f5 b5 f7 <0f> 0b e9 33 ff ff ff e8 bb f5 b5 f7 0f 0b e9 2d f6 ff ff e8 af f5 RSP: 0018:ffffc90004887878 EFLAGS: 00010246 RAX: ffffffff89d480f9 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90004031000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: dffffc0000000000 R08: ffffffff89d4784a R09: ffffed100f40b371 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88804a855348 R13: ffff8880464c3b40 R14: ffff88804a854f00 R15: ffff88807124db40 FS: 00007fc2d57ad700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32e25000 CR3: 000000004a1e5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kcm_sendmsg+0x1ef2/0x24d0 net/kcm/kcmsock.c:1043 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] sock_write_iter+0x397/0x520 net/socket.c:1138 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637