el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 23763 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 23763 Comm: syz-executor.5 Not tainted 6.1.45-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 sp : ffff80002cbf7200 x29: ffff80002cbf7230 x28: 1fffe0001be2d4ab x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000df16a578 x24: ffff0000df16a120 x23: ffff0000df16a558 x22: 00000000000002f9 x21: ffff000126db02d0 x20: ffff0000df16a540 x19: 00000000000002f9 x18: ffffffffffffffff x17: 0000000000000000 x16: ffff800012116f84 x15: 0000000000000000 x14: 00000000121130ec x13: 0000000058dd9544 x12: 0000000000040000 x11: 000000000003fb59 x10: ffff8000277c6000 x9 : ffff80000965f2c8 x8 : 000000000003fb5a x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000000a20 x2 : ffff0000c41fb380 x1 : 00000000000002f9 x0 : 00000000000002f9 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x468/0x4c4 fs/ntfs3/bitmap.c:755 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2452 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:149 attr_set_size+0x10ec/0x3430 fs/ntfs3/attrib.c:758 ntfs_truncate fs/ntfs3/file.c:494 [inline] ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:792 notify_change+0xc24/0xec0 fs/attr.c:482 do_truncate+0x1c0/0x28c fs/open.c:65 vfs_truncate+0x2c4/0x36c fs/open.c:111 do_sys_truncate+0xec/0x1b4 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 24208 hardirqs last enabled at (24207): [] lookup_bh_lru fs/buffer.c:1291 [inline] hardirqs last enabled at (24207): [] __find_get_block+0x1d0/0xeec fs/buffer.c:1303 hardirqs last disabled at (24208): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (22666): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (22666): [] __do_softirq+0xc14/0xea0 kernel/softirq.c:600 softirqs last disabled at (22639): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 23763 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 23763 Comm: syz-executor.5 Tainted: G W 6.1.45-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 sp : ffff80002cbf7200 x29: ffff80002cbf7230 x28: 1fffe0001be2d4b7 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000df16a5d8 x24: ffff0000df16a120 x23: ffff0000df16a5b8 x22: 00000000000002f9 x21: ffff000126db02d0 x20: ffff0000df16a5a0 x19: 00000000000002f9 x18: ffffffffffffffff x17: 0000000000000000 x16: ffff800012116f84 x15: 0000000000000000 x14: 00000000121130ec x13: 000000008748eeb6 x12: 0000000000040000 x11: 000000000003ffff x10: ffff8000277c6000 x9 : ffff80000965f2c8 x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000000a20 x2 : ffff0000c41fb380 x1 : 00000000000002f9 x0 : 00000000000002f9 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x468/0x4c4 fs/ntfs3/bitmap.c:755 mark_as_free_ex+0x1c8/0x310 fs/ntfs3/fsntfs.c:2462 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:149 attr_set_size+0x10ec/0x3430 fs/ntfs3/attrib.c:758 ntfs_truncate fs/ntfs3/file.c:494 [inline] ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:792 notify_change+0xc24/0xec0 fs/attr.c:482 do_truncate+0x1c0/0x28c fs/open.c:65 vfs_truncate+0x2c4/0x36c fs/open.c:111 do_sys_truncate+0xec/0x1b4 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 24410 hardirqs last enabled at (24409): [] lookup_bh_lru fs/buffer.c:1291 [inline] hardirqs last enabled at (24409): [] __find_get_block+0x1d0/0xeec fs/buffer.c:1303 hardirqs last disabled at (24410): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (24354): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (24354): [] __do_softirq+0xc14/0xea0 kernel/softirq.c:600 softirqs last disabled at (24211): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 23763 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 23763 Comm: syz-executor.5 Tainted: G W 6.1.45-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 sp : ffff80002cbf7200 x29: ffff80002cbf7230 x28: 1fffe0001be2d4f3 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000df16a7b8 x24: ffff0000df16a120 x23: ffff0000df16a798 x22: 00000000000002f9 x21: ffff000126db02d0 x20: ffff0000df16a780 x19: 00000000000002f9 x18: ffffffffffffffff x17: 0000000000000000 x16: ffff800012116f84 x15: 0000000000000000 x14: 00000000121130ec x13: 0000000058dd9544 x12: 0000000000040000 x11: 000000000003ffff x10: ffff8000277c6000 x9 : ffff80000965f2c8 x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000000a20 x2 : ffff0000c41fb380 x1 : 00000000000002f9 x0 : 00000000000002f9 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x468/0x4c4 fs/ntfs3/bitmap.c:755 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2452 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:149 attr_set_size+0x10ec/0x3430 fs/ntfs3/attrib.c:758 ntfs_truncate fs/ntfs3/file.c:494 [inline] ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:792 notify_change+0xc24/0xec0 fs/attr.c:482 do_truncate+0x1c0/0x28c fs/open.c:65 vfs_truncate+0x2c4/0x36c fs/open.c:111 do_sys_truncate+0xec/0x1b4 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 24790 hardirqs last enabled at (24789): [] lookup_bh_lru fs/buffer.c:1291 [inline] hardirqs last enabled at (24789): [] __find_get_block+0x1d0/0xeec fs/buffer.c:1303 hardirqs last disabled at (24790): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (24540): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (24540): [] __do_softirq+0xc14/0xea0 kernel/softirq.c:600 softirqs last disabled at (24413): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]---