usercopy: Kernel memory overwrite attempt detected to SLUB object 'names_cache' (offset 0, size 16420)! ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:102! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5054 Comm: sshd Not tainted 6.2.0-rc2-syzkaller-00313-g9b43a525db12 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:usercopy_abort+0x89/0x90 mm/usercopy.c:102 Code: 50 fd 8a 48 0f 44 de 48 c7 c7 40 4f fd 8a 4c 89 ce 4c 89 d1 4d 89 d8 49 89 c1 31 c0 41 57 41 56 53 e8 eb a8 c0 08 48 83 c4 18 <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 50 41 89 d7 49 RSP: 0018:ffffc900039af818 EFLAGS: 00010286 RAX: 0000000000000067 RBX: ffffffff8afd50a0 RCX: 2838dab28da95800 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff816f2c9d R09: fffff52000735eb9 R10: fffff52000735eb9 R11: 1ffff92000735eb8 R12: 0000000000004024 R13: 0000000000004024 R14: 0000000000000000 R15: 0000000000004024 FS: 00007fc73035a800(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f20af50e262 CR3: 000000007bddd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __check_heap_object+0xa9/0xf0 mm/slub.c:4761 __check_object_size+0xad/0x210 mm/usercopy.c:251 check_object_size include/linux/thread_info.h:199 [inline] check_copy_size include/linux/thread_info.h:235 [inline] copy_from_iter include/linux/uio.h:186 [inline] copy_from_iter_full include/linux/uio.h:194 [inline] skb_do_copy_data_nocache include/net/sock.h:2268 [inline] skb_copy_to_page_nocache include/net/sock.h:2294 [inline] tcp_sendmsg_locked+0x16ed/0x40e0 net/ipv4/tcp.c:1376 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1483 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] sock_write_iter+0x3d4/0x540 net/socket.c:1108 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7dc/0xc50 fs/read_write.c:584 ksys_write+0x177/0x2a0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc7304aa9a3 Code: 8b 15 d9 f4 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffc89064478 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000004024 RCX: 00007fc7304aa9a3 RDX: 0000000000004024 RSI: 00005654472a5d70 RDI: 0000000000000004 RBP: 000056544728f410 R08: 0000000000000000 R09: 0000000000000070 R10: 00007ffc8906c118 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000001 R14: 00007ffc890644e8 R15: 00007ffc89064568 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:usercopy_abort+0x89/0x90 mm/usercopy.c:102 Code: 50 fd 8a 48 0f 44 de 48 c7 c7 40 4f fd 8a 4c 89 ce 4c 89 d1 4d 89 d8 49 89 c1 31 c0 41 57 41 56 53 e8 eb a8 c0 08 48 83 c4 18 <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 50 41 89 d7 49 RSP: 0018:ffffc900039af818 EFLAGS: 00010286 RAX: 0000000000000067 RBX: ffffffff8afd50a0 RCX: 2838dab28da95800 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff816f2c9d R09: fffff52000735eb9 R10: fffff52000735eb9 R11: 1ffff92000735eb8 R12: 0000000000004024 R13: 0000000000004024 R14: 0000000000000000 R15: 0000000000004024 FS: 00007fc73035a800(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f26a14d1000 CR3: 000000007bddd000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400