[ 11.485985][ T220] link0: entered promiscuous mode [ 11.486059][ T220] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.486061][ T220] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 220, name: tcpdump [ 11.486063][ T220] preempt_count: 1, expected: 0 [ 11.486063][ T220] RCU nest depth: 0, expected: 0 [ 11.486064][ T220] locks held by tcpdump/220: 5, last CPU#1: [ 11.486066][ T220] #0: ffffffffb871b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 11.486078][ T220] #1: ffffffffb7f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.486084][ T220] #2: ffffffffb7f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.486088][ T220] #3: ffffffffb7e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.486092][ T220] #4: ffffffffb7e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.486096][ T220] irq event stamp: 61266 [ 11.486097][ T220] hardirqs last enabled at (61265): [] __down_trylock_console_sem+0x86/0xa0 [ 11.486100][ T220] hardirqs last disabled at (61266): [] console_emit_next_record+0x3d4/0x4c0 [ 11.486102][ T220] softirqs last enabled at (61238): [] packet_do_bind+0x4b2/0xc80 [ 11.486104][ T220] softirqs last disabled at (61236): [] release_sock+0x21/0x240 [ 11.486108][ T220] Preemption disabled at: [ 11.486109][ T220] [] vprintk_emit+0x31b/0x3e0 [ 11.486115][ T220] CPU: 1 UID: 0 PID: 220 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.486118][ T220] Tainted: [W]=WARN [ 11.486119][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.486121][ T220] Call Trace: [ 11.486122][ T220] [ 11.486124][ T220] dump_stack_lvl+0x6f/0xa0 [ 11.486134][ T220] ? vprintk_emit+0x31b/0x3e0 [ 11.486136][ T220] __might_resched.cold+0x1fe/0x2c1 [ 11.486141][ T220] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.486145][ T220] ? __kmalloc_noprof+0xdb/0x760 [ 11.486150][ T220] __kmalloc_noprof+0x443/0x760 [ 11.486152][ T220] ? alloc_buf.isra.0+0x4b/0x260 [ 11.486159][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 11.486162][ T220] alloc_buf.isra.0+0x4b/0x260 [ 11.486165][ T220] put_chars+0x1e1/0x2f0 [ 11.486168][ T220] ? __send_to_port+0x420/0x420 [ 11.486172][ T220] ? validate_chain+0x34a/0xc20 [ 11.486176][ T220] hvc_console_print+0x292/0x780 [ 11.486180][ T220] ? mark_usage+0x61/0x170 [ 11.486182][ T220] ? __lock_acquire+0x518/0xc20 [ 11.486184][ T220] ? __lock_acquire+0x518/0xc20 [ 11.486188][ T220] ? hvc_write+0x3a0/0x3a0 [ 11.486191][ T220] ? console_emit_next_record+0x1df/0x4c0 [ 11.486194][ T220] ? rcu_is_watching+0x16/0xd0 [ 11.486197][ T220] ? lock_acquire+0x13c/0x160 [ 11.486201][ T220] console_emit_next_record+0x22f/0x4c0 [ 11.486205][ T220] ? devkmsg_read+0x4b0/0x4b0 [ 11.486207][ T220] ? console_flush_one_record+0x106/0x710 [ 11.486210][ T220] ? rcu_is_watching+0x16/0xd0 [ 11.486212][ T220] ? lock_acquire+0x13c/0x160 [ 11.486216][ T220] console_flush_one_record+0x46f/0x710 [ 11.486220][ T220] ? console_emit_next_record+0x4c0/0x4c0 [ 11.486222][ T220] ? __lock_acquire+0x518/0xc20 [ 11.486227][ T220] console_unlock+0xee/0x1f0 [ 11.486230][ T220] ? console_flush_one_record+0x710/0x710 [ 11.486232][ T220] ? rcu_is_watching+0x16/0xd0 [ 11.486234][ T220] ? lock_acquire+0xe0/0x160 [ 11.486238][ T220] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.486239][ T220] ? vprintk_emit+0x320/0x3e0 [ 11.486242][ T220] vprintk_emit+0x37c/0x3e0 [ 11.486245][ T220] ? wake_up_klogd_work_func+0x90/0x90 [ 11.486247][ T220] ? kasan_save_stack+0x3d/0x50 [ 11.486249][ T220] ? kasan_save_track+0x14/0x30 [ 11.486251][ T220] ? __kasan_kmalloc+0x7b/0x90 [ 11.486252][ T220] ? __kmalloc_cache_noprof+0x29a/0x620 [ 11.486253][ T220] ? packet_mc_add+0x13b/0x890 [ 11.486255][ T220] ? packet_setsockopt+0x1953/0x21e0 [ 11.486256][ T220] ? do_sock_setsockopt+0x164/0x3b0 [ 11.486261][ T220] _printk+0xc7/0x100 [ 11.486264][ T220] ? snapshot_read.cold+0x21/0x21 [ 11.486269][ T220] ? netdev_name+0x43/0x60 [ 11.486273][ T220] ? __netdev_printk+0x17f/0x1d0 [ 11.486277][ T220] netdev_info+0xe2/0x116 [ 11.486279][ T220] ? netdev_notice+0x120/0x120 [ 11.486287][ T220] ? mutex_is_locked+0x1c/0x50 [ 11.486289][ T220] __dev_set_promiscuity.cold+0x7a/0x104 [ 11.486292][ T220] netif_set_promiscuity+0x4c/0xc0 [ 11.486297][ T220] dev_set_promiscuity+0xa1/0x230 [ 11.486299][ T220] ? __asan_memset+0x27/0x50 [ 11.486302][ T220] packet_mc_add+0x54e/0x890 [ 11.486304][ T220] ? __might_fault+0x97/0x140 [ 11.486307][ T220] ? __might_fault+0x97/0x140 [ 11.486309][ T220] ? _copy_from_user+0x42/0x90 [ 11.486314][ T220] packet_setsockopt+0x1953/0x21e0 [ 11.486318][ T220] ? packet_bind+0x170/0x170 [ 11.486321][ T220] ? do_sock_getsockopt+0x7bb/0xb50 [ 11.486326][ T220] ? sock_poll+0x6b0/0x6b0 [ 11.486330][ T220] ? rcu_is_watching+0x16/0xd0 [ 11.486332][ T220] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.486337][ T220] do_sock_setsockopt+0x164/0x3b0 [ 11.486340][ T220] ? put_user_ifreq+0x90/0x90 [ 11.486342][ T220] ? __sys_bind+0x19f/0x260 [ 11.486345][ T220] ? __sys_bind_socket+0xa0/0xa0 [ 11.486351][ T220] __sys_setsockopt+0xe4/0x150 [ 11.486356][ T220] __x64_sys_setsockopt+0xbd/0x180 [ 11.486358][ T220] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.486360][ T220] ? lockdep_hardirqs_on+0x91/0x130 [ 11.486363][ T220] ? do_syscall_64+0xa6/0x530 [ 11.486366][ T220] do_syscall_64+0xff/0x530 [ 11.486368][ T220] ? exc_page_fault+0xee/0x100 [ 11.486370][ T220] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.486373][ T220] RIP: 0033:0x7f21ba9c62de [ 11.486377][ T220] 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.486379][ T220] RSP: 002b:00007fffd2d22be8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 11.486381][ T220] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f21ba9c62de [ 11.486383][ T220] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000005 [ 11.486384][ T220] RBP: 00007fffd2d22d20 R08: 0000000000000010 R09: 000055c7f646f530 [ 11.486385][ T220] R10: 00007fffd2d22c60 R11: 0000000000000246 R12: 0000000000000001 [ 11.486385][ T220] R13: 000055c7f646f918 R14: 000055c7f646f690 R15: 0000000000000000 [ 11.486392][ T220] [ 12.521772][ T220] link0: left promiscuous mode [ 12.521856][ T220] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.521859][ T220] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 220, name: tcpdump [ 12.521861][ T220] preempt_count: 1, expected: 0 [ 12.521862][ T220] RCU nest depth: 0, expected: 0 [ 12.521863][ T220] locks held by tcpdump/220: 6, last CPU#1: [ 12.521865][ T220] #0: ff1100000dacd3c0 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 12.521877][ T220] #1: ffffffffb871b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 12.521883][ T220] #2: ffffffffb7f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.521888][ T220] #3: ffffffffb7f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.521892][ T220] #4: ffffffffb7e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.521896][ T220] #5: ffffffffb7e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.521900][ T220] irq event stamp: 70204 [ 12.521901][ T220] hardirqs last enabled at (70203): [] __down_trylock_console_sem+0x86/0xa0 [ 12.521904][ T220] hardirqs last disabled at (70204): [] console_emit_next_record+0x3d4/0x4c0 [ 12.521906][ T220] softirqs last enabled at (69978): [] packet_setsockopt+0xcdf/0x21e0 [ 12.521908][ T220] softirqs last disabled at (69976): [] release_sock+0x21/0x240 [ 12.521911][ T220] Preemption disabled at: [ 12.521912][ T220] [] vprintk_emit+0x31b/0x3e0 [ 12.521918][ T220] CPU: 1 UID: 0 PID: 220 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.521921][ T220] Tainted: [W]=WARN [ 12.521922][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.521923][ T220] Call Trace: [ 12.521925][ T220] [ 12.521926][ T220] dump_stack_lvl+0x6f/0xa0 [ 12.521932][ T220] ? vprintk_emit+0x31b/0x3e0 [ 12.521934][ T220] __might_resched.cold+0x1fe/0x2c1 [ 12.521938][ T220] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.521942][ T220] ? __kmalloc_noprof+0xdb/0x760 [ 12.521947][ T220] __kmalloc_noprof+0x443/0x760 [ 12.521949][ T220] ? alloc_buf.isra.0+0x4b/0x260 [ 12.521955][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 12.521958][ T220] alloc_buf.isra.0+0x4b/0x260 [ 12.521962][ T220] put_chars+0x1e1/0x2f0 [ 12.521964][ T220] ? __send_to_port+0x420/0x420 [ 12.521965][ T220] ? check_prev_add+0xef/0xe90 [ 12.521970][ T220] ? validate_chain+0x34a/0xc20 [ 12.521974][ T220] hvc_console_print+0x292/0x780 [ 12.521978][ T220] ? mark_usage+0x61/0x170 [ 12.521980][ T220] ? __lock_acquire+0x518/0xc20 [ 12.521982][ T220] ? __lock_acquire+0x518/0xc20 [ 12.521986][ T220] ? hvc_write+0x3a0/0x3a0 [ 12.521988][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 12.521992][ T220] ? lock_acquire+0x13c/0x160 [ 12.521996][ T220] console_emit_next_record+0x22f/0x4c0 [ 12.522000][ T220] ? devkmsg_read+0x4b0/0x4b0 [ 12.522002][ T220] ? console_flush_one_record+0x106/0x710 [ 12.522005][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.522008][ T220] ? lock_acquire+0x13c/0x160 [ 12.522012][ T220] console_flush_one_record+0x46f/0x710 [ 12.522016][ T220] ? console_emit_next_record+0x4c0/0x4c0 [ 12.522018][ T220] ? __lock_acquire+0x518/0xc20 [ 12.522023][ T220] console_unlock+0xee/0x1f0 [ 12.522026][ T220] ? console_flush_one_record+0x710/0x710 [ 12.522028][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.522030][ T220] ? lock_acquire+0xe0/0x160 [ 12.522034][ T220] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.522035][ T220] ? vprintk_emit+0x320/0x3e0 [ 12.522038][ T220] vprintk_emit+0x37c/0x3e0 [ 12.522041][ T220] ? wake_up_klogd_work_func+0x90/0x90 [ 12.522044][ T220] ? __lock_acquire+0x518/0xc20 [ 12.522048][ T220] _printk+0xc7/0x100 [ 12.522051][ T220] ? snapshot_read.cold+0x21/0x21 [ 12.522053][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 12.522057][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.522058][ T220] ? netdev_name+0x43/0x60 [ 12.522062][ T220] ? __netdev_printk+0x17f/0x1d0 [ 12.522066][ T220] netdev_info+0xe2/0x116 [ 12.522068][ T220] ? netdev_notice+0x120/0x120 [ 12.522070][ T220] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 12.522072][ T220] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 12.522077][ T220] ? ww_mutex_lock+0x160/0x160 [ 12.522079][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 12.522081][ T220] ? ref_tracker_alloc+0x430/0x430 [ 12.522084][ T220] ? packet_release+0x363/0xc40 [ 12.522086][ T220] ? __fput+0x36c/0xad0 [ 12.522090][ T220] ? mutex_is_locked+0x1c/0x50 [ 12.522092][ T220] __dev_set_promiscuity.cold+0x7a/0x104 [ 12.522096][ T220] netif_set_promiscuity+0x4c/0xc0 [ 12.522101][ T220] dev_set_promiscuity+0xa1/0x230 [ 12.522104][ T220] packet_release+0x4cb/0xc40 [ 12.522108][ T220] ? packet_set_ring+0x1740/0x1740 [ 12.522111][ T220] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 12.522116][ T220] __sock_release+0xb8/0x280 [ 12.522119][ T220] sock_close+0x18/0x20 [ 12.522121][ T220] __fput+0x36c/0xad0 [ 12.522126][ T220] fput_close_sync+0xde/0x1b0 [ 12.522128][ T220] ? alloc_file_clone+0xe0/0xe0 [ 12.522134][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 12.522138][ T220] __x64_sys_close+0x8b/0xf0 [ 12.522141][ T220] do_syscall_64+0xff/0x530 [ 12.522144][ T220] ? exc_page_fault+0xee/0x100 [ 12.522147][ T220] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.522149][ T220] RIP: 0033:0x7f21ba93d54e [ 12.522153][ T220] 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.522155][ T220] RSP: 002b:00007fffd2d22d50 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 12.522157][ T220] RAX: ffffffffffffffda RBX: 000055c7f646f690 RCX: 00007f21ba93d54e [ 12.522158][ T220] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 12.522159][ T220] RBP: 00007fffd2d22d60 R08: 0000000000000000 R09: 0000000000000000 [ 12.522160][ T220] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 12.522161][ T220] R13: 0000000000000000 R14: 000055c7ba21e760 R15: 0000000000000001 [ 12.522167][ T220]