BUG: unable to handle page fault for address: ffffffff818d5660 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD 5e11067 P4D 5e11067 PUD 5e12063 PMD 18001e1 Oops: 0003 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5949 Comm: syz-executor.3 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:__hlist_del include/linux/list.h:791 [inline] RIP: 0010:detach_timer kernel/time/timer.c:824 [inline] RIP: 0010:expire_timers kernel/time/timer.c:1482 [inline] RIP: 0010:__run_timers+0x7be/0xbe0 kernel/time/timer.c:1817 Code: 74 2e e8 e5 68 0f 00 49 83 c5 08 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ef e8 52 4e 3f 00 <4d> 89 65 00 eb 05 e8 b7 68 0f 00 49 bd 00 00 00 00 00 fc ff df 42 RSP: 0018:ffff8881f6f09d60 EFLAGS: 00010046 RAX: 1ffffffff031aacc RBX: 1ffff1103d034639 RCX: dffffc0000000000 RDX: 0000000000000101 RSI: 0000000000000004 RDI: ffff8881f6f09ce0 RBP: ffff8881f6f09ec8 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881f6f09e20 R13: ffffffff818d5660 R14: 1ffff1103d034638 R15: ffff8881e81a31c8 FS: 00007f3c3488d6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffff818d5660 CR3: 00000001ef1b9000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: 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:stack_depot_save+0x133/0x480 lib/stackdepot.c:245 Code: f0 44 89 f1 c1 c1 04 29 c8 31 c7 c1 c0 0e 29 c7 41 31 fe c1 c7 18 41 29 fe 44 89 f5 81 e5 ff ff 0f 00 4c 8b 3c ed c0 88 f1 86 <44> 89 eb eb 03 4d 8b 3f 4d 85 ff 74 29 45 39 77 08 75 f2 45 39 6f RSP: 0018:ffff8881e212eeb0 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13 RAX: 00000000dd4c4f9e RBX: 00000000dd8795e8 RCX: 0000000027283013 RDX: 0000000000000d40 RSI: ffff8881e212ef84 RDI: 000000007c5d26c0 RBP: 0000000000071cbd R08: 0000000000000003 R09: ffffffff846031dc R10: ffffffff84800000 R11: dffffc0000000000 R12: ffff8881e212ef30 R13: 000000000000000c R14: 00000000f2f71cbd R15: ffff8881eba65590 save_stack mm/kasan/common.c:72 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x1d9/0x210 mm/kasan/common.c:529 kmalloc_array include/linux/slab.h:618 [inline] kcalloc include/linux/slab.h:629 [inline] ext4_ext_remove_space+0xc46/0x4ba0 fs/ext4/extents.c:3104 ext4_truncate+0xb23/0x1290 fs/ext4/inode.c:4641 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_direct_IO_write fs/ext4/inode.c:3854 [inline] ext4_direct_IO+0xe3a/0x19a0 fs/ext4/inode.c:3992 generic_file_direct_write+0x509/0x740 mm/filemap.c:3353 __generic_file_write_iter+0x27d/0x530 mm/filemap.c:3536 ext4_file_write_iter+0x8f8/0x10e0 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1989 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x5d3/0x750 fs/read_write.c:496 vfs_write+0x206/0x4e0 fs/read_write.c:558 ksys_write+0x199/0x2c0 fs/read_write.c:611 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f3c35512ea9 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:00007f3c3488d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3c35649f80 RCX: 00007f3c35512ea9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f3c35581ff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f3c35649f80 R15: 00007fff277ada88 Modules linked in: CR2: ffffffff818d5660 ---[ end trace edc402e159504380 ]--- RIP: 0010:__hlist_del include/linux/list.h:791 [inline] RIP: 0010:detach_timer kernel/time/timer.c:824 [inline] RIP: 0010:expire_timers kernel/time/timer.c:1482 [inline] RIP: 0010:__run_timers+0x7be/0xbe0 kernel/time/timer.c:1817 Code: 74 2e e8 e5 68 0f 00 49 83 c5 08 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ef e8 52 4e 3f 00 <4d> 89 65 00 eb 05 e8 b7 68 0f 00 49 bd 00 00 00 00 00 fc ff df 42 RSP: 0018:ffff8881f6f09d60 EFLAGS: 00010046 RAX: 1ffffffff031aacc RBX: 1ffff1103d034639 RCX: dffffc0000000000 RDX: 0000000000000101 RSI: 0000000000000004 RDI: ffff8881f6f09ce0 RBP: ffff8881f6f09ec8 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881f6f09e20 R13: ffffffff818d5660 R14: 1ffff1103d034638 R15: ffff8881e81a31c8 FS: 00007f3c3488d6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffff818d5660 CR3: 00000001ef1b9000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 74 2e je 0x30 2: e8 e5 68 0f 00 call 0xf68ec 7: 49 83 c5 08 add $0x8,%r13 b: 4c 89 e8 mov %r13,%rax e: 48 c1 e8 03 shr $0x3,%rax 12: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 19: fc ff df 1c: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) 20: 74 08 je 0x2a 22: 4c 89 ef mov %r13,%rdi 25: e8 52 4e 3f 00 call 0x3f4e7c * 2a: 4d 89 65 00 mov %r12,0x0(%r13) <-- trapping instruction 2e: eb 05 jmp 0x35 30: e8 b7 68 0f 00 call 0xf68ec 35: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 3c: fc ff df 3f: 42 rex.X