[ 10.721786][ T198] ip (198) used greatest stack depth: 23856 bytes left [ 10.721808][ T198] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.721811][ T198] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 198, name: ip [ 10.721813][ T198] preempt_count: 2, expected: 0 [ 10.721815][ T198] RCU nest depth: 0, expected: 0 [ 10.721816][ T198] locks held by ip/198: 5, last CPU#0: [ 10.721818][ T198] #0: ffffffffae0167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.721832][ T198] #1: ffffffffae17ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.721838][ T198] #2: ffffffffae17de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.721844][ T198] #3: ffffffffae09d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.721850][ T198] #4: ffffffffae09d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.721855][ T198] irq event stamp: 29034 [ 10.721856][ T198] hardirqs last enabled at (29033): [] __down_trylock_console_sem+0x86/0xa0 [ 10.721860][ T198] hardirqs last disabled at (29034): [] console_emit_next_record+0x3d4/0x4c0 [ 10.721863][ T198] softirqs last enabled at (28814): [] handle_softirqs+0x67c/0x900 [ 10.721866][ T198] softirqs last disabled at (28807): [] __irq_exit_rcu+0x145/0x1c0 [ 10.721869][ T198] Preemption disabled at: [ 10.721870][ T198] [<0000000000000000>] 0x0 [ 10.721878][ T198] CPU: 0 UID: 0 PID: 198 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.721883][ T198] Tainted: [W]=WARN [ 10.721884][ T198] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.721886][ T198] Call Trace: [ 10.721888][ T198] [ 10.721890][ T198] dump_stack_lvl+0x6f/0xa0 [ 10.721898][ T198] __might_resched.cold+0x1fe/0x2c1 [ 10.721904][ T198] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.721909][ T198] ? __kmalloc_noprof+0xdb/0x760 [ 10.721916][ T198] __kmalloc_noprof+0x443/0x760 [ 10.721919][ T198] ? alloc_buf.isra.0+0x4b/0x260 [ 10.721928][ T198] ? do_raw_spin_unlock+0x59/0x250 [ 10.721931][ T198] alloc_buf.isra.0+0x4b/0x260 [ 10.721937][ T198] put_chars+0x1e1/0x2f0 [ 10.721940][ T198] ? __send_to_port+0x420/0x420 [ 10.721942][ T198] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.721947][ T198] ? validate_chain+0x38b/0xc20 [ 10.721956][ T198] hvc_console_print+0x292/0x780 [ 10.721967][ T198] ? hvc_write+0x3a0/0x3a0 [ 10.721971][ T198] ? rcu_is_watching+0x16/0xd0 [ 10.721974][ T198] ? lock_acquire+0x13c/0x160 [ 10.721980][ T198] console_emit_next_record+0x22f/0x4c0 [ 10.721986][ T198] ? devkmsg_read+0x4b0/0x4b0 [ 10.721988][ T198] ? console_flush_one_record+0x106/0x710 [ 10.721993][ T198] ? rcu_is_watching+0x16/0xd0 [ 10.721996][ T198] ? lock_acquire+0x13c/0x160 [ 10.722002][ T198] console_flush_one_record+0x46f/0x710 [ 10.722009][ T198] ? console_emit_next_record+0x4c0/0x4c0 [ 10.722011][ T198] ? __lock_acquire+0x518/0xc20 [ 10.722020][ T198] console_unlock+0xee/0x1f0 [ 10.722025][ T198] ? console_flush_one_record+0x710/0x710 [ 10.722027][ T198] ? rcu_is_watching+0x16/0xd0 [ 10.722030][ T198] ? lock_acquire+0xe0/0x160 [ 10.722036][ T198] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.722038][ T198] ? vprintk_emit+0x320/0x3e0 [ 10.722043][ T198] vprintk_emit+0x37c/0x3e0 [ 10.722048][ T198] ? wake_up_klogd_work_func+0x90/0x90 [ 10.722053][ T198] ? __lock_acquire+0x518/0xc20 [ 10.722059][ T198] _printk+0xc7/0x100 [ 10.722064][ T198] ? snapshot_read.cold+0x21/0x21 [ 10.722068][ T198] ? do_raw_spin_lock+0x131/0x280 [ 10.722072][ T198] ? __rwlock_init+0x150/0x150 [ 10.722078][ T198] ? do_raw_spin_lock+0x131/0x280 [ 10.722082][ T198] do_exit.cold+0x82/0x9c [ 10.722087][ T198] ? exit_notify+0x890/0x890 [ 10.722089][ T198] ? __lock_release.isra.0+0x69/0x1a0 [ 10.722093][ T198] ? rcu_is_watching+0x16/0xd0 [ 10.722099][ T198] do_group_exit+0xb8/0x370 [ 10.722103][ T198] __x64_sys_exit_group+0x3c/0x50 [ 10.722106][ T198] x64_sys_call+0x1567/0x1570 [ 10.722109][ T198] do_syscall_64+0xff/0x530 [ 10.722114][ T198] ? exc_page_fault+0xee/0x100 [ 10.722118][ T198] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.722121][ T198] RIP: 0033:0x7f003c8221b8 [ 10.722124][ T198] Code: Unable to access opcode bytes at 0x7f003c82218e. [ 10.722126][ T198] RSP: 002b:00007ffefe943f78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.722129][ T198] RAX: ffffffffffffffda RBX: 00007f003c952f88 RCX: 00007f003c8221b8 [ 10.722130][ T198] RDX: 00007f003c56cfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.722131][ T198] RBP: 00007ffefe943fd0 R08: 0000000000000000 R09: 0000000000000050 [ 10.722133][ T198] R10: 00007ffefe943d90 R11: 0000000000000246 R12: 0000000000000001 [ 10.722134][ T198] R13: 0000000000000000 R14: 00007f003c951680 R15: 00007f003c952fa0 [ 10.722145][ T198] [ 11.500714][ T218] link0: entered promiscuous mode [ 12.503973][ T218] link0: left promiscuous mode [ 12.504070][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.504072][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: tcpdump [ 12.504073][ T218] preempt_count: 1, expected: 0 [ 12.504075][ T218] RCU nest depth: 0, expected: 0 [ 12.504076][ T218] locks held by tcpdump/218: 6, last CPU#1: [ 12.504078][ T218] #0: ff1100000f2bae40 (&sb->s_type->i_mutex_key#12){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 12.504090][ T218] #1: ffffffffae91b740 (rtnl_mutex){+.+.}-{4:4}, at: packet_release+0x3fb/0xc40 [ 12.504096][ T218] #2: ffffffffae17ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.504101][ T218] #3: ffffffffae17de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.504106][ T218] #4: ffffffffae09d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.504109][ T218] #5: ffffffffae09d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.504113][ T218] irq event stamp: 68806 [ 12.504114][ T218] hardirqs last enabled at (68805): [] __down_trylock_console_sem+0x86/0xa0 [ 12.504117][ T218] hardirqs last disabled at (68806): [] console_emit_next_record+0x3d4/0x4c0 [ 12.504119][ T218] softirqs last enabled at (68584): [] packet_setsockopt+0xcdf/0x21e0 [ 12.504121][ T218] softirqs last disabled at (68582): [] release_sock+0x21/0x240 [ 12.504124][ T218] Preemption disabled at: [ 12.504125][ T218] [] vprintk_emit+0x31b/0x3e0 [ 12.504131][ T218] CPU: 1 UID: 0 PID: 218 Comm: tcpdump Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.504134][ T218] Tainted: [W]=WARN [ 12.504135][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.504137][ T218] Call Trace: [ 12.504139][ T218] [ 12.504141][ T218] dump_stack_lvl+0x6f/0xa0 [ 12.504147][ T218] ? vprintk_emit+0x31b/0x3e0 [ 12.504148][ T218] __might_resched.cold+0x1fe/0x2c1 [ 12.504153][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.504157][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 12.504162][ T218] __kmalloc_noprof+0x443/0x760 [ 12.504164][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 12.504170][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 12.504173][ T218] alloc_buf.isra.0+0x4b/0x260 [ 12.504177][ T218] put_chars+0x1e1/0x2f0 [ 12.504180][ T218] ? __send_to_port+0x420/0x420 [ 12.504181][ T218] ? check_prev_add+0xef/0xe90 [ 12.504185][ T218] ? validate_chain+0x34a/0xc20 [ 12.504189][ T218] hvc_console_print+0x292/0x780 [ 12.504193][ T218] ? mark_usage+0x61/0x170 [ 12.504195][ T218] ? __lock_acquire+0x518/0xc20 [ 12.504197][ T218] ? __lock_acquire+0x518/0xc20 [ 12.504201][ T218] ? hvc_write+0x3a0/0x3a0 [ 12.504203][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.504207][ T218] ? lock_acquire+0x13c/0x160 [ 12.504211][ T218] console_emit_next_record+0x22f/0x4c0 [ 12.504215][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 12.504217][ T218] ? console_flush_one_record+0x106/0x710 [ 12.504220][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.504223][ T218] ? lock_acquire+0x13c/0x160 [ 12.504227][ T218] console_flush_one_record+0x46f/0x710 [ 12.504234][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 12.504236][ T218] ? __lock_acquire+0x518/0xc20 [ 12.504241][ T218] console_unlock+0xee/0x1f0 [ 12.504244][ T218] ? console_flush_one_record+0x710/0x710 [ 12.504246][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.504247][ T218] ? lock_acquire+0xe0/0x160 [ 12.504251][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.504253][ T218] ? vprintk_emit+0x320/0x3e0 [ 12.504255][ T218] vprintk_emit+0x37c/0x3e0 [ 12.504259][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 12.504268][ T218] ? __lock_acquire+0x518/0xc20 [ 12.504272][ T218] _printk+0xc7/0x100 [ 12.504276][ T218] ? snapshot_read.cold+0x21/0x21 [ 12.504277][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.504281][ T218] ? rcu_is_watching+0x16/0xd0 [ 12.504283][ T218] ? netdev_name+0x43/0x60 [ 12.504286][ T218] ? __netdev_printk+0x17f/0x1d0 [ 12.504290][ T218] netdev_info+0xe2/0x116 [ 12.504293][ T218] ? netdev_notice+0x120/0x120 [ 12.504295][ T218] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 12.504297][ T218] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 12.504302][ T218] ? ww_mutex_lock+0x160/0x160 [ 12.504303][ T218] ? lock_acquire.part.0+0xd4/0x280 [ 12.504305][ T218] ? ref_tracker_alloc+0x430/0x430 [ 12.504309][ T218] ? packet_release+0x363/0xc40 [ 12.504311][ T218] ? __fput+0x36c/0xad0 [ 12.504314][ T218] ? mutex_is_locked+0x1c/0x50 [ 12.504317][ T218] __dev_set_promiscuity.cold+0x7a/0x104 [ 12.504320][ T218] netif_set_promiscuity+0x4c/0xc0 [ 12.504325][ T218] dev_set_promiscuity+0xa1/0x230 [ 12.504328][ T218] packet_release+0x4cb/0xc40 [ 12.504332][ T218] ? packet_set_ring+0x1740/0x1740 [ 12.504336][ T218] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 12.504340][ T218] __sock_release+0xb8/0x280 [ 12.504343][ T218] sock_close+0x18/0x20 [ 12.504345][ T218] __fput+0x36c/0xad0 [ 12.504350][ T218] fput_close_sync+0xde/0x1b0 [ 12.504353][ T218] ? alloc_file_clone+0xe0/0xe0 [ 12.504355][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 12.504359][ T218] __x64_sys_close+0x8b/0xf0 [ 12.504362][ T218] do_syscall_64+0xff/0x530 [ 12.504365][ T218] ? exc_page_fault+0xee/0x100 [ 12.504368][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.504370][ T218] RIP: 0033:0x7ff90400d54e [ 12.504374][ 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 [ 12.504375][ T218] RSP: 002b:00007ffdf7464cd0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 12.504378][ T218] RAX: ffffffffffffffda RBX: 0000562ee631e690 RCX: 00007ff90400d54e [ 12.504379][ T218] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 [ 12.504380][ T218] RBP: 00007ffdf7464ce0 R08: 0000000000000000 R09: 0000000000000000 [ 12.504381][ T218] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 [ 12.504382][ T218] R13: 0000000000000000 R14: 0000562ebf8ac760 R15: 0000000000000001 [ 12.504389][ T218]