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:00007f47eb88b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f47ebe27f80 RCX: 00007f47ebd08ae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200004c0 RBP: 00007f47eb88b120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000006 R14: 00007f47ebe27f80 R15: 00007ffe8ba25328 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1998 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x45e/0x530 fs/ntfs3/bitmap.c:323 Modules linked in: CPU: 0 PID: 1998 Comm: syz-executor.0 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:rb_insert_start fs/ntfs3/bitmap.c:221 [inline] RIP: 0010:rb_insert_start fs/ntfs3/bitmap.c:204 [inline] RIP: 0010:wnd_add_free_ext+0x45e/0x530 fs/ntfs3/bitmap.c:356 Code: 00 00 00 01 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 4d 85 ed 74 3c 4c 8d b5 e8 00 00 00 4c 89 e2 4c 89 fb e9 f5 fe ff ff <0f> 0b e9 5e ff ff ff 48 8b 7c 24 10 48 89 14 24 49 89 df 45 31 ed RSP: 0018:ffffc90001d37ab8 EFLAGS: 00010246 RAX: ffff888107a9e8c0 RBX: 00000000000002dc RCX: ffff888107a9e8d0 RDX: ffff888107a9e8c0 RSI: ffffffff814a8959 RDI: ffff8881025d9000 RBP: ffff88810a2f01f0 R08: 0000000000000040 R09: ffff88810bd5a440 R10: ffff8881085bfa00 R11: 0000000000000001 R12: 0000000000000006 R13: ffff88810bd5a440 R14: ffff88810a2f02d8 R15: 00000000000002dc FS: 00007f47eb88b6c0(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f47ebe24000 CR3: 000000010724c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: wnd_set_free+0x13a/0x160 fs/ntfs3/bitmap.c:759 mark_as_free_ex+0x70/0x160 fs/ntfs3/fsntfs.c:2484 run_deallocate_ex+0x101/0x140 fs/ntfs3/attrib.c:143 attr_set_size+0x3de/0xde0 fs/ntfs3/attrib.c:675 ntfs_truncate fs/ntfs3/file.c:496 [inline] ntfs3_setattr+0x1a9/0x320 fs/ntfs3/file.c:765 notify_change+0x1eb/0x490 fs/attr.c:410 do_truncate+0x78/0xd0 fs/open.c:64 vfs_truncate+0x122/0x150 fs/open.c:110 do_sys_truncate.part.0+0x85/0xa0 fs/open.c:133 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f47ebd08ae9 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:00007f47eb88b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f47ebe27f80 RCX: 00007f47ebd08ae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200004c0 RBP: 00007f47eb88b120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000006 R14: 00007f47ebe27f80 R15: 00007ffe8ba25328 ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 ret b: e8 e1 20 00 00 call 0x20f1 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 ret 33: 48 c7 c1 b0 ff ff ff mov $0xffffffffffffffb0,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W