CFI failure at __traceiter_mm_lru_insertion+0x75/0xc0 include/trace/events/pagemap.h:28 (target: tp_stub_func+0x0/0x10; expected type: 0x1afd09c9) invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8983 Comm: syz.7.3207 Not tainted 6.1.145-syzkaller-00002-gc750dc582629 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__traceiter_mm_lru_insertion+0x75/0xc0 include/trace/events/pagemap.h:28 Code: 49 8d 7e 08 48 89 f8 48 c1 e8 03 42 80 3c 20 00 74 05 e8 1e ce 16 00 49 8b 7f 08 48 89 de 41 ba 37 f6 02 e5 45 03 55 fc 74 02 <0f> 0b 41 ff d5 49 83 c6 18 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 RSP: 0018:ffffc90002ad6ed8 EFLAGS: 00010093 RAX: 1ffff110234c7a73 RBX: ffffea0004eab140 RCX: 0000000000080000 RDX: ffffc90008a37000 RSI: ffffea0004eab140 RDI: ffffc90002bd3000 RBP: ffffc90002ad6f00 R08: dffffc0000000000 R09: fffffbfff0ee45d6 R10: 000000008a435d43 R11: 1ffffffff0ee45d5 R12: dffffc0000000000 R13: ffffffff81711ed0 R14: ffff88811a63d390 R15: ffff88811a63d390 FS: 00007f7d996556c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000329000 CR3: 000000012ffb3000 CR4: 00000000003506b0 DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: trace_mm_lru_insertion include/trace/events/pagemap.h:28 [inline] lru_add_fn+0x616/0x660 mm/swap.c:221 folio_batch_move_lru+0x282/0x470 mm/swap.c:238 folio_batch_add_and_move mm/swap.c:255 [inline] folio_add_lru+0x21c/0x390 mm/swap.c:526 folio_add_lru_vma+0x62/0x80 mm/swap.c:546 lru_cache_add_inactive_or_unevictable+0x5d/0x80 mm/folio-compat.c:94 wp_page_copy+0xd3d/0x15b0 mm/memory.c:3280 do_wp_page+0x9f2/0xfc0 mm/memory.c:-1 handle_pte_fault mm/memory.c:5189 [inline] __handle_mm_fault mm/memory.c:5313 [inline] handle_mm_fault+0x10e4/0x2640 mm/memory.c:5453 do_user_addr_fault+0x63b/0x1050 arch/x86/mm/fault.c:1374 handle_page_fault arch/x86/mm/fault.c:1466 [inline] exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1522 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166 Code: ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01 cb 83 fa 40 72 38 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 0a 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002ad7680 EFLAGS: 00050206 RAX: ffffffff82616001 RBX: 00000000000101d0 RCX: 000000000000d070 RDX: 00000000000101d0 RSI: ffff88812e2e3228 RDI: 0000200000329000 RBP: ffffc90002ad76b0 R08: dffffc0000000000 R09: ffffed1025c5e053 R10: 0000000000000000 R11: 0000000000002030 R12: 00007ffffffeee30 R13: 0000000000010100 R14: ffff88812e2e00c8 R15: 0000200000325ea0 _copy_to_iter+0x3f0/0xe50 lib/iov_iter.c:527 copy_to_iter include/linux/uio.h:179 [inline] simple_copy_to_iter+0x50/0x70 net/core/datagram.c:521 __skb_datagram_iter+0xf1/0x730 net/core/datagram.c:419 skb_copy_datagram_iter+0x40/0x150 net/core/datagram.c:535 skb_copy_datagram_msg include/linux/skbuff.h:3975 [inline] tipc_recvstream+0x6fe/0xe80 net/tipc/socket.c:2071 ____sys_recvmsg+0x2a0/0x590 net/socket.c:-1 ___sys_recvmsg+0x1b2/0x510 net/socket.c:2770 __sys_recvmsg net/socket.c:2800 [inline] __do_sys_recvmsg net/socket.c:2810 [inline] __se_sys_recvmsg net/socket.c:2807 [inline] __x64_sys_recvmsg+0x1ed/0x2c0 net/socket.c:2807 x64_sys_call+0x75/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:48 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7d9878ebe9 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:00007f7d99655038 EFLAGS: 00000246 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 00007f7d989b5fa0 RCX: 00007f7d9878ebe9 RDX: 0000000000001f00 RSI: 0000200000000500 RDI: 000000000000000a RBP: 00007f7d98811e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7d989b6038 R14: 00007f7d989b5fa0 R15: 00007ffe0d1891d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__traceiter_mm_lru_insertion+0x75/0xc0 include/trace/events/pagemap.h:28 Code: 49 8d 7e 08 48 89 f8 48 c1 e8 03 42 80 3c 20 00 74 05 e8 1e ce 16 00 49 8b 7f 08 48 89 de 41 ba 37 f6 02 e5 45 03 55 fc 74 02 <0f> 0b 41 ff d5 49 83 c6 18 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 RSP: 0018:ffffc90002ad6ed8 EFLAGS: 00010093 RAX: 1ffff110234c7a73 RBX: ffffea0004eab140 RCX: 0000000000080000 RDX: ffffc90008a37000 RSI: ffffea0004eab140 RDI: ffffc90002bd3000 RBP: ffffc90002ad6f00 R08: dffffc0000000000 R09: fffffbfff0ee45d6 R10: 000000008a435d43 R11: 1ffffffff0ee45d5 R12: dffffc0000000000 R13: ffffffff81711ed0 R14: ffff88811a63d390 R15: ffff88811a63d390 FS: 00007f7d996556c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000329000 CR3: 000000012ffb3000 CR4: 00000000003506b0 DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: ff c9 dec %ecx 2: 75 f2 jne 0xfffffff6 4: 89 d1 mov %edx,%ecx 6: c1 e9 03 shr $0x3,%ecx 9: 83 e2 07 and $0x7,%edx c: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) f: 89 d1 mov %edx,%ecx 11: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 13: 31 c0 xor %eax,%eax 15: 0f 01 ca clac 18: c3 ret 19: 8d 0c ca lea (%rdx,%rcx,8),%ecx 1c: 89 ca mov %ecx,%edx 1e: eb 20 jmp 0x40 20: 0f 01 cb stac 23: 83 fa 40 cmp $0x40,%edx 26: 72 38 jb 0x60 28: 89 d1 mov %edx,%ecx * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 31 c0 xor %eax,%eax 2e: 0f 01 ca clac 31: c3 ret 32: 89 ca mov %ecx,%edx 34: eb 0a jmp 0x40 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop