syzbot


INFO: rcu detected stall in sys_clone3

Status: auto-closed as invalid on 2022/08/20 13:01
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 190d, last: 190d

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (1 GPs behind) idle=f6b/1/0x4000000000000000 softirq=14973/14974 fqs=5003 
	(t=10500 jiffies g=20669 q=1387)
NMI backtrace for cpu 0
CPU: 0 PID: 6134 Comm: syz-executor.5 Not tainted 5.18.0-rc7-syzkaller-00181-geaea45fc0e7b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x168/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x236/0x3a0 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:639 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:723 [inline]
 rcu_pending kernel/rcu/tree.c:3923 [inline]
 rcu_sched_clock_irq+0xf1b/0x18d0 kernel/rcu/tree.c:2625
 update_process_times+0x197/0x200 kernel/time/timer.c:1788
 tick_sched_handle kernel/time/tick-sched.c:243 [inline]
 tick_sched_timer+0x377/0x540 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: 61 19 f7 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 9e 57 41 f7 48 89 df e8 06 c4 42 f7 e8 91 ed 66 f7 fb bf 01 00 00 00 <e8> 66 90 35 f7 65 8b 05 b7 a3 dc 75 85 c0 74 02 5b c3 e8 bc 8c da
RSP: 0018:ffffc90005f66f90 EFLAGS: 00000286
RAX: 6e876bfa0745f500 RBX: ffff8880114674f0 RCX: ffffffff81676828
RDX: dffffc0000000000 RSI: ffffffff8a8d0480 RDI: 0000000000000001
RBP: ffffc90005f671d0 R08: dffffc0000000000 R09: fffffbfff1f643fa
R10: fffffbfff1f643fa R11: 1ffffffff1f643f9 R12: 0000000000000006
R13: dffffc0000000000 R14: ffffc900054fe160 R15: ffff8880114674d8
 rwsem_down_write_slowpath+0xc8d/0x1460 kernel/locking/rwsem.c:1118
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write+0x163/0x170 kernel/locking/rwsem.c:1515
 kernfs_drain fs/kernfs/dir.c:486 [inline]
 __kernfs_remove+0xc54/0x1150 fs/kernfs/dir.c:1376
 kernfs_remove_by_name_ns+0x96/0xe0 fs/kernfs/dir.c:1579
 kernfs_remove_by_name include/linux/kernfs.h:558 [inline]
 remove_files fs/sysfs/group.c:28 [inline]
 sysfs_remove_group+0x102/0x2b0 fs/sysfs/group.c:288
 sysfs_remove_groups+0x5b/0xb0 fs/sysfs/group.c:312
 device_remove_groups drivers/base/core.c:2478 [inline]
 device_remove_attrs+0xc2/0x140 drivers/base/core.c:2678
 device_del+0x6e4/0xbe0 drivers/base/core.c:3591
 unregister_netdevice_many+0x13bb/0x1950 net/core/dev.c:10774
 ip_tunnel_delete_nets+0x325/0x370 net/ipv4/ip_tunnel.c:1124
 ops_exit_list net/core/net_namespace.c:167 [inline]
 setup_net+0x990/0xc10 net/core/net_namespace.c:348
 copy_net_ns+0x359/0x5b0 net/core/net_namespace.c:471
 create_new_namespaces+0x4db/0x8e0 kernel/nsproxy.c:110
 copy_namespaces+0x333/0x390 kernel/nsproxy.c:178
 copy_process+0x18e9/0x3f70 kernel/fork.c:2237
 kernel_clone+0x22f/0x7a0 kernel/fork.c:2639
 __do_sys_clone3 kernel/fork.c:2914 [inline]
 __se_sys_clone3+0x3de/0x430 kernel/fork.c:2898
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f59352890e9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f593639f038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007f593539c1d0 RCX: 00007f59352890e9
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f593639f050
RBP: 00007f59352e308d R08: 0000000000000000 R09: 0000000000000058
R10: 00007f593639f050 R11: 0000000000000246 R12: 0000000000000058
R13: 00007fff856a699f R14: 00007f593639f300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	19 f7                	sbb    %esi,%edi
   2:	ff 90 53 48 89 fb    	callq  *-0x476b7ad(%rax)
   8:	48 83 c7 18          	add    $0x18,%rdi
   c:	48 8b 74 24 08       	mov    0x8(%rsp),%rsi
  11:	e8 9e 57 41 f7       	callq  0xf74157b4
  16:	48 89 df             	mov    %rbx,%rdi
  19:	e8 06 c4 42 f7       	callq  0xf742c424
  1e:	e8 91 ed 66 f7       	callq  0xf766edb4
  23:	fb                   	sti
  24:	bf 01 00 00 00       	mov    $0x1,%edi
* 29:	e8 66 90 35 f7       	callq  0xf7359094 <-- trapping instruction
  2e:	65 8b 05 b7 a3 dc 75 	mov    %gs:0x75dca3b7(%rip),%eax        # 0x75dca3ec
  35:	85 c0                	test   %eax,%eax
  37:	74 02                	je     0x3b
  39:	5b                   	pop    %rbx
  3a:	c3                   	retq
  3b:	e8                   	.byte 0xe8
  3c:	bc                   	.byte 0xbc
  3d:	8c da                	mov    %ds,%edx

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/05/22 12:53 upstream eaea45fc0e7b 7268fa62 .config log report info INFO: rcu detected stall in sys_clone3
* Struck through repros no longer work on HEAD.