BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1c7547067 P4D 1c7547067 PUD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3974 Comm: syz.6.1042 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09cf0 EFLAGS: 00010202 RAX: ffffffff8150a590 RBX: 0000000000000101 RCX: ffff8881e4cfcec0 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881bef631c0 RBP: ffff8881f6e09d30 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103edc1398 R11: 1ffff1103edc1398 R12: 00000000ffffb1e8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881bef631c0 FS: 00007f152c3276c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001f00ce000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: call_timer_fn+0x3c/0x380 kernel/time/timer.c:1448 expire_timers kernel/time/timer.c:1493 [inline] __run_timers+0x81d/0xb60 kernel/time/timer.c:1817 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1830 __do_softirq+0x236/0x660 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x197/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:539 [inline] smp_apic_timer_interrupt+0x11d/0x490 arch/x86/kernel/apic/apic.c:1161 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:arch_stack_walk+0x115/0x140 arch/x86/kernel/stacktrace.c:30 Code: e8 90 94 05 00 48 85 c0 74 20 48 89 df 48 89 c6 31 d2 41 ff d6 84 c0 74 11 4c 89 ff e8 a4 95 05 00 83 bd 78 ff ff ff 00 75 d3 <65> 48 8b 04 25 28 00 00 00 48 3b 45 d8 75 0d 48 83 c4 68 5b 41 5c RSP: 0018:ffff8881e9fff5e8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff8881e9fff6a0 RCX: 0000000000080000 RDX: ffffc9000855d000 RSI: 0000000000018122 RDI: ffff8881e4cfcec0 RBP: ffff8881e9fff670 R08: dffffc0000000000 R09: ffffed103edcb135 R10: ffffed103edcb135 R11: 1ffff1103edcb134 R12: ffff8881e4cfcec0 R13: 1ffff1103d3ffed0 R14: ffffffff814fbbf0 R15: ffff8881e9fff5e8 stack_trace_save+0xaa/0xf0 kernel/stacktrace.c:123 save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x1c3/0x280 mm/kasan/common.c:487 kasan_slab_free+0xe/0x10 mm/kasan/common.c:496 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook+0xb7/0x180 mm/slub.c:1494 slab_free mm/slub.c:3080 [inline] kfree+0xbe/0x260 mm/slub.c:4071 context_add_hash+0x103/0x170 security/selinux/ss/services.c:1488 context_struct_to_sid security/selinux/ss/services.c:1501 [inline] security_compute_sid+0xf93/0x13f0 security/selinux/ss/services.c:1865 security_transition_sid+0x7d/0x90 security/selinux/ss/services.c:1890 socket_sockcreate_sid security/selinux/hooks.c:4585 [inline] selinux_socket_post_create+0x328/0x450 security/selinux/hooks.c:4638 security_socket_post_create+0x82/0xb0 security/security.c:2020 __sock_create+0x441/0x740 net/socket.c:1443 sock_create net/socket.c:1478 [inline] __sys_socketpair+0x21e/0x5a0 net/socket.c:1582 __do_sys_socketpair net/socket.c:1631 [inline] __se_sys_socketpair net/socket.c:1628 [inline] __x64_sys_socketpair+0x9b/0xb0 net/socket.c:1628 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f152dcbe969 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:00007f152c327038 EFLAGS: 00000246 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffda RBX: 00007f152dee5fa0 RCX: 00007f152dcbe969 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 00007f152dd40ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000200 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f152dee5fa0 R15: 00007ffef8434a78 Modules linked in: CR2: 0000000000000000 ---[ end trace aa3601cb6f52c13c ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09cf0 EFLAGS: 00010202 RAX: ffffffff8150a590 RBX: 0000000000000101 RCX: ffff8881e4cfcec0 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881bef631c0 RBP: ffff8881f6e09d30 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103edc1398 R11: 1ffff1103edc1398 R12: 00000000ffffb1e8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881bef631c0 FS: 00007f152c3276c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001f00ce000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: e8 90 94 05 00 call 0x59495 5: 48 85 c0 test %rax,%rax 8: 74 20 je 0x2a a: 48 89 df mov %rbx,%rdi d: 48 89 c6 mov %rax,%rsi 10: 31 d2 xor %edx,%edx 12: 41 ff d6 call *%r14 15: 84 c0 test %al,%al 17: 74 11 je 0x2a 19: 4c 89 ff mov %r15,%rdi 1c: e8 a4 95 05 00 call 0x595c5 21: 83 bd 78 ff ff ff 00 cmpl $0x0,-0x88(%rbp) 28: 75 d3 jne 0xfffffffd * 2a: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax <-- trapping instruction 31: 00 00 33: 48 3b 45 d8 cmp -0x28(%rbp),%rax 37: 75 0d jne 0x46 39: 48 83 c4 68 add $0x68,%rsp 3d: 5b pop %rbx 3e: 41 5c pop %r12