syzbot


INFO: rcu detected stall in sys_close (3)

Status: auto-obsoleted due to no activity on 2022/10/25 14:50
Subsystems: kernel
[Documentation on labels]
First crash: 656d, last: 656d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_close (4) fs 1 580d 580d 0/28 auto-obsoleted due to no activity on 2023/02/13 19:04
linux-5.15 INFO: rcu detected stall in sys_close 1 46d 46d 0/3 upstream: reported on 2024/04/27 21:33
upstream INFO: rcu detected stall in sys_close (7) usb fs input C error 1 59d 55d 0/28 upstream: reported C repro on 2024/04/19 01:14
upstream INFO: rcu detected stall in sys_close fs 1 894d 894d 0/28 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_close (6) fs 3 153d 234d 0/28 auto-obsoleted due to no activity on 2024/04/10 05:01
upstream INFO: rcu detected stall in sys_close (2) fs 3 752d 801d 0/28 auto-closed as invalid on 2022/08/21 03:13
upstream INFO: rcu detected stall in sys_close (5) net C done 1 288d 288d 23/28 fixed on 2023/10/12 12:48

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 1-...D } 2685 jiffies s: 43017 root: 0x2/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 22144 Comm: syz-executor.3 Not tainted 6.0.0-rc2-next-20220826-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline]
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline]
RIP: 0010:rcu_is_watching+0x58/0xb0 kernel/rcu/tree.c:719
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 75 54 48 03 1c ed a0 a8 a2 8b 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 0f b6 14 02 <48> 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 1c 8b 03 c1 e8 02
RSP: 0018:ffffc900001e0db8 EFLAGS: 00000802
RAX: dffffc0000000000 RBX: ffff8880b9b34c48 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000010001 RDI: ffffffff8ba2a8a8
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88805c3dfe00
R13: 170eed0dd6c90000 R14: ffff88805c3dfe20 R15: 170eed0dd6c90000
FS:  000055555594c400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f422000 CR3: 00000000790a3000 CR4: 00000000003506e0
Call Trace:
 <IRQ>
 rcu_read_unlock include/linux/rcupdate.h:763 [inline]
 advance_sched+0x4d2/0x9a0 net/sched/sch_taprio.c:771
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x5fa/0xe40 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__kasan_check_write+0x4/0x10 mm/kasan/shadow.c:37
Code: 00 48 89 fb 48 39 c7 0f 82 6c c7 79 07 eb e1 cc cc cc cc cc cc cc 48 8b 0c 24 89 f6 31 d2 e9 b3 fa ff ff 0f 1f 00 48 8b 0c 24 <89> f6 ba 01 00 00 00 e9 a0 fa ff ff 55 53 48 8b 07 48 89 fb 48 85
RSP: 0018:ffffc90003977e08 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fcaf7
RDX: ffff88801f593a80 RSI: 0000000000000008 RDI: ffff88801f593a80
RBP: ffff888074c0b680 R08: 0000000000000005 R09: 0000000000000003
R10: 0000000000000001 R11: 000000000008c07c R12: ffff88801f593a80
R13: 0000000000000000 R14: 0000000000000001 R15: 1ffff9200072efc5
 instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
 test_and_set_bit include/asm-generic/bitops/instrumented-atomic.h:71 [inline]
 test_and_set_ti_thread_flag include/linux/thread_info.h:108 [inline]
 test_and_set_tsk_thread_flag include/linux/sched.h:2020 [inline]
 set_notify_resume include/linux/resume_user_mode.h:22 [inline]
 task_work_add+0x167/0x2c0 kernel/task_work.c:61
 fput fs/file_table.c:376 [inline]
 fput+0xe7/0x190 fs/file_table.c:369
 filp_close+0x124/0x160 fs/open.c:1424
 close_fd+0x76/0xa0 fs/file.c:664
 __do_sys_close fs/open.c:1437 [inline]
 __se_sys_close fs/open.c:1435 [inline]
 __x64_sys_close+0x2f/0xa0 fs/open.c:1435
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7308e3bebb
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffe1b7bdf60 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f7308e3bebb
RDX: 00007f7308fa05f0 RSI: ffffffffffffffff RDI: 0000000000000003
RBP: 00007f7308f9d980 R08: 0000000000000000 R09: 00007f7308fa05f8
R10: 00007ffe1b7be060 R11: 0000000000000293 R12: 00000000000b705c
R13: 00007ffe1b7be060 R14: 00007f7308f9bf80 R15: 0000000000000032
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/26 14:44 linux-next 8d0c42c9e807 e5a303f1 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_close
* Struck through repros no longer work on HEAD.