syzbot


WARNING: locking bug in ntfs_fill_super

Status: upstream: reported on 2024/06/06 09:10
Reported-by: syzbot+e166a73843e87a9e15eb@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in ntfs_fill_super ntfs3 C 5 353d 622d 0/27 auto-obsoleted due to no activity on 2023/11/12 18:09

Sample crash report:
loop1: detected capacity change from 0 to 4096
ntfs3: loop1: Different NTFS' sector size (1024) and media sector size (512)
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 7325 at kernel/locking/lockdep.c:232 __lock_acquire+0x138b/0x1f80 kernel/locking/lockdep.c:5045
Modules linked in:
CPU: 0 PID: 7325 Comm: syz-executor.1 Not tainted 6.1.92-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline]
RIP: 0010:__lock_acquire+0x138b/0x1f80 kernel/locking/lockdep.c:5045
Code: 83 3d e0 42 09 0d 00 0f 85 00 fe ff ff 48 c7 c7 60 00 ec 8a 48 c7 c6 00 03 ec 8a e8 ef 10 e8 ff 48 bf 00 00 00 00 00 fc ff df <0f> 0b e9 dc fd ff ff 49 89 d6 48 c7 c7 60 08 ec 8a e8 2f 89 1e 09
RSP: 0018:ffffc90004e57800 EFLAGS: 00010046
RAX: 2afbb935590d9b00 RBX: 0000000000001f00 RCX: 0000000000040000
RDX: ffffc9000a159000 RSI: 000000000000b9ca RDI: dffffc0000000000
RBP: 061152b90db24d23 R08: ffffffff81528ede R09: fffff520009cae61
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807eb92898
R13: ffff88807eb91dc0 R14: 0000000000000000 R15: 1ffff1100fd7251d
FS:  00007fc16471c6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203ff000 CR3: 000000004b90b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 iput_final fs/inode.c:1780 [inline]
 iput+0x61e/0x980 fs/inode.c:1817
 ntfs_fill_super+0x3c05/0x4410 fs/ntfs3/super.c:1190
 get_tree_bdev+0x3fe/0x620 fs/super.c:1355
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc163a7e66a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc16471bef8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc16471bf80 RCX: 00007fc163a7e66a
RDX: 000000002001f800 RSI: 0000000020000040 RDI: 00007fc16471bf40
RBP: 000000002001f800 R08: 00007fc16471bf80 R09: 0000000000004882
R10: 0000000000004882 R11: 0000000000000206 R12: 0000000020000040
R13: 00007fc16471bf40 R14: 000000000001f82a R15: 00000000200002c0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/06 09:09 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: locking bug in ntfs_fill_super
* Struck through repros no longer work on HEAD.