syzbot


INFO: rcu detected stall in sys_close (7)

Status: upstream: reported C repro on 2024/04/19 01:14
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+393022c13d02e1f680e3@syzkaller.appspotmail.com
First crash: 635d, last: 4d09h
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (Nov 2025) 0 (1) 2025/11/05 08:25
[syzbot] [fs?] [usb?] [input?] INFO: rcu detected stall in sys_close (7) 0 (1) 2024/04/19 01:14
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_close (3) kernel 1 1 1232d 1232d 0/29 auto-obsoleted due to no activity on 2022/10/25 14:50
linux-5.15 INFO: rcu detected stall in sys_close (2) 1 1 54d 54d 0/3 upstream: reported on 2025/11/17 04:01
upstream INFO: rcu detected stall in sys_close (4) fs 1 1 1156d 1156d 0/29 auto-obsoleted due to no activity on 2023/02/13 19:04
linux-5.15 INFO: rcu detected stall in sys_close 1 1 622d 622d 0/3 auto-obsoleted due to no activity on 2024/08/05 21:33
linux-6.6 INFO: rcu detected stall in close 1 C 2 10d 31d 0/2 upstream: reported C repro on 2025/12/10 03:57
linux-6.1 INFO: rcu detected stall in sys_close origin:lts-only 1 C done 1 36d 67d 0/3 upstream: reported C repro on 2025/11/03 07:00
upstream INFO: rcu detected stall in sys_close fs 1 1 1470d 1470d 0/29 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_close (6) fs 1 3 730d 810d 0/29 auto-obsoleted due to no activity on 2024/04/10 05:01
upstream INFO: rcu detected stall in sys_close (2) fs 1 3 1328d 1377d 0/29 auto-closed as invalid on 2022/08/21 03:13
upstream INFO: rcu detected stall in sys_close (5) net 1 C done 1 864d 864d 23/29 fixed on 2023/10/12 12:48
Last patch testing requests (9)
Created Duration User Patch Repo Result
2025/12/07 18:23 57m retest repro linux-next report log
2025/09/09 21:38 27m retest repro linux-next report log
2025/07/01 17:43 56m retest repro linux-next report log
2025/04/22 15:08 24m retest repro linux-next error
2025/02/04 06:58 26m retest repro linux-next report log
2024/11/25 22:34 26m retest repro linux-next report log
2024/09/16 18:53 21m retest repro linux-next report log
2024/07/08 15:53 32m retest repro linux-next report log
2024/04/29 03:56 22m retest repro linux-next report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5839/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=8777, q=15 ncpus=2)
task:udevd           state:R  running task     stack:24376 pid:5839  tgid:5839  ppid:5200   task_flags:0x400140 flags:0x00080000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5258 [inline]
 __schedule+0x150e/0x5070 kernel/sched/core.c:6866
 preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7193
 irqentry_exit+0x5d8/0x660 kernel/entry/common.c:216
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:trace_lock_acquire include/trace/events/lock.h:24 [inline]
RIP: 0010:lock_acquire+0x58/0x340 kernel/locking/lockdep.c:5831
Code: 8b 05 7c 42 01 11 48 89 44 24 58 0f 1f 44 00 00 65 8b 05 7f 42 01 11 83 f8 08 0f 83 af 01 00 00 89 c0 48 0f a3 05 a8 c1 03 0e <73> 0d e8 c1 29 09 00 84 c0 0f 84 d7 01 00 00 83 3d c2 f1 03 0e 00
RSP: 0018:ffffc90003ab7880 EFLAGS: 00000297
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e13f2e0
RBP: ffffffff81ac149d R08: 0000000000000000 R09: 0000000000000000
R10: ffffc90003ab79f8 R11: ffffffff81ad9d50 R12: 0000000000000002
R13: ffffffff8e13f2e0 R14: 0000000000000000 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 rcu_read_lock include/linux/rcupdate.h:867 [inline]
 class_rcu_constructor include/linux/rcupdate.h:1195 [inline]
 is_module_text_address+0x39/0x1e0 kernel/module/main.c:3856
 kernel_text_address+0x94/0xe0 kernel/extable.c:119
 __kernel_text_address+0xd/0x40 kernel/extable.c:79
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:385
 arch_stack_walk+0xfc/0x150 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3e2/0x700 mm/slub.c:5780
 kmalloc_noprof include/linux/slab.h:957 [inline]
 slab_free_hook mm/slub.c:2492 [inline]
 slab_free mm/slub.c:6674 [inline]
 kmem_cache_free+0x16b/0x620 mm/slub.c:6785
 fput_close_sync+0x113/0x220 fs/file_table.c:573
 __do_sys_close fs/open.c:1534 [inline]
 __se_sys_close fs/open.c:1519 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1519
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f81dd115a67
RSP: 002b:00007fff667f7198 EFLAGS: 00000297 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 000055fc980e67a0 RCX: 00007f81dd115a67
RDX: 00007f81dd1efea0 RSI: 000055fc98102f80 RDI: 0000000000000008
RBP: 00007f81dd1efff0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000000
R13: 3d45505954564544 R14: 3d5845444e494649 R15: 3d454d414e564544
 </TASK>
rcu: rcu_preempt kthread starved for 10434 jiffies! g8777 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:27728 pid:16    tgid:16    ppid:2      task_flags:0x208040 flags:0x00080000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5258 [inline]
 __schedule+0x150e/0x5070 kernel/sched/core.c:6866
 __schedule_loop kernel/sched/core.c:6948 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:6963
 schedule_timeout+0x12b/0x270 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x301/0x1540 kernel/rcu/tree.c:2083
 rcu_gp_kthread+0x99/0x390 kernel/rcu/tree.c:2285
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:82
Code: cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 33 9e 2a 00 f3 0f 1e fa fb f4 <e9> 48 ee 02 00 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffffff8de07d80 EFLAGS: 000002c6
RAX: 07339b2ba289ee00 RBX: ffffffff819786ba RCX: 07339b2ba289ee00
RDX: 0000000000000001 RSI: ffffffff8d997e54 RDI: ffffffff8be07960
RBP: ffffffff8de07ea8 R08: ffff8880b86336db R09: 1ffff110170c66db
R10: dffffc0000000000 R11: ffffed10170c66dc R12: ffffffff8fa22f70
R13: 1ffffffff1bd29b8 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888125c25000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f82f03b7d58 CR3: 0000000072802000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:767
 default_idle_call+0x73/0xb0 kernel/sched/idle.c:122
 cpuidle_idle_call kernel/sched/idle.c:191 [inline]
 do_idle+0x1ea/0x520 kernel/sched/idle.c:332
 cpu_startup_entry+0x44/0x60 kernel/sched/idle.c:430
 rest_init+0x2de/0x300 init/main.c:758
 start_kernel+0x3ac/0x400 init/main.c:1208
 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310
 x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291
 common_startup_64+0x13e/0x147
 </TASK>

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/23 15:33 linux-next cc3aa43b44bd d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2024/04/15 01:02 linux-next 9ed46da14b9b c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/12/24 18:56 linux-next cc3aa43b44bd d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/11/16 09:55 upstream f824272b6e3f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_close
2025/05/14 16:59 upstream 9f35e33144ae a4fa04ef .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_close
2025/04/08 10:04 upstream 0af2f6be1b42 a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_close
2024/12/31 05:39 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_close
2024/12/19 12:26 upstream eabcdba3ad40 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_close
2024/09/18 12:32 upstream bdf56c7580d2 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_close
2024/10/10 16:41 net a354733c738d 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_close
2024/12/31 01:00 net-next 9268abe611b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_close
2026/01/05 19:40 linux-next f8f97927abf7 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/12/25 07:54 linux-next cc3aa43b44bd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/11/23 16:51 linux-next d724c6f85e80 4fb8ef37 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/10/29 17:59 linux-next f9ba12abc528 fd2207e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2025/10/13 10:27 linux-next 2b763d465239 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
2024/10/21 21:01 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_close
2024/10/16 18:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7b5a58952fc3 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_close
* Struck through repros no longer work on HEAD.