[ 11.720320][ T218] link0: entered promiscuous mode [ 11.720410][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.720413][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: tcpdump [ 11.720416][ T218] preempt_count: 1, expected: 0 [ 11.720417][ T218] RCU nest depth: 0, expected: 0 [ 11.720419][ T218] locks held by tcpdump/218: 5, last CPU#1: [ 11.720421][ T218] #0: ffffffffb351b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 11.720436][ T218] #1: ffffffffb2d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.720444][ T218] #2: ffffffffb2d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.720451][ T218] #3: ffffffffb2c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.720456][ T218] #4: ffffffffb2c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.720467][ T218] irq event stamp: 44436 [ 11.720469][ T218] hardirqs last enabled at (44435): [] __down_trylock_console_sem+0x86/0xa0 [ 11.720473][ T218] hardirqs last disabled at (44436): [] console_emit_next_record+0x3d4/0x4c0 [ 11.720477][ T218] softirqs last enabled at (44408): [] packet_do_bind+0x4b2/0xc80 [ 11.720480][ T218] softirqs last disabled at (44406): [] release_sock+0x21/0x240 [ 11.720485][ T218] Preemption disabled at: [ 11.720486][ T218] [] vprintk_emit+0x31b/0x3e0 [ 11.720493][ T218] CPU: 1 UID: 0 PID: 218 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.720498][ T218] Tainted: [W]=WARN [ 11.720499][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.720502][ T218] Call Trace: [ 11.720504][ T218] [ 11.720506][ T218] dump_stack_lvl+0x6f/0xa0 [ 11.720514][ T218] ? vprintk_emit+0x31b/0x3e0 [ 11.720517][ T218] __might_resched.cold+0x1fe/0x2c1 [ 11.720523][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.720529][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 11.720535][ T218] __kmalloc_noprof+0x443/0x760 [ 11.720538][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 11.720548][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 11.720552][ T218] alloc_buf.isra.0+0x4b/0x260 [ 11.720558][ T218] put_chars+0x1e1/0x2f0 [ 11.720562][ T218] ? __send_to_port+0x420/0x420 [ 11.720570][ T218] ? validate_chain+0x34a/0xc20 [ 11.720576][ T218] hvc_console_print+0x292/0x780 [ 11.720582][ T218] ? mark_usage+0x61/0x170 [ 11.720585][ T218] ? __lock_acquire+0x518/0xc20 [ 11.720588][ T218] ? __lock_acquire+0x518/0xc20 [ 11.720595][ T218] ? hvc_write+0x3a0/0x3a0 [ 11.720599][ T218] ? console_emit_next_record+0x1df/0x4c0 [ 11.720604][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.720615][ T218] ? lock_acquire+0x13c/0x160 [ 11.720622][ T218] console_emit_next_record+0x22f/0x4c0 [ 11.720628][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 11.720631][ T218] ? console_flush_one_record+0x106/0x710 [ 11.720636][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.720639][ T218] ? lock_acquire+0x13c/0x160 [ 11.720646][ T218] console_flush_one_record+0x46f/0x710 [ 11.720653][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 11.720656][ T218] ? __lock_acquire+0x518/0xc20 [ 11.720666][ T218] console_unlock+0xee/0x1f0 [ 11.720670][ T218] ? console_flush_one_record+0x710/0x710 [ 11.720673][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.720676][ T218] ? lock_acquire+0xe0/0x160 [ 11.720682][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.720685][ T218] ? vprintk_emit+0x320/0x3e0 [ 11.720690][ T218] vprintk_emit+0x37c/0x3e0 [ 11.720696][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 11.720698][ T218] ? kasan_save_stack+0x3d/0x50 [ 11.720702][ T218] ? kasan_save_track+0x14/0x30 [ 11.720704][ T218] ? __kasan_kmalloc+0x7b/0x90 [ 11.720706][ T218] ? __kmalloc_cache_noprof+0x29a/0x620 [ 11.720708][ T218] ? packet_mc_add+0x13b/0x890 [ 11.720710][ T218] ? packet_setsockopt+0x1953/0x21e0 [ 11.720713][ T218] ? do_sock_setsockopt+0x164/0x3b0 [ 11.720719][ T218] _printk+0xc7/0x100 [ 11.720724][ T218] ? snapshot_read.cold+0x21/0x21 [ 11.720732][ T218] ? netdev_name+0x43/0x60 [ 11.720737][ T218] ? __netdev_printk+0x17f/0x1d0 [ 11.720743][ T218] netdev_info+0xe2/0x116 [ 11.720747][ T218] ? netdev_notice+0x120/0x120 [ 11.720760][ T218] ? mutex_is_locked+0x1c/0x50 [ 11.720765][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 11.720771][ T218] netif_set_promiscuity+0x4c/0xc0 [ 11.720777][ T218] dev_set_promiscuity+0xa1/0x230 [ 11.720779][ T218] ? __asan_memset+0x27/0x50 [ 11.720785][ T218] packet_mc_add+0x54e/0x890 [ 11.720788][ T218] ? __might_fault+0x97/0x140 [ 11.720793][ T218] ? __might_fault+0x97/0x140 [ 11.720797][ T218] ? _copy_from_user+0x42/0x90 [ 11.720804][ T218] packet_setsockopt+0x1953/0x21e0 [ 11.720810][ T218] ? packet_bind+0x170/0x170 [ 11.720817][ T218] ? do_sock_getsockopt+0x7bb/0xb50 [ 11.720826][ T218] ? sock_poll+0x6b0/0x6b0 [ 11.720832][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.720835][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.720843][ T218] do_sock_setsockopt+0x164/0x3b0 [ 11.720848][ T218] ? put_user_ifreq+0x90/0x90 [ 11.720851][ T218] ? __sys_bind+0x19f/0x260 [ 11.720856][ T218] ? __sys_bind_socket+0xa0/0xa0 [ 11.720867][ T218] __sys_setsockopt+0xe4/0x150 [ 11.720875][ T218] __x64_sys_setsockopt+0xbd/0x180 [ 11.720878][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.720881][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 11.720885][ T218] ? do_syscall_64+0xa6/0x530 [ 11.720889][ T218] do_syscall_64+0xff/0x530 [ 11.720892][ T218] ? exc_page_fault+0xee/0x100 [ 11.720896][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.720899][ T218] RIP: 0033:0x7f5bbbaab2de [ 11.720905][ T218] Code: 55 48 63 c9 48 63 ff 45 89 c9 48 89 e5 48 83 ec 08 6a 2c e8 94 72 f7 ff c9 c3 66 90 f3 0f 1e fa 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 0a c3 66 0f 1f 84 00 00 00 00 00 48 8b 15 e1 [ 11.720908][ T218] RSP: 002b:00007ffe4dfcccf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 11.720911][ T218] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f5bbbaab2de [ 11.720913][ T218] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000005 [ 11.720915][ T218] RBP: 00007ffe4dfcce30 R08: 0000000000000010 R09: 000055cece736530 [ 11.720916][ T218] R10: 00007ffe4dfccd70 R11: 0000000000000246 R12: 0000000000000001 [ 11.720918][ T218] R13: 000055cece736918 R14: 000055cece736690 R15: 0000000000000000 [ 11.720931][ T218] [ 12.764945][ T218] link0: left promiscuous mode [ 12.765053][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.765055][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: tcpdump [ 12.765057][ T218] preempt_count: 1, expected: 0 [ 12.765057][ T218] RCU nest depth: 0, expected: 0 [ 12.765058][ T218] locks held by tcpdump/218: 6, last CPU#0: [ 12.765061][ T218] #0: ff11000016a66cc0 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 12.765073][ T218] #1: ffffffffb351b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 12.765079][ T218] #2: ffffffffb2d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.765084][ T218] #3: ffffffffb2d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.765088][ T218] #4: ffffffffb2c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.765092][ T218] #5: ffffffffb2c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.765096][ T218] irq event stamp: 53520 [ 12.765097][ T218] hardirqs last enabled at (53519): [] __down_trylock_console_sem+0x86/0xa0 [ 12.765101][ T218] hardirqs last disabled at (53520): [] console_emit_next_record+0x3d4/0x4c0 [ 12.765103][ T218] softirqs last enabled at (53296): [] handle_softirqs+0x67c/0x900 [ 12.765107][ T218] softirqs last disabled at (53287): [] __irq_exit_rcu+0x145/0x1c0 [ 12.765109][ T218] Preemption disabled at: [ 12.765110][ T218] [] vprintk_emit+0x31b/0x3e0 [ 12.765115][ T218] CPU: 0 UID: 0 PID: 218 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.765119][ T218] Tainted: [W]=WARN [ 12.765120][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.765122][ T218] Call Trace: [ 12.765123][ T218] [ 12.765125][ T218] dump_stack_lvl+0x6f/0xa0 [ 12.765132][ T218] ? vprintk_emit+0x31b/0x3e0 [ 12.765133][ T218] __might_resched.cold+0x1fe/0x2c1 [ 12.765138][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.765143][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 12.765148][ T218] __kmalloc_noprof+0x443/0x760 [ 12.765150][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 12.765158][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 12.765161][ T218] alloc_buf.isra.0+0x4b/0x260 [ 12.765165][ T218] put_chars+0x1e1/0x2f0 [ 12.765168][ T218] ? __send_to_port+0x420/0x420 [ 12.765170][ T218] ? check_prev_add+0xef/0xe90 [ 12.765175][ T218] ? validate_chain+0x34a/0xc20 [ 12.765179][ T218] hvc_console_print+0x292/0x780 [ 12.765184][ T218] ? mark_usage+0x61/0x170 [ 12.765186][ T218] ? __lock_acquire+0x518/0xc20 [ 12.765188][ T218] ? __lock_acquire+0x518/0xc20 [ 12.765193][ T218] ? hvc_write+0x3a0/0x3a0 [ 12.765195][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.765200][ T218] ? lock_acquire+0x13c/0x160 [ 12.765205][ T218] console_emit_next_record+0x22f/0x4c0 [ 12.765210][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 12.765212][ T218] ? console_flush_one_record+0x106/0x710 [ 12.765216][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.765219][ T218] ? lock_acquire+0x13c/0x160 [ 12.765224][ T218] console_flush_one_record+0x46f/0x710 [ 12.765229][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 12.765232][ T218] ? __lock_acquire+0x518/0xc20 [ 12.765238][ T218] console_unlock+0xee/0x1f0 [ 12.765242][ T218] ? console_flush_one_record+0x710/0x710 [ 12.765244][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.765246][ T218] ? lock_acquire+0xe0/0x160 [ 12.765251][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.765253][ T218] ? vprintk_emit+0x320/0x3e0 [ 12.765256][ T218] vprintk_emit+0x37c/0x3e0 [ 12.765260][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 12.765263][ T218] ? __lock_acquire+0x518/0xc20 [ 12.765267][ T218] _printk+0xc7/0x100 [ 12.765271][ T218] ? snapshot_read.cold+0x21/0x21 [ 12.765273][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.765277][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.765279][ T218] ? netdev_name+0x43/0x60 [ 12.765283][ T218] ? __netdev_printk+0x17f/0x1d0 [ 12.765288][ T218] netdev_info+0xe2/0x116 [ 12.765291][ T218] ? netdev_notice+0x120/0x120 [ 12.765293][ T218] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 12.765295][ T218] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 12.765300][ T218] ? ww_mutex_lock+0x160/0x160 [ 12.765302][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.765305][ T218] ? ref_tracker_alloc+0x430/0x430 [ 12.765308][ T218] ? packet_release+0x363/0xc40 [ 12.765311][ T218] ? __fput+0x36c/0xad0 [ 12.765315][ T218] ? mutex_is_locked+0x1c/0x50 [ 12.765318][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 12.765322][ T218] netif_set_promiscuity+0x4c/0xc0 [ 12.765328][ T218] dev_set_promiscuity+0xa1/0x230 [ 12.765331][ T218] packet_release+0x4cb/0xc40 [ 12.765336][ T218] ? packet_set_ring+0x1740/0x1740 [ 12.765340][ T218] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 12.765346][ T218] __sock_release+0xb8/0x280 [ 12.765350][ T218] sock_close+0x18/0x20 [ 12.765351][ T218] __fput+0x36c/0xad0 [ 12.765357][ T218] fput_close_sync+0xde/0x1b0 [ 12.765360][ T218] ? alloc_file_clone+0xe0/0xe0 [ 12.765363][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 12.765368][ T218] __x64_sys_close+0x8b/0xf0 [ 12.765371][ T218] do_syscall_64+0xff/0x530 [ 12.765374][ T218] ? exc_page_fault+0xee/0x100 [ 12.765377][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.765379][ T218] RIP: 0033:0x7f5bbba2254e [ 12.765383][ T218] 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.765385][ T218] RSP: 002b:00007ffe4dfcce60 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 12.765388][ T218] RAX: ffffffffffffffda RBX: 000055cece736690 RCX: 00007f5bbba2254e [ 12.765389][ T218] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 12.765390][ T218] RBP: 00007ffe4dfcce70 R08: 0000000000000000 R09: 0000000000000000 [ 12.765391][ T218] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 12.765391][ T218] R13: 0000000000000000 R14: 000055ce9e55e760 R15: 0000000000000001 [ 12.765399][ T218]