syzbot


WARNING: locking bug in lockref_put_or_lock

Status: auto-obsoleted due to no activity on 2024/03/04 09:46
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+12a2ecec8db1d853fc33@syzkaller.appspotmail.com
First crash: 440d, last: 295d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] WARNING: locking bug in lockref_put_or_lock 0 (1) 2023/01/08 04:51
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/03/04 09:28 17m retest repro upstream OK log
2023/12/25 09:04 21m retest repro upstream report log
2023/10/16 08:49 12m retest repro upstream report log
2023/08/07 05:58 1h37m retest repro upstream report log
2023/05/14 17:53 22m retest repro upstream report log

Sample crash report:
REISERFS (device loop5): Created .reiserfs_priv - reserved for xattr storage.
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 5314 at kernel/locking/lockdep.c:231 check_wait_context kernel/locking/lockdep.c:4729 [inline]
WARNING: CPU: 0 PID: 5314 at kernel/locking/lockdep.c:231 __lock_acquire+0xac2/0x1f60 kernel/locking/lockdep.c:5005
Modules linked in:
CPU: 0 PID: 5314 Comm: syz-executor.5 Not tainted 6.2.0-rc2-syzkaller-00010-g69b41ac87e4a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hlock_class kernel/locking/lockdep.c:231 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4729 [inline]
RIP: 0010:__lock_acquire+0xac2/0x1f60 kernel/locking/lockdep.c:5005
Code: 2b 0d 00 0f 85 2b fa ff ff 31 db 48 c7 c7 80 ba ed 8a 48 c7 c6 20 bd ed 8a 31 c0 e8 08 b0 e7 ff 48 ba 00 00 00 00 00 fc ff df <0f> 0b e9 25 fa ff ff e8 12 f2 cf 02 85 c0 0f 84 b1 06 00 00 48 c7
RSP: 0018:ffffc900058a7628 EFLAGS: 00010046
RAX: 3bc84842428cc400 RBX: 0000000000000000 RCX: ffff888027ef0000
RDX: dffffc0000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff816f2c9d R09: ffffed1017304f5b
R10: ffffed1017304f5b R11: 1ffff11017304f5a R12: 0000000000040000
R13: ffff888027ef0000 R14: 0000000000041770 R15: ffff888027ef0a80
FS:  00007f1c2429f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 000000002195c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668
 __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:350 [inline]
 lockref_put_or_lock+0x22/0xb0 lib/lockref.c:148
 fast_dput fs/dcache.c:775 [inline]
 dput+0x20e/0x410 fs/dcache.c:900
 path_put fs/namei.c:558 [inline]
 terminate_walk+0x1b1/0x5d0 fs/namei.c:680
 path_openat+0x24c9/0x2dd0 fs/namei.c:3715
 do_filp_open+0x264/0x4f0 fs/namei.c:3741
 do_sys_openat2+0x124/0x4e0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1337
 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:0x7f1c2348c0a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f1c2429f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f1c235abf80 RCX: 00007f1c2348c0a9

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/04 04:49 upstream 69b41ac87e4a f0036e18 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: locking bug in lockref_put_or_lock
2023/05/29 05:37 linux-next 715abedee4cd cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in lockref_put_or_lock
* Struck through repros no longer work on HEAD.