[ 8.788195][ T170] netconsole: network logging started [ 8.788210][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.788212][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 8.788213][ T170] preempt_count: 1, expected: 0 [ 8.788214][ T170] RCU nest depth: 0, expected: 0 [ 8.788215][ T170] locks held by modprobe/170: 4, last CPU#3: [ 8.788218][ T170] #0: ffffffffae599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.788230][ T170] #1: ffffffffae599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.788234][ T170] #2: ffffffffae489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.788237][ T170] #3: ffffffffae489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.788240][ T170] irq event stamp: 26490 [ 8.788241][ T170] hardirqs last enabled at (26489): [] __down_trylock_console_sem+0x86/0xa0 [ 8.788243][ T170] hardirqs last disabled at (26490): [] console_emit_next_record+0x3f8/0x4f0 [ 8.788245][ T170] softirqs last enabled at (26362): [] handle_softirqs+0x67c/0x900 [ 8.788249][ T170] softirqs last disabled at (25781): [] __irq_exit_rcu+0x145/0x1c0 [ 8.788251][ T170] Preemption disabled at: [ 8.788252][ T170] [] vprintk_emit+0x31b/0x3e0 [ 8.788257][ T170] CPU: 3 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.788260][ T170] Tainted: [W]=WARN [ 8.788261][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.788263][ T170] Call Trace: [ 8.788264][ T170] [ 8.788265][ T170] dump_stack_lvl+0x6f/0xa0 [ 8.788270][ T170] ? vprintk_emit+0x31b/0x3e0 [ 8.788272][ T170] __might_resched.cold+0x1fe/0x2c1 [ 8.788277][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.788280][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 8.788285][ T170] __kmalloc_noprof+0x443/0x760 [ 8.788287][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 8.788293][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.788295][ T170] alloc_buf.isra.0+0x4b/0x260 [ 8.788298][ T170] put_chars+0x1e1/0x2f0 [ 8.788300][ T170] ? __send_to_port+0x420/0x420 [ 8.788303][ T170] ? validate_chain+0x38b/0xc20 [ 8.788308][ T170] hvc_console_print+0x292/0x780 [ 8.788314][ T170] ? hvc_write+0x3a0/0x3a0 [ 8.788316][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.788319][ T170] ? lock_acquire+0x13c/0x160 [ 8.788323][ T170] console_emit_next_record+0x252/0x4f0 [ 8.788326][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 8.788330][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.788332][ T170] ? lock_acquire+0x13c/0x160 [ 8.788336][ T170] console_flush_one_record+0x46f/0x710 [ 8.788339][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 8.788341][ T170] ? __lock_acquire+0x518/0xc20 [ 8.788346][ T170] console_unlock+0xee/0x1f0 [ 8.788348][ T170] ? console_flush_one_record+0x710/0x710 [ 8.788350][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.788352][ T170] ? lock_acquire+0x60/0x160 [ 8.788355][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.788356][ T170] ? vprintk_emit+0x320/0x3e0 [ 8.788359][ T170] vprintk_emit+0x37c/0x3e0 [ 8.788362][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 8.788364][ T170] ? find_held_lock+0x2b/0x80 [ 8.788368][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 8.788369][ T170] ? fast_dput+0x316/0x540 [ 8.788373][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.788377][ T170] _printk+0xc7/0x100 [ 8.788381][ T170] ? snapshot_read.cold+0x21/0x21 [ 8.788384][ T170] ? __up_write+0x2e5/0x5f0 [ 8.788387][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.788391][ T170] ? configfs_register_subsystem+0x340/0x570 [ 8.788395][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.788398][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.788405][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.788408][ T170] do_one_initcall+0x124/0x4f0 [ 8.788411][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.788421][ T170] ? do_init_module+0xae/0x8a0 [ 8.788423][ T170] ? kasan_unpoison+0x44/0x70 [ 8.788429][ T170] do_init_module+0x2ad/0x8a0 [ 8.788432][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 8.788436][ T170] ? free_module+0x470/0x470 [ 8.788439][ T170] ? kfree+0x123/0x590 [ 8.788443][ T170] load_module+0x1424/0x1bb0 [ 8.788449][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.788453][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.788456][ T170] ? ovl_real_file+0x172/0x1e0 [ 8.788459][ T170] ? backing_file_read_iter+0x541/0x790 [ 8.788463][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.788466][ T170] init_module_from_file+0x11f/0x1a0 [ 8.788470][ T170] ? __do_sys_init_module+0x220/0x220 [ 8.788477][ T170] ? __rwlock_init+0x150/0x150 [ 8.788481][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.788483][ T170] idempotent_init_module+0x37b/0x7c0 [ 8.788486][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 8.788492][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.788494][ T170] ? cap_capable+0x1d7/0x3d0 [ 8.788500][ T170] __x64_sys_finit_module+0xdf/0x190 [ 8.788502][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.788506][ T170] do_syscall_64+0xff/0x530 [ 8.788508][ T170] ? exc_page_fault+0xee/0x100 [ 8.788510][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.788512][ T170] RIP: 0033:0x7f807a9a437d [ 8.788516][ T170] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 8.788517][ T170] RSP: 002b:00007ffd1c1cf878 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.788520][ T170] RAX: ffffffffffffffda RBX: 000055d9e46bd700 RCX: 00007f807a9a437d [ 8.788521][ T170] RDX: 0000000000000000 RSI: 000055d9b0496ffd RDI: 0000000000000005 [ 8.788522][ T170] RBP: 00007ffd1c1cf910 R08: 0000000000000000 R09: 0000000000000000 [ 8.788523][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d9b0496ffd [ 8.788524][ T170] R13: 000055d9e46bd810 R14: 0000000000040000 R15: 0000000000000000 [ 8.788530][ T170] [ 11.966699][ T158] netconsole selftest: netcons_8lWDR [ 11.966728][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.966730][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.966732][ T158] preempt_count: 1, expected: 0 [ 11.966733][ T158] RCU nest depth: 0, expected: 0 [ 11.966734][ T158] locks held by bash/158: 4, last CPU#2: [ 11.966736][ T158] #0: ffffffffae599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.966747][ T158] #1: ffffffffae599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.966752][ T158] #2: ffffffffae489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.966756][ T158] #3: ffffffffae489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.966760][ T158] irq event stamp: 136800 [ 11.966762][ T158] hardirqs last enabled at (136799): [] irqentry_exit+0x21c/0x790 [ 11.966766][ T158] hardirqs last disabled at (136800): [] console_emit_next_record+0x3f8/0x4f0 [ 11.966768][ T158] softirqs last enabled at (136798): [] handle_softirqs+0x67c/0x900 [ 11.966772][ T158] softirqs last disabled at (136791): [] __irq_exit_rcu+0x145/0x1c0 [ 11.966775][ T158] Preemption disabled at: [ 11.966775][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.966781][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.966784][ T158] Tainted: [W]=WARN [ 11.966785][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.966787][ T158] Call Trace: [ 11.966789][ T158] [ 11.966790][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.966796][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.966798][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.966802][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.966806][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.966811][ T158] __kmalloc_noprof+0x443/0x760 [ 11.966813][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.966818][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.966821][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.966824][ T158] put_chars+0x1e1/0x2f0 [ 11.966827][ T158] ? __send_to_port+0x420/0x420 [ 11.966828][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.966832][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.966835][ T158] ? validate_chain+0x38b/0xc20 [ 11.966839][ T158] hvc_console_print+0x292/0x780 [ 11.966842][ T158] ? __lock_acquire+0x518/0xc20 [ 11.966843][ T158] ? __lock_acquire+0x518/0xc20 [ 11.966847][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.966850][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.966853][ T158] ? lock_acquire+0x13c/0x160 [ 11.966857][ T158] console_emit_next_record+0x252/0x4f0 [ 11.966860][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.966864][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.966866][ T158] ? lock_acquire+0x13c/0x160 [ 11.966870][ T158] console_flush_one_record+0x46f/0x710 [ 11.966874][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.966875][ T158] ? __lock_acquire+0x518/0xc20 [ 11.966877][ T158] ? asm_fred_entrypoint_user+0xb/0x41 [ 11.966882][ T158] console_unlock+0xee/0x1f0 [ 11.966885][ T158] ? console_flush_one_record+0x710/0x710 [ 11.966886][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.966888][ T158] ? lock_acquire+0x60/0x160 [ 11.966892][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.966893][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.966896][ T158] vprintk_emit+0x37c/0x3e0 [ 11.966900][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.966903][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.966909][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.966913][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.966917][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.966919][ T158] ? idr_get_free+0x830/0x830 [ 11.966921][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.966924][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.966927][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.966930][ T158] ? vprintk_default+0x20/0x20 [ 11.966932][ T158] ? __lock_acquire+0x518/0xc20 [ 11.966934][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.966938][ T158] ? vprintk_default+0x20/0x20 [ 11.966940][ T158] new_sync_write+0x33e/0x760 [ 11.966945][ T158] ? new_sync_read+0x750/0x750 [ 11.966947][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.966954][ T158] vfs_write+0x6a2/0xbd0 [ 11.966959][ T158] ksys_write+0x116/0x250 [ 11.966961][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.966963][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.966966][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.966969][ T158] do_syscall_64+0xff/0x530 [ 11.966971][ T158] ? exc_page_fault+0xee/0x100 [ 11.966974][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.966976][ T158] RIP: 0033:0x7fc632f2454e [ 11.966979][ 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 [ 11.966981][ T158] RSP: 002b:00007ffc447147a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.966984][ T158] RAX: ffffffffffffffda RBX: 00007fc6330a5580 RCX: 00007fc632f2454e [ 11.966986][ T158] RDX: 0000000000000023 RSI: 00005576e12cdab0 RDI: 0000000000000001 [ 11.966987][ T158] RBP: 00007ffc447147b0 R08: 0000000000000000 R09: 0000000000000000 [ 11.966988][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.966989][ T158] R13: 0000000000000023 R14: 00005576e12cdab0 R15: 0000000000000000 [ 11.966995][ T158] [ 15.582624][ T158] netconsole selftest: netcons_8lWDR [ 15.582814][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.582817][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.582819][ T158] preempt_count: 1, expected: 0 [ 15.582820][ T158] RCU nest depth: 0, expected: 0 [ 15.582821][ T158] locks held by bash/158: 4, last CPU#3: [ 15.582823][ T158] #0: ffffffffae599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.582835][ T158] #1: ffffffffae599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.582839][ T158] #2: ffffffffae489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.582844][ T158] #3: ffffffffae489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.582848][ T158] irq event stamp: 271004 [ 15.582850][ T158] hardirqs last enabled at (271003): [] __down_trylock_console_sem+0x86/0xa0 [ 15.582852][ T158] hardirqs last disabled at (271004): [] console_emit_next_record+0x3f8/0x4f0 [ 15.582854][ T158] softirqs last enabled at (270796): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.582857][ T158] softirqs last disabled at (270794): [] restore_fpregs_from_user+0xc3/0x490 [ 15.582860][ T158] Preemption disabled at: [ 15.582861][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.582866][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.582869][ T158] Tainted: [W]=WARN [ 15.582870][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.582872][ T158] Call Trace: [ 15.582874][ T158] [ 15.582875][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.582880][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.582883][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.582887][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.582891][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.582896][ T158] __kmalloc_noprof+0x443/0x760 [ 15.582898][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.582904][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.582906][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.582910][ T158] put_chars+0x1e1/0x2f0 [ 15.582912][ T158] ? __send_to_port+0x420/0x420 [ 15.582914][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.582917][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.582920][ T158] ? validate_chain+0x38b/0xc20 [ 15.582925][ T158] hvc_console_print+0x292/0x780 [ 15.582928][ T158] ? __lock_acquire+0x518/0xc20 [ 15.582929][ T158] ? __lock_acquire+0x518/0xc20 [ 15.582934][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.582937][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.582940][ T158] ? lock_acquire+0x13c/0x160 [ 15.582943][ T158] console_emit_next_record+0x252/0x4f0 [ 15.582947][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.582951][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.582954][ T158] ? lock_acquire+0x13c/0x160 [ 15.582957][ T158] console_flush_one_record+0x46f/0x710 [ 15.582961][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.582963][ T158] ? __lock_acquire+0x518/0xc20 [ 15.582968][ T158] console_unlock+0xee/0x1f0 [ 15.582970][ T158] ? console_flush_one_record+0x710/0x710 [ 15.582972][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.582974][ T158] ? lock_acquire+0x60/0x160 [ 15.582978][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.582979][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.582983][ T158] vprintk_emit+0x37c/0x3e0 [ 15.582986][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.582989][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.582995][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.582999][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.583003][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.583005][ T158] ? idr_get_free+0x830/0x830 [ 15.583009][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.583012][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.583015][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.583018][ T158] ? vprintk_default+0x20/0x20 [ 15.583019][ T158] ? __lock_acquire+0x518/0xc20 [ 15.583022][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.583026][ T158] ? vprintk_default+0x20/0x20 [ 15.583028][ T158] new_sync_write+0x33e/0x760 [ 15.583033][ T158] ? new_sync_read+0x750/0x750 [ 15.583035][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.583043][ T158] vfs_write+0x6a2/0xbd0 [ 15.583047][ T158] ksys_write+0x116/0x250 [ 15.583050][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.583052][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.583054][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.583058][ T158] do_syscall_64+0xff/0x530 [ 15.583060][ T158] ? exc_page_fault+0xee/0x100 [ 15.583063][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.583066][ T158] RIP: 0033:0x7fc632f2454e [ 15.583070][ 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.583071][ T158] RSP: 002b:00007ffc447147a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.583074][ T158] RAX: ffffffffffffffda RBX: 00007fc6330a5580 RCX: 00007fc632f2454e [ 15.583076][ T158] RDX: 0000000000000023 RSI: 00005576e12cdab0 RDI: 0000000000000001 [ 15.583077][ T158] RBP: 00007ffc447147b0 R08: 0000000000000000 R09: 0000000000000000 [ 15.583078][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.583079][ T158] R13: 0000000000000023 R14: 00005576e12cdab0 R15: 0000000000000000 [ 15.583086][ T158] [ 19.187606][ T158] netconsole selftest: netcons_8lWDR [ 19.187626][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 19.187629][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 19.187630][ T158] preempt_count: 1, expected: 0 [ 19.187631][ T158] RCU nest depth: 0, expected: 0 [ 19.187632][ T158] locks held by bash/158: 4, last CPU#1: [ 19.187634][ T158] #0: ffffffffae599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 19.187646][ T158] #1: ffffffffae599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 19.187651][ T158] #2: ffffffffae489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 19.187655][ T158] #3: ffffffffae489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 19.187659][ T158] irq event stamp: 394634 [ 19.187661][ T158] hardirqs last enabled at (394633): [] __down_trylock_console_sem+0x86/0xa0 [ 19.187663][ T158] hardirqs last disabled at (394634): [] console_emit_next_record+0x3f8/0x4f0 [ 19.187665][ T158] softirqs last enabled at (394438): [] restore_fpregs_from_user+0x1cf/0x490 [ 19.187669][ T158] softirqs last disabled at (394436): [] restore_fpregs_from_user+0xc3/0x490 [ 19.187671][ T158] Preemption disabled at: [ 19.187672][ T158] [] vprintk_emit+0x31b/0x3e0 [ 19.187677][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 19.187680][ T158] Tainted: [W]=WARN [ 19.187681][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.187683][ T158] Call Trace: [ 19.187685][ T158] [ 19.187686][ T158] dump_stack_lvl+0x6f/0xa0 [ 19.187691][ T158] ? vprintk_emit+0x31b/0x3e0 [ 19.187693][ T158] __might_resched.cold+0x1fe/0x2c1 [ 19.187698][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 19.187701][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 19.187706][ T158] __kmalloc_noprof+0x443/0x760 [ 19.187708][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 19.187716][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 19.187719][ T158] alloc_buf.isra.0+0x4b/0x260 [ 19.187722][ T158] put_chars+0x1e1/0x2f0 [ 19.187724][ T158] ? __send_to_port+0x420/0x420 [ 19.187726][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 19.187729][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 19.187732][ T158] ? validate_chain+0x38b/0xc20 [ 19.187736][ T158] hvc_console_print+0x292/0x780 [ 19.187739][ T158] ? __lock_acquire+0x518/0xc20 [ 19.187741][ T158] ? __lock_acquire+0x518/0xc20 [ 19.187744][ T158] ? hvc_write+0x3a0/0x3a0 [ 19.187747][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.187750][ T158] ? lock_acquire+0x13c/0x160 [ 19.187754][ T158] console_emit_next_record+0x252/0x4f0 [ 19.187758][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 19.187762][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.187764][ T158] ? lock_acquire+0x13c/0x160 [ 19.187767][ T158] console_flush_one_record+0x46f/0x710 [ 19.187771][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 19.187773][ T158] ? __lock_acquire+0x518/0xc20 [ 19.187777][ T158] console_unlock+0xee/0x1f0 [ 19.187780][ T158] ? console_flush_one_record+0x710/0x710 [ 19.187782][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.187784][ T158] ? lock_acquire+0x60/0x160 [ 19.187787][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 19.187788][ T158] ? vprintk_emit+0x320/0x3e0 [ 19.187791][ T158] vprintk_emit+0x37c/0x3e0 [ 19.187795][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 19.187798][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 19.187803][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 19.187807][ T158] ? vprintk_emit.cold+0x107/0x107 [ 19.187811][ T158] ? __kmalloc_noprof+0x302/0x760 [ 19.187813][ T158] ? idr_get_free+0x830/0x830 [ 19.187816][ T158] ? devkmsg_write+0xd1/0x2c0 [ 19.187819][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 19.187822][ T158] devkmsg_write.cold+0x5a/0x8b [ 19.187825][ T158] ? vprintk_default+0x20/0x20 [ 19.187826][ T158] ? __lock_acquire+0x518/0xc20 [ 19.187828][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 19.187833][ T158] ? vprintk_default+0x20/0x20 [ 19.187835][ T158] new_sync_write+0x33e/0x760 [ 19.187840][ T158] ? new_sync_read+0x750/0x750 [ 19.187841][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 19.187849][ T158] vfs_write+0x6a2/0xbd0 [ 19.187853][ T158] ksys_write+0x116/0x250 [ 19.187856][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 19.187857][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 19.187860][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.187863][ T158] do_syscall_64+0xff/0x530 [ 19.187865][ T158] ? exc_page_fault+0xee/0x100 [ 19.187868][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.187871][ T158] RIP: 0033:0x7fc632f2454e [ 19.187874][ 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 [ 19.187876][ T158] RSP: 002b:00007ffc447147a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 19.187879][ T158] RAX: ffffffffffffffda RBX: 00007fc6330a5580 RCX: 00007fc632f2454e [ 19.187881][ T158] RDX: 0000000000000023 RSI: 00005576e12cdab0 RDI: 0000000000000001 [ 19.187882][ T158] RBP: 00007ffc447147b0 R08: 0000000000000000 R09: 0000000000000000 [ 19.187883][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 19.187884][ T158] R13: 0000000000000023 R14: 00005576e12cdab0 R15: 0000000000000000 [ 19.187890][ T158] [ 22.630869][ T158] netconsole selftest: netcons_8lWDR [ 22.630889][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 22.630891][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 22.630893][ T158] preempt_count: 1, expected: 0 [ 22.630894][ T158] RCU nest depth: 0, expected: 0 [ 22.630895][ T158] locks held by bash/158: 4, last CPU#3: [ 22.630897][ T158] #0: ffffffffae599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 22.630908][ T158] #1: ffffffffae599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 22.630913][ T158] #2: ffffffffae489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 22.630917][ T158] #3: ffffffffae489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 22.630921][ T158] irq event stamp: 522486 [ 22.630923][ T158] hardirqs last enabled at (522485): [] __down_trylock_console_sem+0x86/0xa0 [ 22.630925][ T158] hardirqs last disabled at (522486): [] console_emit_next_record+0x3f8/0x4f0 [ 22.630927][ T158] softirqs last enabled at (522280): [] restore_fpregs_from_user+0x1cf/0x490 [ 22.630930][ T158] softirqs last disabled at (522278): [] restore_fpregs_from_user+0xc3/0x490 [ 22.630933][ T158] Preemption disabled at: [ 22.630934][ T158] [] vprintk_emit+0x31b/0x3e0 [ 22.630939][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 22.630942][ T158] Tainted: [W]=WARN [ 22.630943][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.630945][ T158] Call Trace: [ 22.630947][ T158] [ 22.630948][ T158] dump_stack_lvl+0x6f/0xa0 [ 22.630953][ T158] ? vprintk_emit+0x31b/0x3e0 [ 22.630955][ T158] __might_resched.cold+0x1fe/0x2c1 [ 22.630960][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 22.630964][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 22.630968][ T158] __kmalloc_noprof+0x443/0x760 [ 22.630970][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 22.630976][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 22.630978][ T158] alloc_buf.isra.0+0x4b/0x260 [ 22.630981][ T158] put_chars+0x1e1/0x2f0 [ 22.630984][ T158] ? __send_to_port+0x420/0x420 [ 22.630985][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 22.630988][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.630991][ T158] ? validate_chain+0x38b/0xc20 [ 22.630996][ T158] hvc_console_print+0x292/0x780 [ 22.630998][ T158] ? __lock_acquire+0x518/0xc20 [ 22.631000][ T158] ? __lock_acquire+0x518/0xc20 [ 22.631004][ T158] ? hvc_write+0x3a0/0x3a0 [ 22.631007][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.631010][ T158] ? lock_acquire+0x13c/0x160 [ 22.631013][ T158] console_emit_next_record+0x252/0x4f0 [ 22.631017][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 22.631021][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.631023][ T158] ? lock_acquire+0x13c/0x160 [ 22.631026][ T158] console_flush_one_record+0x46f/0x710 [ 22.631030][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 22.631032][ T158] ? __lock_acquire+0x518/0xc20 [ 22.631037][ T158] console_unlock+0xee/0x1f0 [ 22.631039][ T158] ? console_flush_one_record+0x710/0x710 [ 22.631041][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.631043][ T158] ? lock_acquire+0x60/0x160 [ 22.631046][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 22.631048][ T158] ? vprintk_emit+0x320/0x3e0 [ 22.631051][ T158] vprintk_emit+0x37c/0x3e0 [ 22.631054][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 22.631057][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.631062][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 22.631066][ T158] ? vprintk_emit.cold+0x107/0x107 [ 22.631070][ T158] ? __kmalloc_noprof+0x302/0x760 [ 22.631072][ T158] ? idr_get_free+0x830/0x830 [ 22.631075][ T158] ? devkmsg_write+0xd1/0x2c0 [ 22.631078][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.631081][ T158] devkmsg_write.cold+0x5a/0x8b [ 22.631084][ T158] ? vprintk_default+0x20/0x20 [ 22.631085][ T158] ? __lock_acquire+0x518/0xc20 [ 22.631087][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 22.631092][ T158] ? vprintk_default+0x20/0x20 [ 22.631094][ T158] new_sync_write+0x33e/0x760 [ 22.631099][ T158] ? new_sync_read+0x750/0x750 [ 22.631100][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.631108][ T158] vfs_write+0x6a2/0xbd0 [ 22.631112][ T158] ksys_write+0x116/0x250 [ 22.631115][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 22.631116][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 22.631119][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.631122][ T158] do_syscall_64+0xff/0x530 [ 22.631125][ T158] ? exc_page_fault+0xee/0x100 [ 22.631128][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 22.631130][ T158] RIP: 0033:0x7fc632f2454e [ 22.631134][ 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 [ 22.631136][ T158] RSP: 002b:00007ffc447147a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 22.631139][ T158] RAX: ffffffffffffffda RBX: 00007fc6330a5580 RCX: 00007fc632f2454e [ 22.631140][ T158] RDX: 0000000000000023 RSI: 00005576e12cdab0 RDI: 0000000000000001 [ 22.631141][ T158] RBP: 00007ffc447147b0 R08: 0000000000000000 R09: 0000000000000000 [ 22.631142][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 22.631143][ T158] R13: 0000000000000023 R14: 00005576e12cdab0 R15: 0000000000000000 [ 22.631149][ T158]