syzbot


INFO: rcu detected stall in security_file_ioctl

Status: upstream: reported C repro on 2024/02/20 18:28
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+0e21429a9aacc1a8de3f@syzkaller.appspotmail.com
First crash: 71d, last: 10d
Bug presence (1)
Date Name Commit Repro Result
2024/02/20 upstream (ToT) b401b621758e C [report] INFO: rcu detected stall in corrupted
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in security_file_ioctl kernel 7 1611d 1612d 0/26 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in security_file_ioctl (2) kernel 6 1576d 1576d 0/26 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in security_file_ioctl (7) mm 1 165d 165d 0/26 auto-obsoleted due to no activity on 2024/02/17 10:34
upstream INFO: rcu detected stall in security_file_ioctl (4) tomoyo 1 1387d 1387d 0/26 auto-closed as invalid on 2020/10/13 12:41
upstream INFO: rcu detected stall in security_file_ioctl (6) kernel 1 737d 737d 0/26 auto-closed as invalid on 2022/06/24 22:52
upstream INFO: rcu detected stall in security_file_ioctl (3) kernel 4 1576d 1576d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in security_file_ioctl (5) tomoyo 9 833d 1072d 0/26 closed as invalid on 2022/02/08 10:00
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/04/22 09:14 3h25m bisect fix linux-6.1.y job log (0) log
2024/03/22 04:03 1h29m bisect fix linux-6.1.y job log (0) log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=91ec/1/0x4000000000000000 softirq=7279/7280 fqs=5250
	(detected by 0, t=10502 jiffies, g=6405, q=419 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3571 Comm: syz-executor331 Not tainted 6.1.78-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:223 [inline]
RIP: 0010:mark_lock+0x68/0x340 kernel/locking/lockdep.c:4606
Code: f6 43 02 03 40 0f 94 c5 83 f5 09 eb 0b 89 d5 83 fa 20 0f 83 d2 02 00 00 41 be 01 00 00 00 89 e9 41 d3 e6 49 8d 5f 20 48 89 d8 <48> c1 e8 03 42 0f b6 04 28 84 c0 0f 85 29 02 00 00 8b 1b 81 e3 ff
RSP: 0018:ffffc900001e0a18 EFLAGS: 00000083
RAX: ffff88807efae468 RBX: ffff88807efae468 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88807efae448 RDI: ffff88807efad940
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff2092260
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807efae418
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff88807efae448
FS:  0000555555c9c380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000078246000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 mark_usage kernel/locking/lockdep.c:4520 [inline]
 __lock_acquire+0xb40/0x1f80 kernel/locking/lockdep.c:5003
 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:350 [inline]
 advance_sched+0x47/0x970 net/sched/sch_taprio.c:700
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:tomoyo_check_acl+0xae/0x3e0 security/tomoyo/domain.c:173
Code: 03 42 0f b6 04 28 84 c0 0f 85 bd 02 00 00 4d 8b 37 4d 39 fe 0f 84 e5 01 00 00 49 8d 6e 18 48 89 e8 48 c1 e8 03 42 0f b6 04 28 <84> c0 0f 85 09 01 00 00 0f b6 6d 00 31 ff 89 ee e8 8d 68 98 fd 85
RSP: 0018:ffffc90003c4fba0 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: 0000000000000004 RCX: ffff88807efad940
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000004
RBP: ffff88801354d318 R08: ffffffff83f217c6 R09: ffffffff83f3aed8
R10: 0000000000000002 R11: ffff88807efad940 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88801354d300 R15: ffff888022ae2b90
 tomoyo_path_number_perm+0x430/0x7f0 security/tomoyo/file.c:733
 security_file_ioctl+0x6d/0xa0 security/security.c:1568
 __do_sys_ioctl fs/ioctl.c:864 [inline]
 __se_sys_ioctl+0x47/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f96566f40a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 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:00007ffd16154788 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f96566f40a9
RDX: 0000000000000000 RSI: 0000000000008933 RDI: 0000000000000006
RBP: 0000000000000000 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.707 msecs

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/20 18:27 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in security_file_ioctl
* Struck through repros no longer work on HEAD.