------------[ cut here ]------------ WARNING: CPU: 0 PID: 5238 at net/kcm/kcmsock.c:633 kcm_write_msgs+0x102e/0x12e0 net/kcm/kcmsock.c:633 Modules linked in: CPU: 1 PID: 5238 Comm: syz.0.51 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:kcm_write_msgs+0x102e/0x12e0 net/kcm/kcmsock.c:633 Code: ff 44 89 f6 e8 73 50 83 f8 45 85 f6 45 0f 45 fe 44 89 f8 48 81 c4 a0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 f2 4c 83 f8 <0f> 0b 41 bf ea ff ff ff 48 83 7c 24 48 00 0f 85 2f ff ff ff e9 50 RSP: 0018:ffffc9000307f8a8 EFLAGS: 00010293 RAX: ffffffff88f4761e RBX: 0000000000000000 RCX: ffff88801ed48000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffffbfff1ff7441 R10: fffffbfff1ff7441 R11: 1ffffffff1ff7440 R12: 0000000000000000 R13: ffff88807b50ca00 R14: 0000000000000000 R15: 0000000000008000 FS: 00007f0450afa6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c006b7e000 CR3: 0000000073cb8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kcm_sendmsg+0x1b3a/0x2130 net/kcm/kcmsock.c:1040 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] sock_write_iter+0x29c/0x380 net/socket.c:1079 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f045188a929 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:00007f0450afa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f0451ab1fa0 RCX: 00007f045188a929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f045190cb39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0451ab1fa0 R15: 00007ffef46e5df8