[ 10.684895][ T170] netconsole: network logging started [ 10.684912][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.684914][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 10.684916][ T170] preempt_count: 1, expected: 0 [ 10.684917][ T170] RCU nest depth: 0, expected: 0 [ 10.684918][ T170] locks held by modprobe/170: 4, last CPU#3: [ 10.684920][ T170] #0: ffffffff92999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.684932][ T170] #1: ffffffff92999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.684936][ T170] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.684939][ T170] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.684943][ T170] irq event stamp: 46054 [ 10.684944][ T170] hardirqs last enabled at (46053): [] __down_trylock_console_sem+0x86/0xa0 [ 10.684946][ T170] hardirqs last disabled at (46054): [] console_emit_next_record+0x3f8/0x4f0 [ 10.684948][ T170] softirqs last enabled at (44194): [] handle_softirqs+0x67c/0x900 [ 10.684951][ T170] softirqs last disabled at (44187): [] __irq_exit_rcu+0x145/0x1c0 [ 10.684954][ T170] Preemption disabled at: [ 10.684954][ T170] [] vprintk_emit+0x31b/0x3e0 [ 10.684960][ T170] CPU: 3 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.684963][ T170] Tainted: [W]=WARN [ 10.684964][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.684966][ T170] Call Trace: [ 10.684967][ T170] [ 10.684969][ T170] dump_stack_lvl+0x6f/0xa0 [ 10.684974][ T170] ? vprintk_emit+0x31b/0x3e0 [ 10.684976][ T170] __might_resched.cold+0x1fe/0x2c1 [ 10.684981][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.684985][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 10.684989][ T170] __kmalloc_noprof+0x443/0x760 [ 10.684992][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 10.684997][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.685000][ T170] alloc_buf.isra.0+0x4b/0x260 [ 10.685003][ T170] put_chars+0x1e1/0x2f0 [ 10.685005][ T170] ? __send_to_port+0x420/0x420 [ 10.685008][ T170] ? validate_chain+0x38b/0xc20 [ 10.685013][ T170] hvc_console_print+0x292/0x780 [ 10.685019][ T170] ? hvc_write+0x3a0/0x3a0 [ 10.685021][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.685025][ T170] ? lock_acquire+0x13c/0x160 [ 10.685028][ T170] console_emit_next_record+0x252/0x4f0 [ 10.685032][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 10.685036][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.685038][ T170] ? lock_acquire+0x13c/0x160 [ 10.685041][ T170] console_flush_one_record+0x46f/0x710 [ 10.685045][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 10.685047][ T170] ? __lock_acquire+0x518/0xc20 [ 10.685051][ T170] console_unlock+0xee/0x1f0 [ 10.685054][ T170] ? console_flush_one_record+0x710/0x710 [ 10.685055][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.685057][ T170] ? lock_acquire+0x60/0x160 [ 10.685061][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.685062][ T170] ? vprintk_emit+0x320/0x3e0 [ 10.685065][ T170] vprintk_emit+0x37c/0x3e0 [ 10.685069][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 10.685070][ T170] ? find_held_lock+0x2b/0x80 [ 10.685074][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 10.685075][ T170] ? fast_dput+0x316/0x540 [ 10.685080][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.685084][ T170] _printk+0xc7/0x100 [ 10.685088][ T170] ? snapshot_read.cold+0x21/0x21 [ 10.685091][ T170] ? __up_write+0x2e5/0x5f0 [ 10.685094][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.685098][ T170] ? configfs_register_subsystem+0x340/0x570 [ 10.685102][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.685106][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.685112][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.685115][ T170] do_one_initcall+0x124/0x4f0 [ 10.685118][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.685123][ T170] ? do_init_module+0xae/0x8a0 [ 10.685126][ T170] ? kasan_unpoison+0x44/0x70 [ 10.685131][ T170] do_init_module+0x2ad/0x8a0 [ 10.685134][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 10.685139][ T170] ? free_module+0x470/0x470 [ 10.685141][ T170] ? kfree+0x123/0x590 [ 10.685145][ T170] load_module+0x1424/0x1bb0 [ 10.685151][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.685155][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.685158][ T170] ? ovl_real_file+0x172/0x1e0 [ 10.685161][ T170] ? backing_file_read_iter+0x541/0x790 [ 10.685165][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.685169][ T170] init_module_from_file+0x11f/0x1a0 [ 10.685172][ T170] ? __do_sys_init_module+0x220/0x220 [ 10.685180][ T170] ? __rwlock_init+0x150/0x150 [ 10.685183][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.685185][ T170] idempotent_init_module+0x37b/0x7c0 [ 10.685188][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 10.685194][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.685196][ T170] ? cap_capable+0x1d7/0x3d0 [ 10.685202][ T170] __x64_sys_finit_module+0xdf/0x190 [ 10.685204][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.685208][ T170] do_syscall_64+0xff/0x530 [ 10.685210][ T170] ? exc_page_fault+0xee/0x100 [ 10.685213][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.685215][ T170] RIP: 0033:0x7f452689337d [ 10.685219][ 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 [ 10.685220][ T170] RSP: 002b:00007ffcc8112e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.685223][ T170] RAX: ffffffffffffffda RBX: 000055a50a681700 RCX: 00007f452689337d [ 10.685224][ T170] RDX: 0000000000000000 RSI: 000055a4d8085ffd RDI: 0000000000000005 [ 10.685225][ T170] RBP: 00007ffcc8112ec0 R08: 0000000000000000 R09: 0000000000000000 [ 10.685226][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055a4d8085ffd [ 10.685227][ T170] R13: 000055a50a681810 R14: 0000000000040000 R15: 0000000000000000 [ 10.685233][ T170] [ 14.154648][ T157] netconsole selftest: netcons_EhaME [ 14.154674][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.154677][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 14.154679][ T157] preempt_count: 1, expected: 0 [ 14.154680][ T157] RCU nest depth: 0, expected: 0 [ 14.154681][ T157] locks held by bash/157: 4, last CPU#2: [ 14.154684][ T157] #0: ffffffff92999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.154697][ T157] #1: ffffffff92999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.154702][ T157] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.154706][ T157] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.154711][ T157] irq event stamp: 145606 [ 14.154713][ T157] hardirqs last enabled at (145605): [] __down_trylock_console_sem+0x86/0xa0 [ 14.154715][ T157] hardirqs last disabled at (145606): [] console_emit_next_record+0x3f8/0x4f0 [ 14.154717][ T157] softirqs last enabled at (145438): [] restore_fpregs_from_user+0x1cf/0x490 [ 14.154721][ T157] softirqs last disabled at (145436): [] restore_fpregs_from_user+0xc3/0x490 [ 14.154724][ T157] Preemption disabled at: [ 14.154724][ T157] [] vprintk_emit+0x31b/0x3e0 [ 14.154730][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.154734][ T157] Tainted: [W]=WARN [ 14.154735][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.154737][ T157] Call Trace: [ 14.154738][ T157] [ 14.154740][ T157] dump_stack_lvl+0x6f/0xa0 [ 14.154745][ T157] ? vprintk_emit+0x31b/0x3e0 [ 14.154747][ T157] __might_resched.cold+0x1fe/0x2c1 [ 14.154752][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.154756][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 14.154761][ T157] __kmalloc_noprof+0x443/0x760 [ 14.154763][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 14.154769][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 14.154772][ T157] alloc_buf.isra.0+0x4b/0x260 [ 14.154775][ T157] put_chars+0x1e1/0x2f0 [ 14.154778][ T157] ? __send_to_port+0x420/0x420 [ 14.154780][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 14.154783][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.154786][ T157] ? validate_chain+0x38b/0xc20 [ 14.154790][ T157] hvc_console_print+0x292/0x780 [ 14.154793][ T157] ? __lock_acquire+0x518/0xc20 [ 14.154794][ T157] ? __lock_acquire+0x518/0xc20 [ 14.154799][ T157] ? hvc_write+0x3a0/0x3a0 [ 14.154802][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.154805][ T157] ? lock_acquire+0x13c/0x160 [ 14.154809][ T157] console_emit_next_record+0x252/0x4f0 [ 14.154812][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 14.154817][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.154819][ T157] ? lock_acquire+0x13c/0x160 [ 14.154823][ T157] console_flush_one_record+0x46f/0x710 [ 14.154827][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 14.154829][ T157] ? __lock_acquire+0x518/0xc20 [ 14.154834][ T157] console_unlock+0xee/0x1f0 [ 14.154836][ T157] ? console_flush_one_record+0x710/0x710 [ 14.154838][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.154840][ T157] ? lock_acquire+0x60/0x160 [ 14.154844][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.154845][ T157] ? vprintk_emit+0x320/0x3e0 [ 14.154849][ T157] vprintk_emit+0x37c/0x3e0 [ 14.154852][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 14.154855][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 14.154861][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.154865][ T157] ? vprintk_emit.cold+0x107/0x107 [ 14.154870][ T157] ? __kmalloc_noprof+0x302/0x760 [ 14.154871][ T157] ? idr_get_free+0x830/0x830 [ 14.154875][ T157] ? devkmsg_write+0xd1/0x2c0 [ 14.154878][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 14.154881][ T157] devkmsg_write.cold+0x5a/0x8b [ 14.154884][ T157] ? vprintk_default+0x20/0x20 [ 14.154886][ T157] ? handle_pte_fault+0x448/0x710 [ 14.154891][ T157] ? do_numa_page.isra.0+0xa70/0xa70 [ 14.154893][ T157] ? vprintk_default+0x20/0x20 [ 14.154895][ T157] new_sync_write+0x33e/0x760 [ 14.154900][ T157] ? new_sync_read+0x750/0x750 [ 14.154902][ T157] ? lock_vma_under_rcu+0x159/0x410 [ 14.154911][ T157] vfs_write+0x6a2/0xbd0 [ 14.154915][ T157] ksys_write+0x116/0x250 [ 14.154918][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 14.154920][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.154922][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.154926][ T157] do_syscall_64+0xff/0x530 [ 14.154928][ T157] ? exc_page_fault+0xee/0x100 [ 14.154932][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.154934][ T157] RIP: 0033:0x7fbc3d27a54e [ 14.154938][ T157] 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 [ 14.154940][ T157] RSP: 002b:00007ffe11461630 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.154943][ T157] RAX: ffffffffffffffda RBX: 00007fbc3d3fb580 RCX: 00007fbc3d27a54e [ 14.154944][ T157] RDX: 0000000000000023 RSI: 0000560caf025790 RDI: 0000000000000001 [ 14.154945][ T157] RBP: 00007ffe11461640 R08: 0000000000000000 R09: 0000000000000000 [ 14.154946][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.154947][ T157] R13: 0000000000000023 R14: 0000560caf025790 R15: 0000000000000000 [ 14.154954][ T157] [ 15.789118][ T157] netconsole selftest: netcons_EhaME [ 15.789146][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.789149][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 15.789150][ T157] preempt_count: 1, expected: 0 [ 15.789151][ T157] RCU nest depth: 0, expected: 0 [ 15.789153][ T157] locks held by bash/157: 4, last CPU#3: [ 15.789155][ T157] #0: ffffffff92999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.789169][ T157] #1: ffffffff92999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.789174][ T157] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.789179][ T157] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.789183][ T157] irq event stamp: 177734 [ 15.789185][ T157] hardirqs last enabled at (177733): [] __down_trylock_console_sem+0x86/0xa0 [ 15.789187][ T157] hardirqs last disabled at (177734): [] console_emit_next_record+0x3f8/0x4f0 [ 15.789189][ T157] softirqs last enabled at (177544): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.789193][ T157] softirqs last disabled at (177542): [] restore_fpregs_from_user+0xc3/0x490 [ 15.789195][ T157] Preemption disabled at: [ 15.789196][ T157] [] vprintk_emit+0x31b/0x3e0 [ 15.789203][ T157] CPU: 3 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.789206][ T157] Tainted: [W]=WARN [ 15.789207][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.789209][ T157] Call Trace: [ 15.789211][ T157] [ 15.789213][ T157] dump_stack_lvl+0x6f/0xa0 [ 15.789218][ T157] ? vprintk_emit+0x31b/0x3e0 [ 15.789220][ T157] __might_resched.cold+0x1fe/0x2c1 [ 15.789225][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.789229][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 15.789234][ T157] __kmalloc_noprof+0x443/0x760 [ 15.789236][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 15.789242][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 15.789245][ T157] alloc_buf.isra.0+0x4b/0x260 [ 15.789248][ T157] put_chars+0x1e1/0x2f0 [ 15.789251][ T157] ? __send_to_port+0x420/0x420 [ 15.789258][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 15.789261][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.789264][ T157] ? validate_chain+0x38b/0xc20 [ 15.789269][ T157] hvc_console_print+0x292/0x780 [ 15.789272][ T157] ? __lock_acquire+0x518/0xc20 [ 15.789273][ T157] ? __lock_acquire+0x518/0xc20 [ 15.789281][ T157] ? hvc_write+0x3a0/0x3a0 [ 15.789284][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.789287][ T157] ? lock_acquire+0x13c/0x160 [ 15.789291][ T157] console_emit_next_record+0x252/0x4f0 [ 15.789294][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 15.789299][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.789301][ T157] ? lock_acquire+0x13c/0x160 [ 15.789305][ T157] console_flush_one_record+0x46f/0x710 [ 15.789309][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 15.789311][ T157] ? __lock_acquire+0x518/0xc20 [ 15.789316][ T157] console_unlock+0xee/0x1f0 [ 15.789318][ T157] ? console_flush_one_record+0x710/0x710 [ 15.789320][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.789322][ T157] ? lock_acquire+0x60/0x160 [ 15.789326][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.789327][ T157] ? vprintk_emit+0x320/0x3e0 [ 15.789331][ T157] vprintk_emit+0x37c/0x3e0 [ 15.789334][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 15.789337][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 15.789343][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.789347][ T157] ? vprintk_emit.cold+0x107/0x107 [ 15.789351][ T157] ? __kmalloc_noprof+0x302/0x760 [ 15.789353][ T157] ? idr_get_free+0x830/0x830 [ 15.789357][ T157] ? devkmsg_write+0xd1/0x2c0 [ 15.789360][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 15.789363][ T157] devkmsg_write.cold+0x5a/0x8b [ 15.789366][ T157] ? vprintk_default+0x20/0x20 [ 15.789368][ T157] ? __lock_acquire+0x518/0xc20 [ 15.789370][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 15.789374][ T157] ? vprintk_default+0x20/0x20 [ 15.789377][ T157] new_sync_write+0x33e/0x760 [ 15.789382][ T157] ? new_sync_read+0x750/0x750 [ 15.789383][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.789392][ T157] vfs_write+0x6a2/0xbd0 [ 15.789396][ T157] ksys_write+0x116/0x250 [ 15.789399][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 15.789401][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 15.789403][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.789407][ T157] do_syscall_64+0xff/0x530 [ 15.789409][ T157] ? exc_page_fault+0xee/0x100 [ 15.789412][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.789415][ T157] RIP: 0033:0x7fbc3d27a54e [ 15.789419][ T157] 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.789421][ T157] RSP: 002b:00007ffe11461630 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.789424][ T157] RAX: ffffffffffffffda RBX: 00007fbc3d3fb580 RCX: 00007fbc3d27a54e [ 15.789426][ T157] RDX: 0000000000000023 RSI: 0000560caf025790 RDI: 0000000000000001 [ 15.789427][ T157] RBP: 00007ffe11461640 R08: 0000000000000000 R09: 0000000000000000 [ 15.789428][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.789429][ T157] R13: 0000000000000023 R14: 0000560caf025790 R15: 0000000000000000 [ 15.789436][ T157] [ 17.436268][ T157] netconsole selftest: netcons_EhaME [ 17.436303][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.436305][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 17.436307][ T157] preempt_count: 1, expected: 0 [ 17.436308][ T157] RCU nest depth: 0, expected: 0 [ 17.436309][ T157] locks held by bash/157: 4, last CPU#2: [ 17.436312][ T157] #0: ffffffff92999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.436325][ T157] #1: ffffffff92999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.436330][ T157] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.436334][ T157] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.436338][ T157] irq event stamp: 208600 [ 17.436340][ T157] hardirqs last enabled at (208599): [] __down_trylock_console_sem+0x86/0xa0 [ 17.436343][ T157] hardirqs last disabled at (208600): [] console_emit_next_record+0x3f8/0x4f0 [ 17.436344][ T157] softirqs last enabled at (208594): [] handle_softirqs+0x67c/0x900 [ 17.436348][ T157] softirqs last disabled at (208587): [] __irq_exit_rcu+0x145/0x1c0 [ 17.436351][ T157] Preemption disabled at: [ 17.436351][ T157] [] vprintk_emit+0x31b/0x3e0 [ 17.436358][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.436361][ T157] Tainted: [W]=WARN [ 17.436362][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.436364][ T157] Call Trace: [ 17.436366][ T157] [ 17.436368][ T157] dump_stack_lvl+0x6f/0xa0 [ 17.436373][ T157] ? vprintk_emit+0x31b/0x3e0 [ 17.436375][ T157] __might_resched.cold+0x1fe/0x2c1 [ 17.436380][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.436383][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 17.436388][ T157] __kmalloc_noprof+0x443/0x760 [ 17.436390][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 17.436396][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 17.436398][ T157] alloc_buf.isra.0+0x4b/0x260 [ 17.436402][ T157] put_chars+0x1e1/0x2f0 [ 17.436404][ T157] ? __send_to_port+0x420/0x420 [ 17.436406][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 17.436409][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.436412][ T157] ? validate_chain+0x38b/0xc20 [ 17.436416][ T157] hvc_console_print+0x292/0x780 [ 17.436419][ T157] ? __lock_acquire+0x518/0xc20 [ 17.436420][ T157] ? __lock_acquire+0x518/0xc20 [ 17.436424][ T157] ? hvc_write+0x3a0/0x3a0 [ 17.436427][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.436430][ T157] ? lock_acquire+0x13c/0x160 [ 17.436434][ T157] console_emit_next_record+0x252/0x4f0 [ 17.436437][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 17.436441][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.436443][ T157] ? lock_acquire+0x13c/0x160 [ 17.436447][ T157] console_flush_one_record+0x46f/0x710 [ 17.436451][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 17.436452][ T157] ? __lock_acquire+0x518/0xc20 [ 17.436457][ T157] console_unlock+0xee/0x1f0 [ 17.436460][ T157] ? console_flush_one_record+0x710/0x710 [ 17.436461][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.436463][ T157] ? lock_acquire+0x60/0x160 [ 17.436467][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.436468][ T157] ? vprintk_emit+0x320/0x3e0 [ 17.436471][ T157] vprintk_emit+0x37c/0x3e0 [ 17.436474][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 17.436477][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 17.436483][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.436487][ T157] ? vprintk_emit.cold+0x107/0x107 [ 17.436491][ T157] ? __kmalloc_noprof+0x302/0x760 [ 17.436492][ T157] ? idr_get_free+0x830/0x830 [ 17.436496][ T157] ? devkmsg_write+0xd1/0x2c0 [ 17.436499][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 17.436502][ T157] devkmsg_write.cold+0x5a/0x8b [ 17.436505][ T157] ? vprintk_default+0x20/0x20 [ 17.436506][ T157] ? __lock_acquire+0x518/0xc20 [ 17.436508][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 17.436513][ T157] ? vprintk_default+0x20/0x20 [ 17.436515][ T157] new_sync_write+0x33e/0x760 [ 17.436520][ T157] ? new_sync_read+0x750/0x750 [ 17.436521][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.436529][ T157] vfs_write+0x6a2/0xbd0 [ 17.436533][ T157] ksys_write+0x116/0x250 [ 17.436536][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 17.436537][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 17.436540][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.436543][ T157] do_syscall_64+0xff/0x530 [ 17.436545][ T157] ? exc_page_fault+0xee/0x100 [ 17.436548][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.436551][ T157] RIP: 0033:0x7fbc3d27a54e [ 17.436555][ T157] 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 [ 17.436557][ T157] RSP: 002b:00007ffe11461630 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.436560][ T157] RAX: ffffffffffffffda RBX: 00007fbc3d3fb580 RCX: 00007fbc3d27a54e [ 17.436561][ T157] RDX: 0000000000000023 RSI: 0000560caf025790 RDI: 0000000000000001 [ 17.436562][ T157] RBP: 00007ffe11461640 R08: 0000000000000000 R09: 0000000000000000 [ 17.436563][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.436564][ T157] R13: 0000000000000023 R14: 0000560caf025790 R15: 0000000000000000 [ 17.436570][ T157]