[ 8.793587][ T170] rmmod (170) used greatest stack depth: 23952 bytes left [ 8.793604][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.793606][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: rmmod [ 8.793608][ T170] preempt_count: 2, expected: 0 [ 8.793609][ T170] RCU nest depth: 0, expected: 0 [ 8.793610][ T170] locks held by rmmod/170: 5, last CPU#1: [ 8.793612][ T170] #0: ffffffff9b8027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.793624][ T170] #1: ffffffff9b999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.793629][ T170] #2: ffffffff9b999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.793633][ T170] #3: ffffffff9b889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.793637][ T170] #4: ffffffff9b889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.793640][ T170] irq event stamp: 22168 [ 8.793641][ T170] hardirqs last enabled at (22167): [] __down_trylock_console_sem+0x86/0xa0 [ 8.793643][ T170] hardirqs last disabled at (22168): [] console_emit_next_record+0x3f8/0x4f0 [ 8.793645][ T170] softirqs last enabled at (22156): [] handle_softirqs+0x67c/0x900 [ 8.793647][ T170] softirqs last disabled at (22151): [] __irq_exit_rcu+0x145/0x1c0 [ 8.793650][ T170] Preemption disabled at: [ 8.793651][ T170] [<0000000000000000>] 0x0 [ 8.793657][ T170] CPU: 1 UID: 0 PID: 170 Comm: rmmod Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.793660][ T170] Tainted: [W]=WARN [ 8.793661][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.793663][ T170] Call Trace: [ 8.793664][ T170] [ 8.793666][ T170] dump_stack_lvl+0x6f/0xa0 [ 8.793672][ T170] __might_resched.cold+0x1fe/0x2c1 [ 8.793676][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.793680][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 8.793685][ T170] __kmalloc_noprof+0x443/0x760 [ 8.793686][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 8.793692][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.793694][ T170] alloc_buf.isra.0+0x4b/0x260 [ 8.793697][ T170] put_chars+0x1e1/0x2f0 [ 8.793700][ T170] ? __send_to_port+0x420/0x420 [ 8.793702][ T170] ? printk_get_next_message+0x2fe/0x7d0 [ 8.793705][ T170] ? rcu_read_lock_any_held+0x3c/0x90 [ 8.793707][ T170] ? validate_chain+0x38b/0xc20 [ 8.793712][ T170] hvc_console_print+0x292/0x780 [ 8.793715][ T170] ? __lock_acquire+0x518/0xc20 [ 8.793716][ T170] ? __lock_acquire+0x518/0xc20 [ 8.793720][ T170] ? hvc_write+0x3a0/0x3a0 [ 8.793723][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.793726][ T170] ? lock_acquire+0x13c/0x160 [ 8.793729][ T170] console_emit_next_record+0x252/0x4f0 [ 8.793733][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 8.793737][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.793739][ T170] ? lock_acquire+0x13c/0x160 [ 8.793742][ T170] console_flush_one_record+0x46f/0x710 [ 8.793746][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 8.793747][ T170] ? __lock_acquire+0x518/0xc20 [ 8.793752][ T170] console_unlock+0xee/0x1f0 [ 8.793755][ T170] ? console_flush_one_record+0x710/0x710 [ 8.793756][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.793758][ T170] ? lock_acquire+0x60/0x160 [ 8.793761][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.793763][ T170] ? vprintk_emit+0x320/0x3e0 [ 8.793766][ T170] vprintk_emit+0x37c/0x3e0 [ 8.793769][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 8.793772][ T170] ? __lock_acquire+0x518/0xc20 [ 8.793775][ T170] _printk+0xc7/0x100 [ 8.793779][ T170] ? snapshot_read.cold+0x21/0x21 [ 8.793782][ T170] ? do_raw_spin_lock+0x131/0x280 [ 8.793784][ T170] ? __rwlock_init+0x150/0x150 [ 8.793787][ T170] ? do_raw_spin_lock+0x131/0x280 [ 8.793790][ T170] do_exit.cold+0x82/0x9c [ 8.793793][ T170] ? exit_notify+0x890/0x890 [ 8.793795][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 8.793797][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.793801][ T170] do_group_exit+0xb8/0x370 [ 8.793805][ T170] __x64_sys_exit_group+0x3c/0x50 [ 8.793807][ T170] x64_sys_call+0x1567/0x1570 [ 8.793809][ T170] do_syscall_64+0xff/0x530 [ 8.793812][ T170] ? exc_page_fault+0xee/0x100 [ 8.793815][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.793817][ T170] RIP: 0033:0x7f13f08071b8 [ 8.793819][ T170] Code: Unable to access opcode bytes at 0x7f13f080718e. [ 8.793821][ T170] RSP: 002b:00007ffcdcb38178 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.793823][ T170] RAX: ffffffffffffffda RBX: 00007f13f0937f88 RCX: 00007f13f08071b8 [ 8.793824][ T170] RDX: 00007f13f0745ec8 RSI: ffffffffffffffa8 RDI: 0000000000000001 [ 8.793825][ T170] RBP: 00007ffcdcb381d0 R08: 0000000000000000 R09: 00000000000000a0 [ 8.793826][ T170] R10: 00007ffcdcb37fd0 R11: 0000000000000246 R12: 0000000000000001 [ 8.793826][ T170] R13: 0000000000000001 R14: 00007f13f0936680 R15: 00007f13f0937fa0 [ 8.793833][ T170] [ 10.985499][ T158] netconsole selftest: netcons_ar7jc [ 10.985522][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.985524][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 10.985526][ T158] preempt_count: 1, expected: 0 [ 10.985527][ T158] RCU nest depth: 0, expected: 0 [ 10.985528][ T158] locks held by bash/158: 4, last CPU#0: [ 10.985530][ T158] #0: ffffffff9b999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.985542][ T158] #1: ffffffff9b999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.985550][ T158] #2: ffffffff9b889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.985554][ T158] #3: ffffffff9b889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.985559][ T158] irq event stamp: 180542 [ 10.985560][ T158] hardirqs last enabled at (180541): [] __down_trylock_console_sem+0x86/0xa0 [ 10.985563][ T158] hardirqs last disabled at (180542): [] console_emit_next_record+0x3f8/0x4f0 [ 10.985565][ T158] softirqs last enabled at (180294): [] restore_fpregs_from_user+0x1cf/0x490 [ 10.985568][ T158] softirqs last disabled at (180292): [] restore_fpregs_from_user+0xc3/0x490 [ 10.985571][ T158] Preemption disabled at: [ 10.985571][ T158] [] vprintk_emit+0x31b/0x3e0 [ 10.985577][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.985580][ T158] Tainted: [W]=WARN [ 10.985581][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.985583][ T158] Call Trace: [ 10.985585][ T158] [ 10.985587][ T158] dump_stack_lvl+0x6f/0xa0 [ 10.985592][ T158] ? vprintk_emit+0x31b/0x3e0 [ 10.985594][ T158] __might_resched.cold+0x1fe/0x2c1 [ 10.985598][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.985602][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 10.985607][ T158] __kmalloc_noprof+0x443/0x760 [ 10.985609][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 10.985614][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.985617][ T158] alloc_buf.isra.0+0x4b/0x260 [ 10.985620][ T158] put_chars+0x1e1/0x2f0 [ 10.985623][ T158] ? __send_to_port+0x420/0x420 [ 10.985624][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 10.985627][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.985630][ T158] ? validate_chain+0x38b/0xc20 [ 10.985634][ T158] hvc_console_print+0x292/0x780 [ 10.985637][ T158] ? __lock_acquire+0x518/0xc20 [ 10.985638][ T158] ? __lock_acquire+0x518/0xc20 [ 10.985642][ T158] ? hvc_write+0x3a0/0x3a0 [ 10.985645][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.985648][ T158] ? lock_acquire+0x13c/0x160 [ 10.985652][ T158] console_emit_next_record+0x252/0x4f0 [ 10.985656][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 10.985660][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.985662][ T158] ? lock_acquire+0x13c/0x160 [ 10.985665][ T158] console_flush_one_record+0x46f/0x710 [ 10.985669][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 10.985671][ T158] ? __lock_acquire+0x518/0xc20 [ 10.985675][ T158] console_unlock+0xee/0x1f0 [ 10.985678][ T158] ? console_flush_one_record+0x710/0x710 [ 10.985680][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.985682][ T158] ? lock_acquire+0x60/0x160 [ 10.985685][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.985687][ T158] ? vprintk_emit+0x320/0x3e0 [ 10.985690][ T158] vprintk_emit+0x37c/0x3e0 [ 10.985693][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 10.985696][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.985701][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.985705][ T158] ? vprintk_emit.cold+0x107/0x107 [ 10.985709][ T158] ? __kmalloc_noprof+0x302/0x760 [ 10.985711][ T158] ? idr_get_free+0x830/0x830 [ 10.985715][ T158] ? devkmsg_write+0xd1/0x2c0 [ 10.985718][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.985720][ T158] devkmsg_write.cold+0x5a/0x8b [ 10.985723][ T158] ? vprintk_default+0x20/0x20 [ 10.985725][ T158] ? __lock_acquire+0x518/0xc20 [ 10.985727][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 10.985763][ T158] ? vprintk_default+0x20/0x20 [ 10.985766][ T158] new_sync_write+0x33e/0x760 [ 10.985771][ T158] ? new_sync_read+0x750/0x750 [ 10.985772][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.985780][ T158] vfs_write+0x6a2/0xbd0 [ 10.985784][ T158] ksys_write+0x116/0x250 [ 10.985787][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 10.985788][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.985791][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.985794][ T158] do_syscall_64+0xff/0x530 [ 10.985797][ T158] ? exc_page_fault+0xee/0x100 [ 10.985800][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.985802][ T158] RIP: 0033:0x7f026d4aa54e [ 10.985806][ T158] 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.985808][ T158] RSP: 002b:00007ffd6ae9c250 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.985811][ T158] RAX: ffffffffffffffda RBX: 00007f026d62b580 RCX: 00007f026d4aa54e [ 10.985812][ T158] RDX: 0000000000000023 RSI: 000055a5901a9d20 RDI: 0000000000000001 [ 10.985813][ T158] RBP: 00007ffd6ae9c260 R08: 0000000000000000 R09: 0000000000000000 [ 10.985814][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 10.985815][ T158] R13: 0000000000000023 R14: 000055a5901a9d20 R15: 0000000000000000 [ 10.985822][ T158] [ 13.917265][ T158] netconsole selftest: netcons_ar7jc [ 13.917286][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.917288][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.917290][ T158] preempt_count: 1, expected: 0 [ 13.917291][ T158] RCU nest depth: 0, expected: 0 [ 13.917292][ T158] locks held by bash/158: 4, last CPU#0: [ 13.917294][ T158] #0: ffffffff9b999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.917306][ T158] #1: ffffffff9b999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.917311][ T158] #2: ffffffff9b889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.917315][ T158] #3: ffffffff9b889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.917319][ T158] irq event stamp: 369698 [ 13.917321][ T158] hardirqs last enabled at (369697): [] __down_trylock_console_sem+0x86/0xa0 [ 13.917323][ T158] hardirqs last disabled at (369698): [] console_emit_next_record+0x3f8/0x4f0 [ 13.917325][ T158] softirqs last enabled at (369502): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.917328][ T158] softirqs last disabled at (369500): [] restore_fpregs_from_user+0xc3/0x490 [ 13.917331][ T158] Preemption disabled at: [ 13.917331][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.917337][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.917340][ T158] Tainted: [W]=WARN [ 13.917341][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.917343][ T158] Call Trace: [ 13.917344][ T158] [ 13.917346][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.917351][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.917353][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.917358][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.917362][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.917366][ T158] __kmalloc_noprof+0x443/0x760 [ 13.917368][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.917374][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.917377][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.917380][ T158] put_chars+0x1e1/0x2f0 [ 13.917383][ T158] ? __send_to_port+0x420/0x420 [ 13.917384][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.917388][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.917390][ T158] ? validate_chain+0x38b/0xc20 [ 13.917395][ T158] hvc_console_print+0x292/0x780 [ 13.917397][ T158] ? __lock_acquire+0x518/0xc20 [ 13.917399][ T158] ? __lock_acquire+0x518/0xc20 [ 13.917403][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.917406][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.917409][ T158] ? lock_acquire+0x13c/0x160 [ 13.917413][ T158] console_emit_next_record+0x252/0x4f0 [ 13.917416][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.917421][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.917423][ T158] ? lock_acquire+0x13c/0x160 [ 13.917426][ T158] console_flush_one_record+0x46f/0x710 [ 13.917430][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.917432][ T158] ? __lock_acquire+0x518/0xc20 [ 13.917437][ T158] console_unlock+0xee/0x1f0 [ 13.917440][ T158] ? console_flush_one_record+0x710/0x710 [ 13.917441][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.917443][ T158] ? lock_acquire+0x60/0x160 [ 13.917447][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.917448][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.917451][ T158] vprintk_emit+0x37c/0x3e0 [ 13.917455][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.917458][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.917463][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.917467][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.917471][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.917473][ T158] ? idr_get_free+0x830/0x830 [ 13.917477][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.917480][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.917483][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.917486][ T158] ? vprintk_default+0x20/0x20 [ 13.917487][ T158] ? __lock_acquire+0x518/0xc20 [ 13.917490][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.917494][ T158] ? vprintk_default+0x20/0x20 [ 13.917496][ T158] new_sync_write+0x33e/0x760 [ 13.917501][ T158] ? new_sync_read+0x750/0x750 [ 13.917503][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.917511][ T158] vfs_write+0x6a2/0xbd0 [ 13.917515][ T158] ksys_write+0x116/0x250 [ 13.917518][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.917519][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.917522][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.917525][ T158] do_syscall_64+0xff/0x530 [ 13.917528][ T158] ? exc_page_fault+0xee/0x100 [ 13.917531][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.917533][ T158] RIP: 0033:0x7f026d4aa54e [ 13.917537][ T158] 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.917539][ T158] RSP: 002b:00007ffd6ae9c250 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.917542][ T158] RAX: ffffffffffffffda RBX: 00007f026d62b580 RCX: 00007f026d4aa54e [ 13.917543][ T158] RDX: 0000000000000023 RSI: 000055a5901a9d20 RDI: 0000000000000001 [ 13.917545][ T158] RBP: 00007ffd6ae9c260 R08: 0000000000000000 R09: 0000000000000000 [ 13.917546][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.917546][ T158] R13: 0000000000000023 R14: 000055a5901a9d20 R15: 0000000000000000 [ 13.917556][ T158]