CFI failure at __traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:95 (target: tp_stub_func+0x0/0x10; expected type: 0x8682d211) invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9955 Comm: syz-executor Not tainted 6.1.145-syzkaller-00038-g3b4ff5af8d36 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:95 Code: 8b 3d 58 42 ca 05 4d 85 ff 74 2e 48 89 d3 49 89 f6 49 8b 07 49 8b 7f 08 4c 89 f6 48 89 da 41 ba ef 2d 7d 79 44 03 50 fc 74 02 <0f> 0b ff d0 49 83 7f 18 00 4d 8d 7f 18 75 d8 31 c0 5b 41 5e 41 5f RSP: 0018:ffffc90000b67890 EFLAGS: 00010213 RAX: ffffffff81711ed0 RBX: ffff88810d0f2000 RCX: dffffc0000000000 RDX: ffff88810d0f2000 RSI: ffffffff81a37065 RDI: ffffc90009cad000 RBP: ffffc90000b678a8 R08: ffff8881f5c00000 R09: 000000000000e668 R10: 000000001ebd94fb R11: 0000000000000001 R12: ffff888132c7a540 R13: ffff88810d0f2038 R14: ffffffff81a37065 R15: ffff888116608aa8 FS: 0000555588783500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0d2ef86358 CR3: 000000012bca3000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_kfree include/trace/events/kmem.h:95 [inline] kfree+0xc9/0xf0 mm/slab_common.c:977 kvfree+0x35/0x40 mm/util.c:639 xt_free_table_info+0x163/0x180 net/netfilter/x_tables.c:1212 __do_replace+0x7b5/0x950 net/ipv4/netfilter/ip_tables.c:1086 do_replace net/ipv4/netfilter/ip_tables.c:1143 [inline] do_ipt_set_ctl+0x9ed/0xcb0 net/ipv4/netfilter/ip_tables.c:1637 nf_setsockopt+0x284/0x2b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xed/0x100 net/ipv4/ip_sockglue.c:1468 tcp_setsockopt+0xeb/0x100 net/ipv4/tcp.c:3850 sock_common_setsockopt+0xb1/0xc0 net/core/sock.c:3698 __sys_setsockopt+0x306/0x4e0 net/socket.c:2278 __do_sys_setsockopt net/socket.c:2289 [inline] __se_sys_setsockopt net/socket.c:2286 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286 x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 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:0x7f0d2ed90a5a Code: ff ff ff c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 RSP: 002b:00007ffec8b1faf8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ffec8b1fb80 RCX: 00007f0d2ed90a5a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000240 R09: 00007ffec8b1ff37 R10: 00007f0d2ef86300 R11: 0000000000000202 R12: 00007f0d2ef862a0 R13: 00007ffec8b1fb1c R14: 0000000000000000 R15: 00007f0d2ef87020 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:95 Code: 8b 3d 58 42 ca 05 4d 85 ff 74 2e 48 89 d3 49 89 f6 49 8b 07 49 8b 7f 08 4c 89 f6 48 89 da 41 ba ef 2d 7d 79 44 03 50 fc 74 02 <0f> 0b ff d0 49 83 7f 18 00 4d 8d 7f 18 75 d8 31 c0 5b 41 5e 41 5f RSP: 0018:ffffc90000b67890 EFLAGS: 00010213