syzbot


INFO: rcu detected stall in do_unlinkat

Status: auto-closed as invalid on 2020/12/09 01:12
Subsystems: tomoyo
[Documentation on labels]
First crash: 1350d, last: 1317d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in do_unlinkat (2) kernel 1 962d 962d 0/26 auto-closed as invalid on 2021/11/29 05:12

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=0fa/1/0x4000000000000000 softirq=46254/46254 fqs=0 
	(detected by 0, t=10502 jiffies, g=84729, q=272)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7512 Comm: syz-executor.5 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__kasan_check_read+0x4/0x10 mm/kasan/common.c:71
Code: f0 08 00 48 8b 73 58 89 c2 48 c7 c7 b8 69 6b 89 f7 da e8 1e a0 a9 ff e9 d1 f5 ff ff cc cc cc cc cc cc cc cc cc cc 48 8b 0c 24 <89> f6 31 d2 e9 b3 2a 00 00 0f 1f 00 48 8b 0c 24 89 f6 ba 01 00 00
RSP: 0018:ffffc90000da8b18 EFLAGS: 00000003
RAX: 000000000000002a RBX: 0000000000000aa0 RCX: ffffffff815a21ab
RDX: 1ffff1100a4ec5cd RSI: 0000000000000008 RDI: ffffffff8c5e7b70
RBP: ffff888052762e48 R08: 0000000000000000 R09: ffffffff8c5e7b77
R10: fffffbfff18bcf6e R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000040 R14: ffff888052762500 R15: 0000000000000001
FS:  000000000217b940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000002184a98 CR3: 000000005271d000 CR4: 00000000001526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:56 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline]
 hlock_class kernel/locking/lockdep.c:179 [inline]
 lookup_chain_cache_add kernel/locking/lockdep.c:3127 [inline]
 validate_chain kernel/locking/lockdep.c:3183 [inline]
 __lock_acquire+0x16cb/0x5640 kernel/locking/lockdep.c:4426
 lock_acquire+0x1f1/0xad0 kernel/locking/lockdep.c:5005
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
 spin_lock include/linux/spinlock.h:354 [inline]
 advance_sched+0x4f/0x990 net/sched/sch_taprio.c:699
 __run_hrtimer kernel/time/hrtimer.c:1520 [inline]
 __hrtimer_run_queues+0x6a9/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1079 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1096
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xb2/0xf0 arch/x86/kernel/apic/apic.c:1090
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:write_comp_data+0x2f/0x80 kernel/kcov.c:218
Code: 05 66 be 8d 7e 65 48 8b 34 25 00 ff 01 00 a9 00 01 ff 00 74 0f f6 c4 01 74 59 8b 86 04 14 00 00 85 c0 74 4f 8b 86 e0 13 00 00 <83> f8 03 75 44 48 8b 86 e8 13 00 00 8b b6 e4 13 00 00 4c 8b 00 48
RSP: 0018:ffffc9000855f8e0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000005 RCX: ffffffff83645dc7
RDX: 0000000000000001 RSI: ffff888052762500 RDI: 0000000000000005
RBP: ffff8880a171c000 R08: 0000000000000001 R09: ffffffff8cb11f07
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000030
R13: 00000000000003f1 R14: dffffc0000000000 R15: 0000000000000001
 tomoyo_domain_quota_is_ok+0x307/0x550 security/tomoyo/util.c:1071
 tomoyo_supervisor+0x2d4/0xeb0 security/tomoyo/common.c:2089
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission security/tomoyo/file.c:587 [inline]
 tomoyo_path_permission+0x25c/0x360 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2e7/0x3f0 security/tomoyo/file.c:838
 tomoyo_path_unlink+0x8e/0xd0 security/tomoyo/tomoyo.c:150
 security_path_unlink+0xd7/0x150 security/security.c:1100
 do_unlinkat+0x375/0x660 fs/namei.c:3885
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cbb7
Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 cd b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffda7f988d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045cbb7
RDX: 00007ffda7f988f0 RSI: 00007ffda7f988f0 RDI: 00007ffda7f98980
RBP: 0000000000000484 R08: 0000000000000000 R09: 000000000000000c
R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffda7f99a10
R13: 000000000217ca60 R14: 0000000000000000 R15: 00007ffda7f99a10
rcu: rcu_preempt kthread starved for 10502 jiffies! g84729 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
rcu_preempt     I29080    10      2 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3778 [inline]
 __schedule+0x8e5/0x21e0 kernel/sched/core.c:4527
 schedule+0xd0/0x2a0 kernel/sched/core.c:4602
 schedule_timeout+0x148/0x250 kernel/time/timer.c:1879
 rcu_gp_fqs_loop kernel/rcu/tree.c:1888 [inline]
 rcu_gp_kthread+0xae5/0x1b50 kernel/rcu/tree.c:2058
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/08 17:21 upstream 449dc8c97089 f721e4a0 .config console log report ci-upstream-kasan-gce-selinux-root
2020/09/10 01:06 linux-next 7204eaa2c1f5 409809d8 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.