syzbot


WARNING: suspicious RCU usage in kernfs_iop_getattr

Status: fixed on 2021/11/10 00:50
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+c26b2cb5301be7de9efc@syzkaller.appspotmail.com
Fix commit: 3066820034b5 rcu: Reject RCU_LOCKDEP_WARN() false positives
First crash: 1094d, last: 1094d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING: suspicious RCU usage in kernfs_iop_getattr 1 (2) 2021/05/17 06:12

Sample crash report:
=============================
WARNING: suspicious RCU usage
5.12.0-syzkaller #0 Not tainted
-----------------------------
kernel/sched/core.c:8304 Illegal context switch in RCU-sched read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 0
no locks held by systemd-udevd/4826.

stack backtrace:
CPU: 1 PID: 4826 Comm: systemd-udevd Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x202/0x31e lib/dump_stack.c:120
 ___might_sleep+0x114/0x6b0 kernel/sched/core.c:8304
 __mutex_lock_common+0xce/0x2e50 kernel/locking/mutex.c:928
 __mutex_lock kernel/locking/mutex.c:1096 [inline]
 mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1111
 kernfs_iop_getattr+0x89/0x310 fs/kernfs/inode.c:194
 vfs_getattr fs/stat.c:134 [inline]
 vfs_statx+0x1ba/0x3d0 fs/stat.c:199
 vfs_fstatat fs/stat.c:217 [inline]
 vfs_lstat include/linux/fs.h:3384 [inline]
 __do_sys_newlstat fs/stat.c:372 [inline]
 __se_sys_newlstat fs/stat.c:366 [inline]
 __x64_sys_newlstat+0xd3/0x150 fs/stat.c:366
 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f41b6750335
Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89
RSP: 002b:00007ffe4d8d3b08 EFLAGS: 00000246
 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 00005601243f1120 RCX: 00007f41b6750335
RDX: 00007ffe4d8d3b40 RSI: 00007ffe4d8d3b40 RDI: 00005601243f0120
RBP: 00007ffe4d8d3c00 R08: 00007f41b6a0f228 R09: 0000000000001010
R10: 00007f41b6a0eb58 R11: 0000000000000246 R12: 00005601243f0120
R13: 00005601243f0134 R14: 000056012440253d R15: 0000560124402544

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/29 04:20 upstream d72cd4ad4174 77e2b668 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: suspicious RCU usage in kernfs_iop_getattr
* Struck through repros no longer work on HEAD.