BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 1e19e0067 P4D 1e19e0067 PUD 1d755c067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7589 Comm: syz-executor.2 Tainted: G W 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: 0000000000000102 RCX: ffff8881f31d4ec0 RDX: 0000000000000102 RSI: 0000000000000000 RDI: ffff8881d0c2b1c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000fffff1f8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881d0c2b1c0 FS: 00007fc11c3076c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001e86e3000 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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x45/0x60 kernel/locking/spinlock.c:199 Code: 08 00 74 0c 48 c7 c7 90 3b eb 85 e8 75 12 43 fd 48 83 3d cd 2c 9a 01 00 74 29 48 89 df e8 e3 e7 fa fc 66 90 fb bf 01 00 00 00 66 d4 f3 fc 65 8b 05 ab 7e b1 7b 85 c0 74 02 5b c3 e8 34 45 af RSP: 0018:ffff8881e00e6bf0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000001 RBX: ffff8881f6f57b40 RCX: dffffc0000000000 RDX: 0000000040000002 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffff8881e00e6c50 R08: ffffffff81799989 R09: fffffbfff0c96e5b R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f6f57b40 R13: ffff8881f31d4ec0 R14: dffffc0000000000 R15: 0000000000000000 finish_lock_switch kernel/sched/core.c:3347 [inline] finish_task_switch+0x130/0x590 kernel/sched/core.c:3447 context_switch kernel/sched/core.c:3611 [inline] __schedule+0xb0d/0x1320 kernel/sched/core.c:4307 preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:4558 retint_kernel+0x1b/0x1b RIP: 0010:should_resched arch/x86/include/asm/preempt.h:102 [inline] RIP: 0010:unwind_next_frame+0x1771/0x1ea0 arch/x86/kernel/unwind_orc.c:603 Code: 00 c6 05 8a c2 19 05 01 48 c7 c7 00 b1 a6 84 48 8b 74 24 58 e9 87 00 00 00 bf 01 00 00 00 e8 86 0d 15 00 65 8b 0d cb b7 d2 7e 01 85 c9 0f 84 42 02 00 00 48 8b 9c 24 88 00 00 00 e9 d5 00 00 RSP: 0018:ffff8881e00e6ea0 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff13 RAX: 0000000080000001 RBX: ffff8881e00e71b0 RCX: 0000000080000000 RDX: ffff8881e00e7120 RSI: ffff8881e00e6e00 RDI: 0000000000000001 RBP: ffff8881e00e7190 R08: 0000000000000004 R09: ffff8881e00e71f0 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff0d66588 R13: ffffffff86b32c3e R14: 00007fc11c3070c8 R15: ffff8881e00e0000 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_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x1b5/0x270 mm/kasan/common.c:487 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook mm/slub.c:1494 [inline] slab_free mm/slub.c:3080 [inline] kfree+0x123/0x370 mm/slub.c:4071 ext4_ext_map_blocks+0x2c6b/0x7450 fs/ext4/extents.c:4613 ext4_map_blocks+0xa2f/0x1ba0 fs/ext4/inode.c:661 ext4_alloc_file_blocks+0x3b1/0xc20 fs/ext4/extents.c:4700 ext4_fallocate+0x3b5/0x570 fs/ext4/extents.c:4987 vfs_fallocate+0x551/0x6b0 fs/open.c:309 ioctl_preallocate fs/ioctl.c:519 [inline] file_ioctl fs/ioctl.c:535 [inline] do_vfs_ioctl+0x1368/0x1720 fs/ioctl.c:725 ksys_ioctl fs/ioctl.c:742 [inline] __do_sys_ioctl fs/ioctl.c:749 [inline] __se_sys_ioctl fs/ioctl.c:747 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7fc11cf8cea9 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:00007fc11c3070c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc11d0c3f80 RCX: 00007fc11cf8cea9 RDX: 0000000020000040 RSI: 000000004030582a RDI: 0000000000000008 RBP: 00007fc11cffbff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc11d0c3f80 R15: 00007ffe30c797c8 Modules linked in: CR2: 0000000000000000 ---[ end trace 7141fb89f159bd04 ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6f09d18 EFLAGS: 00010202 RAX: ffffffff8154d7aa RBX: 0000000000000102 RCX: ffff8881f31d4ec0 RDX: 0000000000000102 RSI: 0000000000000000 RDI: ffff8881d0c2b1c0 RBP: ffff8881f6f09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000fffff1f8 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881d0c2b1c0 FS: 00007fc11c3076c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001e86e3000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 08 00 or %al,(%rax) 2: 74 0c je 0x10 4: 48 c7 c7 90 3b eb 85 mov $0xffffffff85eb3b90,%rdi b: e8 75 12 43 fd call 0xfd431285 10: 48 83 3d cd 2c 9a 01 cmpq $0x0,0x19a2ccd(%rip) # 0x19a2ce5 17: 00 18: 74 29 je 0x43 1a: 48 89 df mov %rbx,%rdi 1d: e8 e3 e7 fa fc call 0xfcfae805 22: 66 90 xchg %ax,%ax 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 66 d4 f3 fc call 0xfcf3d495 <-- trapping instruction 2f: 65 8b 05 ab 7e b1 7b mov %gs:0x7bb17eab(%rip),%eax # 0x7bb17ee1 36: 85 c0 test %eax,%eax 38: 74 02 je 0x3c 3a: 5b pop %rbx 3b: c3 ret 3c: e8 .byte 0xe8 3d: 34 45 xor $0x45,%al 3f: af scas %es:(%rdi),%eax