BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1d2ea2067 P4D 1d2ea2067 PUD 1e94bb067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1607 Comm: syz-executor.3 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: ffff8881e5fb6e40 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881ec3a71c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9ae0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ec3a71c0 FS: 00007ff2140ec6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d393d000 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:__sanitizer_cov_trace_pc+0x35/0x50 kernel/kcov.c:193 Code: 7e 65 8b 15 59 51 9e 7e f7 c2 00 01 1f 00 74 01 c3 8b 91 00 0a 00 00 83 fa 02 75 f4 48 8b 91 08 0a 00 00 48 8b 32 48 8d 7e 01 <8b> 89 04 0a 00 00 48 39 cf 73 db 48 89 44 f2 08 48 89 3a c3 0f 1f RSP: 0018:ffff8881e2277598 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffffff82316caf RBX: 0000000000000000 RCX: ffff8881e5fb6e40 RDX: ffffc90001146000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff8881e2277648 R08: ffffffff82316ca1 R09: ffff8881e2277688 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff84fa4620 R13: 1ffff1103c44eeb8 R14: 0000000000000001 R15: ffffffff84fa4660 check_preemption_disabled+0x9f/0x320 lib/smp_processor_id.c:16 ____bpf_get_smp_processor_id kernel/bpf/helpers.c:123 [inline] bpf_get_smp_processor_id+0xa/0x10 kernel/bpf/helpers.c:121 bpf_prog_12a2f3889f7a4f34+0xc8b/0x1000 bpf_call_func include/linux/filter.h:627 [inline] bpf_test_run+0x2ae/0x6c0 net/bpf/test_run.c:44 bpf_prog_test_run_skb+0x73c/0xf00 net/bpf/test_run.c:311 bpf_prog_test_run kernel/bpf/syscall.c:2124 [inline] __do_sys_bpf kernel/bpf/syscall.c:2909 [inline] __se_sys_bpf+0x2e37/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:0x7ff214d71ea9 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:00007ff2140ec0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ff214ea8f80 RCX: 00007ff214d71ea9 RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a RBP: 00007ff214de0ff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff214ea8f80 R15: 00007ffced559ae8 Modules linked in: CR2: 0000000000000000 ---[ end trace 88f1fbebb3d1d322 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881e5fb6e40 RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881ec3a71c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9ae0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ec3a71c0 FS: 00007ff2140ec6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001d393d000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 7e 65 jle 0x67 2: 8b 15 59 51 9e 7e mov 0x7e9e5159(%rip),%edx # 0x7e9e5161 8: f7 c2 00 01 1f 00 test $0x1f0100,%edx e: 74 01 je 0x11 10: c3 ret 11: 8b 91 00 0a 00 00 mov 0xa00(%rcx),%edx 17: 83 fa 02 cmp $0x2,%edx 1a: 75 f4 jne 0x10 1c: 48 8b 91 08 0a 00 00 mov 0xa08(%rcx),%rdx 23: 48 8b 32 mov (%rdx),%rsi 26: 48 8d 7e 01 lea 0x1(%rsi),%rdi * 2a: 8b 89 04 0a 00 00 mov 0xa04(%rcx),%ecx <-- trapping instruction 30: 48 39 cf cmp %rcx,%rdi 33: 73 db jae 0x10 35: 48 89 44 f2 08 mov %rax,0x8(%rdx,%rsi,8) 3a: 48 89 3a mov %rdi,(%rdx) 3d: c3 ret 3e: 0f .byte 0xf 3f: 1f (bad)