BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1d3149067 P4D 1d3149067 PUD 1db2ce067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2054 Comm: syz-executor.4 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: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881e9e93f00 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e278b1c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9f90 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e278b1c0 FS: 00007fe59b8466c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001eb02f000 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:check_preemption_disabled+0x81/0x320 lib/smp_processor_id.c:16 Code: f3 f3 f3 48 b9 00 00 00 00 00 fc ff df 49 89 44 0d 00 e8 a2 cf 32 ff 65 8b 05 b3 c4 d0 7d 89 44 24 04 65 44 8b 35 fb 20 d1 7d <44> 89 f6 81 e6 ff ff ff 7f 31 ff e8 6f d2 32 ff 41 81 e6 ff ff ff RSP: 0018:ffff8881e6896680 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff8881e9e94878 RCX: 0000000000040000 RDX: ffffc90000d44000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff8881e6896730 R08: dffffc0000000000 R09: ffff8881e6896db0 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff84fa4620 R13: 1ffff1103cd12cd4 R14: 0000000000000001 R15: ffffffff84fa4660 __schedule+0x9c/0x1320 kernel/sched/core.c:4235 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:4456 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:4481 ___preempt_schedule+0x16/0x20 arch/x86/entry/thunk_64.S:50 unwind_next_frame+0x19c2/0x1ea0 arch/x86/kernel/unwind_orc.c:603 __unwind_start+0x708/0x890 arch/x86/kernel/unwind_orc.c:691 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0xdd/0x140 arch/x86/kernel/stacktrace.c:24 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 bpf_prog_calc_tag+0x697/0x8f0 kernel/bpf/core.c:336 replace_map_fd_with_map_ptr kernel/bpf/verifier.c:8218 [inline] bpf_check+0x912/0xb340 kernel/bpf/verifier.c:9608 bpf_prog_load kernel/bpf/syscall.c:1724 [inline] __do_sys_bpf kernel/bpf/syscall.c:2891 [inline] __se_sys_bpf+0x8139/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:0x7fe59c4cbea9 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:00007fe59b8460c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fe59c602f80 RCX: 00007fe59c4cbea9 RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005 RBP: 00007fe59c53aff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fe59c602f80 R15: 00007ffeb22541d8 Modules linked in: CR2: 0000000000000000 ---[ end trace f4f991be67cf8c67 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881e9e93f00 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e278b1c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9f90 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e278b1c0 FS: 00007fe59b8466c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001eb02f000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: f3 f3 f3 48 b9 00 00 repz repz repz movabs $0xdffffc0000000000,%rcx 7: 00 00 00 fc ff df d: 49 89 44 0d 00 mov %rax,0x0(%r13,%rcx,1) 12: e8 a2 cf 32 ff call 0xff32cfb9 17: 65 8b 05 b3 c4 d0 7d mov %gs:0x7dd0c4b3(%rip),%eax # 0x7dd0c4d1 1e: 89 44 24 04 mov %eax,0x4(%rsp) 22: 65 44 8b 35 fb 20 d1 mov %gs:0x7dd120fb(%rip),%r14d # 0x7dd12125 29: 7d * 2a: 44 89 f6 mov %r14d,%esi <-- trapping instruction 2d: 81 e6 ff ff ff 7f and $0x7fffffff,%esi 33: 31 ff xor %edi,%edi 35: e8 6f d2 32 ff call 0xff32d2a9 3a: 41 rex.B 3b: 81 .byte 0x81 3c: e6 ff out %al,$0xff 3e: ff (bad) 3f: ff .byte 0xff