syzbot


INFO: rcu detected stall in netlink_release (2)

Status: auto-closed as invalid on 2022/04/13 11:22
Subsystems: wireless
[Documentation on labels]
First crash: 827d, last: 827d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in netlink_release wireless 1 1008d 1008d 0/26 auto-closed as invalid on 2021/10/14 21:29
upstream INFO: rcu detected stall in netlink_release (3) wireless 1 638d 638d 0/26 auto-closed as invalid on 2022/09/20 00:08
upstream BUG: soft lockup in netlink_release kvm 1 725d 725d 0/26 auto-closed as invalid on 2022/06/25 01:57

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P16505/1:b..l
	(detected by 1, t=10502 jiffies, g=365505, q=123)
task:syz-executor.5  state:R  running task     stack:28144 pid:16505 ppid:  3789 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xa9a/0x4900 kernel/sched/core.c:6253
 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6668
 irqentry_exit+0x31/0x80 kernel/entry/common.c:425
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:net_generic include/net/netns/generic.h:46 [inline]
RIP: 0010:hwsim_net_get_wmediumd drivers/net/wireless/mac80211_hwsim.c:286 [inline]
RIP: 0010:mac80211_hwsim_netlink_notify+0x5d8/0xb20 drivers/net/wireless/mac80211_hwsim.c:4282
Code: 56 32 fc 45 85 ed 0f 84 f0 02 00 00 e8 21 54 32 fc 49 8d 3c dc 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 90 04 00 00 4d 8b 24 dc e8 f9 b5 1d fc 31 ff 89 c3 89 c6 e8
RSP: 0018:ffffc9000c3efb68 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000014 RCX: 0000000000000000
RDX: 1ffff1100f692a14 RSI: ffffffff854522cf RDI: ffff88807b4950a0
RBP: 0000000000003008 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff854522c1 R11: 0000000000000000 R12: ffff88807b495000
R13: 0000000000000001 R14: ffffc9000c3efbc8 R15: 0000000000000000
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:84
 blocking_notifier_call_chain kernel/notifier.c:319 [inline]
 blocking_notifier_call_chain+0x67/0x90 kernel/notifier.c:307
 netlink_release+0xcb6/0x1db0 net/netlink/af_netlink.c:788
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1318
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fcb12af6afb
RSP: 002b:00007ffd16a4ad00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fcb12af6afb
RDX: 00007fcb12c5c898 RSI: ffffffffffffffff RDI: 0000000000000006
RBP: 00007fcb12c58960 R08: 0000000000000000 R09: 00007fcb12c5c8a0
R10: 00007ffd16a4ae00 R11: 0000000000000293 R12: 0000000000261d51
R13: 00007ffd16a4ae00 R14: 00007fcb12c57030 R15: 0000000000000032
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10498 jiffies! g365505 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=183039
rcu: rcu_preempt kthread starved for 10499 jiffies! g365505 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28608 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xa9a/0x4900 kernel/sched/core.c:6253
 schedule+0xd2/0x260 kernel/sched/core.c:6326
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1955
 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2128
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
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: 16522 Comm: syz-executor.1 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:lock_release+0x3d2/0x720 kernel/locking/lockdep.c:5660
Code: 00 0f 85 29 02 00 00 48 c7 c7 00 13 ac 89 e8 b5 28 ec 07 b8 ff ff ff ff 65 0f c1 05 68 ec a5 7e 83 f8 01 0f 85 8d 01 00 00 9c <58> f6 c4 02 0f 85 78 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48
RSP: 0018:ffffc90000007c40 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 2098a12076864b7e RCX: ffffc90000007c98
RDX: 1ffff110099a24ea RSI: 0000000000010204 RDI: 0000000000000000
RBP: 1ffff92000000f8b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000003
R13: 0000000000000004 R14: ffff88804cd12758 R15: ffff88804cd11d00
FS:  00007fd5be909700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5be909718 CR3: 000000002db72000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x16/0x70 kernel/locking/spinlock.c:194
 debug_object_activate+0x287/0x3e0 lib/debugobjects.c:689
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer+0x27/0x3e0 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1702 [inline]
 __hrtimer_run_queues+0xb02/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194
Code: 74 24 10 e8 4a 03 11 f8 48 89 ef e8 02 79 11 f8 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 <e8> 43 43 04 f8 65 8b 05 cc e8 b6 76 85 c0 74 0a 5b 5d c3 e8 90 2f
RSP: 0018:ffffc9000c3bf1e8 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1ffd41e
RDX: 0000000000000000 RSI: 0000000000000202 RDI: 0000000000000001
RBP: ffff88807ba42ae8 R08: 0000000000000001 R09: ffffffff8ffa2abf
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88807ba42ae8 R14: 0000000000000246 R15: ffff88807ba42800
 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
 taprio_change+0x2f0c/0x4050 net/sched/sch_taprio.c:1606
 taprio_init+0x52e/0x670 net/sched/sch_taprio.c:1738
 qdisc_create.constprop.0+0x44a/0x10f0 net/sched/sch_api.c:1253
 tc_modify_qdisc+0x4c5/0x1980 net/sched/sch_api.c:1660
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5592
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496
 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:0x7fd5bfff6eb9
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:00007fd5be909168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd5c010a1d0 RCX: 00007fd5bfff6eb9
RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004
RBP: 00007fd5c005108d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd7f3a21ef R14: 00007fd5be909300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	56                   	push   %rsi
   1:	32 fc                	xor    %ah,%bh
   3:	45 85 ed             	test   %r13d,%r13d
   6:	0f 84 f0 02 00 00    	je     0x2fc
   c:	e8 21 54 32 fc       	callq  0xfc325432
  11:	49 8d 3c dc          	lea    (%r12,%rbx,8),%rdi
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
  26:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
* 2a:	0f 85 90 04 00 00    	jne    0x4c0 <-- trapping instruction
  30:	4d 8b 24 dc          	mov    (%r12,%rbx,8),%r12
  34:	e8 f9 b5 1d fc       	callq  0xfc1db632
  39:	31 ff                	xor    %edi,%edi
  3b:	89 c3                	mov    %eax,%ebx
  3d:	89 c6                	mov    %eax,%esi
  3f:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/13 11:21 net-next-old fe8152b38d3a 44d1319a .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in netlink_release
* Struck through repros no longer work on HEAD.