syzbot


INFO: rcu detected stall in tty_release

Status: auto-obsoleted due to no activity on 2024/10/15 04:06
Subsystems: serial
[Documentation on labels]
First crash: 467d, last: 399d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tty_release (2) mm 1 4 195d 286d 0/29 auto-obsoleted due to no activity on 2025/05/06 09:10

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 3947 jiffies s: 10605 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6148 Comm: syz.4.152 Not tainted 6.10.0-syzkaller-01193-g408323581b72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:32 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:147 [inline]
RIP: 0010:seqcount_lockdep_reader_access+0x181/0x220 include/linux/seqlock.h:74
Code: 4c 89 f3 48 c1 eb 03 49 bc 00 00 00 00 00 fc ff df 42 80 3c 23 00 74 08 4c 89 f7 e8 09 34 78 00 48 c7 44 24 20 00 00 00 00 9c <8f> 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 fc 32 78 00 4c 8b 74
RSP: 0018:ffffc90000007b98 EFLAGS: 00000046
RAX: 1de5ef88a0269300 RBX: 1ffff92000000f78 RCX: ffffc90000007a03
RDX: 0000000000000004 RSI: ffffffff8bcacdc0 RDI: ffffffff8c202920
RBP: ffffc90000007c60 R08: ffffffff8fadb26f R09: 1ffffffff1f5b64d
R10: dffffc0000000000 R11: fffffbfff1f5b64e R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc90000007bc0 R15: 1ffff92000000f74
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c082a19950 CR3: 000000006d8ca000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 timekeeping_debug_get_ns kernel/time/timekeeping.c:256 [inline]
 timekeeping_get_ns+0x5c/0x420 kernel/time/timekeeping.c:401
 ktime_get+0x89/0xb0 kernel/time/timekeeping.c:850
 snd_hrtimer_callback+0x142/0x370 sound/core/hrtimer.c:46
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x59d/0xd50 kernel/time/hrtimer.c:1753
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0x112/0x3f0 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 4e 18 6a f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 93 b3 d3 f5 65 8b 05 34 c7 71 74 85 c0 74 43 48 c7 04 24 0e 36
RSP: 0018:ffffc9000342f680 EFLAGS: 00000206
RAX: 1de5ef88a0269300 RBX: 1ffff92000685ed4 RCX: ffffffff817302fa
RDX: dffffc0000000000 RSI: ffffffff8bcabc40 RDI: 0000000000000001
RBP: ffffc9000342f710 R08: ffffffff92fb35cf R09: 1ffffffff25f66b9
R10: dffffc0000000000 R11: fffffbfff25f66ba R12: dffffc0000000000
R13: 1ffff92000685ed0 R14: ffffc9000342f6a0 R15: 0000000000000246
 __free_irq kernel/irq/manage.c:2000 [inline]
 free_irq+0x546/0x7d0 kernel/irq/manage.c:2045
 serial_unlink_irq_chain drivers/tty/serial/8250/8250_core.c:236 [inline]
 univ8250_release_irq+0x16e/0x1e0 drivers/tty/serial/8250/8250_core.c:345
 uart_port_shutdown drivers/tty/serial/serial_core.c:1924 [inline]
 uart_tty_port_shutdown+0x1e5/0x4d0 drivers/tty/serial/serial_core.c:1796
 tty_port_shutdown+0x1bd/0x210 drivers/tty/tty_port.c:379
 tty_port_close+0x4c/0x140 drivers/tty/tty_port.c:720
 tty_release+0x32f/0x12c0 drivers/tty/tty_io.c:1760
 __fput+0x24c/0x8a0 fs/file_table.c:422
 task_work_run+0x251/0x310 kernel/task_work.c:180
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa27/0x27e0 kernel/exit.c:876
 do_group_exit+0x207/0x2c0 kernel/exit.c:1025
 get_signal+0x16a1/0x1740 kernel/signal.c:2917
 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0b95575a19
Code: Unable to access opcode bytes at 0x7f0b955759ef.
RSP: 002b:00007f0b96372048 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: 0000000000000007 RBX: 00007f0b95704038 RCX: 00007f0b95575a19
RDX: 0000000000000000 RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f0b955e4e49 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f0b95704038 R15: 00007ffcf852c768
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/17 03:58 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in tty_release
2024/06/13 23:41 upstream 2ccbdf43d5e7 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in tty_release
2024/05/09 23:47 upstream 45db3ab70092 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in tty_release
* Struck through repros no longer work on HEAD.