BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1de677067 P4D 1de677067 PUD 1df4d9067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4611 Comm: syz.1.1383 Not tainted 5.4.274-syzkaller-00002-g6f97bd951d82 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154d7aa RBX: 0000000000000100 RCX: ffff8881e4a80fc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881f35c31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffc060 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881f35c31c0 FS: 00007fa70af006c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d1348000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: call_timer_fn+0x36/0x390 kernel/time/timer.c:1448 expire_timers kernel/time/timer.c:1493 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1817 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:538 [inline] smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:unwind_next_frame+0x18d3/0x1ea0 arch/x86/kernel/unwind_orc.c:613 Code: 43 3d 00 00 c6 43 3f 00 65 48 8b 0c 25 28 00 00 00 48 3b 8c 24 a0 02 00 00 0f 85 cd 05 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e <41> 5f 5d c3 49 89 d6 49 89 d5 4c 89 f8 4c 29 e8 48 89 c1 48 c1 f9 RSP: 0018:ffff8881e4bef748 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000080000001 RBX: ffff8881e4bef760 RCX: 3036ab0fd1c25b00 RDX: ffff8881e4bef7a0 RSI: ffff8881e4bef3e0 RDI: 0000000000000001 RBP: ffff8881e4bef750 R08: dffffc0000000000 R09: ffff8881e4bef7b0 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881e4a80fc0 R13: ffffffff8153b310 R14: ffff8881e4bef840 R15: ffff8881e4be8000 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1c0 kernel/stacktrace.c:123 save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x171/0x210 mm/kasan/common.c:529 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd9/0x250 mm/slub.c:2842 __d_alloc+0x2a/0x6a0 fs/dcache.c:1691 d_alloc_pseudo+0x19/0x70 fs/dcache.c:1820 alloc_file_pseudo+0x131/0x2f0 fs/file_table.c:226 __anon_inode_getfile fs/anon_inodes.c:109 [inline] anon_inode_getfile+0xc4/0x180 fs/anon_inodes.c:147 __do_sys_perf_event_open kernel/events/core.c:11259 [inline] __se_sys_perf_event_open+0xf66/0x37c0 kernel/events/core.c:11033 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7fa70bc7ed39 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:00007fa70af00048 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007fa70be0cfa0 RCX: 00007fa70bc7ed39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240 RBP: 00007fa70bcff766 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa70be0cfa0 R15: 00007ffdac188198 Modules linked in: CR2: 0000000000000000 ---[ end trace d05588c4b567ecfd ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154d7aa RBX: 0000000000000100 RCX: ffff8881e4a80fc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881f35c31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffc060 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881f35c31c0 FS: 00007fa70af006c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d1348000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 00 00 add %al,(%rax) 2: c6 43 3f 00 movb $0x0,0x3f(%rbx) 6: 65 48 8b 0c 25 28 00 mov %gs:0x28,%rcx d: 00 00 f: 48 3b 8c 24 a0 02 00 cmp 0x2a0(%rsp),%rcx 16: 00 17: 0f 85 cd 05 00 00 jne 0x5ea 1d: 48 8d 65 d8 lea -0x28(%rbp),%rsp 21: 5b pop %rbx 22: 41 5c pop %r12 24: 41 5d pop %r13 26: 41 5e pop %r14 * 28: 41 5f pop %r15 <-- trapping instruction 2a: 5d pop %rbp 2b: c3 ret 2c: 49 89 d6 mov %rdx,%r14 2f: 49 89 d5 mov %rdx,%r13 32: 4c 89 f8 mov %r15,%rax 35: 4c 29 e8 sub %r13,%rax 38: 48 89 c1 mov %rax,%rcx 3b: 48 rex.W 3c: c1 .byte 0xc1 3d: f9 stc