EXT4-fs error (device loop3): ext4_map_blocks:609: inode #3: block 3: comm syz.3.7: lblock 3 mapped to illegal pblock 3 (length 1) Quota error (device loop3): qtree_write_dquot: Error -117 occurred while creating quota EXT4-fs error (device loop3): ext4_acquire_dquot:6848: comm syz.3.7: Failed to acquire dquot type 0 EXT4-fs (loop3): 1 orphan inode deleted Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 0 UID: 0 PID: 5329 Comm: syz.3.7 Not tainted 6.11.0-rc4-next-20240821-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:pick_next_entity kernel/sched/fair.c:5613 [inline] RIP: 0010:pick_task_fair+0xc3/0x280 kernel/sched/fair.c:8742 Code: 00 00 80 3b 00 74 08 4c 89 ef e8 58 7d 01 00 0f 1f 44 00 00 4c 89 ef e8 6b f8 01 00 49 89 c4 48 8d 58 51 48 89 d8 48 c1 e8 03 <0f> b6 04 28 84 c0 75 5e 80 3b 00 74 2e 48 8b 3c 24 4c 89 e6 ba 01 RSP: 0018:ffffc900043c6fb8 EFLAGS: 00010006 RAX: 000000000000000a RBX: 0000000000000051 RCX: 1ffff1100f9c1c05 RDX: 0000000000000070 RSI: dffffc0000000000 RDI: ffff88807ce0e028 RBP: dffffc0000000000 R08: ffff88802f8dec27 R09: 0000000000000000 R10: ffff88802f8dec18 R11: ffffffff81666d70 R12: 0000000000000000 R13: ffff88807ce0e000 R14: ffff8880b903eb10 R15: 1ffff11017207d62 FS: 00007ff0176016c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c26032e CR3: 000000007b4ae000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pick_task kernel/sched/core.c:6028 [inline] pick_next_task kernel/sched/core.c:6130 [inline] __schedule+0x2eab/0x4b30 kernel/sched/core.c:6632 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6856 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6880 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x130/0x140 kernel/locking/spinlock.c:194 stack_depot_save_flags+0x6e4/0x830 lib/stackdepot.c:662 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x51/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2299 [inline] slab_free mm/slub.c:4521 [inline] kfree+0x196/0x3e0 mm/slub.c:4669 v2_free_file_info+0x5d/0x80 fs/quota/quota_v2.c:400 dquot_disable+0x1160/0x1cd0 fs/quota/dquot.c:2306 ext4_orphan_cleanup+0xfc9/0x13d0 fs/ext4/orphan.c:504 __ext4_fill_super fs/ext4/super.c:5541 [inline] ext4_fill_super+0x644c/0x6df0 fs/ext4/super.c:5664 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff01677b61a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ff017600e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff017600ef0 RCX: 00007ff01677b61a RDX: 0000000020000140 RSI: 00000000200005c0 RDI: 00007ff017600eb0 RBP: 0000000020000140 R08: 00007ff017600ef0 R09: 0000000001018e58 R10: 0000000001018e58 R11: 0000000000000246 R12: 00000000200005c0 R13: 00007ff017600eb0 R14: 000000000000061d R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pick_next_entity kernel/sched/fair.c:5613 [inline] RIP: 0010:pick_task_fair+0xc3/0x280 kernel/sched/fair.c:8742 Code: 00 00 80 3b 00 74 08 4c 89 ef e8 58 7d 01 00 0f 1f 44 00 00 4c 89 ef e8 6b f8 01 00 49 89 c4 48 8d 58 51 48 89 d8 48 c1 e8 03 <0f> b6 04 28 84 c0 75 5e 80 3b 00 74 2e 48 8b 3c 24 4c 89 e6 ba 01 RSP: 0018:ffffc900043c6fb8 EFLAGS: 00010006 RAX: 000000000000000a RBX: 0000000000000051 RCX: 1ffff1100f9c1c05 RDX: 0000000000000070 RSI: dffffc0000000000 RDI: ffff88807ce0e028 RBP: dffffc0000000000 R08: ffff88802f8dec27 R09: 0000000000000000 R10: ffff88802f8dec18 R11: ffffffff81666d70 R12: 0000000000000000 R13: ffff88807ce0e000 R14: ffff8880b903eb10 R15: 1ffff11017207d62 FS: 00007ff0176016c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c26032e CR3: 000000007b4ae000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 80 3b 00 cmpb $0x0,(%rbx) 5: 74 08 je 0xf 7: 4c 89 ef mov %r13,%rdi a: e8 58 7d 01 00 call 0x17d67 f: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 14: 4c 89 ef mov %r13,%rdi 17: e8 6b f8 01 00 call 0x1f887 1c: 49 89 c4 mov %rax,%r12 1f: 48 8d 58 51 lea 0x51(%rax),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 75 5e jne 0x90 32: 80 3b 00 cmpb $0x0,(%rbx) 35: 74 2e je 0x65 37: 48 8b 3c 24 mov (%rsp),%rdi 3b: 4c 89 e6 mov %r12,%rsi 3e: ba .byte 0xba 3f: 01 .byte 0x1