syzbot


WARNING: locking bug in remove_wait_queue

Status: auto-obsoleted due to no activity on 2024/01/02 18:05
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+4152c2c2c9ad88fc6159@syzkaller.appspotmail.com
First crash: 492d, last: 492d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] [fat?] WARNING: locking bug in remove_wait_queue 0 (1) 2023/06/10 14:59
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/01/02 17:44 20m retest repro linux-next OK log
2023/10/24 16:32 35m retest repro linux-next report log
2023/08/15 14:53 15m retest repro linux-next report log

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 5003 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:232 [inline]
WARNING: CPU: 0 PID: 5003 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:221 [inline]
WARNING: CPU: 0 PID: 5003 at kernel/locking/lockdep.c:232 check_wait_context kernel/locking/lockdep.c:4751 [inline]
WARNING: CPU: 0 PID: 5003 at kernel/locking/lockdep.c:232 __lock_acquire+0x192f/0x5f30 kernel/locking/lockdep.c:5038
Modules linked in:
CPU: 0 PID: 5003 Comm: udevd Not tainted 6.4.0-rc2-next-20230515-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:221 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4751 [inline]
RIP: 0010:__lock_acquire+0x192f/0x5f30 kernel/locking/lockdep.c:5038
Code: 08 84 d2 0f 85 6b 3e 00 00 8b 0d c8 b2 15 0d 85 c9 0f 85 a3 f8 ff ff 48 c7 c6 60 74 4c 8a 48 c7 c7 20 68 4c 8a e8 81 57 e6 ff <0f> 0b e9 89 f8 ff ff c7 44 24 40 fe ff ff ff 41 be 01 00 00 00 c7
RSP: 0018:ffffc9000390fac0 EFLAGS: 00010086

RAX: 0000000000000000 RBX: 1ffff92000721f88 RCX: 0000000000000000
RDX: ffff88801377bb80 RSI: ffffffff814bd247 RDI: 0000000000000001
RBP: ffff88801377bb80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 284e4f5f4e524157 R12: ffff888073d30c58
R13: 0000000000000b14 R14: ffff88801377c670 R15: ffff88801377c698
FS:  00007f75968b2c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff26751008 CR3: 000000001879b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5705
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
 remove_wait_queue+0x21/0x180 kernel/sched/wait.c:54
 ep_remove_wait_queue+0x87/0x1e0 fs/eventpoll.c:559
 ep_unregister_pollwait fs/eventpoll.c:574 [inline]
 ep_clear_and_put+0x176/0x380 fs/eventpoll.c:803
 ep_eventpoll_release+0x45/0x60 fs/eventpoll.c:834
 __fput+0x27c/0xa90 fs/file_table.c:321
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f75965170a8
Code: 48 8b 05 83 9d 0d 00 64 c7 00 16 00 00 00 83 c8 ff 48 83 c4 20 5b c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 5b 48 8b 15 51 9d 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fff26750b28 EFLAGS: 00000246
 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f75968b2ae0 RCX: 00007f75965170a8
RDX: 0000000000000080 RSI: 00007fff26750c58 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000007 R09: 8f45ebd50ebdce3c
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff26750ba8 R14: 0000000000000001 R15: 000055b5d7e3a910
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/06 14:50 linux-next 715abedee4cd a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in remove_wait_queue
* Struck through repros no longer work on HEAD.