[ 9.888110][ T171] netconsole: network logging started [ 9.888128][ T171] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.888130][ T171] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 171, name: modprobe [ 9.888132][ T171] preempt_count: 1, expected: 0 [ 9.888133][ T171] RCU nest depth: 0, expected: 0 [ 9.888134][ T171] locks held by modprobe/171: 4, last CPU#3: [ 9.888136][ T171] #0: ffffffff9c399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.888148][ T171] #1: ffffffff9c399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.888152][ T171] #2: ffffffff9c289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.888156][ T171] #3: ffffffff9c289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.888160][ T171] irq event stamp: 40180 [ 9.888161][ T171] hardirqs last enabled at (40179): [] __down_trylock_console_sem+0x86/0xa0 [ 9.888163][ T171] hardirqs last disabled at (40180): [] console_emit_next_record+0x3f8/0x4f0 [ 9.888164][ T171] softirqs last enabled at (40142): [] handle_softirqs+0x67c/0x900 [ 9.888168][ T171] softirqs last disabled at (40135): [] __irq_exit_rcu+0x145/0x1c0 [ 9.888171][ T171] Preemption disabled at: [ 9.888171][ T171] [] vprintk_emit+0x31b/0x3e0 [ 9.888177][ T171] CPU: 3 UID: 0 PID: 171 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.888181][ T171] Tainted: [W]=WARN [ 9.888182][ T171] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.888184][ T171] Call Trace: [ 9.888185][ T171] [ 9.888187][ T171] dump_stack_lvl+0x6f/0xa0 [ 9.888192][ T171] ? vprintk_emit+0x31b/0x3e0 [ 9.888194][ T171] __might_resched.cold+0x1fe/0x2c1 [ 9.888199][ T171] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.888203][ T171] ? __kmalloc_noprof+0xdb/0x760 [ 9.888207][ T171] __kmalloc_noprof+0x443/0x760 [ 9.888209][ T171] ? alloc_buf.isra.0+0x4b/0x260 [ 9.888215][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.888218][ T171] alloc_buf.isra.0+0x4b/0x260 [ 9.888221][ T171] put_chars+0x1e1/0x2f0 [ 9.888224][ T171] ? __send_to_port+0x420/0x420 [ 9.888226][ T171] ? validate_chain+0x38b/0xc20 [ 9.888231][ T171] hvc_console_print+0x292/0x780 [ 9.888238][ T171] ? hvc_write+0x3a0/0x3a0 [ 9.888240][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.888244][ T171] ? lock_acquire+0x13c/0x160 [ 9.888247][ T171] console_emit_next_record+0x252/0x4f0 [ 9.888251][ T171] ? devkmsg_read+0x4e0/0x4e0 [ 9.888255][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.888257][ T171] ? lock_acquire+0x13c/0x160 [ 9.888261][ T171] console_flush_one_record+0x46f/0x710 [ 9.888265][ T171] ? console_emit_next_record+0x4f0/0x4f0 [ 9.888266][ T171] ? __lock_acquire+0x518/0xc20 [ 9.888271][ T171] console_unlock+0xee/0x1f0 [ 9.888274][ T171] ? console_flush_one_record+0x710/0x710 [ 9.888275][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.888277][ T171] ? lock_acquire+0x60/0x160 [ 9.888280][ T171] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.888282][ T171] ? vprintk_emit+0x320/0x3e0 [ 9.888285][ T171] vprintk_emit+0x37c/0x3e0 [ 9.888289][ T171] ? wake_up_klogd_work_func+0x90/0x90 [ 9.888290][ T171] ? find_held_lock+0x2b/0x80 [ 9.888294][ T171] ? __lock_release.isra.0+0x69/0x1a0 [ 9.888296][ T171] ? fast_dput+0x316/0x540 [ 9.888300][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.888304][ T171] _printk+0xc7/0x100 [ 9.888309][ T171] ? snapshot_read.cold+0x21/0x21 [ 9.888311][ T171] ? __up_write+0x2e5/0x5f0 [ 9.888315][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.888319][ T171] ? configfs_register_subsystem+0x340/0x570 [ 9.888324][ T171] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.888327][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.888334][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.888337][ T171] do_one_initcall+0x124/0x4f0 [ 9.888340][ T171] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.888345][ T171] ? do_init_module+0xae/0x8a0 [ 9.888348][ T171] ? kasan_unpoison+0x44/0x70 [ 9.888353][ T171] do_init_module+0x2ad/0x8a0 [ 9.888357][ T171] ? lockdep_hardirqs_on+0x91/0x130 [ 9.888361][ T171] ? free_module+0x470/0x470 [ 9.888364][ T171] ? kfree+0x123/0x590 [ 9.888368][ T171] load_module+0x1424/0x1bb0 [ 9.888375][ T171] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.888378][ T171] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.888382][ T171] ? ovl_real_file+0x172/0x1e0 [ 9.888385][ T171] ? backing_file_read_iter+0x541/0x790 [ 9.888389][ T171] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.888392][ T171] init_module_from_file+0x11f/0x1a0 [ 9.888396][ T171] ? __do_sys_init_module+0x220/0x220 [ 9.888404][ T171] ? __rwlock_init+0x150/0x150 [ 9.888407][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.888410][ T171] idempotent_init_module+0x37b/0x7c0 [ 9.888413][ T171] ? init_module_from_file+0x1a0/0x1a0 [ 9.888419][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.888421][ T171] ? cap_capable+0x1d7/0x3d0 [ 9.888427][ T171] __x64_sys_finit_module+0xdf/0x190 [ 9.888429][ T171] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.888433][ T171] do_syscall_64+0xff/0x530 [ 9.888435][ T171] ? exc_page_fault+0xee/0x100 [ 9.888438][ T171] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.888440][ T171] RIP: 0033:0x7fe5c816f37d [ 9.888444][ T171] 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 [ 9.888445][ T171] RSP: 002b:00007fff5c48e5c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.888448][ T171] RAX: ffffffffffffffda RBX: 000055f7dda31700 RCX: 00007fe5c816f37d [ 9.888449][ T171] RDX: 0000000000000000 RSI: 000055f7cbeabffd RDI: 0000000000000005 [ 9.888450][ T171] RBP: 00007fff5c48e660 R08: 0000000000000000 R09: 0000000000000000 [ 9.888451][ T171] R10: 0000000000000000 R11: 0000000000000246 R12: 000055f7cbeabffd [ 9.888452][ T171] R13: 000055f7dda31810 R14: 0000000000040000 R15: 0000000000000000 [ 9.888459][ T171] [ 13.283567][ T158] netconsole selftest: netcons_9beTD [ 13.283594][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.283597][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.283599][ T158] preempt_count: 1, expected: 0 [ 13.283600][ T158] RCU nest depth: 0, expected: 0 [ 13.283601][ T158] locks held by bash/158: 4, last CPU#1: [ 13.283604][ T158] #0: ffffffff9c399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.283617][ T158] #1: ffffffff9c399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.283622][ T158] #2: ffffffff9c289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.283626][ T158] #3: ffffffff9c289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.283631][ T158] irq event stamp: 143068 [ 13.283633][ T158] hardirqs last enabled at (143067): [] __down_trylock_console_sem+0x86/0xa0 [ 13.283635][ T158] hardirqs last disabled at (143068): [] console_emit_next_record+0x3f8/0x4f0 [ 13.283637][ T158] softirqs last enabled at (142896): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.283641][ T158] softirqs last disabled at (142894): [] restore_fpregs_from_user+0xc3/0x490 [ 13.283644][ T158] Preemption disabled at: [ 13.283645][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.283652][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.283655][ T158] Tainted: [W]=WARN [ 13.283656][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.283658][ T158] Call Trace: [ 13.283660][ T158] [ 13.283662][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.283667][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.283669][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.283674][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.283677][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.283682][ T158] __kmalloc_noprof+0x443/0x760 [ 13.283684][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.283690][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.283692][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.283696][ T158] put_chars+0x1e1/0x2f0 [ 13.283699][ T158] ? __send_to_port+0x420/0x420 [ 13.283700][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.283704][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.283707][ T158] ? validate_chain+0x38b/0xc20 [ 13.283711][ T158] hvc_console_print+0x292/0x780 [ 13.283714][ T158] ? __lock_acquire+0x518/0xc20 [ 13.283715][ T158] ? __lock_acquire+0x518/0xc20 [ 13.283720][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.283723][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.283726][ T158] ? lock_acquire+0x13c/0x160 [ 13.283730][ T158] console_emit_next_record+0x252/0x4f0 [ 13.283733][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.283738][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.283740][ T158] ? lock_acquire+0x13c/0x160 [ 13.283744][ T158] console_flush_one_record+0x46f/0x710 [ 13.283748][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.283749][ T158] ? __lock_acquire+0x518/0xc20 [ 13.283754][ T158] console_unlock+0xee/0x1f0 [ 13.283757][ T158] ? console_flush_one_record+0x710/0x710 [ 13.283759][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.283761][ T158] ? lock_acquire+0x60/0x160 [ 13.283765][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.283766][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.283769][ T158] vprintk_emit+0x37c/0x3e0 [ 13.283773][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.283776][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.283782][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.283786][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.283790][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.283792][ T158] ? idr_get_free+0x830/0x830 [ 13.283796][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.283799][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.283802][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.283804][ T158] ? vprintk_default+0x20/0x20 [ 13.283806][ T158] ? handle_pte_fault+0x448/0x710 [ 13.283811][ T158] ? do_numa_page.isra.0+0xa70/0xa70 [ 13.283813][ T158] ? vprintk_default+0x20/0x20 [ 13.283816][ T158] new_sync_write+0x33e/0x760 [ 13.283821][ T158] ? new_sync_read+0x750/0x750 [ 13.283823][ T158] ? lock_vma_under_rcu+0x159/0x410 [ 13.283831][ T158] vfs_write+0x6a2/0xbd0 [ 13.283835][ T158] ksys_write+0x116/0x250 [ 13.283838][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.283841][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.283843][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.283846][ T158] do_syscall_64+0xff/0x530 [ 13.283849][ T158] ? exc_page_fault+0xee/0x100 [ 13.283852][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.283855][ T158] RIP: 0033:0x7f31e8e2854e [ 13.283859][ 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.283861][ T158] RSP: 002b:00007ffe02ea4c60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.283864][ T158] RAX: ffffffffffffffda RBX: 00007f31e8fa9580 RCX: 00007f31e8e2854e [ 13.283865][ T158] RDX: 0000000000000023 RSI: 0000558505967790 RDI: 0000000000000001 [ 13.283866][ T158] RBP: 00007ffe02ea4c70 R08: 0000000000000000 R09: 0000000000000000 [ 13.283867][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.283868][ T158] R13: 0000000000000023 R14: 0000558505967790 R15: 0000000000000000 [ 13.283875][ T158] [ 15.011477][ T158] netconsole selftest: netcons_9beTD [ 15.011503][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.011506][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.011508][ T158] preempt_count: 1, expected: 0 [ 15.011509][ T158] RCU nest depth: 0, expected: 0 [ 15.011511][ T158] locks held by bash/158: 4, last CPU#0: [ 15.011513][ T158] #0: ffffffff9c399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.011526][ T158] #1: ffffffff9c399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.011531][ T158] #2: ffffffff9c289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.011535][ T158] #3: ffffffff9c289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.011540][ T158] irq event stamp: 168796 [ 15.011542][ T158] hardirqs last enabled at (168795): [] __down_trylock_console_sem+0x86/0xa0 [ 15.011544][ T158] hardirqs last disabled at (168796): [] console_emit_next_record+0x3f8/0x4f0 [ 15.011546][ T158] softirqs last enabled at (168614): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.011550][ T158] softirqs last disabled at (168612): [] restore_fpregs_from_user+0xc3/0x490 [ 15.011552][ T158] Preemption disabled at: [ 15.011553][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.011559][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.011563][ T158] Tainted: [W]=WARN [ 15.011564][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.011566][ T158] Call Trace: [ 15.011568][ T158] [ 15.011570][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.011575][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.011577][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.011582][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.011585][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.011590][ T158] __kmalloc_noprof+0x443/0x760 [ 15.011592][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.011598][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.011601][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.011604][ T158] put_chars+0x1e1/0x2f0 [ 15.011607][ T158] ? __send_to_port+0x420/0x420 [ 15.011609][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.011612][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.011615][ T158] ? validate_chain+0x38b/0xc20 [ 15.011619][ T158] hvc_console_print+0x292/0x780 [ 15.011622][ T158] ? __lock_acquire+0x518/0xc20 [ 15.011623][ T158] ? __lock_acquire+0x518/0xc20 [ 15.011628][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.011631][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.011634][ T158] ? lock_acquire+0x13c/0x160 [ 15.011638][ T158] console_emit_next_record+0x252/0x4f0 [ 15.011643][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.011647][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.011650][ T158] ? lock_acquire+0x13c/0x160 [ 15.011653][ T158] console_flush_one_record+0x46f/0x710 [ 15.011657][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.011659][ T158] ? __lock_acquire+0x518/0xc20 [ 15.011664][ T158] console_unlock+0xee/0x1f0 [ 15.011667][ T158] ? console_flush_one_record+0x710/0x710 [ 15.011668][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.011671][ T158] ? lock_acquire+0x60/0x160 [ 15.011674][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.011676][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.011679][ T158] vprintk_emit+0x37c/0x3e0 [ 15.011682][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.011685][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.011691][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.011695][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.011700][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.011701][ T158] ? idr_get_free+0x830/0x830 [ 15.011705][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.011708][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.011711][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.011714][ T158] ? vprintk_default+0x20/0x20 [ 15.011715][ T158] ? __lock_acquire+0x518/0xc20 [ 15.011718][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.011722][ T158] ? vprintk_default+0x20/0x20 [ 15.011725][ T158] new_sync_write+0x33e/0x760 [ 15.011730][ T158] ? new_sync_read+0x750/0x750 [ 15.011731][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.011740][ T158] vfs_write+0x6a2/0xbd0 [ 15.011744][ T158] ksys_write+0x116/0x250 [ 15.011747][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.011748][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.011751][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.011755][ T158] do_syscall_64+0xff/0x530 [ 15.011757][ T158] ? exc_page_fault+0xee/0x100 [ 15.011761][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.011763][ T158] RIP: 0033:0x7f31e8e2854e [ 15.011767][ 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.011769][ T158] RSP: 002b:00007ffe02ea4c60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.011772][ T158] RAX: ffffffffffffffda RBX: 00007f31e8fa9580 RCX: 00007f31e8e2854e [ 15.011774][ T158] RDX: 0000000000000023 RSI: 0000558505967790 RDI: 0000000000000001 [ 15.011775][ T158] RBP: 00007ffe02ea4c70 R08: 0000000000000000 R09: 0000000000000000 [ 15.011776][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.011777][ T158] R13: 0000000000000023 R14: 0000558505967790 R15: 0000000000000000 [ 15.011784][ T158] [ 16.523780][ T158] netconsole selftest: netcons_9beTD [ 16.523807][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.523810][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 16.523812][ T158] preempt_count: 1, expected: 0 [ 16.523813][ T158] RCU nest depth: 0, expected: 0 [ 16.523814][ T158] locks held by bash/158: 4, last CPU#1: [ 16.523817][ T158] #0: ffffffff9c399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.523830][ T158] #1: ffffffff9c399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.523834][ T158] #2: ffffffff9c289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.523839][ T158] #3: ffffffff9c289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 16.523843][ T158] irq event stamp: 199912 [ 16.523845][ T158] hardirqs last enabled at (199911): [] __down_trylock_console_sem+0x86/0xa0 [ 16.523848][ T158] hardirqs last disabled at (199912): [] console_emit_next_record+0x3f8/0x4f0 [ 16.523849][ T158] softirqs last enabled at (199740): [] restore_fpregs_from_user+0x1cf/0x490 [ 16.523853][ T158] softirqs last disabled at (199738): [] restore_fpregs_from_user+0xc3/0x490 [ 16.523855][ T158] Preemption disabled at: [ 16.523856][ T158] [] vprintk_emit+0x31b/0x3e0 [ 16.523862][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.523865][ T158] Tainted: [W]=WARN [ 16.523866][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.523868][ T158] Call Trace: [ 16.523870][ T158] [ 16.523872][ T158] dump_stack_lvl+0x6f/0xa0 [ 16.523877][ T158] ? vprintk_emit+0x31b/0x3e0 [ 16.523879][ T158] __might_resched.cold+0x1fe/0x2c1 [ 16.523884][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.523888][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 16.523892][ T158] __kmalloc_noprof+0x443/0x760 [ 16.523894][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 16.523900][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 16.523903][ T158] alloc_buf.isra.0+0x4b/0x260 [ 16.523906][ T158] put_chars+0x1e1/0x2f0 [ 16.523909][ T158] ? __send_to_port+0x420/0x420 [ 16.523910][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 16.523914][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.523917][ T158] ? validate_chain+0x38b/0xc20 [ 16.523921][ T158] hvc_console_print+0x292/0x780 [ 16.523924][ T158] ? __lock_acquire+0x518/0xc20 [ 16.523925][ T158] ? __lock_acquire+0x518/0xc20 [ 16.523930][ T158] ? hvc_write+0x3a0/0x3a0 [ 16.523933][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.523936][ T158] ? lock_acquire+0x13c/0x160 [ 16.523939][ T158] console_emit_next_record+0x252/0x4f0 [ 16.523943][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 16.523947][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.523950][ T158] ? lock_acquire+0x13c/0x160 [ 16.523953][ T158] console_flush_one_record+0x46f/0x710 [ 16.523957][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 16.523959][ T158] ? __lock_acquire+0x518/0xc20 [ 16.523964][ T158] console_unlock+0xee/0x1f0 [ 16.523967][ T158] ? console_flush_one_record+0x710/0x710 [ 16.523968][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.523971][ T158] ? lock_acquire+0x60/0x160 [ 16.523974][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.523976][ T158] ? vprintk_emit+0x320/0x3e0 [ 16.523979][ T158] vprintk_emit+0x37c/0x3e0 [ 16.523982][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 16.523985][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 16.523991][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 16.523995][ T158] ? vprintk_emit.cold+0x107/0x107 [ 16.523999][ T158] ? __kmalloc_noprof+0x302/0x760 [ 16.524001][ T158] ? idr_get_free+0x830/0x830 [ 16.524005][ T158] ? devkmsg_write+0xd1/0x2c0 [ 16.524008][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 16.524011][ T158] devkmsg_write.cold+0x5a/0x8b [ 16.524014][ T158] ? vprintk_default+0x20/0x20 [ 16.524016][ T158] ? __lock_acquire+0x518/0xc20 [ 16.524018][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 16.524022][ T158] ? vprintk_default+0x20/0x20 [ 16.524029][ T158] new_sync_write+0x33e/0x760 [ 16.524034][ T158] ? new_sync_read+0x750/0x750 [ 16.524036][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.524044][ T158] vfs_write+0x6a2/0xbd0 [ 16.524048][ T158] ksys_write+0x116/0x250 [ 16.524051][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 16.524053][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 16.524055][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.524059][ T158] do_syscall_64+0xff/0x530 [ 16.524061][ T158] ? exc_page_fault+0xee/0x100 [ 16.524064][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.524067][ T158] RIP: 0033:0x7f31e8e2854e [ 16.524071][ 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 [ 16.524073][ T158] RSP: 002b:00007ffe02ea4c60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 16.524076][ T158] RAX: ffffffffffffffda RBX: 00007f31e8fa9580 RCX: 00007f31e8e2854e [ 16.524078][ T158] RDX: 0000000000000023 RSI: 0000558505967790 RDI: 0000000000000001 [ 16.524079][ T158] RBP: 00007ffe02ea4c70 R08: 0000000000000000 R09: 0000000000000000 [ 16.524080][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 16.524081][ T158] R13: 0000000000000023 R14: 0000558505967790 R15: 0000000000000000 [ 16.524094][ T158]