syzbot


INFO: rcu detected stall in lock_is_held_type (4)

Status: auto-obsoleted due to no activity on 2023/06/11 21:13
Subsystems: mm
[Documentation on labels]
First crash: 416d, last: 416d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in lock_is_held_type (2) kernel 4 1205d 1245d 0/26 auto-closed as invalid on 2021/04/13 14:40
linux-4.19 INFO: rcu detected stall in lock_is_held_type 2 1494d 1570d 0/1 auto-closed as invalid on 2020/07/28 13:19
linux-4.14 INFO: rcu detected stall in lock_is_held_type 1 1316d 1316d 0/1 auto-closed as invalid on 2021/01/22 12:51
upstream INFO: rcu detected stall in lock_is_held_type tomoyo 2 1560d 1594d 0/26 auto-closed as invalid on 2020/04/23 13:55
upstream INFO: rcu detected stall in lock_is_held_type (3) wireless 1 1006d 1006d 0/26 auto-closed as invalid on 2021/10/29 13:54
linux-4.19 BUG: soft lockup in lock_is_held_type 3 614d 709d 0/1 auto-obsoleted due to no activity on 2022/12/25 06:00
linux-4.19 BUG: soft lockup in lock_is_held_type (2) 1 488d 488d 0/1 upstream: reported on 2022/12/31 04:23
linux-4.14 BUG: soft lockup in lock_is_held_type 1 766d 766d 0/1 auto-closed as invalid on 2022/07/26 21:52

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 ticks this GP) idle=374c/1/0x4000000000000000 softirq=46395/46395 fqs=1
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P1053/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=63149, q=76 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 14353 Comm: syz-executor.4 Not tainted 6.3.0-rc2-syzkaller-00006-gfc89d7fb499b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:__kasan_check_read+0x0/0x20 mm/kasan/shadow.c:30
Code: 89 54 24 08 0f 85 4a ff ff ff e9 1b fe ff ff 48 83 c4 60 4c 89 c6 48 c7 c7 a8 bb ef 8b 5b 5d 41 5c e9 f4 94 92 ff 0f 1f 40 00 <f3> 0f 1e fa 48 8b 0c 24 89 f6 31 d2 e9 2f f4 ff ff 66 66 2e 0f 1f
RSP: 0018:ffffc900001e0c48 EFLAGS: 00000056
RAX: 0000000000000000 RBX: 1ffff9200003c18c RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8e784510
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff91f53670 R15: 0000000000000000
FS:  000055555737a400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8fa9babf84 CR3: 00000000779d5000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 cpumask_test_cpu include/linux/cpumask.h:487 [inline]
 cpu_online include/linux/cpumask.h:1065 [inline]
 trace_lock_acquire include/trace/events/lock.h:24 [inline]
 lock_acquire+0xbc/0x5b0 kernel/locking/lockdep.c:5640
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
 debug_object_deactivate lib/debugobjects.c:739 [inline]
 debug_object_deactivate+0x105/0x300 lib/debugobjects.c:727
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate kernel/time/hrtimer.c:481 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x3f3/0xe90 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x14a/0x550 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:lock_is_held_type+0x103/0x140 kernel/locking/lockdep.c:5717
Code: 00 00 b8 ff ff ff ff 65 0f c1 05 98 ff f3 75 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48
RSP: 0018:ffffc900145f7c10 EFLAGS: 00000292
RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88802a3a3918 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000094001 R12: ffff88802646ba80
R13: 0000000000000001 R14: 0000000000000000 R15: ffff88802646c4b8
 mmap_assert_write_locked include/linux/mmap_lock.h:161 [inline]
 vm_flags_set include/linux/mm.h:661 [inline]
 mmap_region+0x1c36/0x2690 mm/mmap.c:2690
 do_mmap+0x831/0xf60 mm/mmap.c:1364
 vm_mmap_pgoff+0x1af/0x280 mm/util.c:542
 ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1410
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8fa9a8c142
Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 b8 ff ff ff 64
RSP: 002b:00007ffe825e5328 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000020022 RCX: 00007f8fa9a8c142
RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000020022 R11: 0000000000000246 R12: 00007ffe825e5530
R13: 00007f8fa8dff700 R14: 0000000000000000 R15: 0000000000022000
 </TASK>
task:kworker/u4:6    state:R  running task     stack:23880 pid:1053  ppid:2      flags:0x00004000
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0xc91/0x57d0 kernel/sched/core.c:6622
 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:6934
 irqentry_exit+0x35/0x80 kernel/entry/common.c:432
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650
RIP: 0010:__should_failslab+0x25/0x110 mm/failslab.c:22
Code: 00 00 00 00 00 66 0f 1f 00 48 c7 c0 00 8b db 91 53 48 89 fb 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 48 83 ec 08 80 3c 10 00 <0f> 85 b7 00 00 00 48 39 1d 4e ef 05 10 0f 84 93 00 00 00 f7 c6 00
RSP: 0018:ffffc9000540f9d0 EFLAGS: 00000246
RAX: 1ffffffff23b7160 RBX: ffff8880174cc500 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000020820 RDI: ffff8880174cc500
RBP: 00000000ffffffff R08: 0000000000000005 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880174cc500
R13: 0000000000020820 R14: 0000000000020820 R15: ffffffff8808ac78
 should_failslab+0x9/0x20 mm/slab_common.c:1462
 slab_pre_alloc_hook mm/slab.h:730 [inline]
 slab_alloc_node mm/slub.c:3434 [inline]
 kmem_cache_alloc_node+0x5c/0x350 mm/slub.c:3497
 __alloc_skb+0x288/0x330 net/core/skbuff.c:596
 __netdev_alloc_skb+0x74/0x410 net/core/skbuff.c:670
 __netdev_alloc_skb_ip_align include/linux/skbuff.h:3203 [inline]
 netdev_alloc_skb_ip_align include/linux/skbuff.h:3213 [inline]
 batadv_iv_ogm_aggregate_new+0x106/0x4e0 net/batman-adv/bat_iv_ogm.c:558
 batadv_iv_ogm_queue_add net/batman-adv/bat_iv_ogm.c:670 [inline]
 batadv_iv_ogm_schedule_buff+0xea2/0x1520 net/batman-adv/bat_iv_ogm.c:849
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:868 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:861 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x333/0x960 net/batman-adv/bat_iv_ogm.c:1712
 process_one_work+0x991/0x1710 kernel/workqueue.c:2390
 worker_thread+0x669/0x1090 kernel/workqueue.c:2537
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: rcu_preempt kthread starved for 10500 jiffies! g63149 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:28680 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0xc91/0x57d0 kernel/sched/core.c:6622
 schedule+0xde/0x1a0 kernel/sched/core.c:6698
 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1608
 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1807
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 14347 Comm: syz-executor.2 Not tainted 6.3.0-rc2-syzkaller-00006-gfc89d7fb499b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x654/0x13c0 kernel/smp.c:987
Code: 0b 00 85 ed 74 48 48 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 c5 03 e8 13 36 0b 00 f3 90 41 0f b6 04 24 <40> 38 c5 7c 08 84 c0 0f 85 af 0a 00 00 8b 43 08 31 ff 83 e0 01 41
RSP: 0018:ffffc9000dc379e8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b9942f00 RCX: 0000000000000000
RDX: ffff888026bd9d40 RSI: ffffffff81789f7d RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed10173285e1
R13: 0000000000000001 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000555556143400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31322000 CR3: 0000000052743000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1155
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1770 [inline]
 text_poke_bp_batch+0x237/0x770 arch/x86/kernel/alternative.c:1970
 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2158 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168
 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x32f/0x410 kernel/jump_label.c:829
 static_key_disable_cpuslocked+0x156/0x1b0 kernel/jump_label.c:235
 static_key_disable+0x1a/0x20 kernel/jump_label.c:243
 tracepoint_remove_func kernel/tracepoint.c:417 [inline]
 tracepoint_probe_unregister+0x653/0xc50 kernel/tracepoint.c:551
 bpf_raw_tp_link_release+0x55/0xa0 kernel/bpf/syscall.c:3167
 bpf_link_free+0xe6/0x1b0 kernel/bpf/syscall.c:2750
 bpf_link_put+0x165/0x1b0 kernel/bpf/syscall.c:2776
 bpf_link_release+0x37/0x50 kernel/bpf/syscall.c:2785
 __fput+0x27c/0xa90 fs/file_table.c:321
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f06d403dfab
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:00007ffd33fb3450 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f06d403dfab
RDX: 00007f06d3c005f0 RSI: ffffffffffffffff RDI: 0000000000000004
RBP: 00007f06d41ad980 R08: 0000000000000000 R09: 00007f06d3c00000
R10: 00007f06d3c005f8 R11: 0000000000000293 R12: 00000000001c2a13
R13: 00007ffd33fb3550 R14: 00007f06d41abf80 R15: 0000000000000032
 </TASK>

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