BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1e6767067 P4D 1e6767067 PUD 1f3aef067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1395 Comm: syz.3.309 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:ffff8881f6f09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881dbc3af40 RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881c9c871c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9d30 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881c9c871c0 FS: 00007fdb044206c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001dca9e000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:bpf_test_run+0x305/0x6c0 net/bpf/test_run.c:46 Code: 00 00 00 e8 5d c3 fa fd 49 89 df 49 c1 ef 03 43 80 3c 37 00 74 08 48 89 df e8 e7 ef fa fd 4c 8b 33 4c 89 f6 48 83 e6 04 31 ff 26 0e cb fd 49 83 e6 04 0f 85 50 02 00 00 48 89 df be 08 00 00 RSP: 0018:ffff8881ed6776a0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8881ed677801 RBX: ffff8881dbc3af40 RCX: ffffffff83993133 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff8881ed6777d0 R08: dffffc0000000000 R09: ffffed103b7875e9 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffed01af R13: fffffff4951262c9 R14: 0000000010004000 R15: 1ffff1103b7875e8 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:0x7fdb0519eae9 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:00007fdb04420048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fdb0532cfa0 RCX: 00007fdb0519eae9 RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a RBP: 00007fdb0521f746 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fdb0532cfa0 R15: 00007ffe5bafbbc8 Modules linked in: CR2: 0000000000000000 ---[ end trace e323e4c6351d1016 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6f09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881dbc3af40 RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881c9c871c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff9d30 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881c9c871c0 FS: 00007fdb044206c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001dca9e000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 e8 add %ch,%al 4: 5d pop %rbp 5: c3 ret 6: fa cli 7: fd std 8: 49 89 df mov %rbx,%r15 b: 49 c1 ef 03 shr $0x3,%r15 f: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1) 14: 74 08 je 0x1e 16: 48 89 df mov %rbx,%rdi 19: e8 e7 ef fa fd call 0xfdfaf005 1e: 4c 8b 33 mov (%rbx),%r14 21: 4c 89 f6 mov %r14,%rsi 24: 48 83 e6 04 and $0x4,%rsi 28: 31 ff xor %edi,%edi * 2a: e8 26 0e cb fd call 0xfdcb0e55 <-- trapping instruction 2f: 49 83 e6 04 and $0x4,%r14 33: 0f 85 50 02 00 00 jne 0x289 39: 48 89 df mov %rbx,%rdi 3c: be .byte 0xbe 3d: 08 00 or %al,(%rax)