BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1da328067 P4D 1da328067 PUD 1deaed067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1158 Comm: syz.0.281 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: ffff8881da1dbf00 RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881e7be31c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff99b0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e7be31c0 FS: 00007f1dfa7996c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001e24df000 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:orc_ip arch/x86/kernel/unwind_orc.c:27 [inline] RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:49 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:175 [inline] RIP: 0010:unwind_next_frame+0x612/0x1ea0 arch/x86/kernel/unwind_orc.c:438 Code: e8 3f 48 01 c8 48 83 e0 fe 49 8d 5c 45 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 75 27 48 63 03 <48> 01 d8 48 8d 4b 04 4c 39 e0 4c 0f 46 e9 48 8d 43 fc 4c 0f 47 f8 RSP: 0018:ffff8881d9b96fa0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: fffffffffb49c45f RBX: ffffffff865702c8 RCX: dffffc0000000000 RDX: ffffffff865702a8 RSI: ffffffff8684d0d4 RDI: ffffffff812fbfcc RBP: ffff8881d9b97290 R08: 0000000000000012 R09: ffff8881d9b972f0 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff81a0c7f8 R13: ffffffff865702a8 R14: ffffffff865702a8 R15: ffffffff865702ec 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_getfd+0x2aa/0x430 fs/anon_inodes.c:165 bpf_map_new_fd kernel/bpf/syscall.c:448 [inline] map_create kernel/bpf/syscall.c:620 [inline] __do_sys_bpf kernel/bpf/syscall.c:2873 [inline] __se_sys_bpf+0x7b21/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:0x7f1dfb517ae9 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:00007f1dfa799048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f1dfb6a5fa0 RCX: 00007f1dfb517ae9 RDX: 0000000000000048 RSI: 0000000020000180 RDI: 0000000000000000 RBP: 00007f1dfb598746 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f1dfb6a5fa0 R15: 00007ffd04da7a58 Modules linked in: CR2: 0000000000000000 ---[ end trace 9faf572747897858 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6f09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000101 RCX: ffff8881da1dbf00 RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881e7be31c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffff99b0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e7be31c0 FS: 00007f1dfa7996c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001e24df000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e8 3f 48 01 c8 call 0xc8014844 5: 48 83 e0 fe and $0xfffffffffffffffe,%rax 9: 49 8d 5c 45 00 lea 0x0(%r13,%rax,2),%rbx e: 48 89 d8 mov %rbx,%rax 11: 48 c1 e8 03 shr $0x3,%rax 15: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 1c: fc ff df 1f: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax 23: 84 c0 test %al,%al 25: 75 27 jne 0x4e 27: 48 63 03 movslq (%rbx),%rax * 2a: 48 01 d8 add %rbx,%rax <-- trapping instruction 2d: 48 8d 4b 04 lea 0x4(%rbx),%rcx 31: 4c 39 e0 cmp %r12,%rax 34: 4c 0f 46 e9 cmovbe %rcx,%r13 38: 48 8d 43 fc lea -0x4(%rbx),%rax 3c: 4c 0f 47 f8 cmova %rax,%r15