syzbot


INFO: rcu detected stall in raw_release

Status: upstream: reported on 2025/06/19 13:20
Reported-by: syzbot+26eaf7019e2fe6243c71@syzkaller.appspotmail.com
First crash: 20h13m, last: 20h13m
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in raw_release kvm serial 6 912d 924d 0/29 auto-obsoleted due to no activity on 2023/04/19 09:38
upstream INFO: rcu detected stall in raw_release usb 20 435d 754d 0/29 auto-obsoleted due to no activity on 2024/07/09 10:23

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P26358/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=183565, q=73 ncpus=2)
task:syz.7.5486      state:R  running task     stack:26984 pid:26358 ppid:18349  flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x14e2/0x4580 kernel/sched/core.c:6700
 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:7010
 irqentry_exit+0x67/0x70 kernel/entry/common.c:438
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:lock_acquire+0x1f2/0x410 kernel/locking/lockdep.c:5758
Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 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:ffffc900045375a0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: e3ece3f098903100
RDX: 0000000000000000 RSI: ffffffff8aaac440 RDI: ffffffff8afc6780
RBP: ffffc900045376b0 R08: dffffc0000000000 R09: 1ffffffff21b08a4
R10: dffffc0000000000 R11: fffffbfff21b08a5 R12: 1ffff920008a6ec0
R13: ffffffff8cd2f760 R14: 0000000000000246 R15: dffffc0000000000
 rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 rcu_read_lock include/linux/rcupdate.h:786 [inline]
 is_bpf_text_address+0x47/0x2a0 kernel/bpf/core.c:741
 kernel_text_address+0xa0/0xd0 kernel/extable.c:125
 __kernel_text_address+0xd/0x30 kernel/extable.c:79
 unwind_get_return_address+0x5d/0xc0 arch/x86/kernel/unwind_orc.c:369
 arch_stack_walk+0x11d/0x190 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
 __call_rcu_common kernel/rcu/tree.c:2713 [inline]
 call_rcu+0x14f/0x920 kernel/rcu/tree.c:2829
 kernfs_put+0x1d3/0x360 fs/kernfs/dir.c:578
 kernfs_remove_by_name_ns+0xe4/0x150 fs/kernfs/dir.c:1695
 remove_bind_files drivers/base/bus.c:602 [inline]
 bus_remove_driver+0x193/0x2f0 drivers/base/bus.c:740
 usb_gadget_unregister_driver+0x4e/0x70 drivers/usb/gadget/udc/core.c:1716
 raw_release+0xda/0x260 drivers/usb/gadget/legacy/raw_gadget.c:415
 __fput+0x234/0x970 fs/file_table.c:384
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fe9e7b8e929
RSP: 002b:00007ffe1069d498 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00000000001cf635 RCX: 00007fe9e7b8e929
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fe9e7db7ba0 R08: 0000000000000001 R09: 000000091069d78f
R10: 00007fe9e7800000 R11: 0000000000000246 R12: 00007fe9e7db608c
R13: 00007fe9e7db6080 R14: ffffffffffffffff R15: 00007ffe1069d5b0
 </TASK>
rcu: rcu_preempt kthread starved for 10548 jiffies! g183565 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:27024 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x14e2/0x4580 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x302/0x1560 kernel/rcu/tree.c:1663
 rcu_gp_kthread+0x99/0x380 kernel/rcu/tree.c:1862
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.6.93-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:148
Code: cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d 63 10 42 00 f3 0f 1e fa fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 66 0f 1f 00 55 41 57 41 56
RSP: 0018:ffffffff8ca07d80 EFLAGS: 000002c2
RAX: 5c978e23d20ea700 RBX: ffffffff81618a7b RCX: 5c978e23d20ea700
RDX: 0000000000000001 RSI: ffffffff8aaab2c0 RDI: ffffffff8afc6780
RBP: ffffffff8ca07eb8 R08: ffff8880b8e36d4b R09: 1ffff110171c6da9
R10: dffffc0000000000 R11: ffffed10171c6daa R12: ffffffff8e49a768
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffffffff1952670
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000003700 CR3: 000000002bc1a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:747
 default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
 cpuidle_idle_call kernel/sched/idle.c:170 [inline]
 do_idle+0x1eb/0x510 kernel/sched/idle.c:282
 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:380
 rest_init+0x2e2/0x300 init/main.c:732
 arch_call_rest_init+0xe/0x10 init/main.c:829
 start_kernel+0x459/0x4e0 init/main.c:1074
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
 x86_64_start_kernel+0x60/0x60 arch/x86/kernel/head64.c:536
 secondary_startup_64_no_verify+0x179/0x17b
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/19 13:19 linux-6.6.y c2603c511feb ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in raw_release
* Struck through repros no longer work on HEAD.