[v6.1] WARNING in wnd_add_free_ext

0 views
Skip to first unread message

syzbot

unread,
Aug 14, 2023, 11:29:48 PM8/14/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1321ab403b38 Linux 6.1.45
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15e6e265a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=98e020fdb0f6ab0f
dashboard link: https://syzkaller.appspot.com/bug?extid=1869f0a6d7c75414e0dd
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=136319f7a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1406f369a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3b9d65a68f82/disk-1321ab40.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/afca87deee2c/vmlinux-1321ab40.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c93e18288863/Image-1321ab40.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/fef7a44308de/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1869f0...@syzkaller.appspotmail.com

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: 1 PID: 4224 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351
Modules linked in:
CPU: 1 PID: 4224 Comm: syz-executor986 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 : ffff80001ded7200
x29: ffff80001ded7230 x28: 1fffe0001c3024cf x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000e1812698 x24: ffff0000e1812480
x23: ffff0000e1812678 x22: 00000000000002f9 x21: ffff0000d7e222d0
x20: ffff0000e1812660 x19: 00000000000002f9 x18: ffff80001ded6640
x17: 0000000000000000 x16: ffff800012116f84 x15: 0000000000000000
x14: 00000000121130ec x13: 0000000058dd9544 x12: 0000000000c660bc
x11: ff8080000965f2c8 x10: 0000000000000000 x9 : ffff80000965f2c8
x8 : ffff0000d61dd340 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000000a20
x2 : ffff0000c41ef800 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: 22312
hardirqs last enabled at (22311): [<ffff800008b2f1e0>] lookup_bh_lru fs/buffer.c:1291 [inline]
hardirqs last enabled at (22311): [<ffff800008b2f1e0>] __find_get_block+0x1d0/0xeec fs/buffer.c:1303
hardirqs last disabled at (22312): [<ffff800012112c3c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (20662): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (20662): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (20645): [<ffff80000802a994>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4224 at fs/ntfs3/bitmap.c:216 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:351
Modules linked in:
CPU: 1 PID: 4224 Comm: syz-executor986 Tainted: G W 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 : ffff80001ded7200
x29: ffff80001ded7230 x28: 1fffe0001c3024db x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000e18126f8 x24: ffff0000e1812480
x23: ffff0000e18126d8 x22: 00000000000002f9 x21: ffff0000d7e222d0
x20: ffff0000e18126c0 x19: 00000000000002f9 x18: ffff80001ded6640
x17: 0000000000000000 x16: ffff800012116f84 x15: 0000000000000000
x14: 00000000121130ec x13: 0000000058dd9544 x12: 0000000000c660bc
x11: ff8080000965f2c8 x10: 0000000000000000 x9 : ffff80000965f2c8
x8 : ffff0000d61dd340 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000000a20
x2 : ffff0000c41ef800 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: 22412
hardirqs last enabled at (22411): [<ffff800008b2f1e0>] lookup_bh_lru fs/buffer.c:1291 [inline]
hardirqs last enabled at (22411): [<ffff800008b2f1e0>] __find_get_block+0x1d0/0xeec fs/buffer.c:1303
hardirqs last disabled at (22412): [<ffff800012112c3c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (22336): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (22336): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (22315): [<ffff80000802a994>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ 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.

syzbot

unread,
Aug 23, 2023, 5:49:43 PM8/23/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f6f7927ac664 Linux 5.15.127
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c4040ba80000
kernel config: https://syzkaller.appspot.com/x/.config?x=55f355732ad067d7
dashboard link: https://syzkaller.appspot.com/bug?extid=124a57fd3102943d5c15
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ca3051001874/disk-f6f7927a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fb0f8818e6e8/vmlinux-f6f7927a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/05e287cf01c6/Image-f6f7927a.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+124a57...@syzkaller.appspotmail.com

el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Not tainted 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b7594e7 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca758 x24: ffff0000dbaca780
x23: ffff0000dbaca738 x22: 00000000000002a0 x21: ffff0000d89782d0
x20: ffff0000dbaca720 x19: 00000000000002a0 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000001de1f x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 000000000001de20 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002a0 x0 : 00000000000002a0
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 21760
hardirqs last enabled at (21759): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (21759): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (21760): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (21656): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (21656): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (21547): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (21547): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (21547): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4143 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b7594cf x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca698 x24: ffff0000dbaca780
x23: ffff0000dbaca678 x22: 00000000000002a0 x21: ffff0000d89782d0
x20: ffff0000dbaca660 x19: 00000000000002a0 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 0000000000036129 x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 000000000003612a x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002a0 x0 : 00000000000002a0
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 21904
hardirqs last enabled at (21903): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (21903): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (21904): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (21824): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (21824): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (21763): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (21763): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (21763): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4144 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b75952f x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca998 x24: ffff0000dbaca780
x23: ffff0000dbaca978 x22: 00000000000002a0 x21: ffff0000d89782d0
x20: ffff0000dbaca960 x19: 00000000000002a0 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002a0 x0 : 00000000000002a0
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 22054
hardirqs last enabled at (22053): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (22053): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (22054): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (21960): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (21960): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (21907): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (21907): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (21907): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4145 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b7594c3 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca638 x24: ffff0000dbaca780
x23: ffff0000dbaca618 x22: 00000000000002a0 x21: ffff0000d89782d0
x20: ffff0000dbaca600 x19: 00000000000002a0 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002a0 x0 : 00000000000002a0
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 22316
hardirqs last enabled at (22315): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (22315): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (22316): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (22226): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (22226): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (22057): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (22057): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (22057): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4146 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b75941b x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca0f8 x24: ffff0000dbaca780
x23: ffff0000dbaca0d8 x22: 00000000000002a0 x21: ffff0000d89782d0
x20: ffff0000dbaca0c0 x19: 00000000000002a0 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002a0 x0 : 00000000000002a0
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x1c4/0x1f4 fs/ntfs3/fsntfs.c:2492
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 22552
hardirqs last enabled at (22551): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (22551): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (22552): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (22446): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (22446): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (22319): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (22319): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (22319): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4147 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 0 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b7594ab x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000dbaca578 x24: ffff0000dbaca8a0
x23: ffff0000dbaca558 x22: 00000000000002f9 x21: ffff0000d89782d0
x20: ffff0000dbaca540 x19: 00000000000002f9 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002f9 x0 : 00000000000002f9
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x1c4/0x1f4 fs/ntfs3/fsntfs.c:2492
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 24066
hardirqs last enabled at (24065): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (24065): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (24066): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (22926): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (22926): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (22783): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (22783): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (22783): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4148 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3452 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3452 Comm: syz-executor.5 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001f0a7220
x29: ffff80001f0a7250 x28: 1fffe0001b24bd17 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000d925e8d8 x24: ffff0000dbaca8a0
x23: ffff0000d925e8b8 x22: 00000000000002f9 x21: ffff0000d89782d0
x20: ffff0000d925e8a0 x19: 00000000000002f9 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: ffff80001d4f9000 x9 : ffff800009578490
x8 : 0000000000040000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000002f9 x0 : 00000000000002f9
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 24258
hardirqs last enabled at (24257): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (24257): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (24258): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (24144): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (24144): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (24069): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (24069): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (24069): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace df3c6b683c2b4149 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Aug 23, 2023, 6:16:47 PM8/23/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: f6f7927ac664 Linux 5.15.127
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15ce8033a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=55f355732ad067d7
dashboard link: https://syzkaller.appspot.com/bug?extid=124a57fd3102943d5c15
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=14fb1d97a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=113bfd5ba80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/ef6db9a845fe/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+124a57...@syzkaller.appspotmail.com

el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Not tainted 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8be87 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f458 x24: ffff0000df45f3c0
x23: ffff0000df45f438 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f420 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 31410
hardirqs last enabled at (31409): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (31409): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (31410): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (30716): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (30716): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (30705): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (30705): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (30705): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3a ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8be93 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f4b8 x24: ffff0000df45f3c0
x23: ffff0000df45f498 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f480 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 31994
hardirqs last enabled at (31993): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (31993): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (31994): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (31636): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (31636): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (31413): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (31413): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (31413): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3b ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8be9f x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f518 x24: ffff0000df45f3c0
x23: ffff0000df45f4f8 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f4e0 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 32382
hardirqs last enabled at (32381): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (32381): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (32382): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (32016): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (32016): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (31997): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (31997): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (31997): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3c ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8beab x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f578 x24: ffff0000df45f3c0
x23: ffff0000df45f558 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f540 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 32774
hardirqs last enabled at (32773): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (32773): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (32774): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (32400): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (32400): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (32385): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (32385): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (32385): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3d ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8beb7 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f5d8 x24: ffff0000df45f3c0
x23: ffff0000df45f5b8 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f5a0 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000086d730c
x14: 00000000ffff8000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x178/0x1f4 fs/ntfs3/fsntfs.c:2482
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 33176
hardirqs last enabled at (33175): [<ffff800008a67e50>] lookup_bh_lru fs/buffer.c:1294 [inline]
hardirqs last enabled at (33175): [<ffff800008a67e50>] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306
hardirqs last disabled at (33176): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (32790): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (32790): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (32777): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (32777): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (32777): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3e ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at fs/ntfs3/bitmap.c:221 wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor349 Tainted: G W 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
lr : wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
sp : ffff80001cfe7220
x29: ffff80001cfe7250 x28: 1fffe0001be8bec3 x27: dfff800000000000
x26: dfff800000000000 x25: ffff0000df45f638 x24: ffff0000df45f3c0
x23: ffff0000df45f618 x22: 00000000000001e7 x21: ffff0000c2c182d0
x20: ffff0000df45f600 x19: 00000000000001e7 x18: 0000000000000000
x17: ff808000086d730c x16: ffff800011967c34 x15: ffff8000089645ac
x14: ffff800008964488 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009578490 x10: 0000000000000000 x9 : ffff800009578490
x8 : ffff0000c89cb680 x7 : 0000000000000000 x6 : ffff80000805cbac
x5 : ffff0000d65a71e8 x4 : 0000000000000060 x3 : 0000000000000040
x2 : ffffffffffffffc0 x1 : 00000000000001e7 x0 : 00000000000001e7
Call trace:
wnd_add_free_ext+0x9b0/0xc00 fs/ntfs3/bitmap.c:356
wnd_set_free+0x4ac/0x508 fs/ntfs3/bitmap.c:760
mark_as_free_ex+0x1c4/0x1f4 fs/ntfs3/fsntfs.c:2492
run_deallocate_ex+0x1d4/0x49c fs/ntfs3/attrib.c:147
attr_set_size+0xd08/0x2bdc fs/ntfs3/attrib.c:679
ntfs_truncate fs/ntfs3/file.c:496 [inline]
ntfs3_setattr+0x5f8/0x974 fs/ntfs3/file.c:771
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
vfs_truncate+0x2e0/0x388 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/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 33592
hardirqs last enabled at (33591): [<ffff800011a3d938>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (33591): [<ffff800011a3d938>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (33592): [<ffff8000119632c8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (33202): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (33202): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (33179): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (33179): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (33179): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace ee86f56678fa7a3f ]---
ntfs3: loop0: ntfs_evict_inode r=5 failed, -22.
Reply all
Reply to author
Forward
0 new messages