syzbot


INFO: rcu detected stall in sys_mkdir (5)

Status: auto-closed as invalid on 2021/12/15 23:48
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 442d, last: 442d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_mkdir (3) 1 1060d 1060d 0/24 closed as invalid on 2020/01/08 05:33
upstream INFO: rcu detected stall in sys_mkdir 2 1228d 1229d 0/24 auto-closed as invalid on 2019/10/25 14:21
upstream INFO: rcu detected stall in sys_mkdir (2) 5 1094d 1096d 0/24 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in sys_mkdir (6) 2 306d 315d 0/24 closed as invalid on 2022/02/08 09:50
upstream INFO: rcu detected stall in sys_mkdir (4) 2 1059d 1059d 0/24 closed as invalid on 2020/01/09 08:13

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-....: (1 GPs behind) idle=24f/1/0x4000000000000000 softirq=76493/76494 fqs=5241 
	(detected by 0, t=10502 jiffies, g=130157, q=580)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7044 Comm: syz-executor.0 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:native_apic_mem_read+0x36/0x40 arch/x86/include/asm/apic.h:115
Code: fb 48 8d bb 00 c0 5f ff 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 08 8b 83 00 c0 5f ff <5b> c3 e8 d3 b3 8a 00 eb f1 90 b8 01 00 00 00 c3 66 2e 0f 1f 84 00
RSP: 0018:ffffc90000dc0ac8 EFLAGS: 00000046
RAX: 00000000000400f6 RBX: 0000000000000300 RCX: ffffffff812a18b3
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffff5fc300
RBP: fffffbfff1666d48 R08: 0000000000000000 R09: ffffffff8d6e6a07
R10: fffffbfff1adcd40 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880b9d32870 R14: 0000000000000000 R15: ffffe8ffffd69c80
FS:  00007f8c29531700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c29510718 CR3: 0000000053866000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 apic_read arch/x86/include/asm/apic.h:389 [inline]
 native_apic_wait_icr_idle+0x47/0x70 arch/x86/kernel/apic/apic.c:252
 __irq_work_queue_local kernel/irq_work.c:59 [inline]
 __irq_work_queue_local+0x133/0x190 kernel/irq_work.c:53
 irq_work_queue_on+0x146/0x160 kernel/irq_work.c:109
 rcu_read_unlock_special kernel/rcu/tree_plugin.h:663 [inline]
 __rcu_read_unlock+0x436/0x570 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:719 [inline]
 BPF_PROG_RUN_ARRAY include/linux/bpf.h:1269 [inline]
 trace_call_bpf+0x2f9/0x640 kernel/trace/bpf_trace.c:127
 perf_trace_run_bpf_submit+0x91/0x210 kernel/events/core.c:9652
 perf_trace_preemptirq_template+0x296/0x460 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle include/trace/events/preemptirq.h:40 [inline]
 trace_irq_enable_rcuidle include/trace/events/preemptirq.h:40 [inline]
 trace_hardirqs_on+0x156/0x1c0 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:664
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__rcu_read_unlock+0xc4/0x570 kernel/rcu/tree_plugin.h:425
Code: b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e b6 01 00 00 8b 85 d8 03 00 00 85 c0 75 54 <65> 48 8b 1c 25 40 f0 01 00 48 8d bb d4 03 00 00 48 b8 00 00 00 00
RSP: 0018:ffffc90000dc0e48 EFLAGS: 00000206
RAX: 0000000000000002 RBX: ffff8880b9d32840 RCX: 1ffffffff1fa75a2
RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000
RBP: ffffffff8b988ac0 R08: 0000000000000001 R09: ffffffff8fd0097f
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 00000000000b5a00 R14: 0000000000000200 R15: fffffbfff16c1e30
 rcu_read_unlock include/linux/rcupdate.h:719 [inline]
 rebalance_domains+0x278/0xda0 kernel/sched/fair.c:10256
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 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 e9 ce 8b 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b
RSP: 0018:ffffc9000184f900 EFLAGS: 00000287
RAX: 0000000000000000 RBX: 000000000000000a RCX: ffff88801d275580
RDX: 0000000000000000 RSI: ffff88801d275580 RDI: 0000000000000003
RBP: ffff888018cd9980 R08: 0000000000000000 R09: 000000000000000a
R10: ffffffff83a25a4a R11: 0000000000000010 R12: 0000000000000030
R13: 00000000000003de R14: dffffc0000000000 R15: 0000000000000000
 tomoyo_domain_quota_is_ok+0x2f1/0x550 security/tomoyo/util.c:1093
 tomoyo_supervisor+0x2f2/0xf00 security/tomoyo/common.c:2089
 tomoyo_audit_path_number_log security/tomoyo/file.c:235 [inline]
 tomoyo_path_number_perm+0x419/0x590 security/tomoyo/file.c:734
 tomoyo_path_mkdir+0x98/0xe0 security/tomoyo/tomoyo.c:166
 security_path_mkdir+0xe8/0x160 security/security.c:1140
 do_mkdirat+0x143/0x300 fs/namei.c:3907
 __do_sys_mkdir fs/namei.c:3931 [inline]
 __se_sys_mkdir fs/namei.c:3929 [inline]
 __x64_sys_mkdir+0xf2/0x140 fs/namei.c:3929
 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:0x7f8c2bfba739
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8c29531188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007f8c2c0bef80 RCX: 00007f8c2bfba739
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00007f8c2c014cc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8c2c0bef80
R13: 00007ffef6c39c9f R14: 00007f8c29531300 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	fb                   	sti
   1:	48 8d bb 00 c0 5f ff 	lea    -0xa04000(%rbx),%rdi
   8:	48 89 fa             	mov    %rdi,%rdx
   b:	48 c1 ea 03          	shr    $0x3,%rdx
   f:	0f b6 14 02          	movzbl (%rdx,%rax,1),%edx
  13:	48 89 f8             	mov    %rdi,%rax
  16:	83 e0 07             	and    $0x7,%eax
  19:	83 c0 03             	add    $0x3,%eax
  1c:	38 d0                	cmp    %dl,%al
  1e:	7c 04                	jl     0x24
  20:	84 d2                	test   %dl,%dl
  22:	75 08                	jne    0x2c
  24:	8b 83 00 c0 5f ff    	mov    -0xa04000(%rbx),%eax
* 2a:	5b                   	pop    %rbx <-- trapping instruction
  2b:	c3                   	retq
  2c:	e8 d3 b3 8a 00       	callq  0x8ab404
  31:	eb f1                	jmp    0x24
  33:	90                   	nop
  34:	b8 01 00 00 00       	mov    $0x1,%eax
  39:	c3                   	retq
  3a:	66                   	data16
  3b:	2e                   	cs
  3c:	0f                   	.byte 0xf
  3d:	1f                   	(bad)
  3e:	84 00                	test   %al,(%rax)

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-next-kasan-gce 2021/09/16 23:45 bpf-next 336562752acc aae492f2 .config log report info INFO: rcu detected stall in sys_mkdir
* Struck through repros no longer work on HEAD.