syzbot


INFO: rcu detected stall in sys_clone (5)

Status: closed as invalid on 2022/02/08 10:00
Subsystems: kernfs
[Documentation on labels]
First crash: 1105d, last: 1006d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_clone 1 311d 311d 0/3 auto-obsoleted due to no activity on 2024/03/15 18:08
linux-6.1 INFO: rcu detected stall in sys_clone 3 458d 530d 0/3 auto-obsoleted due to no activity on 2023/10/20 18:18
upstream INFO: rcu detected stall in sys_clone (2) mm 49 1684d 1801d 0/28 auto-closed as invalid on 2020/06/01 05:26
upstream INFO: rcu detected stall in sys_clone (4) kernel 1 1201d 1201d 0/28 auto-closed as invalid on 2021/09/27 17:49
upstream INFO: rcu detected stall in sys_clone (3) kernel 2 1537d 1559d 0/28 auto-closed as invalid on 2020/10/26 22:48
upstream INFO: rcu detected stall in sys_clone (6) kasan mm 1 872d 872d 0/28 auto-closed as invalid on 2022/08/23 03:28
upstream INFO: rcu detected stall in sys_clone kernel 1 1857d 1857d 13/28 fixed on 2019/10/09 10:54
upstream INFO: rcu detected stall in sys_clone (8) mm C error 83 11h21m 198d 0/28 upstream: reported C repro on 2024/03/29 00:16
linux-4.19 INFO: rcu detected stall in sys_clone 2 1755d 1774d 0/1 auto-closed as invalid on 2020/04/21 05:46
upstream INFO: rcu detected stall in sys_clone (7) fs 1 607d 607d 0/28 auto-obsoleted due to no activity on 2023/05/14 17:18
linux-5.15 INFO: rcu detected stall in sys_clone (2) origin:upstream missing-backport C done 7 59d 200d 0/3 upstream: reported C repro on 2024/03/27 00:16
linux-6.1 INFO: rcu detected stall in sys_clone (2) 7 14d 206d 0/3 upstream: reported on 2024/03/20 15:17
android-5-10 BUG: soft lockup in sys_clone 1 96d 96d 0/2 auto-obsoleted due to no activity on 2024/10/06 12:58
android-5-15 BUG: soft lockup in sys_clone origin:upstream C 18 32d 176d 0/2 upstream: reported C repro on 2024/04/20 04:17

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10499 ticks this GP) idle=083/1/0x4000000000000000 softirq=170187/170187 fqs=4881 
	(t=10500 jiffies g=242349 q=1098)
NMI backtrace for cpu 0
CPU: 0 PID: 8138 Comm: syz-executor.4 Not tainted 5.16.0-syzkaller #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+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x22d/0x390 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
 rcu_pending kernel/rcu/tree.c:3878 [inline]
 rcu_sched_clock_irq+0x1e33/0x2bc0 kernel/rcu/tree.c:2597
 update_process_times+0x197/0x200 kernel/time/timer.c:1785
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1428
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 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: 71 44 fd ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 3e c8 58 f7 48 89 df e8 46 79 5a f7 e8 b1 ca 7d f7 fb bf 01 00 00 00 <e8> 06 d2 4c f7 65 8b 05 57 0b f5 75 85 c0 74 02 5b c3 e8 bc f4 f2
RSP: 0018:ffffc9000472eef0 EFLAGS: 00000286
RAX: 44b2368431610e00 RBX: ffffffff8cc5c8d8 RCX: ffffffff81668291
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc9000472f130 R08: dffffc0000000000 R09: fffffbfff1ff3dde
R10: fffffbfff1ff3dde R11: 0000000000000000 R12: ffffc9000472f000
R13: dffffc0000000000 R14: ffffffff8cc5c8c0 R15: 0000000000000006
 rwsem_down_write_slowpath+0xcbd/0x1480 kernel/locking/rwsem.c:1127
 __down_write_common kernel/locking/rwsem.c:1268 [inline]
 __down_write kernel/locking/rwsem.c:1277 [inline]
 down_write+0x163/0x170 kernel/locking/rwsem.c:1524
 kernfs_add_one+0x54/0x600 fs/kernfs/dir.c:725
 __kernfs_create_file+0x235/0x2e0 fs/kernfs/file.c:1014
 sysfs_add_file_mode_ns+0x21d/0x330 fs/sysfs/file.c:294
 create_files fs/sysfs/group.c:64 [inline]
 internal_create_group+0x54c/0xed0 fs/sysfs/group.c:148
 internal_create_groups fs/sysfs/group.c:188 [inline]
 sysfs_create_groups+0x5d/0x130 fs/sysfs/group.c:214
 setup_gid_attrs drivers/infiniband/core/sysfs.c:1168 [inline]
 ib_setup_port_attrs+0x15cb/0x23b0 drivers/infiniband/core/sysfs.c:1440
 add_one_compat_dev+0x4e0/0x6d0 drivers/infiniband/core/device.c:968
 rdma_dev_init_net+0x207/0x290 drivers/infiniband/core/device.c:1184
 ops_init+0x313/0x430 net/core/net_namespace.c:140
 setup_net+0x35b/0x9d0 net/core/net_namespace.c:326
 copy_net_ns+0x359/0x5c0 net/core/net_namespace.c:470
 create_new_namespaces+0x4ce/0xa00 kernel/nsproxy.c:110
 copy_namespaces+0x333/0x390 kernel/nsproxy.c:178
 copy_process+0x2968/0x5ca0 kernel/fork.c:2194
 kernel_clone+0x22a/0x7e0 kernel/fork.c:2582
 __do_sys_clone kernel/fork.c:2699 [inline]
 __se_sys_clone kernel/fork.c:2683 [inline]
 __x64_sys_clone+0x245/0x2b0 kernel/fork.c:2683
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fa4f81eae99
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:00007fa4f6b60168 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fa4f82fdf60 RCX: 00007fa4f81eae99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: f70a86956630e51d
RBP: 00007fa4f8244ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffca2d0a5f R14: 00007fa4f6b60300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	71 44                	jno    0x46
   2:	fd                   	std
   3:	ff 90 53 48 89 fb    	callq  *-0x476b7ad(%rax)
   9:	48 83 c7 18          	add    $0x18,%rdi
   d:	48 8b 74 24 08       	mov    0x8(%rsp),%rsi
  12:	e8 3e c8 58 f7       	callq  0xf758c855
  17:	48 89 df             	mov    %rbx,%rdi
  1a:	e8 46 79 5a f7       	callq  0xf75a7965
  1f:	e8 b1 ca 7d f7       	callq  0xf77dcad5
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 06 d2 4c f7       	callq  0xf74cd235 <-- trapping instruction
  2f:	65 8b 05 57 0b f5 75 	mov    %gs:0x75f50b57(%rip),%eax        # 0x75f50b8d
  36:	85 c0                	test   %eax,%eax
  38:	74 02                	je     0x3c
  3a:	5b                   	pop    %rbx
  3b:	c3                   	retq
  3c:	e8                   	.byte 0xe8
  3d:	bc                   	.byte 0xbc
  3e:	f4                   	hlt
  3f:	f2                   	repnz

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/11 00:19 upstream 133d9c53c9dc ddb0ab8c .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clone
2022/01/10 03:01 upstream df0cc57e057f 2ca0d385 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clone
2021/12/27 18:06 upstream a8ad9a2434dc 5140bd58 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clone
2021/10/07 21:05 upstream 4a16df549d23 efe0f24d .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clone
2021/10/03 10:17 upstream 7b66f4393ad4 db0f5787 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clone
* Struck through repros no longer work on HEAD.