syzbot


INFO: rcu detected stall in sys_clone3

Status: auto-obsoleted due to no activity on 2024/04/15 06:45
Reported-by: syzbot+7fbf5eae838b455568e1@syzkaller.appspotmail.com
First crash: 118d, last: 118d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_clone3 kernfs 1 712d 712d 0/26 auto-closed as invalid on 2022/08/20 13:01

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=20bc/1/0x4000000000000000 softirq=99116/99119 fqs=19
	(detected by 0, t=10502 jiffies, g=137957, q=222 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 28059 Comm: syz-executor.0 Not tainted 6.1.71-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:lock_release+0x66c/0xa20 kernel/locking/lockdep.c:5686
Code: 27 08 00 00 00 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24 e0 00 00 00 0f 85 5f 03 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f <5d> c3 0f 0b e9 37 fa ff ff 0f 0b 48 c7 c7 c0 e6 eb 8a e8 cd 07 20
RSP: 0018:ffffc900001e0b50 EFLAGS: 00000046
RAX: d43cb85fe3403300 RBX: ffffffff91eafea8 RCX: ffffc900001e0a03
RDX: 0000000000000002 RSI: ffffffff8aebf840 RDI: ffffffff8b3cf940
RBP: ffffc900001e0b50 R08: dffffc0000000000 R09: fffffbfff1ce698e
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200003c16c R14: ffffc900001e0b80 R15: 0000000000000046
FS:  000055555592a480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0d2977cd58 CR3: 000000007a2ee000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x75/0x130 kernel/locking/spinlock.c:194
 debug_object_activate+0x3ed/0x890 lib/debugobjects.c:734
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer+0x30/0x390 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1702 [inline]
 __hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:seqcount_lockdep_reader_access+0x1dc/0x220 include/linux/seqlock.h:105
Code: 00 4d 85 ed 75 16 e8 73 85 10 00 eb 15 e8 6c 85 10 00 e8 77 58 10 09 4d 85 ed 74 ea e8 5d 85 10 00 fb 48 c7 04 24 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 66 43 c7 44 3c 09 00 00 43 c6 44 3c 0b 00
RSP: 0018:ffffc900052cf900 EFLAGS: 00000293
RAX: ffffffff817a0fa3 RBX: 0000000000000000 RCX: ffff8880783a0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900052cf9b0 R08: ffffffff817a0f79 R09: fffffbfff2092047
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000200 R14: 0000000000000046 R15: 1ffff92000a59f20
 ktime_get+0x31/0x270 kernel/time/timekeeping.c:846
 ktime_get_ns include/linux/timekeeping.h:154 [inline]
 copy_process+0x2447/0x4060 kernel/fork.c:2394
 kernel_clone+0x222/0x920 kernel/fork.c:2682
 __do_sys_clone3 kernel/fork.c:2981 [inline]
 __se_sys_clone3+0x373/0x410 kernel/fork.c:2965
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0d28aa8b19
Code: ff ff eb d2 e8 f8 62 fd ff 0f 1f 84 00 00 00 00 00 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7
RSP: 002b:00007ffebda52608 EFLAGS: 00000202 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007f0d28a511e0 RCX: 00007f0d28aa8b19
RDX: 00007f0d28a511e0 RSI: 0000000000000058 RDI: 00007ffebda52650
RBP: 00007f0d2977c6c0 R08: 00007f0d2977c6c0 R09: 00007ffebda52737
R10: 0000000000000008 R11: 0000000000000202 R12: ffffffffffffffb0
R13: 000000000000006e R14: 00007ffebda52650 R15: 00007ffebda52738
 </TASK>
rcu: rcu_preempt kthread starved for 10464 jiffies! g137957 f0x0 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:25528 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2d2/0x1120 kernel/rcu/tree.c:1674
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1873
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 28070 Comm: syz-executor.1 Not tainted 6.1.71-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:check_kcov_mode kernel/kcov.c:175 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x2c/0x60 kernel/kcov.c:207
Code: 04 24 65 48 8b 0d 34 da 77 7e 65 8b 15 35 da 77 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 1c 16 00 00 00 74 2c <8b> 91 f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48
RSP: 0018:ffffc90005377638 EFLAGS: 00000246
RAX: ffffffff817f558b RBX: 1ffff11017328031 RCX: ffff88803a69bb80
RDX: 0000000000000001 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90005377a08 R08: ffffffff817f5554 R09: fffffbfff2092075
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b9940188
FS:  00007fc22771d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00f122000 CR3: 000000003f00c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 csd_lock_wait kernel/smp.c:424 [inline]
 smp_call_function_many_cond+0x1fcb/0x3460 kernel/smp.c:998
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 kill_bdev block/bdev.c:75 [inline]
 set_blocksize+0x2cd/0x350 block/bdev.c:152
 sb_set_blocksize+0x45/0xe0 block/bdev.c:161
 ntfs_init_from_boot fs/ntfs3/super.c:854 [inline]
 ntfs_fill_super+0x1891/0x4510 fs/ntfs3/super.c:935
 get_tree_bdev+0x3fe/0x620 fs/super.c:1355
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x28b/0xae0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc226a7e42a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc22771cee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc22771cf80 RCX: 00007fc226a7e42a
RDX: 0000000020000040 RSI: 0000000020000200 RDI: 00007fc22771cf40
RBP: 0000000020000040 R08: 00007fc22771cf80 R09: 000000000000c040
R10: 000000000000c040 R11: 0000000000000202 R12: 0000000020000200
R13: 00007fc22771cf40 R14: 000000000001f75c R15: 00000000200003c0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/06 06:45 linux-6.1.y 38fb82ecd144 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clone3
* Struck through repros no longer work on HEAD.