syzbot


INFO: rcu detected stall in sys_utimensat (3)

Status: auto-obsoleted due to no activity on 2025/01/29 23:25
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+6dca7953fd4bbdf92f5d@syzkaller.appspotmail.com
First crash: 240d, last: 116d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] INFO: rcu detected stall in sys_utimensat (3) 1 (2) 2024/10/02 13:34
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_utimensat kernel 1 1901d 1901d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_utimensat (2) fs 1 1163d 1163d 0/28 closed as invalid on 2022/02/08 10:00
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/12/31 09:59 22m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2024/10/20 19:26 17m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=72c4/1/0x4000000000000000 softirq=12934/12937 fqs=0
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P52/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=9925, q=331 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5653 Comm: udevd Not tainted 6.12.0-rc1-syzkaller-00349-g8f602276d390 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:advance_sched+0x1ec/0xc60 net/sched/sch_taprio.c:941
Code: 48 85 db 0f 84 c4 07 00 00 e8 70 5e 5c f8 48 8d bb 50 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 3d 09 00 00 48 8b 04 24 49 8d bf 40 01 00 00 48 89 fa 48 c1
RSP: 0018:ffffc90000a18d80 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff888064e36000 RCX: ffffffff89312822
RDX: 1ffff1100c9c6c2a RSI: ffffffff893122e0 RDI: ffff888064e36150
RBP: 000000000003dbcc R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888029867340
R13: ffff8880b872cac0 R14: ffff888029867340 R15: ffff888064e35800
FS:  00007f2b8b8b6c80(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c259afb CR3: 0000000032750000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1691 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1755
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1817
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1026 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1043
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1037
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xc/0x70 kernel/kcov.c:217
Code: cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 15 64 5a 76 7e <65> 8b 05 65 5a 76 7e a9 00 01 ff 00 48 8b 34 24 74 1d f6 c4 01 74
RSP: 0018:ffffc90015abfb08 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff82046dd7
RDX: ffff888025755a00 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffffc90015abfc10 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90015abfc18 R15: dffffc0000000000
 terminate_walk+0x2d7/0x680 fs/namei.c:695
 path_lookupat+0x212/0x770 fs/namei.c:2597
 filename_lookup+0x1e5/0x5b0 fs/namei.c:2609
 user_path_at+0x3a/0x60 fs/namei.c:3016
 do_utimes_path fs/utimes.c:95 [inline]
 do_utimes+0x103/0x2a0 fs/utimes.c:145
 __do_sys_utimensat fs/utimes.c:164 [inline]
 __se_sys_utimensat fs/utimes.c:148 [inline]
 __x64_sys_utimensat+0x1c7/0x290 fs/utimes.c:148
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2b8b98ffcc
Code: d8 64 89 02 48 83 c8 ff 89 ef 48 89 44 24 08 e8 99 00 fa ff 48 8b 44 24 08 48 83 c4 30 5d c3 c3 41 89 ca b8 18 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 2d 6e 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffd33d7f398 EFLAGS: 00000202 ORIG_RAX: 0000000000000118
RAX: ffffffffffffffda RBX: 00007ffd33d7f438 RCX: 00007f2b8b98ffcc
RDX: 0000000000000000 RSI: 00007ffd33d7fd58 RDI: 00000000ffffff9c
RBP: 00007ffd33d7fd58 R08: 0000000000000006 R09: bcc4ee99754a5075
R10: 0000000000000100 R11: 0000000000000202 R12: 00007ffd33d7f838
R13: 00005581dd267910 R14: 00005581dd266410 R15: 00007ffd33d7fd66
 </TASK>
task:kworker/u8:3    state:R  running task     stack:22816 pid:52    tgid:52    ppid:2      flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0xef5/0x5750 kernel/sched/core.c:6675
 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:6997
 irqentry_exit+0x36/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:trace_lock_acquire+0x145/0x1d0 include/trace/events/lock.h:24
Code: ff 74 24 48 44 89 e1 41 57 4c 89 d6 e8 04 47 ff ff 58 5a 65 ff 0d c3 25 9a 7e 0f 85 d5 fe ff ff e8 40 ed 96 ff e9 d2 fe ff ff <e8> d6 d2 09 00 84 c0 0f 85 fa fe ff ff 80 3d 9c 37 de 0e 00 0f 85
RSP: 0018:ffffc90000bd7af8 EFLAGS: 00000247
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff8169b50e
RDX: fffffbfff20be6e2 RSI: 0000000000000008 RDI: ffffffff905f3708
RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff20be6e1
R10: ffffffff905f370f R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000000
 lock_acquire+0x2f/0xb0 kernel/locking/lockdep.c:5796
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0x16a/0x1060 net/batman-adv/network-coding.c:719
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g9925 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:28400 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0xef5/0x5750 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6767
 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2247
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 UID: 0 PID: 5723 Comm: syz.1.142 Not tainted 6.12.0-rc1-syzkaller-00349-g8f602276d390 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x458/0x1300 kernel/smp.c:884
Code: 0c 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 6a 1b 0c 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 a4 0c 00 00 8b 43 08 31
RSP: 0018:ffffc9000423f6b0 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffff8880b8744cc0 RCX: ffffc90008cc9000
RDX: 0000000000040000 RSI: ffffffff818165e6 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed10170e8999
R13: 0000000000000001 R14: ffff8880b8744cc8 R15: ffff8880b8640100
FS:  00007f744c8ca6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31f19ff8 CR3: 0000000027182000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1051
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2085 [inline]
 text_poke_bp_batch+0x22b/0x760 arch/x86/kernel/alternative.c:2295
 text_poke_bp+0xa3/0xd0 arch/x86/kernel/alternative.c:2522
 __static_call_transform+0x34d/0x770 arch/x86/kernel/static_call.c:111
 arch_static_call_transform+0x5d/0xb0 arch/x86/kernel/static_call.c:163
 __static_call_update+0xee/0x660 kernel/static_call_inline.c:147
 bpf_dispatcher_update kernel/bpf/dispatcher.c:126 [inline]
 bpf_dispatcher_change_prog+0x741/0xa80 kernel/bpf/dispatcher.c:167
 bpf_prog_test_run_xdp+0xa56/0x1580 net/bpf/test_run.c:1337
 bpf_prog_test_run kernel/bpf/syscall.c:4247 [inline]
 __sys_bpf+0xfc6/0x49a0 kernel/bpf/syscall.c:5652
 __do_sys_bpf kernel/bpf/syscall.c:5741 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5739 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5739
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f744bb7dff9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f744c8ca038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f744bd35f80 RCX: 00007f744bb7dff9
RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a
RBP: 00007f744bbf0296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f744bd35f80 R15: 00007ffd30d7f3b8
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/06 14:24 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_utimensat
2024/09/02 20:31 upstream 67784a74e258 abeaa9b9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_utimensat
2024/07/20 02:18 upstream d7e78951a8b8 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_utimensat
2024/06/22 04:36 upstream 66cc544fd75c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_utimensat
2024/10/01 18:26 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_utimensat
2024/10/21 23:24 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c6d9e43954bf f1e4447c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_utimensat
2024/10/01 15:43 linux-next 77df9e4bb222 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_utimensat
2024/09/28 03:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 075dbe9f6e3c 440b26ec .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_utimensat
2024/06/20 01:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b0fc24f36191 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_utimensat
* Struck through repros no longer work on HEAD.