[ 9.927717][ T170] rmmod (170) used greatest stack depth: 24480 bytes left [ 9.927737][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.927739][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: rmmod [ 9.927741][ T170] preempt_count: 2, expected: 0 [ 9.927742][ T170] RCU nest depth: 0, expected: 0 [ 9.927743][ T170] locks held by rmmod/170: 5, last CPU#0: [ 9.927745][ T170] #0: ffffffffaf0027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.927757][ T170] #1: ffffffffaf199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.927763][ T170] #2: ffffffffaf199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.927767][ T170] #3: ffffffffaf089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.927770][ T170] #4: ffffffffaf089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.927774][ T170] irq event stamp: 22376 [ 9.927775][ T170] hardirqs last enabled at (22375): [] __down_trylock_console_sem+0x86/0xa0 [ 9.927777][ T170] hardirqs last disabled at (22376): [] console_emit_next_record+0x3f8/0x4f0 [ 9.927779][ T170] softirqs last enabled at (20678): [] handle_softirqs+0x67c/0x900 [ 9.927782][ T170] softirqs last disabled at (20667): [] __irq_exit_rcu+0x145/0x1c0 [ 9.927785][ T170] Preemption disabled at: [ 9.927786][ T170] [<0000000000000000>] 0x0 [ 9.927793][ T170] CPU: 0 UID: 0 PID: 170 Comm: rmmod Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.927796][ T170] Tainted: [W]=WARN [ 9.927797][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.927799][ T170] Call Trace: [ 9.927801][ T170] [ 9.927803][ T170] dump_stack_lvl+0x6f/0xa0 [ 9.927809][ T170] __might_resched.cold+0x1fe/0x2c1 [ 9.927813][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.927817][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 9.927822][ T170] __kmalloc_noprof+0x443/0x760 [ 9.927824][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 9.927829][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.927832][ T170] alloc_buf.isra.0+0x4b/0x260 [ 9.927835][ T170] put_chars+0x1e1/0x2f0 [ 9.927838][ T170] ? __send_to_port+0x420/0x420 [ 9.927839][ T170] ? printk_get_next_message+0x2fe/0x7d0 [ 9.927842][ T170] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.927845][ T170] ? validate_chain+0x38b/0xc20 [ 9.927849][ T170] hvc_console_print+0x292/0x780 [ 9.927852][ T170] ? __lock_acquire+0x518/0xc20 [ 9.927853][ T170] ? __lock_acquire+0x518/0xc20 [ 9.927858][ T170] ? hvc_write+0x3a0/0x3a0 [ 9.927861][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.927863][ T170] ? lock_acquire+0x13c/0x160 [ 9.927867][ T170] console_emit_next_record+0x252/0x4f0 [ 9.927871][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 9.927875][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.927877][ T170] ? lock_acquire+0x13c/0x160 [ 9.927881][ T170] console_flush_one_record+0x46f/0x710 [ 9.927884][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 9.927886][ T170] ? __lock_acquire+0x518/0xc20 [ 9.927891][ T170] console_unlock+0xee/0x1f0 [ 9.927893][ T170] ? console_flush_one_record+0x710/0x710 [ 9.927895][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.927897][ T170] ? lock_acquire+0x60/0x160 [ 9.927900][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.927902][ T170] ? vprintk_emit+0x320/0x3e0 [ 9.927905][ T170] vprintk_emit+0x37c/0x3e0 [ 9.927908][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 9.927912][ T170] ? __lock_acquire+0x518/0xc20 [ 9.927915][ T170] _printk+0xc7/0x100 [ 9.927918][ T170] ? snapshot_read.cold+0x21/0x21 [ 9.927921][ T170] ? do_raw_spin_lock+0x131/0x280 [ 9.927924][ T170] ? __rwlock_init+0x150/0x150 [ 9.927927][ T170] ? do_raw_spin_lock+0x131/0x280 [ 9.927929][ T170] do_exit.cold+0x82/0x9c [ 9.927933][ T170] ? exit_notify+0x890/0x890 [ 9.927935][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 9.927937][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.927941][ T170] do_group_exit+0xb8/0x370 [ 9.927945][ T170] __x64_sys_exit_group+0x3c/0x50 [ 9.927947][ T170] x64_sys_call+0x1567/0x1570 [ 9.927949][ T170] do_syscall_64+0xff/0x530 [ 9.927952][ T170] ? exc_page_fault+0xee/0x100 [ 9.927956][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.927958][ T170] RIP: 0033:0x7f933b3b01b8 [ 9.927960][ T170] Code: Unable to access opcode bytes at 0x7f933b3b018e. [ 9.927962][ T170] RSP: 002b:00007fff496d01d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.927964][ T170] RAX: ffffffffffffffda RBX: 00007f933b4e0f88 RCX: 00007f933b3b01b8 [ 9.927965][ T170] RDX: 00007f933b2eeec8 RSI: ffffffffffffffa8 RDI: 0000000000000001 [ 9.927966][ T170] RBP: 00007fff496d0230 R08: 0000000000000000 R09: 00000000000000a0 [ 9.927967][ T170] R10: 00007fff496d0030 R11: 0000000000000246 R12: 0000000000000001 [ 9.927968][ T170] R13: 0000000000000001 R14: 00007f933b4df680 R15: 00007f933b4e0fa0 [ 9.927974][ T170] [ 12.541831][ T158] netconsole selftest: netcons_b0Leg [ 12.542445][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.542448][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.542450][ T158] preempt_count: 1, expected: 0 [ 12.542451][ T158] RCU nest depth: 0, expected: 0 [ 12.542452][ T158] locks held by bash/158: 4, last CPU#0: [ 12.542454][ T158] #0: ffffffffaf199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.542468][ T158] #1: ffffffffaf199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.542473][ T158] #2: ffffffffaf089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.542477][ T158] #3: ffffffffaf089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.542482][ T158] irq event stamp: 191216 [ 12.542484][ T158] hardirqs last enabled at (191215): [] __down_trylock_console_sem+0x86/0xa0 [ 12.542492][ T158] hardirqs last disabled at (191216): [] console_emit_next_record+0x3f8/0x4f0 [ 12.542494][ T158] softirqs last enabled at (190966): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.542498][ T158] softirqs last disabled at (190964): [] restore_fpregs_from_user+0xc3/0x490 [ 12.542501][ T158] Preemption disabled at: [ 12.542501][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.542507][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.542511][ T158] Tainted: [W]=WARN [ 12.542512][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.542514][ T158] Call Trace: [ 12.542516][ T158] [ 12.542518][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.542523][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.542525][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.542530][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.542533][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.542538][ T158] __kmalloc_noprof+0x443/0x760 [ 12.542540][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.542546][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.542549][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.542552][ T158] put_chars+0x1e1/0x2f0 [ 12.542555][ T158] ? __send_to_port+0x420/0x420 [ 12.542557][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.542560][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.542564][ T158] ? validate_chain+0x38b/0xc20 [ 12.542569][ T158] hvc_console_print+0x292/0x780 [ 12.542571][ T158] ? __lock_acquire+0x518/0xc20 [ 12.542573][ T158] ? __lock_acquire+0x518/0xc20 [ 12.542577][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.542580][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.542583][ T158] ? lock_acquire+0x13c/0x160 [ 12.542587][ T158] console_emit_next_record+0x252/0x4f0 [ 12.542591][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.542595][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.542597][ T158] ? lock_acquire+0x13c/0x160 [ 12.542601][ T158] console_flush_one_record+0x46f/0x710 [ 12.542605][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.542607][ T158] ? __lock_acquire+0x518/0xc20 [ 12.542612][ T158] console_unlock+0xee/0x1f0 [ 12.542614][ T158] ? console_flush_one_record+0x710/0x710 [ 12.542616][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.542618][ T158] ? lock_acquire+0x60/0x160 [ 12.542622][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.542623][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.542626][ T158] vprintk_emit+0x37c/0x3e0 [ 12.542630][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.542633][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.542639][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.542643][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.542647][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.542649][ T158] ? idr_get_free+0x830/0x830 [ 12.542653][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.542656][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.542659][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.542661][ T158] ? vprintk_default+0x20/0x20 [ 12.542663][ T158] ? __lock_acquire+0x518/0xc20 [ 12.542665][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 12.542670][ T158] ? vprintk_default+0x20/0x20 [ 12.542672][ T158] new_sync_write+0x33e/0x760 [ 12.542677][ T158] ? new_sync_read+0x750/0x750 [ 12.542679][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.542687][ T158] vfs_write+0x6a2/0xbd0 [ 12.542692][ T158] ksys_write+0x116/0x250 [ 12.542695][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.542696][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.542699][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.542703][ T158] do_syscall_64+0xff/0x530 [ 12.542705][ T158] ? exc_page_fault+0xee/0x100 [ 12.542708][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.542711][ T158] RIP: 0033:0x7fb07fa5454e [ 12.542715][ 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 [ 12.542717][ T158] RSP: 002b:00007ffd68bba6e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.542720][ T158] RAX: ffffffffffffffda RBX: 00007fb07fbd5580 RCX: 00007fb07fa5454e [ 12.542721][ T158] RDX: 0000000000000023 RSI: 0000560ed29dbd20 RDI: 0000000000000001 [ 12.542722][ T158] RBP: 00007ffd68bba6f0 R08: 0000000000000000 R09: 0000000000000000 [ 12.542723][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.542724][ T158] R13: 0000000000000023 R14: 0000560ed29dbd20 R15: 0000000000000000 [ 12.542731][ T158] [ 15.911220][ T158] netconsole selftest: netcons_b0Leg [ 15.911246][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.911249][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.911251][ T158] preempt_count: 1, expected: 0 [ 15.911252][ T158] RCU nest depth: 0, expected: 0 [ 15.911253][ T158] locks held by bash/158: 4, last CPU#1: [ 15.911256][ T158] #0: ffffffffaf199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.911269][ T158] #1: ffffffffaf199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.911274][ T158] #2: ffffffffaf089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.911278][ T158] #3: ffffffffaf089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.911283][ T158] irq event stamp: 395428 [ 15.911285][ T158] hardirqs last enabled at (395427): [] __down_trylock_console_sem+0x86/0xa0 [ 15.911288][ T158] hardirqs last disabled at (395428): [] console_emit_next_record+0x3f8/0x4f0 [ 15.911290][ T158] softirqs last enabled at (395230): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.911293][ T158] softirqs last disabled at (395228): [] restore_fpregs_from_user+0xc3/0x490 [ 15.911296][ T158] Preemption disabled at: [ 15.911297][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.911303][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.911307][ T158] Tainted: [W]=WARN [ 15.911308][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.911310][ T158] Call Trace: [ 15.911312][ T158] [ 15.911313][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.911318][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.911320][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.911325][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.911328][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.911333][ T158] __kmalloc_noprof+0x443/0x760 [ 15.911335][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.911341][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.911343][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.911346][ T158] put_chars+0x1e1/0x2f0 [ 15.911349][ T158] ? __send_to_port+0x420/0x420 [ 15.911351][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.911354][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.911357][ T158] ? validate_chain+0x38b/0xc20 [ 15.911361][ T158] hvc_console_print+0x292/0x780 [ 15.911364][ T158] ? __lock_acquire+0x518/0xc20 [ 15.911365][ T158] ? __lock_acquire+0x518/0xc20 [ 15.911369][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.911372][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.911375][ T158] ? lock_acquire+0x13c/0x160 [ 15.911379][ T158] console_emit_next_record+0x252/0x4f0 [ 15.911383][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.911387][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.911389][ T158] ? lock_acquire+0x13c/0x160 [ 15.911393][ T158] console_flush_one_record+0x46f/0x710 [ 15.911397][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.911398][ T158] ? __lock_acquire+0x518/0xc20 [ 15.911403][ T158] console_unlock+0xee/0x1f0 [ 15.911406][ T158] ? console_flush_one_record+0x710/0x710 [ 15.911408][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.911410][ T158] ? lock_acquire+0x60/0x160 [ 15.911413][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.911414][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.911417][ T158] vprintk_emit+0x37c/0x3e0 [ 15.911421][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.911424][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.911430][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.911434][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.911438][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.911440][ T158] ? idr_get_free+0x830/0x830 [ 15.911444][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.911447][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.911449][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.911452][ T158] ? vprintk_default+0x20/0x20 [ 15.911454][ T158] ? __lock_acquire+0x518/0xc20 [ 15.911456][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.911460][ T158] ? vprintk_default+0x20/0x20 [ 15.911462][ T158] new_sync_write+0x33e/0x760 [ 15.911467][ T158] ? new_sync_read+0x750/0x750 [ 15.911469][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.911477][ T158] vfs_write+0x6a2/0xbd0 [ 15.911481][ T158] ksys_write+0x116/0x250 [ 15.911484][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.911485][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.911488][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.911491][ T158] do_syscall_64+0xff/0x530 [ 15.911493][ T158] ? exc_page_fault+0xee/0x100 [ 15.911496][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.911499][ T158] RIP: 0033:0x7fb07fa5454e [ 15.911508][ 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 [ 15.911510][ T158] RSP: 002b:00007ffd68bba6e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.911513][ T158] RAX: ffffffffffffffda RBX: 00007fb07fbd5580 RCX: 00007fb07fa5454e [ 15.911515][ T158] RDX: 0000000000000023 RSI: 0000560ed29dbd20 RDI: 0000000000000001 [ 15.911516][ T158] RBP: 00007ffd68bba6f0 R08: 0000000000000000 R09: 0000000000000000 [ 15.911517][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.911518][ T158] R13: 0000000000000023 R14: 0000560ed29dbd20 R15: 0000000000000000 [ 15.911524][ T158]