[ 10.669349][ T204] ip (204) used greatest stack depth: 24480 bytes left [ 10.669369][ T204] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.669371][ T204] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 204, name: ip [ 10.669373][ T204] preempt_count: 2, expected: 0 [ 10.669374][ T204] RCU nest depth: 0, expected: 0 [ 10.669375][ T204] locks held by ip/204: 5, last CPU#3: [ 10.669377][ T204] #0: ffffffff972167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.669388][ T204] #1: ffffffff9737ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.669393][ T204] #2: ffffffff9737de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.669397][ T204] #3: ffffffff9729d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.669401][ T204] #4: ffffffff9729d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.669405][ T204] irq event stamp: 22892 [ 10.669406][ T204] hardirqs last enabled at (22891): [] __down_trylock_console_sem+0x86/0xa0 [ 10.669409][ T204] hardirqs last disabled at (22892): [] console_emit_next_record+0x3d4/0x4c0 [ 10.669411][ T204] softirqs last enabled at (21752): [] handle_softirqs+0x67c/0x900 [ 10.669413][ T204] softirqs last disabled at (20751): [] __irq_exit_rcu+0x145/0x1c0 [ 10.669416][ T204] Preemption disabled at: [ 10.669416][ T204] [<0000000000000000>] 0x0 [ 10.669423][ T204] CPU: 3 UID: 0 PID: 204 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.669427][ T204] Tainted: [W]=WARN [ 10.669428][ T204] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.669429][ T204] Call Trace: [ 10.669431][ T204] [ 10.669433][ T204] dump_stack_lvl+0x6f/0xa0 [ 10.669439][ T204] __might_resched.cold+0x1fe/0x2c1 [ 10.669444][ T204] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.669448][ T204] ? __kmalloc_noprof+0xdb/0x760 [ 10.669453][ T204] __kmalloc_noprof+0x443/0x760 [ 10.669454][ T204] ? alloc_buf.isra.0+0x4b/0x260 [ 10.669461][ T204] ? do_raw_spin_unlock+0x59/0x250 [ 10.669464][ T204] alloc_buf.isra.0+0x4b/0x260 [ 10.669468][ T204] put_chars+0x1e1/0x2f0 [ 10.669470][ T204] ? __send_to_port+0x420/0x420 [ 10.669472][ T204] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.669475][ T204] ? validate_chain+0x38b/0xc20 [ 10.669481][ T204] hvc_console_print+0x292/0x780 [ 10.669488][ T204] ? hvc_write+0x3a0/0x3a0 [ 10.669491][ T204] ? rcu_is_watching+0x16/0xd0 [ 10.669493][ T204] ? lock_acquire+0x13c/0x160 [ 10.669497][ T204] console_emit_next_record+0x22f/0x4c0 [ 10.669501][ T204] ? devkmsg_read+0x4b0/0x4b0 [ 10.669503][ T204] ? console_flush_one_record+0x106/0x710 [ 10.669506][ T204] ? rcu_is_watching+0x16/0xd0 [ 10.669508][ T204] ? lock_acquire+0x13c/0x160 [ 10.669512][ T204] console_flush_one_record+0x46f/0x710 [ 10.669516][ T204] ? console_emit_next_record+0x4c0/0x4c0 [ 10.669518][ T204] ? __lock_acquire+0x518/0xc20 [ 10.669523][ T204] console_unlock+0xee/0x1f0 [ 10.669526][ T204] ? console_flush_one_record+0x710/0x710 [ 10.669528][ T204] ? rcu_is_watching+0x16/0xd0 [ 10.669530][ T204] ? lock_acquire+0xe0/0x160 [ 10.669533][ T204] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.669535][ T204] ? vprintk_emit+0x320/0x3e0 [ 10.669538][ T204] vprintk_emit+0x37c/0x3e0 [ 10.669541][ T204] ? wake_up_klogd_work_func+0x90/0x90 [ 10.669544][ T204] ? __lock_acquire+0x518/0xc20 [ 10.669548][ T204] _printk+0xc7/0x100 [ 10.669551][ T204] ? snapshot_read.cold+0x21/0x21 [ 10.669554][ T204] ? do_raw_spin_lock+0x131/0x280 [ 10.669557][ T204] ? __rwlock_init+0x150/0x150 [ 10.669560][ T204] ? do_raw_spin_lock+0x131/0x280 [ 10.669563][ T204] do_exit.cold+0x82/0x9c [ 10.669567][ T204] ? exit_notify+0x890/0x890 [ 10.669569][ T204] ? __lock_release.isra.0+0x69/0x1a0 [ 10.669571][ T204] ? rcu_is_watching+0x16/0xd0 [ 10.669575][ T204] do_group_exit+0xb8/0x370 [ 10.669578][ T204] __x64_sys_exit_group+0x3c/0x50 [ 10.669580][ T204] x64_sys_call+0x1567/0x1570 [ 10.669582][ T204] do_syscall_64+0xff/0x530 [ 10.669586][ T204] ? irq_exit_rcu+0x1a/0x30 [ 10.669589][ T204] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.669591][ T204] RIP: 0033:0x7f5d7b8a81b8 [ 10.669593][ T204] Code: Unable to access opcode bytes at 0x7f5d7b8a818e. [ 10.669595][ T204] RSP: 002b:00007ffc4ee5c338 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.669597][ T204] RAX: ffffffffffffffda RBX: 00007f5d7b9d8f88 RCX: 00007f5d7b8a81b8 [ 10.669598][ T204] RDX: 00007f5d7b5f2fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.669599][ T204] RBP: 00007ffc4ee5c390 R08: 0000000000000000 R09: 0000000000000050 [ 10.669600][ T204] R10: 00007ffc4ee5c150 R11: 0000000000000246 R12: 0000000000000001 [ 10.669601][ T204] R13: 0000000000000000 R14: 00007f5d7b9d7680 R15: 00007f5d7b9d8fa0 [ 10.669608][ T204] [ 10.815298][ T207] ip (207) used greatest stack depth: 24352 bytes left [ 11.163486][ T219] link0: entered promiscuous mode [ 12.166811][ T219] link0: left promiscuous mode [ 12.166897][ T219] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.166899][ T219] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 219, name: tcpdump [ 12.166901][ T219] preempt_count: 1, expected: 0 [ 12.166902][ T219] RCU nest depth: 0, expected: 0 [ 12.166903][ T219] locks held by tcpdump/219: 6, last CPU#1: [ 12.166905][ T219] #0: ff1100000fa508c0 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 12.166917][ T219] #1: ffffffff97b1b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 12.166923][ T219] #2: ffffffff9737ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.166928][ T219] #3: ffffffff9737de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.166932][ T219] #4: ffffffff9729d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.166936][ T219] #5: ffffffff9729d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.166940][ T219] irq event stamp: 62164 [ 12.166941][ T219] hardirqs last enabled at (62163): [] __down_trylock_console_sem+0x86/0xa0 [ 12.166944][ T219] hardirqs last disabled at (62164): [] console_emit_next_record+0x3d4/0x4c0 [ 12.166946][ T219] softirqs last enabled at (61936): [] packet_setsockopt+0xcdf/0x21e0 [ 12.166948][ T219] softirqs last disabled at (61934): [] release_sock+0x21/0x240 [ 12.166951][ T219] Preemption disabled at: [ 12.166951][ T219] [] vprintk_emit+0x31b/0x3e0 [ 12.166957][ T219] CPU: 1 UID: 0 PID: 219 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.166960][ T219] Tainted: [W]=WARN [ 12.166961][ T219] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.166963][ T219] Call Trace: [ 12.166965][ T219] [ 12.166966][ T219] dump_stack_lvl+0x6f/0xa0 [ 12.166972][ T219] ? vprintk_emit+0x31b/0x3e0 [ 12.166974][ T219] __might_resched.cold+0x1fe/0x2c1 [ 12.166979][ T219] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.166983][ T219] ? __kmalloc_noprof+0xdb/0x760 [ 12.166988][ T219] __kmalloc_noprof+0x443/0x760 [ 12.166990][ T219] ? alloc_buf.isra.0+0x4b/0x260 [ 12.166996][ T219] ? do_raw_spin_unlock+0x59/0x250 [ 12.166999][ T219] alloc_buf.isra.0+0x4b/0x260 [ 12.167003][ T219] put_chars+0x1e1/0x2f0 [ 12.167005][ T219] ? __send_to_port+0x420/0x420 [ 12.167006][ T219] ? check_prev_add+0xef/0xe90 [ 12.167011][ T219] ? validate_chain+0x34a/0xc20 [ 12.167015][ T219] hvc_console_print+0x292/0x780 [ 12.167019][ T219] ? mark_usage+0x61/0x170 [ 12.167021][ T219] ? __lock_acquire+0x518/0xc20 [ 12.167023][ T219] ? __lock_acquire+0x518/0xc20 [ 12.167027][ T219] ? hvc_write+0x3a0/0x3a0 [ 12.167029][ T219] ? lock_acquire.part.0+0xd4/0x280 [ 12.167033][ T219] ? lock_acquire+0x13c/0x160 [ 12.167037][ T219] console_emit_next_record+0x22f/0x4c0 [ 12.167042][ T219] ? devkmsg_read+0x4b0/0x4b0 [ 12.167043][ T219] ? console_flush_one_record+0x106/0x710 [ 12.167047][ T219] ? rcu_is_watching+0x16/0xd0 [ 12.167050][ T219] ? lock_acquire+0x13c/0x160 [ 12.167054][ T219] console_flush_one_record+0x46f/0x710 [ 12.167058][ T219] ? console_emit_next_record+0x4c0/0x4c0 [ 12.167060][ T219] ? __lock_acquire+0x518/0xc20 [ 12.167065][ T219] console_unlock+0xee/0x1f0 [ 12.167068][ T219] ? console_flush_one_record+0x710/0x710 [ 12.167070][ T219] ? rcu_is_watching+0x16/0xd0 [ 12.167072][ T219] ? lock_acquire+0xe0/0x160 [ 12.167075][ T219] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.167077][ T219] ? vprintk_emit+0x320/0x3e0 [ 12.167080][ T219] vprintk_emit+0x37c/0x3e0 [ 12.167083][ T219] ? wake_up_klogd_work_func+0x90/0x90 [ 12.167086][ T219] ? __lock_acquire+0x518/0xc20 [ 12.167090][ T219] _printk+0xc7/0x100 [ 12.167093][ T219] ? snapshot_read.cold+0x21/0x21 [ 12.167095][ T219] ? lock_acquire.part.0+0xd4/0x280 [ 12.167098][ T219] ? rcu_is_watching+0x16/0xd0 [ 12.167100][ T219] ? netdev_name+0x43/0x60 [ 12.167104][ T219] ? __netdev_printk+0x17f/0x1d0 [ 12.167108][ T219] netdev_info+0xe2/0x116 [ 12.167111][ T219] ? netdev_notice+0x120/0x120 [ 12.167112][ T219] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 12.167115][ T219] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 12.167119][ T219] ? ww_mutex_lock+0x160/0x160 [ 12.167121][ T219] ? lock_acquire.part.0+0xd4/0x280 [ 12.167123][ T219] ? ref_tracker_alloc+0x430/0x430 [ 12.167126][ T219] ? packet_release+0x363/0xc40 [ 12.167128][ T219] ? __fput+0x36c/0xad0 [ 12.167132][ T219] ? mutex_is_locked+0x1c/0x50 [ 12.167141][ T219] __dev_set_promiscuity.cold+0x7a/0x104 [ 12.167144][ T219] netif_set_promiscuity+0x4c/0xc0 [ 12.167149][ T219] dev_set_promiscuity+0xa1/0x230 [ 12.167152][ T219] packet_release+0x4cb/0xc40 [ 12.167157][ T219] ? packet_set_ring+0x1740/0x1740 [ 12.167160][ T219] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 12.167165][ T219] __sock_release+0xb8/0x280 [ 12.167168][ T219] sock_close+0x18/0x20 [ 12.167170][ T219] __fput+0x36c/0xad0 [ 12.167175][ T219] fput_close_sync+0xde/0x1b0 [ 12.167177][ T219] ? alloc_file_clone+0xe0/0xe0 [ 12.167180][ T219] ? do_raw_spin_unlock+0x59/0x250 [ 12.167184][ T219] __x64_sys_close+0x8b/0xf0 [ 12.167186][ T219] do_syscall_64+0xff/0x530 [ 12.167189][ T219] ? exc_page_fault+0xee/0x100 [ 12.167192][ T219] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.167194][ T219] RIP: 0033:0x7fa67351554e [ 12.167199][ T219] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 12.167200][ T219] RSP: 002b:00007ffe9a10d700 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 12.167203][ T219] RAX: ffffffffffffffda RBX: 000055c52bccd690 RCX: 00007fa67351554e [ 12.167204][ T219] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 12.167205][ T219] RBP: 00007ffe9a10d710 R08: 0000000000000000 R09: 0000000000000000 [ 12.167206][ T219] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 12.167207][ T219] R13: 0000000000000000 R14: 000055c52407e760 R15: 0000000000000001 [ 12.167213][ T219]