syzbot


INFO: rcu detected stall in chrdev_open (5)

Status: auto-obsoleted due to no activity on 2024/01/19 06:34
Subsystems: serial
[Documentation on labels]
First crash: 213d, last: 213d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in chrdev_open (2) 1 1466d 1466d 0/1 auto-closed as invalid on 2020/09/12 23:19
linux-4.14 INFO: rcu detected stall in chrdev_open C error 4 776d 881d 0/1 upstream: reported C repro on 2021/12/21 07:54
linux-4.19 INFO: rcu detected stall in chrdev_open (3) C error 17 601d 1155d 0/1 upstream: reported C repro on 2021/03/22 19:09
upstream INFO: rcu detected stall in chrdev_open (3) kernel 1 540d 540d 0/26 auto-obsoleted due to no activity on 2023/02/09 20:53
linux-4.19 INFO: rcu detected stall in chrdev_open 1 1600d 1600d 0/1 auto-closed as invalid on 2020/05/02 02:53
upstream INFO: rcu detected stall in chrdev_open (4) media 1 315d 315d 0/26 auto-obsoleted due to no activity on 2023/10/08 11:46
upstream INFO: rcu detected stall in chrdev_open (2) serial C done inconclusive 55 854d 1621d 0/26 closed as invalid on 2022/02/08 10:45
upstream INFO: rcu detected stall in chrdev_open kernel 4 1630d 1631d 0/26 closed as invalid on 2019/12/04 14:04
linux-5.15 BUG: soft lockup in chrdev_open 1 196d 196d 0/3 auto-obsoleted due to no activity on 2024/02/14 17:22

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P31305/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=303153, q=71 ncpus=2)
task:syz-executor.0  state:R  running task     stack:26624 pid:31305 ppid:5061   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0xee1/0x5a10 kernel/sched/core.c:6695
 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7007
 irqentry_exit+0x35/0x80 kernel/entry/common.c:432
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650
RIP: 0010:lock_acquire+0x1ef/0x510 kernel/locking/lockdep.c:5721
Code: c1 05 25 f3 99 7e 83 f8 01 0f 85 b0 02 00 00 9c 58 f6 c4 02 0f 85 9b 02 00 00 48 85 ed 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc900031bf4b0 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92000637e98 RCX: 0000000000000001
RDX: 1ffff1100ece2c80 RSI: ffffffff8a8caf20 RDI: ffffffff8ae92de0
RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff2339bd0
R10: ffffffff919cde87 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff8cbab2e0 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
 rcu_read_lock include/linux/rcupdate.h:749 [inline]
 get_mem_cgroup_from_objcg+0x35/0x230 include/linux/memcontrol.h:530
 obj_cgroup_charge_pages mm/memcontrol.c:3103 [inline]
 __memcg_kmem_charge_page+0x16c/0x3d0 mm/memcontrol.c:3131
 __alloc_pages+0x1fc/0x4a0 mm/page_alloc.c:4443
 __alloc_pages_bulk+0x77a/0x1110 mm/page_alloc.c:4374
 alloc_pages_bulk_array_mempolicy+0x1ca/0x370 mm/mempolicy.c:2393
 vm_area_alloc_pages mm/vmalloc.c:3028 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0xd08/0x1540 mm/vmalloc.c:3320
 __vmalloc_node mm/vmalloc.c:3385 [inline]
 __vmalloc+0x6d/0x90 mm/vmalloc.c:3399
 bpf_prog_alloc_no_stats+0x54/0x600 kernel/bpf/core.c:98
 bpf_prog_alloc+0x3b/0x230 kernel/bpf/core.c:136
 bpf_prog_load+0x4e5/0x2270 kernel/bpf/syscall.c:2639
 __sys_bpf+0xf27/0x4dd0 kernel/bpf/syscall.c:5344
 __do_sys_bpf kernel/bpf/syscall.c:5448 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5446 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5446
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7a45e7cae9
RSP: 002b:00007f7a46b400c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f7a45f9c120 RCX: 00007f7a45e7cae9
RDX: 0000000000000090 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 00007f7a45ec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f7a45f9c120 R15: 00007fffb311df88
 </TASK>
rcu: rcu_preempt kthread starved for 10501 jiffies! g303153 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
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:I stack:28224 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0xee1/0x5a10 kernel/sched/core.c:6695
 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6864
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock_irqrestore+0x5d/0x70 kernel/locking/spinlock.c:194
 debug_object_assert_init+0x21c/0x370 lib/debugobjects.c:930
 debug_timer_assert_init kernel/time/timer.c:792 [inline]
 debug_assert_init kernel/time/timer.c:837 [inline]
 __mod_timer+0xaf/0xea0 kernel/time/timer.c:1020
 schedule_timeout+0x152/0x2c0 kernel/time/timer.c:2166
 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1613
 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1812
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 31301 Comm: syz-executor.2 Not tainted 6.6.0-rc6-syzkaller-00244-gc3200081020d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:unwind_next_frame+0x5d8/0x2390 arch/x86/kernel/unwind_orc.c:505
Code: 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 0f b6 04 02 4c 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 1d 19 00 00 45 0f b6 74 24 05 <31> ff 41 83 e6 07 44 89 f6 e8 0a 79 4d 00 45 84 f6 0f 84 ec fd ff
RSP: 0018:ffffc900001f0638 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc900001f06b8 RCX: 0000000000000100
RDX: 0000000000000007 RSI: ffffffff813a4bd6 RDI: 0000000000000006
RBP: 0000000000000001 R08: 0000000000000006 R09: ffffffff81f15edd
R10: ffffffff81f15d08 R11: 0000000000000000 R12: ffffffff8f62abea
R13: ffffffff8f62abef R14: 0000000000000002 R15: ffffc900001f06ed
FS:  00007f23e67dd6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 0000000027340000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122
 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook mm/slab.h:762 [inline]
 slab_alloc_node mm/slub.c:3478 [inline]
 kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
 kmalloc_reserve+0x166/0x260 net/core/skbuff.c:559
 __alloc_skb+0x12b/0x330 net/core/skbuff.c:650
 __netdev_alloc_skb+0x72/0x3f0 net/core/skbuff.c:714
 netdev_alloc_skb include/linux/skbuff.h:3225 [inline]
 dev_alloc_skb include/linux/skbuff.h:3238 [inline]
 __ieee80211_beacon_get+0xc28/0x16d0 net/mac80211/tx.c:5426
 ieee80211_beacon_get_tim+0xa5/0x560 net/mac80211/tx.c:5548
 ieee80211_beacon_get include/net/mac80211.h:5421 [inline]
 mac80211_hwsim_beacon_tx+0x3f6/0x730 drivers/net/wireless/virtual/mac80211_hwsim.c:2260
 __iterate_interfaces+0x2d2/0x580 net/mac80211/util.c:766
 ieee80211_iterate_active_interfaces_atomic+0x71/0x1b0 net/mac80211/util.c:802
 mac80211_hwsim_beacon+0x101/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2290
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x203/0xc10 kernel/time/hrtimer.c:1752
 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1769
 __do_softirq+0x218/0x965 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__sanitizer_cov_trace_pc+0x60/0x70 kernel/kcov.c:225
Code: 82 e0 15 00 00 83 f8 02 75 20 48 8b 8a e8 15 00 00 8b 92 e4 15 00 00 48 8b 01 48 83 c0 01 48 39 d0 73 07 48 89 01 48 89 34 c1 <c3> 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 57
RSP: 0018:ffffc9000319f4d8 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffffc9000319f560 RCX: ffffc9000a429000
RDX: 0000000000040000 RSI: ffffffff813a5807 RDI: ffffc9000319f568
RBP: ffffc9000319f8e8 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90003198000
R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000001
 on_stack arch/x86/include/asm/stacktrace.h:56 [inline]
 unwind_next_frame+0x11d7/0x2390 arch/x86/kernel/unwind_orc.c:665
 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122
 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:374 [inline]
 __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
 kmalloc include/linux/slab.h:599 [inline]
 tty_alloc_file drivers/tty/tty_io.c:186 [inline]
 tty_open+0x147/0x1010 drivers/tty/tty_io.c:2121
 chrdev_open+0x277/0x700 fs/char_dev.c:414
 do_dentry_open+0x88b/0x1730 fs/open.c:929
 do_open fs/namei.c:3640 [inline]
 path_openat+0x19af/0x29c0 fs/namei.c:3797
 do_filp_open+0x1de/0x430 fs/namei.c:3824
 do_sys_openat2+0x176/0x1e0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1448
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f23e7c7cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f23e67dd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f23e7d9c050 RCX: 00007f23e7c7cae9
RDX: 0000000000000041 RSI: 00000000200000c0 RDI: ffffffffffffff9c
RBP: 00007f23e7cc847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f23e7d9c050 R15: 00007ffd04cc5648
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/21 06:29 upstream c3200081020d 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in chrdev_open
* Struck through repros no longer work on HEAD.