syzbot


INFO: rcu detected stall in do_unlinkat (2)

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

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 1, t=10502 jiffies, g=242373, q=33)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4295102370-4295091868), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g242373 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:29096 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4695 [inline]
 __schedule+0x93a/0x26f0 kernel/sched/core.c:6026
 schedule+0xd3/0x270 kernel/sched/core.c:6105
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu_gp_fqs_loop kernel/rcu/tree.c:1996 [inline]
 rcu_gp_kthread+0xd34/0x1980 kernel/rcu/tree.c:2169
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8476 Comm: syz-executor.2 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:match_held_lock+0xe/0xc0 kernel/locking/lockdep.c:5077
Code: 48 c7 c7 c0 c6 8b 89 e8 7d 64 be ff e8 88 1a cd ff 31 c0 5d c3 0f 1f 80 00 00 00 00 53 48 89 fb 48 83 ec 08 48 39 77 10 74 6a <66> f7 47 22 f0 ff 74 5a 48 8b 46 08 48 89 f7 48 85 c0 74 42 8b 15
RSP: 0018:ffffc90000007d68 EFLAGS: 00000006
RAX: 000000000000000a RBX: ffff88807764ea40 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffff88802243cb00 RDI: ffff88807764ea40
RBP: ffff88802243cb00 R08: 0000000000000000 R09: 0000000000000003
R10: ffffffff874ccf48 R11: 0000000000000000 R12: ffff88807764e000
R13: ffff88807764e9f0 R14: 00000000ffffffff R15: ffff88807764ea40
FS:  0000000001e4a400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001e53848 CR3: 000000007768b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __lock_is_held kernel/locking/lockdep.c:5368 [inline]
 lock_is_held_type+0xa7/0x140 kernel/locking/lockdep.c:5668
 lock_is_held include/linux/lockdep.h:283 [inline]
 advance_sched+0xfa/0x9a0 net/sched/sch_taprio.c:715
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x330/0xa00 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:preempt_schedule_irq+0x49/0x90 kernel/sched/core.c:6414
Code: 55 53 65 48 8b 1c 25 40 f0 01 00 48 89 dd 48 c1 ed 03 48 01 c5 bf 01 00 00 00 e8 82 8d 22 f8 e8 ed db 4e f8 fb bf 01 00 00 00 <e8> d2 cd ff ff 9c 58 fa f6 c4 02 75 27 bf 01 00 00 00 e8 90 7c 22
RSP: 0018:ffffc900018f7808 EFLAGS: 00000206
RAX: 0000000000fff0af RBX: ffff88807764e000 RCX: 1ffffffff1fa2b8a
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffed100eec9c00 R08: 0000000000000001 R09: ffffffff8fcdb97f
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 irqentry_exit+0x31/0x80 kernel/entry/common.c:427
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:197
Code: 01 f0 4d 89 03 e9 63 fd ff ff b9 ff ff ff ff ba 08 00 00 00 4d 8b 03 48 0f bd ca 49 8b 45 00 48 63 c9 e9 64 ff ff ff 0f 1f 00 <65> 8b 05 29 11 8d 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b
RSP: 0018:ffffc900018f78d8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffff88807764e000 RDI: 0000000000000003
RBP: ffff8880186b0500 R08: 0000000000000000 R09: 0000000000000008
R10: ffffffff83a691d7 R11: 0000000000000010 R12: 0000000000000100
R13: 00000000000002eb R14: dffffc0000000000 R15: 0000000000000001
 tomoyo_domain_quota_is_ok+0x311/0x550 security/tomoyo/util.c:1094
 tomoyo_supervisor+0x2f2/0xf00 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+0x270/0x3a0 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2f0/0x400 security/tomoyo/file.c:838
 tomoyo_path_unlink+0x8e/0xd0 security/tomoyo/tomoyo.c:149
 security_path_unlink+0xd7/0x150 security/security.c:1155
 do_unlinkat+0x379/0x690 fs/namei.c:4098
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465f37
Code: 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff4f17eee8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000465f37
RDX: 00007fff4f17ef20 RSI: 00007fff4f17ef20 RDI: 00007fff4f17efb0
RBP: 00007fff4f17efb0 R08: 0000000000000001 R09: 00007fff4f17ed80
R10: 0000000001e4b88b R11: 0000000000000206 R12: 00000000004bee90
R13: 00007fff4f180080 R14: 0000000001e4b810 R15: 00007fff4f1800c0
----------------
Code disassembly (best guess):
   0:	48 c7 c7 c0 c6 8b 89 	mov    $0xffffffff898bc6c0,%rdi
   7:	e8 7d 64 be ff       	callq  0xffbe6489
   c:	e8 88 1a cd ff       	callq  0xffcd1a99
  11:	31 c0                	xor    %eax,%eax
  13:	5d                   	pop    %rbp
  14:	c3                   	retq
  15:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  1c:	53                   	push   %rbx
  1d:	48 89 fb             	mov    %rdi,%rbx
  20:	48 83 ec 08          	sub    $0x8,%rsp
  24:	48 39 77 10          	cmp    %rsi,0x10(%rdi)
  28:	74 6a                	je     0x94
* 2a:	66 f7 47 22 f0 ff    	testw  $0xfff0,0x22(%rdi) <-- trapping instruction
  30:	74 5a                	je     0x8c
  32:	48 8b 46 08          	mov    0x8(%rsi),%rax
  36:	48 89 f7             	mov    %rsi,%rdi
  39:	48 85 c0             	test   %rax,%rax
  3c:	74 42                	je     0x80
  3e:	8b                   	.byte 0x8b
  3f:	15                   	.byte 0x15

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/31 05:05 upstream 7d2a07b76933 8f58a0ef .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in do_unlinkat
* Struck through repros no longer work on HEAD.