syzbot


INFO: rcu detected stall in lock_is_held_type (3)

Status: auto-closed as invalid on 2021/10/29 13:54
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 485d, last: 485d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in lock_is_held_type (2) 4 684d 724d 0/24 auto-closed as invalid on 2021/04/13 14:40
linux-4.19 INFO: rcu detected stall in lock_is_held_type 2 973d 1049d 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 795d 795d 0/1 auto-closed as invalid on 2021/01/22 12:51
upstream INFO: rcu detected stall in lock_is_held_type 2 1039d 1072d 0/24 auto-closed as invalid on 2020/04/23 13:55
linux-4.19 BUG: soft lockup in lock_is_held_type 3 93d 187d 0/1 upstream: reported on 2022/05/24 16:24
linux-4.14 BUG: soft lockup in lock_is_held_type 1 244d 244d 0/1 auto-closed as invalid on 2022/07/26 21:52

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (1 GPs behind) idle=5da/1/0x4000000000000000 softirq=106567/106568 fqs=3 
	(t=10501 jiffies g=202857 q=19)
rcu: rcu_preempt kthread starved for 10496 jiffies! g202857 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:29096 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4683 [inline]
 __schedule+0x93a/0x26f0 kernel/sched/core.c:5940
 schedule+0xd3/0x270 kernel/sched/core.c:6019
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1879
 rcu_gp_fqs_loop kernel/rcu/tree.c:1996 [inline]
 rcu_gp_kthread+0xd34/0x1980 kernel/rcu/tree.c:2169
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 30640 Comm: syz-executor.0 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:110
Code: c7 c0 86 ec 8e e8 78 02 88 00 eb b0 66 0f 1f 44 00 00 be 01 00 00 00 e9 e6 39 2c 00 cc cc cc cc cc cc 89 ff 89 b7 00 c0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 48
RSP: 0018:ffffc90000007ae8 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff8b30ba60 RCX: 1ffff11017383f04
RDX: 1ffffffff166174c RSI: 0000000000000000 RDI: 00000000000000b0
RBP: 0000000000000000 R08: ffffffff8eed3018 R09: ffffffff8eed300f
R10: ffffffff8eed3017 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f8f7ffc3700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6d98256718 CR3: 000000006fe33000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 apic_eoi arch/x86/include/asm/apic.h:399 [inline]
 ack_APIC_irq arch/x86/include/asm/apic.h:445 [inline]
 __sysvec_apic_timer_interrupt+0x79/0x530 arch/x86/kernel/apic/apic.c:1104
 sysvec_apic_timer_interrupt+0x40/0xc0 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_is_held_type+0xfd/0x140 kernel/locking/lockdep.c:5673
Code: 00 00 b8 ff ff ff ff 65 0f c1 05 7e ab d7 76 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:ffffc90000007bd0 EFLAGS: 00000292
RAX: 0000000000000046 RBX: 0000000000000002 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000102 RDI: 0000000000000000
RBP: ffffffff8b978f40 R08: 0000000000000000 R09: ffffffff8d6c3fd7
R10: fffffbfff1ad87fa R11: 0000000000000000 R12: ffff88808edd4040
R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88808edd4a58
 lock_is_held include/linux/lockdep.h:283 [inline]
 rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125
 trace_lock_release include/trace/events/lock.h:58 [inline]
 lock_release+0x522/0x720 kernel/locking/lockdep.c:5636
 rcu_lock_release include/linux/rcupdate.h:272 [inline]
 rcu_read_unlock include/linux/rcupdate.h:720 [inline]
 netif_receive_skb_list_internal+0x83a/0xd80 net/core/dev.c:5752
 netif_receive_skb_list net/core/dev.c:5803 [inline]
 netif_receive_skb_list+0x54/0x5b0 net/core/dev.c:5793
 ieee80211_rx_napi+0x34c/0x3d0 net/mac80211/rx.c:4927
 ieee80211_rx include/net/mac80211.h:4552 [inline]
 ieee80211_tasklet_handler+0xd4/0x130 net/mac80211/main.c:235
 tasklet_action_common.constprop.0+0x201/0x2e0 kernel/softirq.c:783
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:finish_task_switch.isra.0+0x23c/0xa50 kernel/sched/core.c:4557
Code: 8b 3a 4c 89 e7 48 c7 02 00 00 00 00 ff d1 4d 85 ff 75 bf 4c 89 e7 e8 93 f1 dd 07 e8 be e6 2b 00 fb 65 48 8b 1c 25 00 f0 01 00 <48> 8d bb 10 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1
RSP: 0018:ffffc90017d676e0 EFLAGS: 00000202
RAX: 0000000000000943 RBX: ffff88808edd4040 RCX: 1ffffffff1fa76da
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90017d67720 R08: 0000000000000001 R09: ffffffff8fcda9a7
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b9c51b80
R13: ffff888079d440c0 R14: 0000000000000000 R15: ffff8880b9c51b98
 context_switch kernel/sched/core.c:4686 [inline]
 __schedule+0x942/0x26f0 kernel/sched/core.c:5940
 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6100
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
 unwind_next_frame+0xee1/0x1ce0 arch/x86/kernel/unwind_orc.c:611
 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc mm/kasan/common.c:513 [inline]
 ____kasan_kmalloc mm/kasan/common.c:472 [inline]
 __kasan_kmalloc+0x98/0xc0 mm/kasan/common.c:522
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 kmem_cache_alloc_trace+0x1e4/0x480 mm/slab.c:3575
 kmalloc include/linux/slab.h:591 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 io_init_wq_offload fs/io_uring.c:7946 [inline]
 io_uring_alloc_task_context+0x49f/0x6a0 fs/io_uring.c:7984
 io_sq_offload_create fs/io_uring.c:8084 [inline]
 io_uring_create fs/io_uring.c:9699 [inline]
 io_uring_setup+0x1ed1/0x2cd0 fs/io_uring.c:9785
 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+0x44/0xae
RIP: 0033:0x4665e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8f7ffc3188 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 00000000000031e0
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffcd83b42ef R14: 00007f8f7ffc3300 R15: 0000000000022000
NMI backtrace for cpu 1
CPU: 1 PID: 30638 Comm: syz-executor.4 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:342
 print_cpu_stall kernel/rcu/tree_stall.h:625 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:700 [inline]
 rcu_pending kernel/rcu/tree.c:3922 [inline]
 rcu_sched_clock_irq.cold+0x9f/0x747 kernel/rcu/tree.c:2641
 update_process_times+0x16d/0x200 kernel/time/timer.c:1783
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x330/0xa00 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x40/0xc0 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:deref_stack_reg+0xe/0x150 arch/x86/kernel/unwind_orc.c:351
Code: 87 00 48 8b 14 24 e9 48 ff ff ff 48 89 0c 24 e8 a8 11 87 00 48 8b 0c 24 eb 9d 66 90 48 b8 00 00 00 00 00 fc ff df 41 55 41 54 <49> 89 fc 55 48 89 f5 53 48 89 d3 48 89 fa 48 c1 ea 03 48 83 ec 08
RSP: 0018:ffffc90000fd8748 EFLAGS: 00000287
RAX: dffffc0000000000 RBX: 1ffff920001fb0f4 RCX: 0000000000000000
RDX: ffffc90000fd8878 RSI: ffffc90017d47f48 RDI: ffffc90000fd8838
RBP: 0000000000000001 R08: ffffffff8e7c7cc0 R09: 0000000000000001
R10: fffff520001fb112 R11: 0000000000086088 R12: ffffc90017d47f58
R13: ffffc90000fd886d R14: ffffc90000fd8838 R15: ffffc90000fd886c
 unwind_next_frame+0x13e0/0x1ce0 arch/x86/kernel/unwind_orc.c:587
 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x81/0xa0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook mm/slab.h:519 [inline]
 slab_alloc_node mm/slab.c:3261 [inline]
 kmem_cache_alloc_node+0x31d/0x590 mm/slab.c:3599
 __alloc_skb+0x20b/0x340 net/core/skbuff.c:414
 alloc_skb include/linux/skbuff.h:1112 [inline]
 mrp_pdu_init net/802/mrp.c:313 [inline]
 mrp_pdu_append_vecattr_event+0x80a/0x10b0 net/802/mrp.c:412
 mrp_attr_event+0x191/0x280 net/802/mrp.c:507
 mrp_mad_event net/802/mrp.c:587 [inline]
 mrp_join_timer+0x5a/0xc0 net/802/mrp.c:604
 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1419
 expire_timers kernel/time/timer.c:1464 [inline]
 __run_timers.part.0+0x675/0xa50 kernel/time/timer.c:1732
 __run_timers kernel/time/timer.c:1713 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1745
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:netlbl_domhsh_hash+0xd9/0x190 net/netlabel/netlabel_domainhash.c:116
Code: 89 c6 e8 0a ed cd f8 85 db 74 40 e8 51 e4 cd f8 49 8d 7c 24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e 94 00 00 00 41 8b 44 24 08 5b 83 e8 01 21
RSP: 0018:ffffc90017d47c40 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc900032a9000
RDX: 1ffff110031797d1 RSI: ffffffff88a6ec7f RDI: ffff888018bcbe88
RBP: 00000000d2483982 R08: 0000000000000000 R09: 0000000000000002
R10: ffffffff88a6eccf R11: 0000000000000000 R12: ffff888018bcbe80
R13: 0000000000000008 R14: ffff88803989c848 R15: dffffc0000000000
 netlbl_domhsh_search+0x2b/0x290 net/netlabel/netlabel_domainhash.c:145
 netlbl_domhsh_search_def net/netlabel/netlabel_domainhash.c:177 [inline]
 netlbl_domhsh_getentry+0x32/0x70 net/netlabel/netlabel_domainhash.c:861
 netlbl_sock_setattr+0x8d/0x350 net/netlabel/netlabel_kapi.c:983
 selinux_netlbl_socket_post_create+0x92/0x160 security/selinux/netlabel.c:401
 selinux_socket_post_create+0x4de/0x7c0 security/selinux/hooks.c:4709
 security_socket_post_create+0x64/0xc0 security/security.c:2173
 __sock_create+0x64a/0x790 net/socket.c:1466
 sock_create net/socket.c:1501 [inline]
 __sys_socket+0xef/0x200 net/socket.c:1543
 __do_sys_socket net/socket.c:1552 [inline]
 __se_sys_socket net/socket.c:1550 [inline]
 __x64_sys_socket+0x6f/0xb0 net/socket.c:1550
 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+0x44/0xae
RIP: 0033:0x4665e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7c03992188 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fffc3fbc6af R14: 00007f7c03992300 R15: 0000000000022000

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/07/31 13:45 upstream c7d102232649 6c236867 .config log report info INFO: rcu detected stall in lock_is_held_type
* Struck through repros no longer work on HEAD.