[ 10.471946][ T205] test-bond1: (slave test-bond0): making interface the new active one [ 10.472010][ T205] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.472012][ T205] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 205, name: ip [ 10.472014][ T205] preempt_count: 1, expected: 0 [ 10.472015][ T205] RCU nest depth: 0, expected: 0 [ 10.472016][ T205] locks held by ip/205: 5, last CPU#1: [ 10.472018][ T205] #0: ffffffff9e322700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 10.472030][ T205] #1: ffffffff9db99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.472036][ T205] #2: ffffffff9db99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.472039][ T205] #3: ffffffff9da89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.472042][ T205] #4: ffffffff9da89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.472050][ T205] irq event stamp: 43750 [ 10.472051][ T205] hardirqs last enabled at (43749): [] __down_trylock_console_sem+0x86/0xa0 [ 10.472054][ T205] hardirqs last disabled at (43750): [] console_emit_next_record+0x3f8/0x4f0 [ 10.472056][ T205] softirqs last enabled at (43610): [] __alloc_skb+0x4c5/0x5f0 [ 10.472059][ T205] softirqs last disabled at (43608): [] __alloc_skb+0x4c5/0x5f0 [ 10.472061][ T205] Preemption disabled at: [ 10.472062][ T205] [] vprintk_emit+0x31b/0x3e0 [ 10.472067][ T205] CPU: 1 UID: 0 PID: 205 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.472071][ T205] Tainted: [W]=WARN [ 10.472072][ T205] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.472074][ T205] Call Trace: [ 10.472076][ T205] [ 10.472077][ T205] dump_stack_lvl+0x6f/0xa0 [ 10.472082][ T205] ? vprintk_emit+0x31b/0x3e0 [ 10.472084][ T205] __might_resched.cold+0x1fe/0x2c1 [ 10.472089][ T205] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.472093][ T205] ? __kmalloc_noprof+0xdb/0x760 [ 10.472098][ T205] __kmalloc_noprof+0x443/0x760 [ 10.472101][ T205] ? alloc_buf.isra.0+0x4b/0x260 [ 10.472107][ T205] ? do_raw_spin_unlock+0x59/0x250 [ 10.472109][ T205] alloc_buf.isra.0+0x4b/0x260 [ 10.472113][ T205] put_chars+0x1e1/0x2f0 [ 10.472116][ T205] ? __send_to_port+0x420/0x420 [ 10.472120][ T205] ? validate_chain+0x34a/0xc20 [ 10.472126][ T205] hvc_console_print+0x292/0x780 [ 10.472129][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472135][ T205] ? hvc_write+0x3a0/0x3a0 [ 10.472138][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472144][ T205] console_emit_next_record+0x252/0x4f0 [ 10.472147][ T205] ? devkmsg_read+0x4e0/0x4e0 [ 10.472151][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472153][ T205] ? lock_acquire+0x13c/0x160 [ 10.472158][ T205] console_flush_one_record+0x46f/0x710 [ 10.472162][ T205] ? console_emit_next_record+0x4f0/0x4f0 [ 10.472163][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472169][ T205] console_unlock+0xee/0x1f0 [ 10.472171][ T205] ? console_flush_one_record+0x710/0x710 [ 10.472173][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472175][ T205] ? lock_acquire+0x60/0x160 [ 10.472179][ T205] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.472181][ T205] ? vprintk_emit+0x320/0x3e0 [ 10.472183][ T205] vprintk_emit+0x37c/0x3e0 [ 10.472187][ T205] ? wake_up_klogd_work_func+0x90/0x90 [ 10.472189][ T205] ? lock_acquire.part.0+0xd4/0x280 [ 10.472191][ T205] ? flush_tlb_mm_range+0x2ac/0x570 [ 10.472197][ T205] _printk+0xc7/0x100 [ 10.472200][ T205] ? snapshot_read.cold+0x21/0x21 [ 10.472204][ T205] ? find_held_lock+0x2b/0x80 [ 10.472206][ T205] ? netdev_name+0x43/0x60 [ 10.472209][ T205] ? __netdev_printk+0x17f/0x1d0 [ 10.472213][ T205] netdev_info+0xe2/0x116 [ 10.472215][ T205] ? netdev_notice+0x120/0x120 [ 10.472220][ T205] ? lockdep_rtnl_is_held+0x1a/0x20 [ 10.472222][ T205] ? bond_ipsec_del_sa_all+0x357/0x520 [ 10.472228][ T205] bond_change_active_slave.cold+0x52/0x21b [ 10.472232][ T205] ? lockdep_rtnl_is_held+0x1a/0x20 [ 10.472233][ T205] ? bond_choose_primary_or_current+0x246/0x6a0 [ 10.472237][ T205] ? bond_peer_notify_work_rearm+0x80/0x80 [ 10.472240][ T205] ? static_key_slow_inc_cpuslocked+0xa8/0xd0 [ 10.472246][ T205] bond_select_active_slave+0x114/0x4f0 [ 10.472250][ T205] ? bond_change_active_slave+0x21c0/0x21c0 [ 10.472255][ T205] ? static_key_slow_inc+0x27/0x30 [ 10.472257][ T205] bond_enslave+0x2437/0x5100 [ 10.472263][ T205] ? find_held_lock+0x2b/0x80 [ 10.472266][ T205] ? bond_update_slave_arr+0xcf0/0xcf0 [ 10.472267][ T205] ? mark_usage+0x61/0x170 [ 10.472269][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472271][ T205] ? __lock_acquire+0x501/0xc20 [ 10.472276][ T205] ? lock_acquire.part.0+0xd4/0x280 [ 10.472283][ T205] ? is_bpf_text_address+0x72/0x110 [ 10.472286][ T205] ? kernel_text_address+0x149/0x170 [ 10.472292][ T205] do_set_master+0x3b2/0x780 [ 10.472296][ T205] do_setlink.isra.0+0x9ec/0x2a60 [ 10.472300][ T205] ? stack_trace_save+0x93/0xc0 [ 10.472304][ T205] ? rtnl_link_get_size+0x350/0x350 [ 10.472306][ T205] ? rcu_read_lock_any_held+0x66/0x90 [ 10.472309][ T205] ? stack_depot_save_flags+0x38e/0x790 [ 10.472312][ T205] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.472314][ T205] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.472317][ T205] ? validate_chain+0x38b/0xc20 [ 10.472320][ T205] ? kasan_save_stack+0x3d/0x50 [ 10.472322][ T205] ? kasan_save_stack+0x2f/0x50 [ 10.472323][ T205] ? kasan_save_track+0x14/0x30 [ 10.472325][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472328][ T205] ? netlink_seq_next+0x1e/0x60 [ 10.472331][ T205] ? ___sys_sendmsg+0xc0/0x1d0 [ 10.472335][ T205] ? lock_acquire.part.0+0xd4/0x280 [ 10.472337][ T205] ? rtnl_newlink+0x9a8/0x11b0 [ 10.472340][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472342][ T205] ? lock_acquire+0x13c/0x160 [ 10.472344][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472345][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472347][ T205] ? trace_contention_end+0xb3/0x180 [ 10.472350][ T205] ? __mutex_lock+0x1db/0x1ea0 [ 10.472353][ T205] ? __mutex_lock+0x9a3/0x1ea0 [ 10.472355][ T205] ? rtnl_newlink+0x9a8/0x11b0 [ 10.472359][ T205] ? ww_mutex_lock+0x160/0x160 [ 10.472360][ T205] ? nla_get_range_signed+0x3d0/0x3d0 [ 10.472367][ T205] ? __rtnl_newlink+0x3fa/0xa50 [ 10.472373][ T205] rtnl_newlink+0x9f1/0x11b0 [ 10.472379][ T205] ? rtnl_bridge_getlink+0x850/0x850 [ 10.472381][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472386][ T205] ? lock_acquire.part.0+0xd4/0x280 [ 10.472388][ T205] ? find_held_lock+0x2b/0x80 [ 10.472391][ T205] ? rtnl_bridge_getlink+0x850/0x850 [ 10.472393][ T205] ? __lock_release.isra.0+0x69/0x1a0 [ 10.472397][ T205] ? rtnl_bridge_getlink+0x850/0x850 [ 10.472400][ T205] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 10.472403][ T205] ? rtnl_link_fill+0x900/0x900 [ 10.472405][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472410][ T205] ? lock_acquire.part.0+0xd4/0x280 [ 10.472412][ T205] ? find_held_lock+0x2b/0x80 [ 10.472416][ T205] netlink_rcv_skb+0x14e/0x3a0 [ 10.472418][ T205] ? rtnl_link_fill+0x900/0x900 [ 10.472422][ T205] ? netlink_ack+0xcd0/0xcd0 [ 10.472428][ T205] ? netlink_deliver_tap+0xc5/0x330 [ 10.472430][ T205] ? netlink_deliver_tap+0x13c/0x330 [ 10.472434][ T205] netlink_unicast+0x486/0x750 [ 10.472438][ T205] ? netlink_attachskb+0x810/0x810 [ 10.472441][ T205] ? __lock_acquire+0x518/0xc20 [ 10.472445][ T205] netlink_sendmsg+0x735/0xc60 [ 10.472449][ T205] ? netlink_unicast+0x750/0x750 [ 10.472453][ T205] ? __might_fault+0x97/0x140 [ 10.472459][ T205] ____sys_sendmsg+0x415/0x880 [ 10.472461][ T205] ? copy_msghdr_from_user+0x279/0x420 [ 10.472463][ T205] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 10.472464][ T205] ? move_addr_to_kernel+0x40/0x40 [ 10.472472][ T205] ___sys_sendmsg+0x14e/0x1d0 [ 10.472474][ T205] ? copy_msghdr_from_user+0x420/0x420 [ 10.472490][ T205] __sys_sendmsg+0x12c/0x1d0 [ 10.472493][ T205] ? __sys_sendmsg_sock+0x20/0x20 [ 10.472499][ T205] ? rcu_is_watching+0x16/0xd0 [ 10.472503][ T205] do_syscall_64+0xff/0x530 [ 10.472505][ T205] ? exc_page_fault+0xee/0x100 [ 10.472508][ T205] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.472510][ T205] RIP: 0033:0x7f8239e6b54e [ 10.472514][ T205] 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.472516][ T205] RSP: 002b:00007ffc2ed2bc40 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 10.472518][ T205] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8239e6b54e [ 10.472520][ T205] RDX: 0000000000000000 RSI: 00007ffc2ed2bcf0 RDI: 0000000000000005 [ 10.472520][ T205] RBP: 00007ffc2ed2bc50 R08: 0000000000000000 R09: 0000000000000000 [ 10.472521][ T205] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a918a91 [ 10.472522][ T205] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffc2ed2c3b0 [ 10.472529][ T205] [ 10.510242][ T205] test-bond1: (slave test-bond0): Enslaving as an active interface with an up link [ 10.520450][ T205] ip (205) used greatest stack depth: 22440 bytes left [ 10.778970][ T216] test-bond1: entered promiscuous mode [ 10.779242][ T216] test-bond0: entered promiscuous mode [ 11.802327][ T216] test-bond1: left promiscuous mode [ 11.802394][ T216] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.802397][ T216] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 216, name: tcpdump [ 11.802399][ T216] preempt_count: 1, expected: 0 [ 11.802400][ T216] RCU nest depth: 0, expected: 0 [ 11.802402][ T216] locks held by tcpdump/216: 6, last CPU#2: [ 11.802405][ T216] #0: ff11000004f04d78 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 11.802421][ T216] #1: ffffffff9e322700 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 11.802430][ T216] #2: ffffffff9db99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.802438][ T216] #3: ffffffff9db99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.802444][ T216] #4: ffffffff9da89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.802449][ T216] #5: ffffffff9da89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.802455][ T216] irq event stamp: 45858 [ 11.802456][ T216] hardirqs last enabled at (45857): [] __down_trylock_console_sem+0x86/0xa0 [ 11.802461][ T216] hardirqs last disabled at (45858): [] console_emit_next_record+0x3f8/0x4f0 [ 11.802463][ T216] softirqs last enabled at (45656): [] packet_setsockopt+0xcdf/0x21e0 [ 11.802466][ T216] softirqs last disabled at (45654): [] release_sock+0x21/0x240 [ 11.802471][ T216] Preemption disabled at: [ 11.802472][ T216] [] vprintk_emit+0x31b/0x3e0 [ 11.802479][ T216] CPU: 2 UID: 72 PID: 216 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.802484][ T216] Tainted: [W]=WARN [ 11.802485][ T216] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.802487][ T216] Call Trace: [ 11.802489][ T216] [ 11.802492][ T216] dump_stack_lvl+0x6f/0xa0 [ 11.802498][ T216] ? vprintk_emit+0x31b/0x3e0 [ 11.802501][ T216] __might_resched.cold+0x1fe/0x2c1 [ 11.802508][ T216] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.802514][ T216] ? __kmalloc_noprof+0xdb/0x760 [ 11.802522][ T216] __kmalloc_noprof+0x443/0x760 [ 11.802526][ T216] ? alloc_buf.isra.0+0x4b/0x260 [ 11.802536][ T216] ? do_raw_spin_unlock+0x59/0x250 [ 11.802539][ T216] alloc_buf.isra.0+0x4b/0x260 [ 11.802545][ T216] put_chars+0x1e1/0x2f0 [ 11.802548][ T216] ? check_prev_add+0xef/0xe90 [ 11.802553][ T216] ? __send_to_port+0x420/0x420 [ 11.802559][ T216] ? validate_chain+0x34a/0xc20 [ 11.802568][ T216] hvc_console_print+0x292/0x780 [ 11.802581][ T216] ? hvc_write+0x3a0/0x3a0 [ 11.802586][ T216] ? rcu_is_watching+0x16/0xd0 [ 11.802591][ T216] ? lock_acquire+0x13c/0x160 [ 11.802599][ T216] console_emit_next_record+0x252/0x4f0 [ 11.802605][ T216] ? devkmsg_read+0x4e0/0x4e0 [ 11.802613][ T216] ? rcu_is_watching+0x16/0xd0 [ 11.802616][ T216] ? lock_acquire+0x13c/0x160 [ 11.802623][ T216] console_flush_one_record+0x46f/0x710 [ 11.802630][ T216] ? console_emit_next_record+0x4f0/0x4f0 [ 11.802633][ T216] ? __lock_acquire+0x518/0xc20 [ 11.802643][ T216] console_unlock+0xee/0x1f0 [ 11.802647][ T216] ? console_flush_one_record+0x710/0x710 [ 11.802649][ T216] ? rcu_is_watching+0x16/0xd0 [ 11.802653][ T216] ? lock_acquire+0x60/0x160 [ 11.802659][ T216] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.802662][ T216] ? vprintk_emit+0x320/0x3e0 [ 11.802668][ T216] vprintk_emit+0x37c/0x3e0 [ 11.802674][ T216] ? wake_up_klogd_work_func+0x90/0x90 [ 11.802680][ T216] ? __lock_acquire+0x518/0xc20 [ 11.802687][ T216] _printk+0xc7/0x100 [ 11.802692][ T216] ? snapshot_read.cold+0x21/0x21 [ 11.802694][ T216] ? lock_acquire.part.0+0xd4/0x280 [ 11.802701][ T216] ? rcu_is_watching+0x16/0xd0 [ 11.802704][ T216] ? netdev_name+0x43/0x60 [ 11.802709][ T216] ? __netdev_printk+0x17f/0x1d0 [ 11.802715][ T216] netdev_info+0xe2/0x116 [ 11.802719][ T216] ? netdev_notice+0x120/0x120 [ 11.802722][ T216] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 11.802726][ T216] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 11.802732][ T216] ? ww_mutex_lock+0x160/0x160 [ 11.802735][ T216] ? lock_acquire.part.0+0xd4/0x280 [ 11.802739][ T216] ? ref_tracker_alloc+0x430/0x430 [ 11.802744][ T216] ? packet_release+0x363/0xc40 [ 11.802747][ T216] ? __fput+0x363/0xac0 [ 11.802752][ T216] ? mutex_is_locked+0x1c/0x50 [ 11.802757][ T216] __dev_set_promiscuity.cold+0x7a/0x104 [ 11.802764][ T216] netif_set_promiscuity+0x4c/0xc0 [ 11.802771][ T216] dev_set_promiscuity+0xa1/0x230 [ 11.802777][ T216] packet_release+0x4cb/0xc40 [ 11.802785][ T216] ? packet_set_ring+0x1740/0x1740 [ 11.802797][ T216] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 11.802805][ T216] __sock_release+0xb8/0x280 [ 11.802812][ T216] sock_close+0x18/0x20 [ 11.802815][ T216] __fput+0x363/0xac0 [ 11.802825][ T216] fput_close_sync+0xde/0x1b0 [ 11.802829][ T216] ? alloc_file_clone+0xe0/0xe0 [ 11.802833][ T216] ? do_raw_spin_unlock+0x59/0x250 [ 11.802840][ T216] __x64_sys_close+0x8b/0xf0 [ 11.802844][ T216] do_syscall_64+0xff/0x530 [ 11.802847][ T216] ? exc_page_fault+0xee/0x100 [ 11.802852][ T216] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.802856][ T216] RIP: 0033:0x7f19b388d54e [ 11.802861][ T216] 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.802863][ T216] RSP: 002b:00007ffca0fbd550 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 11.802867][ T216] RAX: ffffffffffffffda RBX: 00005555e1e05690 RCX: 00007f19b388d54e [ 11.802869][ T216] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 11.802871][ T216] RBP: 00007ffca0fbd560 R08: 0000000000000000 R09: 0000000000000000 [ 11.802872][ T216] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 11.802873][ T216] R13: 0000000000000000 R14: 00005555cb8fd800 R15: 0000000000000001 [ 11.802887][ T216] [ 11.858670][ T216] test-bond0: left promiscuous mode [ 13.774910][ T218] test-dummy0: entered promiscuous mode [ 13.775054][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.775057][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: python3 [ 13.775058][ T218] preempt_count: 1, expected: 0 [ 13.775059][ T218] RCU nest depth: 0, expected: 0 [ 13.775060][ T218] locks held by python3/218: 6, last CPU#2: [ 13.775063][ T218] #0: ffffffff9e322700 (rtnl_mutex){+.+.}-{4:4}, at: packet_mc_add+0x28/0x890 [ 13.775074][ T218] #1: ff110000051ccde0 (&dev_instance_lock_key#3){+.+.}-{4:4}, at: dev_set_promiscuity+0x96/0x230 [ 13.775081][ T218] #2: ffffffff9db99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.775087][ T218] #3: ffffffff9db99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.775090][ T218] #4: ffffffff9da89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.775093][ T218] #5: ffffffff9da89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.775096][ T218] irq event stamp: 877146 [ 13.775097][ T218] hardirqs last enabled at (877145): [] __down_trylock_console_sem+0x86/0xa0 [ 13.775101][ T218] hardirqs last disabled at (877146): [] console_emit_next_record+0x3f8/0x4f0 [ 13.775102][ T218] softirqs last enabled at (877130): [] sk_setsockopt+0xe09/0x4900 [ 13.775105][ T218] softirqs last disabled at (877128): [] release_sock+0x21/0x240 [ 13.775108][ T218] Preemption disabled at: [ 13.775109][ T218] [] vprintk_emit+0x31b/0x3e0 [ 13.775115][ T218] CPU: 2 UID: 0 PID: 218 Comm: python3 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.775119][ T218] Tainted: [W]=WARN [ 13.775120][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.775121][ T218] Call Trace: [ 13.775123][ T218] [ 13.775125][ T218] dump_stack_lvl+0x6f/0xa0 [ 13.775130][ T218] ? vprintk_emit+0x31b/0x3e0 [ 13.775132][ T218] __might_resched.cold+0x1fe/0x2c1 [ 13.775136][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.775140][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 13.775145][ T218] __kmalloc_noprof+0x443/0x760 [ 13.775148][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 13.775154][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 13.775157][ T218] alloc_buf.isra.0+0x4b/0x260 [ 13.775160][ T218] put_chars+0x1e1/0x2f0 [ 13.775164][ T218] ? __send_to_port+0x420/0x420 [ 13.775167][ T218] ? validate_chain+0x34a/0xc20 [ 13.775173][ T218] hvc_console_print+0x292/0x780 [ 13.775177][ T218] ? __lock_acquire+0x518/0xc20 [ 13.775182][ T218] ? hvc_write+0x3a0/0x3a0 [ 13.775185][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775192][ T218] console_emit_next_record+0x252/0x4f0 [ 13.775195][ T218] ? devkmsg_read+0x4e0/0x4e0 [ 13.775199][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775201][ T218] ? lock_acquire+0x13c/0x160 [ 13.775205][ T218] console_flush_one_record+0x46f/0x710 [ 13.775209][ T218] ? console_emit_next_record+0x4f0/0x4f0 [ 13.775210][ T218] ? __lock_acquire+0x518/0xc20 [ 13.775216][ T218] console_unlock+0xee/0x1f0 [ 13.775219][ T218] ? console_flush_one_record+0x710/0x710 [ 13.775220][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775222][ T218] ? lock_acquire+0x60/0x160 [ 13.775226][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.775228][ T218] ? vprintk_emit+0x320/0x3e0 [ 13.775231][ T218] vprintk_emit+0x37c/0x3e0 [ 13.775234][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 13.775236][ T218] ? __lock_acquire+0x518/0xc20 [ 13.775238][ T218] ? init_object+0x47/0xc0 [ 13.775243][ T218] _printk+0xc7/0x100 [ 13.775246][ T218] ? snapshot_read.cold+0x21/0x21 [ 13.775250][ T218] ? lock_acquire+0x13c/0x160 [ 13.775251][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775253][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775254][ T218] ? netdev_name+0x43/0x60 [ 13.775257][ T218] ? __netdev_printk+0x17f/0x1d0 [ 13.775261][ T218] netdev_info+0xe2/0x116 [ 13.775263][ T218] ? netdev_notice+0x120/0x120 [ 13.775265][ T218] ? ww_mutex_lock+0x160/0x160 [ 13.775274][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 13.775278][ T218] netif_set_promiscuity+0x4c/0xc0 [ 13.775281][ T218] dev_set_promiscuity+0xa1/0x230 [ 13.775283][ T218] ? __asan_memset+0x27/0x50 [ 13.775287][ T218] packet_mc_add+0x54e/0x890 [ 13.775289][ T218] ? __might_fault+0x97/0x140 [ 13.775293][ T218] ? __might_fault+0x97/0x140 [ 13.775295][ T218] ? _copy_from_user+0x42/0x90 [ 13.775300][ T218] packet_setsockopt+0x1953/0x21e0 [ 13.775304][ T218] ? packet_bind+0x170/0x170 [ 13.775307][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775309][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 13.775312][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 13.775313][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 13.775316][ T218] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 13.775318][ T218] ? rcu_is_watching+0x16/0xd0 [ 13.775320][ T218] ? __create_object+0x78/0x110 [ 13.775323][ T218] ? __raw_spin_lock_init+0x44/0x120 [ 13.775325][ T218] ? lockdep_init_map_type+0x5d/0x250 [ 13.775328][ T218] ? trace_kfree+0xd2/0x100 [ 13.775331][ T218] ? kfree+0x22/0x590 [ 13.775336][ T218] do_sock_setsockopt+0x115/0x490 [ 13.775340][ T218] ? put_user_ifreq+0x90/0x90 [ 13.775342][ T218] ? fd_install+0x18c/0x3d0 [ 13.775350][ T218] __sys_setsockopt+0xe4/0x150 [ 13.775354][ T218] __x64_sys_setsockopt+0xbd/0x180 [ 13.775356][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 13.775358][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 13.775360][ T218] ? do_syscall_64+0xa6/0x530 [ 13.775361][ T218] do_syscall_64+0xff/0x530 [ 13.775362][ T218] ? exc_page_fault+0xee/0x100 [ 13.775365][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.775368][ T218] RIP: 0033:0x7f47c517e2de [ 13.775372][ 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 [ 13.775374][ T218] RSP: 002b:00007fff245dfef8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 13.775377][ T218] RAX: ffffffffffffffda RBX: 00007f47c0f337e0 RCX: 00007f47c517e2de [ 13.775378][ T218] RDX: 0000000000000001 RSI: 0000000000000107 RDI: 0000000000000006 [ 13.775379][ T218] RBP: 00007fff245dff80 R08: 0000000000000010 R09: 00007fff245dfe20 [ 13.775380][ T218] R10: 00007f47c0f50050 R11: 0000000000000202 R12: 00007f47c0f34600 [ 13.775381][ T218] R13: 0000000000000003 R14: 00007f47c0f34600 R15: 00007fff245e0258 [ 13.775388][ T218] [ 15.850458][ T218] test-dummy0: left promiscuous mode [ 15.850480][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.850482][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: python3 [ 15.850484][ T218] preempt_count: 1, expected: 0 [ 15.850485][ T218] RCU nest depth: 0, expected: 0 [ 15.850486][ T218] locks held by python3/218: 6, last CPU#2: [ 15.850488][ T218] #0: ffffffff9e322700 (rtnl_mutex){+.+.}-{4:4}, at: packet_setsockopt+0x220/0x21e0 [ 15.850500][ T218] #1: ff110000051ccde0 (&dev_instance_lock_key#3){+.+.}-{4:4}, at: dev_set_promiscuity+0x96/0x230 [ 15.850506][ T218] #2: ffffffff9db99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.850512][ T218] #3: ffffffff9db99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.850515][ T218] #4: ffffffff9da89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.850518][ T218] #5: ffffffff9da89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.850521][ T218] irq event stamp: 883326 [ 15.850522][ T218] hardirqs last enabled at (883325): [] __down_trylock_console_sem+0x86/0xa0 [ 15.850526][ T218] hardirqs last disabled at (883326): [] console_emit_next_record+0x3f8/0x4f0 [ 15.850528][ T218] softirqs last enabled at (883302): [] __dev_queue_xmit+0x93b/0x1a20 [ 15.850530][ T218] softirqs last disabled at (883268): [] __dev_queue_xmit+0x243/0x1a20 [ 15.850532][ T218] Preemption disabled at: [ 15.850533][ T218] [] vprintk_emit+0x31b/0x3e0 [ 15.850539][ T218] CPU: 2 UID: 0 PID: 218 Comm: python3 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.850542][ T218] Tainted: [W]=WARN [ 15.850543][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.850545][ T218] Call Trace: [ 15.850547][ T218] [ 15.850548][ T218] dump_stack_lvl+0x6f/0xa0 [ 15.850553][ T218] ? vprintk_emit+0x31b/0x3e0 [ 15.850555][ T218] __might_resched.cold+0x1fe/0x2c1 [ 15.850560][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.850564][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 15.850569][ T218] __kmalloc_noprof+0x443/0x760 [ 15.850572][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 15.850578][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 15.850580][ T218] alloc_buf.isra.0+0x4b/0x260 [ 15.850584][ T218] put_chars+0x1e1/0x2f0 [ 15.850587][ T218] ? __send_to_port+0x420/0x420 [ 15.850591][ T218] ? validate_chain+0x38b/0xc20 [ 15.850597][ T218] hvc_console_print+0x292/0x780 [ 15.850604][ T218] ? hvc_write+0x3a0/0x3a0 [ 15.850607][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850611][ T218] ? lock_acquire+0x13c/0x160 [ 15.850615][ T218] console_emit_next_record+0x252/0x4f0 [ 15.850619][ T218] ? devkmsg_read+0x4e0/0x4e0 [ 15.850623][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850625][ T218] ? lock_acquire+0x13c/0x160 [ 15.850629][ T218] console_flush_one_record+0x46f/0x710 [ 15.850633][ T218] ? console_emit_next_record+0x4f0/0x4f0 [ 15.850635][ T218] ? __lock_acquire+0x518/0xc20 [ 15.850641][ T218] console_unlock+0xee/0x1f0 [ 15.850643][ T218] ? console_flush_one_record+0x710/0x710 [ 15.850645][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850647][ T218] ? lock_acquire+0x60/0x160 [ 15.850651][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.850653][ T218] ? vprintk_emit+0x320/0x3e0 [ 15.850656][ T218] vprintk_emit+0x37c/0x3e0 [ 15.850659][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 15.850662][ T218] ? __lock_acquire+0x518/0xc20 [ 15.850666][ T218] _printk+0xc7/0x100 [ 15.850670][ T218] ? snapshot_read.cold+0x21/0x21 [ 15.850673][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850675][ T218] ? lock_acquire+0x13c/0x160 [ 15.850677][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850678][ T218] ? rcu_is_watching+0x16/0xd0 [ 15.850680][ T218] ? netdev_name+0x43/0x60 [ 15.850683][ T218] ? __netdev_printk+0x17f/0x1d0 [ 15.850687][ T218] netdev_info+0xe2/0x116 [ 15.850689][ T218] ? netdev_notice+0x120/0x120 [ 15.850692][ T218] ? ww_mutex_lock+0x160/0x160 [ 15.850697][ T218] ? __might_fault+0x97/0x140 [ 15.850703][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 15.850708][ T218] netif_set_promiscuity+0x4c/0xc0 [ 15.850711][ T218] dev_set_promiscuity+0xa1/0x230 [ 15.850715][ T218] packet_setsockopt+0x1bd1/0x21e0 [ 15.850719][ T218] ? packet_bind+0x170/0x170 [ 15.850721][ T218] ? free_object+0x9/0x80 [ 15.850725][ T218] ? debug_object_free+0x27a/0x530 [ 15.850727][ T218] ? hrtimer_sleeper_start_expires+0x64/0x160 [ 15.850733][ T218] ? rt_mutex_postunlock+0x70/0x70 [ 15.850736][ T218] ? __asan_memset+0x27/0x50 [ 15.850742][ T218] ? hrtimer_nanosleep+0x2b6/0x340 [ 15.850744][ T218] ? nanosleep_copyout+0x120/0x120 [ 15.850747][ T218] do_sock_setsockopt+0x115/0x490 [ 15.850752][ T218] ? hrtimer_hres_workfn+0x20/0x20 [ 15.850754][ T218] ? put_user_ifreq+0x90/0x90 [ 15.850758][ T218] ? common_nsleep_timens+0x83/0x1d0 [ 15.850763][ T218] __sys_setsockopt+0xe4/0x150 [ 15.850768][ T218] __x64_sys_setsockopt+0xbd/0x180 [ 15.850770][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 15.850773][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 15.850776][ T218] ? do_syscall_64+0xa6/0x530 [ 15.850777][ T218] do_syscall_64+0xff/0x530 [ 15.850779][ T218] ? irq_exit_rcu+0x1a/0x30 [ 15.850783][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.850785][ T218] RIP: 0033:0x7f47c517e2de [ 15.850790][ 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 [ 15.850791][ T218] RSP: 002b:00007fff245e04a8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 15.850794][ T218] RAX: ffffffffffffffda RBX: 00007f47c0f31df0 RCX: 00007f47c517e2de [ 15.850796][ T218] RDX: 0000000000000002 RSI: 0000000000000107 RDI: 0000000000000006 [ 15.850796][ T218] RBP: 00007fff245e0530 R08: 0000000000000010 R09: 00007fff245e03d0 [ 15.850797][ T218] R10: 00007f47c0f51790 R11: 0000000000000202 R12: 00007f47c0f34600 [ 15.850798][ T218] R13: 0000000000000003 R14: 00007f47c0f34600 R15: 00007fff245e0808 [ 15.850812][ T218] [ 16.078214][ T221] test-bond1 (unregistering): (slave test-bond0): Releasing backup interface [ 16.086568][ T221] test-bond1 (unregistering): Released all slaves [ 16.150767][ T222] test-bond0 (unregistering): Released all slaves