[ 10.123550][ T206] test-bond1: (slave test-bond0): making interface the new active one [ 10.123626][ T206] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.123629][ T206] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 206, name: ip [ 10.123631][ T206] preempt_count: 1, expected: 0 [ 10.123633][ T206] RCU nest depth: 0, expected: 0 [ 10.123634][ T206] locks held by ip/206: 5, last CPU#3: [ 10.123637][ T206] #0: ffffffffae922700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 10.123653][ T206] #1: ffffffffae199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.123662][ T206] #2: ffffffffae199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.123668][ T206] #3: ffffffffae089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.123673][ T206] #4: ffffffffae089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.123679][ T206] irq event stamp: 21108 [ 10.123681][ T206] hardirqs last enabled at (21107): [] __down_trylock_console_sem+0x86/0xa0 [ 10.123688][ T206] hardirqs last disabled at (21108): [] console_emit_next_record+0x3f8/0x4f0 [ 10.123692][ T206] softirqs last enabled at (20982): [] __alloc_skb+0x4c5/0x5f0 [ 10.123696][ T206] softirqs last disabled at (20980): [] __alloc_skb+0x4c5/0x5f0 [ 10.123700][ T206] Preemption disabled at: [ 10.123702][ T206] [] vprintk_emit+0x31b/0x3e0 [ 10.123710][ T206] CPU: 3 UID: 0 PID: 206 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.123715][ T206] Tainted: [W]=WARN [ 10.123717][ T206] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.123719][ T206] Call Trace: [ 10.123722][ T206] [ 10.123725][ T206] dump_stack_lvl+0x6f/0xa0 [ 10.123732][ T206] ? vprintk_emit+0x31b/0x3e0 [ 10.123735][ T206] __might_resched.cold+0x1fe/0x2c1 [ 10.123742][ T206] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.123748][ T206] ? __kmalloc_noprof+0xdb/0x760 [ 10.123757][ T206] __kmalloc_noprof+0x443/0x760 [ 10.123761][ T206] ? alloc_buf.isra.0+0x4b/0x260 [ 10.123771][ T206] ? do_raw_spin_unlock+0x59/0x250 [ 10.123774][ T206] alloc_buf.isra.0+0x4b/0x260 [ 10.123780][ T206] put_chars+0x1e1/0x2f0 [ 10.123785][ T206] ? __send_to_port+0x420/0x420 [ 10.123792][ T206] ? validate_chain+0x34a/0xc20 [ 10.123801][ T206] hvc_console_print+0x292/0x780 [ 10.123806][ T206] ? __lock_acquire+0x518/0xc20 [ 10.123815][ T206] ? hvc_write+0x3a0/0x3a0 [ 10.123820][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.123830][ T206] console_emit_next_record+0x252/0x4f0 [ 10.123836][ T206] ? devkmsg_read+0x4e0/0x4e0 [ 10.123844][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.123847][ T206] ? lock_acquire+0x13c/0x160 [ 10.123855][ T206] console_flush_one_record+0x46f/0x710 [ 10.123861][ T206] ? console_emit_next_record+0x4f0/0x4f0 [ 10.123863][ T206] ? __lock_acquire+0x518/0xc20 [ 10.123873][ T206] console_unlock+0xee/0x1f0 [ 10.123877][ T206] ? console_flush_one_record+0x710/0x710 [ 10.123879][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.123882][ T206] ? lock_acquire+0x60/0x160 [ 10.123889][ T206] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.123892][ T206] ? vprintk_emit+0x320/0x3e0 [ 10.123897][ T206] vprintk_emit+0x37c/0x3e0 [ 10.123903][ T206] ? wake_up_klogd_work_func+0x90/0x90 [ 10.123907][ T206] ? lock_acquire.part.0+0xd4/0x280 [ 10.123910][ T206] ? flush_tlb_mm_range+0x2ac/0x570 [ 10.123919][ T206] _printk+0xc7/0x100 [ 10.123924][ T206] ? snapshot_read.cold+0x21/0x21 [ 10.123930][ T206] ? find_held_lock+0x2b/0x80 [ 10.123934][ T206] ? netdev_name+0x43/0x60 [ 10.123938][ T206] ? __netdev_printk+0x17f/0x1d0 [ 10.123944][ T206] netdev_info+0xe2/0x116 [ 10.123948][ T206] ? netdev_notice+0x120/0x120 [ 10.123956][ T206] ? lockdep_rtnl_is_held+0x1a/0x20 [ 10.123960][ T206] ? bond_ipsec_del_sa_all+0x357/0x520 [ 10.123970][ T206] bond_change_active_slave.cold+0x52/0x21b [ 10.123974][ T206] ? lockdep_rtnl_is_held+0x1a/0x20 [ 10.123977][ T206] ? bond_choose_primary_or_current+0x246/0x6a0 [ 10.123982][ T206] ? bond_peer_notify_work_rearm+0x80/0x80 [ 10.123987][ T206] ? static_key_slow_inc_cpuslocked+0xa8/0xd0 [ 10.123996][ T206] bond_select_active_slave+0x114/0x4f0 [ 10.124002][ T206] ? bond_change_active_slave+0x21c0/0x21c0 [ 10.124012][ T206] ? static_key_slow_inc+0x27/0x30 [ 10.124015][ T206] bond_enslave+0x2437/0x5100 [ 10.124026][ T206] ? find_held_lock+0x2b/0x80 [ 10.124029][ T206] ? bond_update_slave_arr+0xcf0/0xcf0 [ 10.124032][ T206] ? mark_usage+0x61/0x170 [ 10.124035][ T206] ? __lock_acquire+0x518/0xc20 [ 10.124038][ T206] ? __lock_acquire+0x501/0xc20 [ 10.124046][ T206] ? lock_acquire.part.0+0xd4/0x280 [ 10.124059][ T206] ? is_bpf_text_address+0x72/0x110 [ 10.124064][ T206] ? kernel_text_address+0x149/0x170 [ 10.124073][ T206] do_set_master+0x3b2/0x780 [ 10.124081][ T206] do_setlink.isra.0+0x9ec/0x2a60 [ 10.124087][ T206] ? stack_trace_save+0x93/0xc0 [ 10.124092][ T206] ? rtnl_link_get_size+0x350/0x350 [ 10.124095][ T206] ? rcu_read_lock_any_held+0x66/0x90 [ 10.124099][ T206] ? stack_depot_save_flags+0x38e/0x790 [ 10.124103][ T206] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.124107][ T206] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.124111][ T206] ? validate_chain+0x38b/0xc20 [ 10.124115][ T206] ? kasan_save_stack+0x3d/0x50 [ 10.124118][ T206] ? kasan_save_stack+0x2f/0x50 [ 10.124121][ T206] ? kasan_save_track+0x14/0x30 [ 10.124125][ T206] ? __lock_acquire+0x518/0xc20 [ 10.124128][ T206] ? netlink_seq_next+0x5e/0x60 [ 10.124132][ T206] ? ___sys_sendmsg+0xc0/0x1d0 [ 10.124139][ T206] ? lock_acquire.part.0+0xd4/0x280 [ 10.124142][ T206] ? rtnl_newlink+0x9a8/0x11b0 [ 10.124147][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.124151][ T206] ? lock_acquire+0x13c/0x160 [ 10.124153][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.124155][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.124159][ T206] ? trace_contention_end+0xb3/0x180 [ 10.124163][ T206] ? __mutex_lock+0x1db/0x1ea0 [ 10.124167][ T206] ? __mutex_lock+0x9a3/0x1ea0 [ 10.124170][ T206] ? rtnl_newlink+0x9a8/0x11b0 [ 10.124177][ T206] ? ww_mutex_lock+0x160/0x160 [ 10.124180][ T206] ? nla_get_range_signed+0x3d0/0x3d0 [ 10.124190][ T206] ? __rtnl_newlink+0x3fa/0xa50 [ 10.124201][ T206] rtnl_newlink+0x9f1/0x11b0 [ 10.124211][ T206] ? rtnl_bridge_getlink+0x850/0x850 [ 10.124215][ T206] ? __lock_acquire+0x518/0xc20 [ 10.124223][ T206] ? lock_acquire.part.0+0xd4/0x280 [ 10.124226][ T206] ? find_held_lock+0x2b/0x80 [ 10.124230][ T206] ? rtnl_bridge_getlink+0x850/0x850 [ 10.124234][ T206] ? __lock_release.isra.0+0x69/0x1a0 [ 10.124241][ T206] ? rtnl_bridge_getlink+0x850/0x850 [ 10.124245][ T206] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 10.124251][ T206] ? rtnl_link_fill+0x900/0x900 [ 10.124254][ T206] ? __lock_acquire+0x518/0xc20 [ 10.124262][ T206] ? lock_acquire.part.0+0xd4/0x280 [ 10.124265][ T206] ? find_held_lock+0x2b/0x80 [ 10.124272][ T206] netlink_rcv_skb+0x14e/0x3a0 [ 10.124274][ T206] ? rtnl_link_fill+0x900/0x900 [ 10.124280][ T206] ? netlink_ack+0xcd0/0xcd0 [ 10.124291][ T206] ? netlink_deliver_tap+0xc5/0x330 [ 10.124293][ T206] ? netlink_deliver_tap+0x13c/0x330 [ 10.124301][ T206] netlink_unicast+0x486/0x750 [ 10.124308][ T206] ? netlink_attachskb+0x810/0x810 [ 10.124312][ T206] ? __lock_acquire+0x518/0xc20 [ 10.124320][ T206] netlink_sendmsg+0x735/0xc60 [ 10.124327][ T206] ? netlink_unicast+0x750/0x750 [ 10.124333][ T206] ? __might_fault+0x97/0x140 [ 10.124342][ T206] ____sys_sendmsg+0x415/0x880 [ 10.124345][ T206] ? copy_msghdr_from_user+0x279/0x420 [ 10.124349][ T206] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 10.124351][ T206] ? move_addr_to_kernel+0x40/0x40 [ 10.124365][ T206] ___sys_sendmsg+0x14e/0x1d0 [ 10.124369][ T206] ? copy_msghdr_from_user+0x420/0x420 [ 10.124403][ T206] __sys_sendmsg+0x12c/0x1d0 [ 10.124407][ T206] ? __sys_sendmsg_sock+0x20/0x20 [ 10.124418][ T206] ? rcu_is_watching+0x16/0xd0 [ 10.124423][ T206] do_syscall_64+0xff/0x530 [ 10.124427][ T206] ? exc_page_fault+0xee/0x100 [ 10.124432][ T206] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.124435][ T206] RIP: 0033:0x7ff87c7bc54e [ 10.124440][ T206] 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.124443][ T206] RSP: 002b:00007ffe4d189250 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 10.124447][ T206] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff87c7bc54e [ 10.124449][ T206] RDX: 0000000000000000 RSI: 00007ffe4d189300 RDI: 0000000000000005 [ 10.124451][ T206] RBP: 00007ffe4d189260 R08: 0000000000000000 R09: 0000000000000000 [ 10.124452][ T206] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a913690 [ 10.124453][ T206] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffe4d1899c0 [ 10.124466][ T206] [ 10.185211][ T206] test-bond1: (slave test-bond0): Enslaving as an active interface with an up link [ 10.203722][ T206] ip (206) used greatest stack depth: 22440 bytes left [ 10.455672][ T215] test-bond1: entered promiscuous mode [ 10.455973][ T215] test-bond0: entered promiscuous mode [ 11.475910][ T215] test-bond1: left promiscuous mode [ 11.475976][ T215] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.475979][ T215] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 215, name: tcpdump [ 11.475981][ T215] preempt_count: 1, expected: 0 [ 11.475982][ T215] RCU nest depth: 0, expected: 0 [ 11.475984][ T215] locks held by tcpdump/215: 6, last CPU#0: [ 11.475986][ T215] #0: ff1100000d120278 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 11.476003][ T215] #1: ffffffffae922700 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 11.476011][ T215] #2: ffffffffae199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.476019][ T215] #3: ffffffffae199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.476025][ T215] #4: ffffffffae089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.476030][ T215] #5: ffffffffae089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.476036][ T215] irq event stamp: 57720 [ 11.476037][ T215] hardirqs last enabled at (57719): [] __down_trylock_console_sem+0x86/0xa0 [ 11.476042][ T215] hardirqs last disabled at (57720): [] console_emit_next_record+0x3f8/0x4f0 [ 11.476044][ T215] softirqs last enabled at (57518): [] packet_setsockopt+0xcdf/0x21e0 [ 11.476048][ T215] softirqs last disabled at (57516): [] release_sock+0x21/0x240 [ 11.476052][ T215] Preemption disabled at: [ 11.476053][ T215] [] vprintk_emit+0x31b/0x3e0 [ 11.476060][ T215] CPU: 0 UID: 72 PID: 215 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.476065][ T215] Tainted: [W]=WARN [ 11.476066][ T215] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.476068][ T215] Call Trace: [ 11.476070][ T215] [ 11.476073][ T215] dump_stack_lvl+0x6f/0xa0 [ 11.476079][ T215] ? vprintk_emit+0x31b/0x3e0 [ 11.476082][ T215] __might_resched.cold+0x1fe/0x2c1 [ 11.476088][ T215] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.476094][ T215] ? __kmalloc_noprof+0xdb/0x760 [ 11.476102][ T215] __kmalloc_noprof+0x443/0x760 [ 11.476106][ T215] ? alloc_buf.isra.0+0x4b/0x260 [ 11.476115][ T215] ? do_raw_spin_unlock+0x59/0x250 [ 11.476119][ T215] alloc_buf.isra.0+0x4b/0x260 [ 11.476124][ T215] put_chars+0x1e1/0x2f0 [ 11.476128][ T215] ? check_prev_add+0xef/0xe90 [ 11.476132][ T215] ? __send_to_port+0x420/0x420 [ 11.476138][ T215] ? validate_chain+0x34a/0xc20 [ 11.476147][ T215] hvc_console_print+0x292/0x780 [ 11.476158][ T215] ? hvc_write+0x3a0/0x3a0 [ 11.476163][ T215] ? rcu_is_watching+0x16/0xd0 [ 11.476168][ T215] ? lock_acquire+0x13c/0x160 [ 11.476175][ T215] console_emit_next_record+0x252/0x4f0 [ 11.476181][ T215] ? devkmsg_read+0x4e0/0x4e0 [ 11.476189][ T215] ? rcu_is_watching+0x16/0xd0 [ 11.476192][ T215] ? lock_acquire+0x13c/0x160 [ 11.476199][ T215] console_flush_one_record+0x46f/0x710 [ 11.476206][ T215] ? console_emit_next_record+0x4f0/0x4f0 [ 11.476208][ T215] ? __lock_acquire+0x518/0xc20 [ 11.476218][ T215] console_unlock+0xee/0x1f0 [ 11.476222][ T215] ? console_flush_one_record+0x710/0x710 [ 11.476224][ T215] ? rcu_is_watching+0x16/0xd0 [ 11.476227][ T215] ? lock_acquire+0x60/0x160 [ 11.476234][ T215] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.476237][ T215] ? vprintk_emit+0x320/0x3e0 [ 11.476242][ T215] vprintk_emit+0x37c/0x3e0 [ 11.476248][ T215] ? wake_up_klogd_work_func+0x90/0x90 [ 11.476254][ T215] ? __lock_acquire+0x518/0xc20 [ 11.476261][ T215] _printk+0xc7/0x100 [ 11.476266][ T215] ? snapshot_read.cold+0x21/0x21 [ 11.476268][ T215] ? lock_acquire.part.0+0xd4/0x280 [ 11.476275][ T215] ? rcu_is_watching+0x16/0xd0 [ 11.476277][ T215] ? netdev_name+0x43/0x60 [ 11.476282][ T215] ? __netdev_printk+0x17f/0x1d0 [ 11.476289][ T215] netdev_info+0xe2/0x116 [ 11.476292][ T215] ? netdev_notice+0x120/0x120 [ 11.476295][ T215] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 11.476299][ T215] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 11.476305][ T215] ? ww_mutex_lock+0x160/0x160 [ 11.476308][ T215] ? lock_acquire.part.0+0xd4/0x280 [ 11.476312][ T215] ? ref_tracker_alloc+0x430/0x430 [ 11.476317][ T215] ? packet_release+0x363/0xc40 [ 11.476320][ T215] ? __fput+0x363/0xac0 [ 11.476325][ T215] ? mutex_is_locked+0x1c/0x50 [ 11.476330][ T215] __dev_set_promiscuity.cold+0x7a/0x104 [ 11.476337][ T215] netif_set_promiscuity+0x4c/0xc0 [ 11.476344][ T215] dev_set_promiscuity+0xa1/0x230 [ 11.476349][ T215] packet_release+0x4cb/0xc40 [ 11.476357][ T215] ? packet_set_ring+0x1740/0x1740 [ 11.476363][ T215] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 11.476373][ T215] __sock_release+0xb8/0x280 [ 11.476385][ T215] sock_close+0x18/0x20 [ 11.476389][ T215] __fput+0x363/0xac0 [ 11.476398][ T215] fput_close_sync+0xde/0x1b0 [ 11.476403][ T215] ? alloc_file_clone+0xe0/0xe0 [ 11.476407][ T215] ? do_raw_spin_unlock+0x59/0x250 [ 11.476414][ T215] __x64_sys_close+0x8b/0xf0 [ 11.476418][ T215] do_syscall_64+0xff/0x530 [ 11.476421][ T215] ? exc_page_fault+0xee/0x100 [ 11.476426][ T215] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.476430][ T215] RIP: 0033:0x7f68bfc7254e [ 11.476435][ T215] 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 [ 11.476437][ T215] RSP: 002b:00007ffcc1a3c7a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 11.476441][ T215] RAX: ffffffffffffffda RBX: 0000560ac5984690 RCX: 00007f68bfc7254e [ 11.476443][ T215] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 11.476445][ T215] RBP: 00007ffcc1a3c7b0 R08: 0000000000000000 R09: 0000000000000000 [ 11.476446][ T215] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 11.476448][ T215] R13: 0000000000000000 R14: 0000560a8edce800 R15: 0000000000000001 [ 11.476461][ T215] [ 11.515714][ T215] test-bond0: left promiscuous mode [ 13.098162][ T217] test-dummy0: entered promiscuous mode [ 13.098320][ T217] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.098323][ T217] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 217, name: python3 [ 13.098325][ T217] preempt_count: 1, expected: 0 [ 13.098326][ T217] RCU nest depth: 0, expected: 0 [ 13.098326][ T217] locks held by python3/217: 6, last CPU#1: [ 13.098329][ T217] #0: ffffffffae922700 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 13.098341][ T217] #1: ff110000082f1de0 (&dev_instance_lock_key#3){+.+.}-{4:4}, at: dev_set_promiscuity+0x96/0x230 [ 13.098348][ T217] #2: ffffffffae199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.098354][ T217] #3: ffffffffae199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.098357][ T217] #4: ffffffffae089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.098361][ T217] #5: ffffffffae089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.098365][ T217] irq event stamp: 908200 [ 13.098366][ T217] hardirqs last enabled at (908199): [] __down_trylock_console_sem+0x86/0xa0 [ 13.098369][ T217] hardirqs last disabled at (908200): [] console_emit_next_record+0x3f8/0x4f0 [ 13.098371][ T217] softirqs last enabled at (908184): [] sk_setsockopt+0xe09/0x4900 [ 13.098374][ T217] softirqs last disabled at (908182): [] release_sock+0x21/0x240 [ 13.098377][ T217] Preemption disabled at: [ 13.098378][ T217] [] vprintk_emit+0x31b/0x3e0 [ 13.098384][ T217] CPU: 1 UID: 0 PID: 217 Comm: python3 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.098392][ T217] Tainted: [W]=WARN [ 13.098393][ T217] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.098395][ T217] Call Trace: [ 13.098397][ T217] [ 13.098398][ T217] dump_stack_lvl+0x6f/0xa0 [ 13.098403][ T217] ? vprintk_emit+0x31b/0x3e0 [ 13.098405][ T217] __might_resched.cold+0x1fe/0x2c1 [ 13.098410][ T217] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.098414][ T217] ? __kmalloc_noprof+0xdb/0x760 [ 13.098419][ T217] __kmalloc_noprof+0x443/0x760 [ 13.098422][ T217] ? alloc_buf.isra.0+0x4b/0x260 [ 13.098428][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 13.098430][ T217] alloc_buf.isra.0+0x4b/0x260 [ 13.098434][ T217] put_chars+0x1e1/0x2f0 [ 13.098437][ T217] ? __send_to_port+0x420/0x420 [ 13.098441][ T217] ? validate_chain+0x34a/0xc20 [ 13.098446][ T217] hvc_console_print+0x292/0x780 [ 13.098450][ T217] ? __lock_acquire+0x518/0xc20 [ 13.098455][ T217] ? hvc_write+0x3a0/0x3a0 [ 13.098458][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098465][ T217] console_emit_next_record+0x252/0x4f0 [ 13.098468][ T217] ? devkmsg_read+0x4e0/0x4e0 [ 13.098472][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098474][ T217] ? lock_acquire+0x13c/0x160 [ 13.098478][ T217] console_flush_one_record+0x46f/0x710 [ 13.098482][ T217] ? console_emit_next_record+0x4f0/0x4f0 [ 13.098483][ T217] ? __lock_acquire+0x518/0xc20 [ 13.098489][ T217] console_unlock+0xee/0x1f0 [ 13.098491][ T217] ? console_flush_one_record+0x710/0x710 [ 13.098492][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098494][ T217] ? lock_acquire+0x60/0x160 [ 13.098498][ T217] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.098500][ T217] ? vprintk_emit+0x320/0x3e0 [ 13.098503][ T217] vprintk_emit+0x37c/0x3e0 [ 13.098506][ T217] ? wake_up_klogd_work_func+0x90/0x90 [ 13.098508][ T217] ? __lock_acquire+0x518/0xc20 [ 13.098510][ T217] ? init_object+0x42/0xc0 [ 13.098515][ T217] _printk+0xc7/0x100 [ 13.098518][ T217] ? snapshot_read.cold+0x21/0x21 [ 13.098522][ T217] ? lock_acquire+0x13c/0x160 [ 13.098524][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098525][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098527][ T217] ? netdev_name+0x43/0x60 [ 13.098530][ T217] ? __netdev_printk+0x17f/0x1d0 [ 13.098533][ T217] netdev_info+0xe2/0x116 [ 13.098535][ T217] ? netdev_notice+0x120/0x120 [ 13.098537][ T217] ? ww_mutex_lock+0x160/0x160 [ 13.098546][ T217] __dev_set_promiscuity.cold+0x7a/0x104 [ 13.098550][ T217] netif_set_promiscuity+0x4c/0xc0 [ 13.098553][ T217] dev_set_promiscuity+0xa1/0x230 [ 13.098555][ T217] ? __asan_memset+0x27/0x50 [ 13.098559][ T217] packet_mc_add+0x54e/0x890 [ 13.098561][ T217] ? __might_fault+0x97/0x140 [ 13.098565][ T217] ? __might_fault+0x97/0x140 [ 13.098568][ T217] ? _copy_from_user+0x42/0x90 [ 13.098572][ T217] packet_setsockopt+0x1953/0x21e0 [ 13.098576][ T217] ? packet_bind+0x170/0x170 [ 13.098579][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098581][ T217] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 13.098584][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 13.098586][ T217] ? lockdep_hardirqs_on+0x91/0x130 [ 13.098588][ T217] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 13.098591][ T217] ? rcu_is_watching+0x16/0xd0 [ 13.098592][ T217] ? __create_object+0x78/0x110 [ 13.098595][ T217] ? __raw_spin_lock_init+0x44/0x120 [ 13.098597][ T217] ? lockdep_init_map_type+0x5d/0x250 [ 13.098600][ T217] ? trace_kfree+0xd2/0x100 [ 13.098603][ T217] ? kfree+0x22/0x590 [ 13.098608][ T217] do_sock_setsockopt+0x115/0x490 [ 13.098612][ T217] ? put_user_ifreq+0x90/0x90 [ 13.098614][ T217] ? fd_install+0x18c/0x3d0 [ 13.098621][ T217] __sys_setsockopt+0xe4/0x150 [ 13.098626][ T217] __x64_sys_setsockopt+0xbd/0x180 [ 13.098628][ T217] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 13.098630][ T217] ? lockdep_hardirqs_on+0x91/0x130 [ 13.098631][ T217] ? do_syscall_64+0xa6/0x530 [ 13.098633][ T217] do_syscall_64+0xff/0x530 [ 13.098634][ T217] ? exc_page_fault+0xee/0x100 [ 13.098637][ T217] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.098639][ T217] RIP: 0033:0x7f5ab7de52de [ 13.098643][ T217] 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 [ 13.098645][ T217] RSP: 002b:00007ffd9fca9ae8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 13.098648][ T217] RAX: ffffffffffffffda RBX: 00007f5ab3d137e0 RCX: 00007f5ab7de52de [ 13.098649][ T217] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000006 [ 13.098650][ T217] RBP: 00007ffd9fca9b70 R08: 0000000000000010 R09: 00007ffd9fca9a10 [ 13.098651][ T217] R10: 00007f5ab3d300d0 R11: 0000000000000202 R12: 00007f5ab3d14600 [ 13.098652][ T217] R13: 0000000000000003 R14: 00007f5ab3d14600 R15: 00007ffd9fca9e48 [ 13.098662][ T217] [ 15.174641][ T217] test-dummy0: left promiscuous mode [ 15.174664][ T217] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.174666][ T217] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 217, name: python3 [ 15.174668][ T217] preempt_count: 1, expected: 0 [ 15.174669][ T217] RCU nest depth: 0, expected: 0 [ 15.174670][ T217] locks held by python3/217: 6, last CPU#1: [ 15.174672][ T217] #0: ffffffffae922700 (rtnl_mutex){+.+.}-{4:4}, at: packet_setsockopt+0x220/0x21e0 [ 15.174688][ T217] #1: ff110000082f1de0 (&dev_instance_lock_key#3){+.+.}-{4:4}, at: dev_set_promiscuity+0x96/0x230 [ 15.174695][ T217] #2: ffffffffae199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.174701][ T217] #3: ffffffffae199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.174704][ T217] #4: ffffffffae089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.174707][ T217] #5: ffffffffae089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.174710][ T217] irq event stamp: 919484 [ 15.174711][ T217] hardirqs last enabled at (919483): [] __down_trylock_console_sem+0x86/0xa0 [ 15.174714][ T217] hardirqs last disabled at (919484): [] console_emit_next_record+0x3f8/0x4f0 [ 15.174716][ T217] softirqs last enabled at (919460): [] __dev_queue_xmit+0x93b/0x1a20 [ 15.174718][ T217] softirqs last disabled at (919426): [] __dev_queue_xmit+0x243/0x1a20 [ 15.174720][ T217] Preemption disabled at: [ 15.174721][ T217] [] vprintk_emit+0x31b/0x3e0 [ 15.174727][ T217] CPU: 1 UID: 0 PID: 217 Comm: python3 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.174730][ T217] Tainted: [W]=WARN [ 15.174731][ T217] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.174733][ T217] Call Trace: [ 15.174734][ T217] [ 15.174736][ T217] dump_stack_lvl+0x6f/0xa0 [ 15.174741][ T217] ? vprintk_emit+0x31b/0x3e0 [ 15.174743][ T217] __might_resched.cold+0x1fe/0x2c1 [ 15.174747][ T217] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.174751][ T217] ? __kmalloc_noprof+0xdb/0x760 [ 15.174756][ T217] __kmalloc_noprof+0x443/0x760 [ 15.174759][ T217] ? alloc_buf.isra.0+0x4b/0x260 [ 15.174765][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 15.174767][ T217] alloc_buf.isra.0+0x4b/0x260 [ 15.174771][ T217] put_chars+0x1e1/0x2f0 [ 15.174774][ T217] ? __send_to_port+0x420/0x420 [ 15.174778][ T217] ? validate_chain+0x38b/0xc20 [ 15.174783][ T217] hvc_console_print+0x292/0x780 [ 15.174791][ T217] ? hvc_write+0x3a0/0x3a0 [ 15.174794][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174797][ T217] ? lock_acquire+0x13c/0x160 [ 15.174802][ T217] console_emit_next_record+0x252/0x4f0 [ 15.174805][ T217] ? devkmsg_read+0x4e0/0x4e0 [ 15.174809][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174811][ T217] ? lock_acquire+0x13c/0x160 [ 15.174815][ T217] console_flush_one_record+0x46f/0x710 [ 15.174819][ T217] ? console_emit_next_record+0x4f0/0x4f0 [ 15.174820][ T217] ? __lock_acquire+0x518/0xc20 [ 15.174826][ T217] console_unlock+0xee/0x1f0 [ 15.174828][ T217] ? console_flush_one_record+0x710/0x710 [ 15.174829][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174831][ T217] ? lock_acquire+0x60/0x160 [ 15.174835][ T217] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.174837][ T217] ? vprintk_emit+0x320/0x3e0 [ 15.174840][ T217] vprintk_emit+0x37c/0x3e0 [ 15.174843][ T217] ? wake_up_klogd_work_func+0x90/0x90 [ 15.174846][ T217] ? __lock_acquire+0x518/0xc20 [ 15.174850][ T217] _printk+0xc7/0x100 [ 15.174854][ T217] ? snapshot_read.cold+0x21/0x21 [ 15.174857][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174859][ T217] ? lock_acquire+0x13c/0x160 [ 15.174860][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174862][ T217] ? rcu_is_watching+0x16/0xd0 [ 15.174863][ T217] ? netdev_name+0x43/0x60 [ 15.174866][ T217] ? __netdev_printk+0x17f/0x1d0 [ 15.174869][ T217] netdev_info+0xe2/0x116 [ 15.174872][ T217] ? netdev_notice+0x120/0x120 [ 15.174874][ T217] ? ww_mutex_lock+0x160/0x160 [ 15.174879][ T217] ? __might_fault+0x97/0x140 [ 15.174885][ T217] __dev_set_promiscuity.cold+0x7a/0x104 [ 15.174890][ T217] netif_set_promiscuity+0x4c/0xc0 [ 15.174893][ T217] dev_set_promiscuity+0xa1/0x230 [ 15.174896][ T217] packet_setsockopt+0x1bd1/0x21e0 [ 15.174900][ T217] ? packet_bind+0x170/0x170 [ 15.174902][ T217] ? free_object+0x9/0x80 [ 15.174906][ T217] ? debug_object_free+0x27a/0x530 [ 15.174908][ T217] ? hrtimer_sleeper_start_expires+0x64/0x160 [ 15.174914][ T217] ? rt_mutex_postunlock+0x70/0x70 [ 15.174916][ T217] ? __asan_memset+0x27/0x50 [ 15.174922][ T217] ? hrtimer_nanosleep+0x2b6/0x340 [ 15.174924][ T217] ? nanosleep_copyout+0x120/0x120 [ 15.174927][ T217] do_sock_setsockopt+0x115/0x490 [ 15.174931][ T217] ? hrtimer_hres_workfn+0x20/0x20 [ 15.174933][ T217] ? put_user_ifreq+0x90/0x90 [ 15.174937][ T217] ? common_nsleep_timens+0x83/0x1d0 [ 15.174942][ T217] __sys_setsockopt+0xe4/0x150 [ 15.174947][ T217] __x64_sys_setsockopt+0xbd/0x180 [ 15.174948][ T217] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 15.174952][ T217] ? lockdep_hardirqs_on+0x91/0x130 [ 15.174954][ T217] ? do_syscall_64+0xa6/0x530 [ 15.174956][ T217] do_syscall_64+0xff/0x530 [ 15.174957][ T217] ? exc_page_fault+0xee/0x100 [ 15.174960][ T217] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.174962][ T217] RIP: 0033:0x7f5ab7de52de [ 15.174966][ T217] 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 [ 15.174967][ T217] RSP: 002b:00007ffd9fcaa098 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 15.174970][ T217] RAX: ffffffffffffffda RBX: 00007f5ab3d11df0 RCX: 00007f5ab7de52de [ 15.174971][ T217] RDX: 0000000000000002 RSI: 0000000000000107 RDI: 0000000000000006 [ 15.174972][ T217] RBP: 00007ffd9fcaa120 R08: 0000000000000010 R09: 00007ffd9fca9fc0 [ 15.174973][ T217] R10: 00007f5ab3d47490 R11: 0000000000000202 R12: 00007f5ab3d14600 [ 15.174974][ T217] R13: 0000000000000003 R14: 00007f5ab3d14600 R15: 00007ffd9fcaa3f8 [ 15.174981][ T217] [ 15.424070][ T221] test-bond1 (unregistering): (slave test-bond0): Releasing backup interface [ 15.432197][ T221] test-bond1 (unregistering): Released all slaves [ 15.487497][ T222] test-bond0 (unregistering): Released all slaves