[ 12.022771][ T220] link0: entered promiscuous mode [ 12.022859][ T220] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.022862][ T220] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 220, name: tcpdump [ 12.022864][ T220] preempt_count: 1, expected: 0 [ 12.022865][ T220] RCU nest depth: 0, expected: 0 [ 12.022867][ T220] locks held by tcpdump/220: 5, last CPU#0: [ 12.022870][ T220] #0: ffffffff8e51b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 12.022885][ T220] #1: ffffffff8dd7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.022893][ T220] #2: ffffffff8dd7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.022900][ T220] #3: ffffffff8dc9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.022906][ T220] #4: ffffffff8dc9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.022913][ T220] irq event stamp: 45458 [ 12.022914][ T220] hardirqs last enabled at (45457): [] __down_trylock_console_sem+0x86/0xa0 [ 12.022918][ T220] hardirqs last disabled at (45458): [] console_emit_next_record+0x3d4/0x4c0 [ 12.022921][ T220] softirqs last enabled at (45430): [] packet_do_bind+0x4b2/0xc80 [ 12.022924][ T220] softirqs last disabled at (45428): [] release_sock+0x21/0x240 [ 12.022930][ T220] Preemption disabled at: [ 12.022931][ T220] [] vprintk_emit+0x31b/0x3e0 [ 12.022937][ T220] CPU: 0 UID: 0 PID: 220 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.022942][ T220] Tainted: [W]=WARN [ 12.022944][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.022946][ T220] Call Trace: [ 12.022948][ T220] [ 12.022951][ T220] dump_stack_lvl+0x6f/0xa0 [ 12.022959][ T220] ? vprintk_emit+0x31b/0x3e0 [ 12.022961][ T220] __might_resched.cold+0x1fe/0x2c1 [ 12.022968][ T220] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.022974][ T220] ? __kmalloc_noprof+0xdb/0x760 [ 12.022982][ T220] __kmalloc_noprof+0x443/0x760 [ 12.022985][ T220] ? alloc_buf.isra.0+0x4b/0x260 [ 12.022995][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 12.022999][ T220] alloc_buf.isra.0+0x4b/0x260 [ 12.023005][ T220] put_chars+0x1e1/0x2f0 [ 12.023009][ T220] ? __send_to_port+0x420/0x420 [ 12.023018][ T220] ? validate_chain+0x34a/0xc20 [ 12.023025][ T220] hvc_console_print+0x292/0x780 [ 12.023030][ T220] ? mark_usage+0x61/0x170 [ 12.023033][ T220] ? __lock_acquire+0x518/0xc20 [ 12.023036][ T220] ? __lock_acquire+0x518/0xc20 [ 12.023044][ T220] ? hvc_write+0x3a0/0x3a0 [ 12.023048][ T220] ? console_emit_next_record+0x1df/0x4c0 [ 12.023054][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.023058][ T220] ? lock_acquire+0x13c/0x160 [ 12.023066][ T220] console_emit_next_record+0x22f/0x4c0 [ 12.023073][ T220] ? devkmsg_read+0x4b0/0x4b0 [ 12.023075][ T220] ? console_flush_one_record+0x106/0x710 [ 12.023081][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.023084][ T220] ? lock_acquire+0x13c/0x160 [ 12.023092][ T220] console_flush_one_record+0x46f/0x710 [ 12.023099][ T220] ? console_emit_next_record+0x4c0/0x4c0 [ 12.023102][ T220] ? __lock_acquire+0x518/0xc20 [ 12.023113][ T220] console_unlock+0xee/0x1f0 [ 12.023117][ T220] ? console_flush_one_record+0x710/0x710 [ 12.023120][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.023123][ T220] ? lock_acquire+0xe0/0x160 [ 12.023130][ T220] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.023133][ T220] ? vprintk_emit+0x320/0x3e0 [ 12.023139][ T220] vprintk_emit+0x37c/0x3e0 [ 12.023144][ T220] ? wake_up_klogd_work_func+0x90/0x90 [ 12.023147][ T220] ? kasan_save_stack+0x3d/0x50 [ 12.023151][ T220] ? kasan_save_track+0x14/0x30 [ 12.023153][ T220] ? __kasan_kmalloc+0x7b/0x90 [ 12.023155][ T220] ? __kmalloc_cache_noprof+0x29a/0x620 [ 12.023157][ T220] ? packet_mc_add+0x13b/0x890 [ 12.023160][ T220] ? packet_setsockopt+0x1953/0x21e0 [ 12.023162][ T220] ? do_sock_setsockopt+0x164/0x3b0 [ 12.023170][ T220] _printk+0xc7/0x100 [ 12.023175][ T220] ? snapshot_read.cold+0x21/0x21 [ 12.023182][ T220] ? netdev_name+0x43/0x60 [ 12.023192][ T220] ? __netdev_printk+0x17f/0x1d0 [ 12.023199][ T220] netdev_info+0xe2/0x116 [ 12.023204][ T220] ? netdev_notice+0x120/0x120 [ 12.023218][ T220] ? mutex_is_locked+0x1c/0x50 [ 12.023223][ T220] __dev_set_promiscuity.cold+0x7a/0x104 [ 12.023229][ T220] netif_set_promiscuity+0x4c/0xc0 [ 12.023236][ T220] dev_set_promiscuity+0xa1/0x230 [ 12.023238][ T220] ? __asan_memset+0x27/0x50 [ 12.023244][ T220] packet_mc_add+0x54e/0x890 [ 12.023248][ T220] ? __might_fault+0x97/0x140 [ 12.023252][ T220] ? __might_fault+0x97/0x140 [ 12.023256][ T220] ? _copy_from_user+0x42/0x90 [ 12.023263][ T220] packet_setsockopt+0x1953/0x21e0 [ 12.023269][ T220] ? packet_bind+0x170/0x170 [ 12.023276][ T220] ? do_sock_getsockopt+0x7bb/0xb50 [ 12.023285][ T220] ? sock_poll+0x6b0/0x6b0 [ 12.023292][ T220] ? rcu_is_watching+0x16/0xd0 [ 12.023296][ T220] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 12.023304][ T220] do_sock_setsockopt+0x164/0x3b0 [ 12.023309][ T220] ? put_user_ifreq+0x90/0x90 [ 12.023313][ T220] ? __sys_bind+0x19f/0x260 [ 12.023317][ T220] ? __sys_bind_socket+0xa0/0xa0 [ 12.023330][ T220] __sys_setsockopt+0xe4/0x150 [ 12.023338][ T220] __x64_sys_setsockopt+0xbd/0x180 [ 12.023341][ T220] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 12.023345][ T220] ? lockdep_hardirqs_on+0x91/0x130 [ 12.023349][ T220] ? do_syscall_64+0xa6/0x530 [ 12.023352][ T220] do_syscall_64+0xff/0x530 [ 12.023355][ T220] ? exc_page_fault+0xee/0x100 [ 12.023360][ T220] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.023363][ T220] RIP: 0033:0x7f5e912cb2de [ 12.023368][ 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 [ 12.023371][ T220] RSP: 002b:00007ffe46131d58 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 12.023374][ T220] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f5e912cb2de [ 12.023376][ T220] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000005 [ 12.023378][ T220] RBP: 00007ffe46131e90 R08: 0000000000000010 R09: 00005579fabd5530 [ 12.023380][ T220] R10: 00007ffe46131dd0 R11: 0000000000000246 R12: 0000000000000001 [ 12.023381][ T220] R13: 00005579fabd5918 R14: 00005579fabd5690 R15: 0000000000000000 [ 12.023395][ T220] [ 13.075200][ T220] link0: left promiscuous mode [ 13.075293][ T220] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.075296][ T220] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 220, name: tcpdump [ 13.075298][ T220] preempt_count: 1, expected: 0 [ 13.075299][ T220] RCU nest depth: 0, expected: 0 [ 13.075300][ T220] locks held by tcpdump/220: 6, last CPU#0: [ 13.075302][ T220] #0: ff1100000d6fd3c0 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 13.075314][ T220] #1: ffffffff8e51b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 13.075320][ T220] #2: ffffffff8dd7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.075325][ T220] #3: ffffffff8dd7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.075330][ T220] #4: ffffffff8dc9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.075334][ T220] #5: ffffffff8dc9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 13.075338][ T220] irq event stamp: 54490 [ 13.075339][ T220] hardirqs last enabled at (54489): [] __down_trylock_console_sem+0x86/0xa0 [ 13.075342][ T220] hardirqs last disabled at (54490): [] console_emit_next_record+0x3d4/0x4c0 [ 13.075344][ T220] softirqs last enabled at (54280): [] handle_softirqs+0x67c/0x900 [ 13.075348][ T220] softirqs last disabled at (54271): [] __irq_exit_rcu+0x145/0x1c0 [ 13.075350][ T220] Preemption disabled at: [ 13.075351][ T220] [] vprintk_emit+0x31b/0x3e0 [ 13.075356][ T220] CPU: 0 UID: 0 PID: 220 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.075360][ T220] Tainted: [W]=WARN [ 13.075361][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.075363][ T220] Call Trace: [ 13.075364][ T220] [ 13.075366][ T220] dump_stack_lvl+0x6f/0xa0 [ 13.075373][ T220] ? vprintk_emit+0x31b/0x3e0 [ 13.075374][ T220] __might_resched.cold+0x1fe/0x2c1 [ 13.075379][ T220] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.075384][ T220] ? __kmalloc_noprof+0xdb/0x760 [ 13.075388][ T220] __kmalloc_noprof+0x443/0x760 [ 13.075390][ T220] ? alloc_buf.isra.0+0x4b/0x260 [ 13.075397][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 13.075400][ T220] alloc_buf.isra.0+0x4b/0x260 [ 13.075404][ T220] put_chars+0x1e1/0x2f0 [ 13.075406][ T220] ? __send_to_port+0x420/0x420 [ 13.075408][ T220] ? check_prev_add+0xef/0xe90 [ 13.075412][ T220] ? validate_chain+0x34a/0xc20 [ 13.075416][ T220] hvc_console_print+0x292/0x780 [ 13.075421][ T220] ? mark_usage+0x61/0x170 [ 13.075423][ T220] ? __lock_acquire+0x518/0xc20 [ 13.075424][ T220] ? __lock_acquire+0x518/0xc20 [ 13.075429][ T220] ? hvc_write+0x3a0/0x3a0 [ 13.075431][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 13.075439][ T220] ? lock_acquire+0x13c/0x160 [ 13.075446][ T220] console_emit_next_record+0x22f/0x4c0 [ 13.075451][ T220] ? devkmsg_read+0x4b0/0x4b0 [ 13.075453][ T220] ? console_flush_one_record+0x106/0x710 [ 13.075457][ T220] ? rcu_is_watching+0x16/0xd0 [ 13.075459][ T220] ? lock_acquire+0x13c/0x160 [ 13.075464][ T220] console_flush_one_record+0x46f/0x710 [ 13.075468][ T220] ? console_emit_next_record+0x4c0/0x4c0 [ 13.075470][ T220] ? __lock_acquire+0x518/0xc20 [ 13.075476][ T220] console_unlock+0xee/0x1f0 [ 13.075479][ T220] ? console_flush_one_record+0x710/0x710 [ 13.075481][ T220] ? rcu_is_watching+0x16/0xd0 [ 13.075482][ T220] ? lock_acquire+0xe0/0x160 [ 13.075486][ T220] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.075488][ T220] ? vprintk_emit+0x320/0x3e0 [ 13.075491][ T220] vprintk_emit+0x37c/0x3e0 [ 13.075494][ T220] ? wake_up_klogd_work_func+0x90/0x90 [ 13.075498][ T220] ? __lock_acquire+0x518/0xc20 [ 13.075501][ T220] _printk+0xc7/0x100 [ 13.075505][ T220] ? snapshot_read.cold+0x21/0x21 [ 13.075507][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 13.075510][ T220] ? rcu_is_watching+0x16/0xd0 [ 13.075512][ T220] ? netdev_name+0x43/0x60 [ 13.075516][ T220] ? __netdev_printk+0x17f/0x1d0 [ 13.075520][ T220] netdev_info+0xe2/0x116 [ 13.075523][ T220] ? netdev_notice+0x120/0x120 [ 13.075525][ T220] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 13.075527][ T220] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 13.075532][ T220] ? ww_mutex_lock+0x160/0x160 [ 13.075534][ T220] ? lock_acquire.part.0+0xd4/0x280 [ 13.075536][ T220] ? ref_tracker_alloc+0x430/0x430 [ 13.075539][ T220] ? packet_release+0x363/0xc40 [ 13.075542][ T220] ? __fput+0x36c/0xad0 [ 13.075545][ T220] ? mutex_is_locked+0x1c/0x50 [ 13.075548][ T220] __dev_set_promiscuity.cold+0x7a/0x104 [ 13.075552][ T220] netif_set_promiscuity+0x4c/0xc0 [ 13.075557][ T220] dev_set_promiscuity+0xa1/0x230 [ 13.075560][ T220] packet_release+0x4cb/0xc40 [ 13.075565][ T220] ? packet_set_ring+0x1740/0x1740 [ 13.075568][ T220] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 13.075573][ T220] __sock_release+0xb8/0x280 [ 13.075576][ T220] sock_close+0x18/0x20 [ 13.075578][ T220] __fput+0x36c/0xad0 [ 13.075583][ T220] fput_close_sync+0xde/0x1b0 [ 13.075586][ T220] ? alloc_file_clone+0xe0/0xe0 [ 13.075588][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 13.075593][ T220] __x64_sys_close+0x8b/0xf0 [ 13.075595][ T220] do_syscall_64+0xff/0x530 [ 13.075599][ T220] ? exc_page_fault+0xee/0x100 [ 13.075602][ T220] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.075604][ T220] RIP: 0033:0x7f5e9124254e [ 13.075608][ 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 [ 13.075610][ T220] RSP: 002b:00007ffe46131ec0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 13.075613][ T220] RAX: ffffffffffffffda RBX: 00005579fabd5690 RCX: 00007f5e9124254e [ 13.075614][ T220] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 13.075615][ T220] RBP: 00007ffe46131ed0 R08: 0000000000000000 R09: 0000000000000000 [ 13.075616][ T220] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 13.075617][ T220] R13: 0000000000000000 R14: 00005579c9ad7760 R15: 0000000000000001 [ 13.075624][ T220]