syzbot


WARNING in map_mft_record

Status: upstream: reported on 2022/11/24 18:24
Subsystems: ntfs (incorrect?)
Reported-by: syzbot+1a30e391e6703aa6a5a6@syzkaller.appspotmail.com
First crash: 130d, last: 61d

Sample crash report:
loop3: detected capacity change from 0 to 4096
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 1 PID: 20779 at kernel/locking/mutex.c:582 __mutex_lock_common+0x1bb0/0x26e0 kernel/locking/mutex.c:582
Modules linked in:
CPU: 1 PID: 20779 Comm: syz-executor.3 Not tainted 6.2.0-rc5-syzkaller-00199-g5af6ce704936 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__mutex_lock_common+0x1bb0/0x26e0 kernel/locking/mutex.c:582
Code: 84 c0 0f 85 bd 08 00 00 83 3d 53 ce dc 03 00 0f 85 6f e5 ff ff 48 c7 c7 e0 a1 ed 8a 48 c7 c6 60 a2 ed 8a 31 c0 e8 40 d8 98 f6 <0f> 0b e9 53 e5 ff ff e8 b4 95 46 f6 e9 5a fa ff ff 0f 0b e9 53 ef
RSP: 0018:ffffc9000580f7c0 EFLAGS: 00010246
RAX: eb1f59500f24a400 RBX: ffff888039767110 RCX: 0000000000040000
RDX: ffffc9000b7d1000 RSI: 00000000000105ac RDI: 00000000000105ad
RBP: ffffc9000580f938 R08: ffffffff816f2b8d R09: ffffed1017324f5b
R10: ffffed1017324f5b R11: 1ffff11017324f5a R12: dffffc0000000000
R13: 1ffff92000b01f0c R14: 0000000000000000 R15: 0000000000000000
FS:  00007fe27f90e700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f152d780fc0 CR3: 000000002b67d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
 map_mft_record+0x46/0x610 fs/ntfs/mft.c:154
 load_system_files+0x261b/0x4870 fs/ntfs/super.c:1855
 ntfs_fill_super+0x19a9/0x2bf0 fs/ntfs/super.c:2892
 mount_bdev+0x26c/0x3a0 fs/super.c:1359
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1489
 do_new_mount+0x289/0xad0 fs/namespace.c:3145
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe27ec8d5fa
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe27f90df88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000001ee41 RCX: 00007fe27ec8d5fa
RDX: 0000000020000000 RSI: 000000002001ee80 RDI: 00007fe27f90dfe0
RBP: 00007fe27f90e020 R08: 00007fe27f90e020 R09: 0000000000800800
R10: 0000000000800800 R11: 0000000000000202 R12: 0000000020000000
R13: 000000002001ee80 R14: 00007fe27f90dfe0 R15: 0000000020000180
 </TASK>

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2023/01/28 16:01 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in map_mft_record
ci2-upstream-fs 2022/12/05 02:20 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in map_mft_record
ci2-upstream-fs 2022/11/29 10:01 upstream ca57f02295f1 ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in map_mft_record
ci2-upstream-fs 2022/11/20 18:12 upstream 77c51ba552a1 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in map_mft_record
* Struck through repros no longer work on HEAD.