[ 19.671119][ T365] tun2: deleting peer with id 11, reason 4 [ 19.671207][ T365] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 19.671209][ T365] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 365, name: ovpn-cli [ 19.671211][ T365] preempt_count: 202, expected: 0 [ 19.671212][ T365] RCU nest depth: 0, expected: 0 [ 19.671213][ T365] locks held by ovpn-cli/365: 6, last CPU#0: [ 19.671215][ T365] #0: ff1100000ec940f8 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 19.671228][ T365] #1: ff11000010a1ce68 (&ovpn->lock){+...}-{3:3}, at: ovpn_peer_release_p2p+0x8a/0x2a0 [ovpn] [ 19.671236][ T365] #2: ffffffff90b79cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 19.671242][ T365] #3: ffffffff90b79d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 19.671246][ T365] #4: ffffffff90a99660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 19.671249][ T365] #5: ffffffff90a99560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 19.671253][ T365] irq event stamp: 3977 [ 19.671253][ T365] hardirqs last enabled at (3976): [] __down_trylock_console_sem+0x86/0xa0 [ 19.671256][ T365] hardirqs last disabled at (3977): [] console_emit_next_record+0x3d4/0x4c0 [ 19.671258][ T365] softirqs last enabled at (3964): [] udpv6_destroy_sock+0x73/0x200 [ 19.671261][ T365] softirqs last disabled at (3966): [] ovpn_peer_release_p2p+0x8a/0x2a0 [ovpn] [ 19.671265][ T365] Preemption disabled at: [ 19.671265][ T365] [<0000000000000000>] 0x0 [ 19.671271][ T365] CPU: 0 UID: 0 PID: 365 Comm: ovpn-cli Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 19.671275][ T365] Tainted: [W]=WARN [ 19.671275][ T365] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.671277][ T365] Call Trace: [ 19.671279][ T365] [ 19.671280][ T365] dump_stack_lvl+0x6f/0xa0 [ 19.671286][ T365] __might_resched.cold+0x1fe/0x2c1 [ 19.671291][ T365] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 19.671295][ T365] ? __kmalloc_noprof+0xdb/0x760 [ 19.671300][ T365] __kmalloc_noprof+0x443/0x760 [ 19.671303][ T365] ? alloc_buf.isra.0+0x4b/0x260 [ 19.671308][ T365] ? do_raw_spin_unlock+0x59/0x250 [ 19.671311][ T365] alloc_buf.isra.0+0x4b/0x260 [ 19.671314][ T365] put_chars+0x1e1/0x2f0 [ 19.671317][ T365] ? __send_to_port+0x420/0x420 [ 19.671323][ T365] hvc_console_print+0x292/0x780 [ 19.671330][ T365] ? hvc_write+0x3a0/0x3a0 [ 19.671333][ T365] ? lock_acquire+0x13c/0x160 [ 19.671337][ T365] console_emit_next_record+0x22f/0x4c0 [ 19.671340][ T365] ? devkmsg_read+0x4b0/0x4b0 [ 19.671342][ T365] ? console_flush_one_record+0x106/0x710 [ 19.671345][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671349][ T365] ? lock_acquire+0x13c/0x160 [ 19.671353][ T365] console_flush_one_record+0x46f/0x710 [ 19.671357][ T365] ? console_emit_next_record+0x4c0/0x4c0 [ 19.671358][ T365] ? __lock_acquire+0x518/0xc20 [ 19.671363][ T365] console_unlock+0xee/0x1f0 [ 19.671366][ T365] ? console_flush_one_record+0x710/0x710 [ 19.671368][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671370][ T365] ? lock_acquire+0x60/0x160 [ 19.671374][ T365] ? __down_trylock_console_sem+0x5e/0xa0 [ 19.671375][ T365] ? vprintk_emit+0x320/0x3e0 [ 19.671378][ T365] vprintk_emit+0x37c/0x3e0 [ 19.671382][ T365] ? wake_up_klogd_work_func+0x90/0x90 [ 19.671385][ T365] ? __lock_release.isra.0+0x69/0x1a0 [ 19.671389][ T365] _printk+0xc7/0x100 [ 19.671392][ T365] ? snapshot_read.cold+0x21/0x21 [ 19.671394][ T365] ? try_to_wake_up+0x153/0x1130 [ 19.671397][ T365] ? select_fallback_rq+0x510/0x510 [ 19.671399][ T365] ? netdev_name+0x43/0x60 [ 19.671402][ T365] ? __netdev_printk+0x17f/0x1d0 [ 19.671405][ T365] netdev_info+0xe2/0x116 [ 19.671407][ T365] ? netdev_notice+0x120/0x120 [ 19.671412][ T365] ? __queue_work+0x3ab/0xd30 [ 19.671418][ T365] ovpn_nl_peer_del_notify+0x115/0x503 [ovpn] [ 19.671423][ T365] ? ovpn_nl_key_new_doit.cold+0x24/0x24 [ovpn] [ 19.671426][ T365] ? mark_held_locks+0x40/0x70 [ 19.671429][ T365] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 19.671430][ T365] ? lockdep_hardirqs_on+0x91/0x130 [ 19.671435][ T365] ovpn_peer_remove+0x394/0x640 [ovpn] [ 19.671438][ T365] ? do_raw_spin_lock+0x131/0x280 [ 19.671440][ T365] ? __ovpn_peer_hash_transp_addr+0x650/0x650 [ovpn] [ 19.671443][ T365] ? __rwlock_init+0x150/0x150 [ 19.671448][ T365] ovpn_peer_release_p2p+0x155/0x2a0 [ovpn] [ 19.671451][ T365] ? ovpn_peer_remove+0x640/0x640 [ovpn] [ 19.671455][ T365] ? ovpn_udp_encap_destroy+0xc6/0x280 [ovpn] [ 19.671461][ T365] udpv6_destroy_sock+0xe2/0x200 [ 19.671463][ T365] sk_common_release+0x62/0x310 [ 19.671466][ T365] inet_release+0x10a/0x240 [ 19.671469][ T365] ? fcntl_setlk+0xc80/0xc80 [ 19.671474][ T365] __sock_release+0xb8/0x280 [ 19.671477][ T365] sock_close+0x18/0x20 [ 19.671479][ T365] __fput+0x363/0xac0 [ 19.671482][ T365] ? lockdep_hardirqs_on+0x91/0x130 [ 19.671483][ T365] ? __call_rcu_common.constprop.0+0x3d3/0xa20 [ 19.671485][ T365] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 19.671488][ T365] ? do_raw_spin_unlock+0x59/0x250 [ 19.671491][ T365] task_work_run+0x12b/0x240 [ 19.671493][ T365] ? lockdep_hardirqs_on+0x91/0x130 [ 19.671495][ T365] ? task_work_cancel+0x30/0x30 [ 19.671497][ T365] ? kmem_cache_free+0xf8/0x550 [ 19.671501][ T365] do_exit+0x614/0xdc0 [ 19.671504][ T365] ? exit_notify+0x890/0x890 [ 19.671505][ T365] ? find_held_lock+0x2b/0x80 [ 19.671508][ T365] ? __lock_release.isra.0+0x69/0x1a0 [ 19.671509][ T365] ? __rwlock_init+0x150/0x150 [ 19.671513][ T365] do_group_exit+0xb8/0x370 [ 19.671514][ T365] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 19.671516][ T365] ? lockdep_hardirqs_on+0x91/0x130 [ 19.671517][ T365] ? _raw_spin_unlock_irq+0x28/0x50 [ 19.671519][ T365] ? _raw_spin_unlock_irq+0x33/0x50 [ 19.671521][ T365] get_signal+0x1886/0x1980 [ 19.671526][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671528][ T365] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 19.671531][ T365] ? ptrace_signal+0x600/0x600 [ 19.671532][ T365] ? __switch_to+0x5a3/0xe00 [ 19.671535][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671537][ T365] ? trace_sched_exit_tp+0x9b/0x160 [ 19.671542][ T365] arch_do_signal_or_restart+0xc2/0x3a0 [ 19.671545][ T365] ? get_sigframe_size+0x20/0x20 [ 19.671547][ T365] ? find_held_lock+0x2b/0x80 [ 19.671551][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671553][ T365] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 19.671556][ T365] exit_to_user_mode_loop+0xd5/0x5a0 [ 19.671558][ T365] ? rcu_is_watching+0x16/0xd0 [ 19.671562][ T365] do_syscall_64+0x3e3/0x530 [ 19.671564][ T365] ? exc_page_fault+0xee/0x100 [ 19.671567][ T365] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.671569][ T365] RIP: 0033:0x7fec95c6954e [ 19.671571][ T365] Code: Unable to access opcode bytes at 0x7fec95c69524. [ 19.671572][ T365] RSP: 002b:00007fffff17d7b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000022 [ 19.671574][ T365] RAX: fffffffffffffdfe RBX: 0000000000000000 RCX: 00007fec95c6954e [ 19.671575][ T365] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 19.671576][ T365] RBP: 00007fffff17d7c0 R08: 0000000000000000 R09: 0000000000000000 [ 19.671577][ T365] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffff17dd48 [ 19.671578][ T365] R13: 0000000000000008 R14: 00007fec95f54000 R15: 000000000040bda8 [ 19.671584][ T365] [ 19.678175][ T351] tun1: deleting peer with id 10, reason 4 [ 19.714806][ T321] tun0: deleting peer with id 4, reason 4 [ 19.714807][ T379] tun3: deleting peer with id 12, reason 4 [ 19.715144][ T321] tun0: deleting peer with id 3, reason 4 [ 19.715696][ T321] tun0: deleting peer with id 5, reason 4 [ 19.716000][ T321] tun0: deleting peer with id 1, reason 4 [ 19.716320][ T321] tun0: deleting peer with id 6, reason 4 [ 19.716623][ T321] tun0: deleting peer with id 2, reason 4 [ 21.255591][ T537] ovpn-cli (537) used greatest stack depth: 24064 bytes left [ 21.255606][ T537] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.255608][ T537] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 537, name: ovpn-cli [ 21.255609][ T537] preempt_count: 2, expected: 0 [ 21.255610][ T537] RCU nest depth: 0, expected: 0 [ 21.255611][ T537] locks held by ovpn-cli/537: 5, last CPU#2: [ 21.255613][ T537] #0: ffffffff90a127b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 21.255624][ T537] #1: ffffffff90b79cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.255630][ T537] #2: ffffffff90b79d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.255633][ T537] #3: ffffffff90a99660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.255637][ T537] #4: ffffffff90a99560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 21.255641][ T537] irq event stamp: 33802 [ 21.255642][ T537] hardirqs last enabled at (33801): [] __down_trylock_console_sem+0x86/0xa0 [ 21.255644][ T537] hardirqs last disabled at (33802): [] console_emit_next_record+0x3d4/0x4c0 [ 21.255646][ T537] softirqs last enabled at (30264): [] handle_softirqs+0x67c/0x900 [ 21.255648][ T537] softirqs last disabled at (30257): [] __irq_exit_rcu+0x145/0x1c0 [ 21.255651][ T537] Preemption disabled at: [ 21.255651][ T537] [<0000000000000000>] 0x0 [ 21.255658][ T537] CPU: 2 UID: 0 PID: 537 Comm: ovpn-cli Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.255661][ T537] Tainted: [W]=WARN [ 21.255662][ T537] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.255664][ T537] Call Trace: [ 21.255665][ T537] [ 21.255666][ T537] dump_stack_lvl+0x6f/0xa0 [ 21.255673][ T537] __might_resched.cold+0x1fe/0x2c1 [ 21.255677][ T537] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.255681][ T537] ? __kmalloc_noprof+0xdb/0x760 [ 21.255686][ T537] __kmalloc_noprof+0x443/0x760 [ 21.255689][ T537] ? alloc_buf.isra.0+0x4b/0x260 [ 21.255694][ T537] ? do_raw_spin_unlock+0x59/0x250 [ 21.255697][ T537] alloc_buf.isra.0+0x4b/0x260 [ 21.255700][ T537] put_chars+0x1e1/0x2f0 [ 21.255703][ T537] ? __send_to_port+0x420/0x420 [ 21.255705][ T537] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 21.255710][ T537] ? validate_chain+0x38b/0xc20 [ 21.255715][ T537] hvc_console_print+0x292/0x780 [ 21.255722][ T537] ? hvc_write+0x3a0/0x3a0 [ 21.255724][ T537] ? rcu_is_watching+0x16/0xd0 [ 21.255726][ T537] ? lock_acquire+0x13c/0x160 [ 21.255730][ T537] console_emit_next_record+0x22f/0x4c0 [ 21.255734][ T537] ? devkmsg_read+0x4b0/0x4b0 [ 21.255736][ T537] ? console_flush_one_record+0x106/0x710 [ 21.255739][ T537] ? rcu_is_watching+0x16/0xd0 [ 21.255741][ T537] ? lock_acquire+0x13c/0x160 [ 21.255745][ T537] console_flush_one_record+0x46f/0x710 [ 21.255749][ T537] ? console_emit_next_record+0x4c0/0x4c0 [ 21.255751][ T537] ? __lock_acquire+0x518/0xc20 [ 21.255756][ T537] console_unlock+0xee/0x1f0 [ 21.255759][ T537] ? console_flush_one_record+0x710/0x710 [ 21.255761][ T537] ? rcu_is_watching+0x16/0xd0 [ 21.255763][ T537] ? lock_acquire+0x60/0x160 [ 21.255767][ T537] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.255768][ T537] ? vprintk_emit+0x320/0x3e0 [ 21.255771][ T537] vprintk_emit+0x37c/0x3e0 [ 21.255775][ T537] ? wake_up_klogd_work_func+0x90/0x90 [ 21.255779][ T537] ? __lock_acquire+0x518/0xc20 [ 21.255782][ T537] _printk+0xc7/0x100 [ 21.255786][ T537] ? snapshot_read.cold+0x21/0x21 [ 21.255788][ T537] ? do_raw_spin_lock+0x131/0x280 [ 21.255791][ T537] ? __rwlock_init+0x150/0x150 [ 21.255794][ T537] ? do_raw_spin_lock+0x131/0x280 [ 21.255797][ T537] do_exit.cold+0x82/0x9c [ 21.255801][ T537] ? exit_notify+0x890/0x890 [ 21.255802][ T537] ? __lock_release.isra.0+0x69/0x1a0 [ 21.255805][ T537] ? rcu_is_watching+0x16/0xd0 [ 21.255809][ T537] do_group_exit+0xb8/0x370 [ 21.255812][ T537] __x64_sys_exit_group+0x3c/0x50 [ 21.255814][ T537] x64_sys_call+0x1567/0x1570 [ 21.255816][ T537] do_syscall_64+0xff/0x530 [ 21.255820][ T537] ? exc_page_fault+0xee/0x100 [ 21.255823][ T537] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.255825][ T537] RIP: 0033:0x7f6e1e34c1b8 [ 21.255827][ T537] Code: Unable to access opcode bytes at 0x7f6e1e34c18e. [ 21.255828][ T537] RSP: 002b:00007ffe66934f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.255831][ T537] RAX: ffffffffffffffda RBX: 00007f6e1e47cf88 RCX: 00007f6e1e34c1b8 [ 21.255832][ T537] RDX: 00007f6e1e2481c8 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 21.255833][ T537] RBP: 00007ffe66934fc0 R08: 0000000000000000 R09: 0000000000000000 [ 21.255834][ T537] R10: 00007f6e1e4aa1a0 R11: 0000000000000246 R12: 0000000000000001 [ 21.255835][ T537] R13: 0000000000000000 R14: 00007f6e1e47b680 R15: 00007f6e1e47cfa0 [ 21.255841][ T537]