[ 9.916260][ T218] link0: entered promiscuous mode [ 9.916316][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.916319][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: tcpdump [ 9.916320][ T218] preempt_count: 1, expected: 0 [ 9.916321][ T218] RCU nest depth: 0, expected: 0 [ 9.916322][ T218] locks held by tcpdump/218: 5, last CPU#1: [ 9.916324][ T218] #0: ffffffff8951b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 9.916336][ T218] #1: ffffffff88d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.916341][ T218] #2: ffffffff88d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.916345][ T218] #3: ffffffff88c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.916349][ T218] #4: ffffffff88c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.916353][ T218] irq event stamp: 42766 [ 9.916353][ T218] hardirqs last enabled at (42765): [] __down_trylock_console_sem+0x86/0xa0 [ 9.916357][ T218] hardirqs last disabled at (42766): [] console_emit_next_record+0x3d4/0x4c0 [ 9.916359][ T218] softirqs last enabled at (42738): [] packet_do_bind+0x4b2/0xc80 [ 9.916361][ T218] softirqs last disabled at (42736): [] release_sock+0x21/0x240 [ 9.916364][ T218] Preemption disabled at: [ 9.916365][ T218] [] vprintk_emit+0x31b/0x3e0 [ 9.916370][ T218] CPU: 1 UID: 0 PID: 218 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.916373][ T218] Tainted: [W]=WARN [ 9.916374][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.916376][ T218] Call Trace: [ 9.916377][ T218] [ 9.916379][ T218] dump_stack_lvl+0x6f/0xa0 [ 9.916384][ T218] ? vprintk_emit+0x31b/0x3e0 [ 9.916386][ T218] __might_resched.cold+0x1fe/0x2c1 [ 9.916391][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.916395][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 9.916399][ T218] __kmalloc_noprof+0x443/0x760 [ 9.916401][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 9.916408][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 9.916411][ T218] alloc_buf.isra.0+0x4b/0x260 [ 9.916414][ T218] put_chars+0x1e1/0x2f0 [ 9.916417][ T218] ? __send_to_port+0x420/0x420 [ 9.916421][ T218] ? validate_chain+0x34a/0xc20 [ 9.916424][ T218] hvc_console_print+0x292/0x780 [ 9.916428][ T218] ? mark_usage+0x61/0x170 [ 9.916430][ T218] ? __lock_acquire+0x518/0xc20 [ 9.916432][ T218] ? __lock_acquire+0x518/0xc20 [ 9.916436][ T218] ? hvc_write+0x3a0/0x3a0 [ 9.916439][ T218] ? console_emit_next_record+0x1df/0x4c0 [ 9.916442][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.916449][ T218] ? lock_acquire+0x13c/0x160 [ 9.916453][ T218] console_emit_next_record+0x22f/0x4c0 [ 9.916456][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 9.916458][ T218] ? console_flush_one_record+0x106/0x710 [ 9.916462][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.916463][ T218] ? lock_acquire+0x13c/0x160 [ 9.916467][ T218] console_flush_one_record+0x46f/0x710 [ 9.916472][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 9.916473][ T218] ? __lock_acquire+0x518/0xc20 [ 9.916479][ T218] console_unlock+0xee/0x1f0 [ 9.916481][ T218] ? console_flush_one_record+0x710/0x710 [ 9.916483][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.916485][ T218] ? lock_acquire+0xe0/0x160 [ 9.916489][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.916491][ T218] ? vprintk_emit+0x320/0x3e0 [ 9.916493][ T218] vprintk_emit+0x37c/0x3e0 [ 9.916496][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 9.916498][ T218] ? kasan_save_stack+0x3d/0x50 [ 9.916500][ T218] ? kasan_save_track+0x14/0x30 [ 9.916502][ T218] ? __kasan_kmalloc+0x7b/0x90 [ 9.916503][ T218] ? __kmalloc_cache_noprof+0x29a/0x620 [ 9.916504][ T218] ? packet_mc_add+0x13b/0x890 [ 9.916506][ T218] ? packet_setsockopt+0x1953/0x21e0 [ 9.916507][ T218] ? do_sock_setsockopt+0x164/0x3b0 [ 9.916511][ T218] _printk+0xc7/0x100 [ 9.916515][ T218] ? snapshot_read.cold+0x21/0x21 [ 9.916519][ T218] ? netdev_name+0x43/0x60 [ 9.916523][ T218] ? __netdev_printk+0x17f/0x1d0 [ 9.916526][ T218] netdev_info+0xe2/0x116 [ 9.916529][ T218] ? netdev_notice+0x120/0x120 [ 9.916536][ T218] ? mutex_is_locked+0x1c/0x50 [ 9.916539][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 9.916542][ T218] netif_set_promiscuity+0x4c/0xc0 [ 9.916546][ T218] dev_set_promiscuity+0xa1/0x230 [ 9.916548][ T218] ? __asan_memset+0x27/0x50 [ 9.916551][ T218] packet_mc_add+0x54e/0x890 [ 9.916553][ T218] ? __might_fault+0x97/0x140 [ 9.916556][ T218] ? __might_fault+0x97/0x140 [ 9.916558][ T218] ? _copy_from_user+0x42/0x90 [ 9.916563][ T218] packet_setsockopt+0x1953/0x21e0 [ 9.916566][ T218] ? packet_bind+0x170/0x170 [ 9.916570][ T218] ? do_sock_getsockopt+0x7bb/0xb50 [ 9.916574][ T218] ? sock_poll+0x6b0/0x6b0 [ 9.916578][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.916580][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.916585][ T218] do_sock_setsockopt+0x164/0x3b0 [ 9.916588][ T218] ? put_user_ifreq+0x90/0x90 [ 9.916590][ T218] ? __sys_bind+0x19f/0x260 [ 9.916593][ T218] ? __sys_bind_socket+0xa0/0xa0 [ 9.916599][ T218] __sys_setsockopt+0xe4/0x150 [ 9.916603][ T218] __x64_sys_setsockopt+0xbd/0x180 [ 9.916605][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.916607][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 9.916610][ T218] ? do_syscall_64+0xa6/0x530 [ 9.916613][ T218] do_syscall_64+0xff/0x530 [ 9.916615][ T218] ? exc_page_fault+0xee/0x100 [ 9.916617][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.916620][ T218] RIP: 0033:0x7f08c15d52de [ 9.916624][ 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 [ 9.916626][ T218] RSP: 002b:00007fff269a53f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 9.916628][ T218] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f08c15d52de [ 9.916629][ T218] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000005 [ 9.916630][ T218] RBP: 00007fff269a5530 R08: 0000000000000010 R09: 0000563830718530 [ 9.916631][ T218] R10: 00007fff269a5470 R11: 0000000000000246 R12: 0000000000000001 [ 9.916632][ T218] R13: 0000563830718918 R14: 0000563830718690 R15: 0000000000000000 [ 9.916638][ T218] [ 10.948810][ T218] link0: left promiscuous mode [ 10.948857][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.948859][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: tcpdump [ 10.948861][ T218] preempt_count: 1, expected: 0 [ 10.948861][ T218] RCU nest depth: 0, expected: 0 [ 10.948863][ T218] locks held by tcpdump/218: 6, last CPU#1: [ 10.948864][ T218] #0: ff1100000ea17300 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 10.948876][ T218] #1: ffffffff8951b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 10.948881][ T218] #2: ffffffff88d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.948886][ T218] #3: ffffffff88d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.948890][ T218] #4: ffffffff88c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.948893][ T218] #5: ffffffff88c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.948897][ T218] irq event stamp: 51392 [ 10.948898][ T218] hardirqs last enabled at (51391): [] __down_trylock_console_sem+0x86/0xa0 [ 10.948901][ T218] hardirqs last disabled at (51392): [] console_emit_next_record+0x3d4/0x4c0 [ 10.948903][ T218] softirqs last enabled at (51168): [] packet_setsockopt+0xcdf/0x21e0 [ 10.948905][ T218] softirqs last disabled at (51166): [] release_sock+0x21/0x240 [ 10.948908][ T218] Preemption disabled at: [ 10.948909][ T218] [] vprintk_emit+0x31b/0x3e0 [ 10.948913][ T218] CPU: 1 UID: 0 PID: 218 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.948916][ T218] Tainted: [W]=WARN [ 10.948917][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.948919][ T218] Call Trace: [ 10.948920][ T218] [ 10.948922][ T218] dump_stack_lvl+0x6f/0xa0 [ 10.948928][ T218] ? vprintk_emit+0x31b/0x3e0 [ 10.948929][ T218] __might_resched.cold+0x1fe/0x2c1 [ 10.948933][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.948937][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 10.948942][ T218] __kmalloc_noprof+0x443/0x760 [ 10.948944][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 10.948950][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 10.948953][ T218] alloc_buf.isra.0+0x4b/0x260 [ 10.948956][ T218] put_chars+0x1e1/0x2f0 [ 10.948958][ T218] ? __send_to_port+0x420/0x420 [ 10.948960][ T218] ? check_prev_add+0xef/0xe90 [ 10.948964][ T218] ? validate_chain+0x34a/0xc20 [ 10.948968][ T218] hvc_console_print+0x292/0x780 [ 10.948972][ T218] ? mark_usage+0x61/0x170 [ 10.948974][ T218] ? __lock_acquire+0x518/0xc20 [ 10.948976][ T218] ? __lock_acquire+0x518/0xc20 [ 10.948980][ T218] ? hvc_write+0x3a0/0x3a0 [ 10.948982][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 10.948986][ T218] ? lock_acquire+0x13c/0x160 [ 10.948990][ T218] console_emit_next_record+0x22f/0x4c0 [ 10.948994][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 10.948996][ T218] ? console_flush_one_record+0x106/0x710 [ 10.948999][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.949002][ T218] ? lock_acquire+0x13c/0x160 [ 10.949005][ T218] console_flush_one_record+0x46f/0x710 [ 10.949010][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 10.949012][ T218] ? __lock_acquire+0x518/0xc20 [ 10.949017][ T218] console_unlock+0xee/0x1f0 [ 10.949020][ T218] ? console_flush_one_record+0x710/0x710 [ 10.949021][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.949023][ T218] ? lock_acquire+0xe0/0x160 [ 10.949027][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.949029][ T218] ? vprintk_emit+0x320/0x3e0 [ 10.949031][ T218] vprintk_emit+0x37c/0x3e0 [ 10.949035][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 10.949038][ T218] ? __lock_acquire+0x518/0xc20 [ 10.949041][ T218] _printk+0xc7/0x100 [ 10.949045][ T218] ? snapshot_read.cold+0x21/0x21 [ 10.949046][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 10.949050][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.949051][ T218] ? netdev_name+0x43/0x60 [ 10.949055][ T218] ? __netdev_printk+0x17f/0x1d0 [ 10.949059][ T218] netdev_info+0xe2/0x116 [ 10.949062][ T218] ? netdev_notice+0x120/0x120 [ 10.949063][ T218] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.949066][ T218] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 10.949070][ T218] ? ww_mutex_lock+0x160/0x160 [ 10.949072][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 10.949074][ T218] ? ref_tracker_alloc+0x430/0x430 [ 10.949077][ T218] ? packet_release+0x363/0xc40 [ 10.949079][ T218] ? __fput+0x36c/0xad0 [ 10.949083][ T218] ? mutex_is_locked+0x1c/0x50 [ 10.949085][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 10.949088][ T218] netif_set_promiscuity+0x4c/0xc0 [ 10.949093][ T218] dev_set_promiscuity+0xa1/0x230 [ 10.949096][ T218] packet_release+0x4cb/0xc40 [ 10.949100][ T218] ? packet_set_ring+0x1740/0x1740 [ 10.949103][ T218] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 10.949108][ T218] __sock_release+0xb8/0x280 [ 10.949111][ T218] sock_close+0x18/0x20 [ 10.949113][ T218] __fput+0x36c/0xad0 [ 10.949117][ T218] fput_close_sync+0xde/0x1b0 [ 10.949120][ T218] ? alloc_file_clone+0xe0/0xe0 [ 10.949122][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 10.949127][ T218] __x64_sys_close+0x8b/0xf0 [ 10.949129][ T218] do_syscall_64+0xff/0x530 [ 10.949132][ T218] ? exc_page_fault+0xee/0x100 [ 10.949135][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.949137][ T218] RIP: 0033:0x7f08c154c54e [ 10.949141][ 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 [ 10.949142][ T218] RSP: 002b:00007fff269a5560 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 10.949145][ T218] RAX: ffffffffffffffda RBX: 0000563830718690 RCX: 00007f08c154c54e [ 10.949146][ T218] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 10.949147][ T218] RBP: 00007fff269a5570 R08: 0000000000000000 R09: 0000000000000000 [ 10.949148][ T218] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 10.949148][ T218] R13: 0000000000000000 R14: 000056382f9fb760 R15: 0000000000000001 [ 10.949155][ T218]