BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1e6370067 P4D 1e6370067 PUD 1e0f1c067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2785 Comm: syz-executor.2 Not tainted 5.4.274-syzkaller-00016-gdd432c37afcd #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: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881db998000 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e73e31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffb7c8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e73e31c0 FS: 00007f825c23c6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001db20e000 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:preempt_count arch/x86/include/asm/preempt.h:26 [inline] RIP: 0010:preempt_count_sub+0x37/0x160 kernel/sched/core.c:4040 Code: c1 e8 03 49 be 00 00 00 00 00 fc ff df 42 0f b6 04 30 84 c0 0f 85 c0 00 00 00 83 3d 52 b6 a4 05 00 75 22 65 8b 05 15 aa bd 7e <89> c1 81 e1 ff ff ff 7f 39 d9 7c 23 81 fb fe 00 00 00 77 07 0f b6 RSP: 0018:ffff8881e1217108 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000080000001 RBX: 0000000000000001 RCX: ffffffff86e99903 RDX: ffff8881e1217460 RSI: ffff8881e12170a0 RDI: 0000000000000001 RBP: ffff8881e1217410 R08: dffffc0000000000 R09: ffff8881e1217470 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff0d02b43 R13: ffffffff86815a19 R14: dffffc0000000000 R15: ffff8881e1210000 unwind_next_frame+0x176a/0x1ea0 arch/x86/kernel/unwind_orc.c:603 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1c0 kernel/stacktrace.c:123 save_stack+0x95/0x880 mm/page_owner.c:122 __reset_page_owner+0x1f/0x100 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] free_pcp_prepare mm/page_alloc.c:1233 [inline] free_unref_page_prepare+0x297/0x380 mm/page_alloc.c:3085 free_unref_page mm/page_alloc.c:3134 [inline] free_the_page mm/page_alloc.c:4953 [inline] __free_pages+0xaf/0x140 mm/page_alloc.c:4961 __vunmap+0x75b/0x890 mm/vmalloc.c:2260 btf_free kernel/bpf/btf.c:902 [inline] btf_parse kernel/bpf/btf.c:3372 [inline] btf_new_fd+0x939/0x10e0 kernel/bpf/btf.c:3416 bpf_btf_load kernel/bpf/syscall.c:2705 [inline] __do_sys_bpf kernel/bpf/syscall.c:2936 [inline] __se_sys_bpf+0x13de/0xbcb0 kernel/bpf/syscall.c:2849 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f825cee2f69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f825c23c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f825d01a050 RCX: 00007f825cee2f69 RDX: 0000000000000020 RSI: 0000000020000280 RDI: 0000000000000012 RBP: 00007f825cf406fe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f825d01a050 R15: 00007ffebda16fa8 Modules linked in: CR2: 0000000000000000 ---[ end trace 123f17cb5c09f365 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881db998000 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e73e31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffb7c8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e73e31c0 FS: 00007f825c23c6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001db20e000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: c1 e8 03 shr $0x3,%eax 3: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 a: fc ff df d: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 12: 84 c0 test %al,%al 14: 0f 85 c0 00 00 00 jne 0xda 1a: 83 3d 52 b6 a4 05 00 cmpl $0x0,0x5a4b652(%rip) # 0x5a4b673 21: 75 22 jne 0x45 23: 65 8b 05 15 aa bd 7e mov %gs:0x7ebdaa15(%rip),%eax # 0x7ebdaa3f * 2a: 89 c1 mov %eax,%ecx <-- trapping instruction 2c: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx 32: 39 d9 cmp %ebx,%ecx 34: 7c 23 jl 0x59 36: 81 fb fe 00 00 00 cmp $0xfe,%ebx 3c: 77 07 ja 0x45 3e: 0f .byte 0xf 3f: b6 .byte 0xb6