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: 0 PID: 3895 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:95 Code: 8b 3d 10 5c 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:ffffc900017d79d8 EFLAGS: 00010213 RAX: ffffffff81713a70 RBX: 0000000000000000 RCX: ffff88811a2c9440 RDX: 0000000000000000 RSI: ffffffff823bc169 RDI: ffffc900023eb000 RBP: ffffc900017d79f0 R08: dffffc0000000000 R09: ffffc900017d7ba0 R10: 000000001ebd94fb R11: 0000000000000000 R12: ffffc900017d7d60 R13: ffffc900017d7ba0 R14: ffffffff823bc169 R15: ffff88810ff46ea8 FS: 0000555591301500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000012c0 CR3: 0000000116cd4000 CR4: 00000000003506b0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083 DR3: ffffffffefffff15 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_kfree include/trace/events/kmem.h:95 [inline] kfree+0xc9/0xf0 mm/slab_common.c:977 context_destroy security/selinux/ss/context.h:178 [inline] security_compute_sid+0x1339/0x1440 security/selinux/ss/services.c:1916 security_transition_sid+0x7d/0x90 security/selinux/ss/services.c:1940 socket_sockcreate_sid security/selinux/hooks.c:4595 [inline] selinux_socket_create+0x1c6/0x290 security/selinux/hooks.c:4629 security_socket_create+0x89/0xc0 security/security.c:2237 __sock_create+0xd4/0x7c0 net/socket.c:1495 sock_create net/socket.c:1596 [inline] __sys_socket_create net/socket.c:1633 [inline] __sys_socket+0xcd/0x1a0 net/socket.c:1661 __do_sys_socket net/socket.c:1674 [inline] __se_sys_socket net/socket.c:1672 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1672 x64_sys_call+0x449/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:42 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:0x7f97c0390ee7 Code: f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 29 00 00 00 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:00007ffe3fca5118 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007f97c0412ff6 RCX: 00007f97c0390ee7 RDX: 0000000000000000 RSI: 0000000000080002 RDI: 0000000000000001 RBP: 00007ffe3fca5130 R08: 0000000000000009 R09: 0000000000000004 R10: 000000000000000b R11: 0000000000000246 R12: 00007ffe3fca51bc R13: 00007f97c0412ff6 R14: 00007f97c1114620 R15: 00007f97c0412ff6 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__traceiter_kfree+0x34/0x50 include/trace/events/kmem.h:95 Code: 8b 3d 10 5c 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:ffffc900017d79d8 EFLAGS: 00010213