From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f79.google.com (mail-oa1-f79.google.com [209.85.160.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FC1D15B7 for ; Sun, 6 Aug 2023 03:48:14 +0000 (UTC) Received: by mail-oa1-f79.google.com with SMTP id 586e51a60fabf-1bf8519a6e2so3748657fac.1 for ; Sat, 05 Aug 2023 20:48:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691293694; x=1691898494; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AB4gpVz6vQvvB5Ahs4Wq4tMlzZ/RoWcGtm3MYPcmhhY=; b=kh6Rn+mfPvrrjK1cRVen763ZKxihFWschdzEv6aHBoolb7XuFu2MMUggHv1iosmPb7 PA6fzm01Yzq4rAlz16k2kwfRrgKFRy6Z0TbW83spQNjWP57LcSrJQgWmhtnPo4km3t3C vb6i7tjd8w1taPi3hgBiN9Qamp8DRaJIy/3ttbI7vr2wXkpiA/HVW6pWSHN2yvu+6Hc4 RoVessF3Cg36R8xSLV9jVFPSMyM08GKdicgvPdEYWKdncQIoptzLSlVyUZgmdPm4pTDE VRZFIuGjbdoK5U8Qx/8QaQNDJsl3es6gBkOOnYSCvLwvGCHNwN6+bfVSFscZnpe5a3FT ix3Q== X-Gm-Message-State: AOJu0YwqRIUMrs1oW0CXQU9/4kiBTzv07Bo8Pwe/9lWqo24mryJ6ZU6X FkuL7NVFyMov/empP0YjdufZk5tSxSi3pS5KMr9cOGw0Dsl3 X-Google-Smtp-Source: AGHT+IF84rMYuKEpjvcKfw0hIDa3OM5O68THUCnEz7dr3qveFUpkwl1FiLF+mPZuJZcoJZEmj+tFk8/ej93IsohxM+HA1mWd38uG Precedence: bulk X-Mailing-List: ntfs3@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6870:956a:b0:1b0:2eab:e7e2 with SMTP id v42-20020a056870956a00b001b02eabe7e2mr5975049oal.0.1691293694010; Sat, 05 Aug 2023 20:48:14 -0700 (PDT) Date: Sat, 05 Aug 2023 20:48:13 -0700 In-Reply-To: <00000000000040e14205ffbf333f@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d7ae72060238ff24@google.com> Subject: Re: [syzbot] [ntfs3?] WARNING in wnd_add_free_ext (2) From: syzbot To: almaz.alexandrovich@paragon-software.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 86d7896480b0 Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=17f7a295a80000 kernel config: https://syzkaller.appspot.com/x/.config?x=21762bc8221a1ed3 dashboard link: https://syzkaller.appspot.com/bug?extid=5b2f934f08ab03d473ff compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15f0b171a80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=129e5713a80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/136ba9602d1f/disk-86d78964.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/dcd3ab5ec39d/vmlinux-86d78964.xz kernel image: https://storage.googleapis.com/syzbot-assets/3041f85d1a44/Image-86d78964.gz.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/02dc44470901/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5b2f934f08ab03d473ff@syzkaller.appspotmail.com el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Not tainted 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c4b x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e0296278 x24: ffff0000e02961e0 x23: ffff0000e0296258 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e0296240 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 20656 hardirqs last enabled at (20655): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (20655): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (20656): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (19642): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (19642): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (19633): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c57 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e02962d8 x24: ffff0000e02961e0 x23: ffff0000e02962b8 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e02962a0 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 21126 hardirqs last enabled at (21125): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (21125): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (21126): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (20772): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (20772): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (20659): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c63 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e0296338 x24: ffff0000e02961e0 x23: ffff0000e0296318 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e0296300 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 21568 hardirqs last enabled at (21567): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (21567): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (21568): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (21214): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (21214): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (21129): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c6f x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e0296398 x24: ffff0000e02961e0 x23: ffff0000e0296378 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e0296360 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 21948 hardirqs last enabled at (21947): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (21947): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (21948): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (21584): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (21584): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (21571): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c7b x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e02963f8 x24: ffff0000e02961e0 x23: ffff0000e02963d8 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e02963c0 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 22332 hardirqs last enabled at (22331): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (22331): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (22332): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (21958): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (21958): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (21951): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c87 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e0296458 x24: ffff0000e02961e0 x23: ffff0000e0296438 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e0296420 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 22732 hardirqs last enabled at (22731): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (22731): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (22732): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (22354): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (22354): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (22335): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c93 x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e02964b8 x24: ffff0000e02961e0 x23: ffff0000e0296498 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e0296480 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 000000008a56c67c x13: 0000000071fb52ff x12: 00000000a7effed4 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x134/0x310 fs/ntfs3/fsntfs.c:2485 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 23126 hardirqs last enabled at (23125): [] lookup_bh_lru fs/buffer.c:1403 [inline] hardirqs last enabled at (23125): [] __find_get_block+0x1a0/0xd18 fs/buffer.c:1415 hardirqs last disabled at (23126): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (22744): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (22744): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (22735): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5986 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 Modules linked in: CPU: 0 PID: 5986 Comm: syz-executor496 Tainted: G W 6.5.0-rc4-syzkaller-g86d7896480b0 #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 : ffff8000969a71e0 x29: ffff8000969a7210 x28: 1fffe0001c052c9f x27: dfff800000000000 x26: dfff800000000000 x25: ffff0000e0296518 x24: ffff0000e02961e0 x23: ffff0000e02964f8 x22: 00000000000001e7 x21: ffff0000dbdae2d0 x20: ffff0000e02964e0 x19: 00000000000001e7 x18: 1fffe0003683adc6 x17: 0000000000000000 x16: ffff80008a57089c x15: 0000000000000001 x14: 1ffff00011d18abf x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c583d340 x7 : 0000000000000000 x6 : ffff800080063870 x5 : ffff0000d477e9c8 x4 : 0000000000000000 x3 : 0000000000000000 x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7 Call trace: wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351 wnd_set_free+0x570/0x5cc fs/ntfs3/bitmap.c:749 mark_as_free_ex+0x1c8/0x310 fs/ntfs3/fsntfs.c:2495 run_deallocate_ex+0x1e0/0x4ac fs/ntfs3/attrib.c:122 attr_set_size+0x1128/0x342c fs/ntfs3/attrib.c:750 ntfs_truncate fs/ntfs3/file.c:393 [inline] ntfs3_setattr+0x424/0x8fc fs/ntfs3/file.c:682 notify_change+0xa84/0xd20 fs/attr.c:483 do_truncate+0x1c0/0x28c fs/open.c:66 vfs_truncate+0x2b8/0x360 fs/open.c:112 do_sys_truncate+0xec/0x1b4 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:145 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 23528 hardirqs last enabled at (23527): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (23527): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (23528): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:407 softirqs last enabled at (23142): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (23142): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (23129): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.