syzbot


WARNING: locking bug in evict (2)

Status: upstream: reported on 2024/12/14 21:43
Reported-by: syzbot+e2c86cef83a15bdc63f8@syzkaller.appspotmail.com
First crash: 7d04h, last: 7d04h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in evict (2) ntfs3 syz error error 3 118d 145d 0/28 auto-obsoleted due to no activity on 2024/12/03 16:51
upstream WARNING: locking bug in evict ntfs3 syz 6 610d 803d 0/28 auto-obsoleted due to no activity on 2023/08/19 17:29
linux-6.1 WARNING: locking bug in evict origin:upstream syz 1 191d 245d 0/3 auto-obsoleted due to no activity on 2024/09/21 19:32

Sample crash report:
loop5: detected capacity change from 0 to 4096
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 11712 at kernel/locking/lockdep.c:232 check_wait_context kernel/locking/lockdep.c:4723 [inline]
WARNING: CPU: 0 PID: 11712 at kernel/locking/lockdep.c:232 __lock_acquire+0xac1/0x1f80 kernel/locking/lockdep.c:4999
Modules linked in:
CPU: 0 PID: 11712 Comm: syz.5.2103 Tainted: G        W          6.1.120-syzkaller-00773-g52f863f820fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4723 [inline]
RIP: 0010:__lock_acquire+0xac1/0x1f80 kernel/locking/lockdep.c:4999
Code: 83 3d 7a 88 30 0d 00 0f 85 58 fa ff ff 48 c7 c7 00 02 0c 8b 48 c7 c6 a0 04 0c 8b e8 29 03 e8 ff 48 ba 00 00 00 00 00 fc ff df <0f> 0b e9 34 fa ff ff e8 53 77 d6 02 85 c0 0f 84 64 06 00 00 48 c7
RSP: 0018:ffffc900036e7720 EFLAGS: 00010046
RAX: 07faca7ce8e06100 RBX: 0000000000001755 RCX: 0000000000080000
RDX: dffffc0000000000 RSI: 000000000000f13c RDI: 000000000000f13d
RBP: ffff88802aa16404 R08: ffffffff8152b84e R09: ffffed10171c4f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802aa16418
R13: ffff88802aa15940 R14: ffff88802aa16468 R15: 1ffff11005542c8d
FS:  00007f649ea2b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f649db69160 CR3: 0000000079943000 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]
 inode_wait_for_lru_isolating fs/inode.c:508 [inline]
 evict+0x304/0x930 fs/inode.c:694
 ntfs_fill_super+0x3c01/0x4410 fs/ntfs3/super.c:1190
 get_tree_bdev+0x3fe/0x620 fs/super.c:1366
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3056
 do_mount fs/namespace.c:3399 [inline]
 __do_sys_mount fs/namespace.c:3607 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
 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:0x7f649db874ba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f649ea2ae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f649ea2aef0 RCX: 00007f649db874ba
RDX: 0000000020000080 RSI: 000000002001f740 RDI: 00007f649ea2aeb0
RBP: 0000000020000080 R08: 00007f649ea2aef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000002001f740
R13: 00007f649ea2aeb0 R14: 000000000001f6ec R15: 00000000200000c0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/14 21:42 linux-6.1.y 52f863f820fd 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: locking bug in evict
* Struck through repros no longer work on HEAD.