[ 10.204700][ T169] netconsole: network logging started [ 10.204717][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.204719][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: modprobe [ 10.204721][ T169] preempt_count: 1, expected: 0 [ 10.204722][ T169] RCU nest depth: 0, expected: 0 [ 10.204723][ T169] locks held by modprobe/169: 4, last CPU#3: [ 10.204726][ T169] #0: ffffffffb3d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.204739][ T169] #1: ffffffffb3d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.204743][ T169] #2: ffffffffb3c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.204747][ T169] #3: ffffffffb3c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.204751][ T169] irq event stamp: 30436 [ 10.204751][ T169] hardirqs last enabled at (30435): [] __down_trylock_console_sem+0x86/0xa0 [ 10.204754][ T169] hardirqs last disabled at (30436): [] console_emit_next_record+0x3f8/0x4f0 [ 10.204756][ T169] softirqs last enabled at (30308): [] handle_softirqs+0x67c/0x900 [ 10.204760][ T169] softirqs last disabled at (30301): [] __irq_exit_rcu+0x145/0x1c0 [ 10.204763][ T169] Preemption disabled at: [ 10.204763][ T169] [] vprintk_emit+0x31b/0x3e0 [ 10.204769][ T169] CPU: 3 UID: 0 PID: 169 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.204772][ T169] Tainted: [W]=WARN [ 10.204773][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.204775][ T169] Call Trace: [ 10.204777][ T169] [ 10.204778][ T169] dump_stack_lvl+0x6f/0xa0 [ 10.204784][ T169] ? vprintk_emit+0x31b/0x3e0 [ 10.204786][ T169] __might_resched.cold+0x1fe/0x2c1 [ 10.204790][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.204794][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 10.204799][ T169] __kmalloc_noprof+0x443/0x760 [ 10.204801][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 10.204807][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 10.204809][ T169] alloc_buf.isra.0+0x4b/0x260 [ 10.204812][ T169] put_chars+0x1e1/0x2f0 [ 10.204815][ T169] ? __send_to_port+0x420/0x420 [ 10.204818][ T169] ? validate_chain+0x38b/0xc20 [ 10.204823][ T169] hvc_console_print+0x292/0x780 [ 10.204829][ T169] ? hvc_write+0x3a0/0x3a0 [ 10.204831][ T169] ? rcu_is_watching+0x16/0xd0 [ 10.204835][ T169] ? lock_acquire+0x13c/0x160 [ 10.204839][ T169] console_emit_next_record+0x252/0x4f0 [ 10.204842][ T169] ? devkmsg_read+0x4e0/0x4e0 [ 10.204846][ T169] ? rcu_is_watching+0x16/0xd0 [ 10.204849][ T169] ? lock_acquire+0x13c/0x160 [ 10.204852][ T169] console_flush_one_record+0x46f/0x710 [ 10.204856][ T169] ? console_emit_next_record+0x4f0/0x4f0 [ 10.204858][ T169] ? __lock_acquire+0x518/0xc20 [ 10.204862][ T169] console_unlock+0xee/0x1f0 [ 10.204865][ T169] ? console_flush_one_record+0x710/0x710 [ 10.204867][ T169] ? rcu_is_watching+0x16/0xd0 [ 10.204869][ T169] ? lock_acquire+0x60/0x160 [ 10.204872][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.204873][ T169] ? vprintk_emit+0x320/0x3e0 [ 10.204876][ T169] vprintk_emit+0x37c/0x3e0 [ 10.204880][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 10.204882][ T169] ? find_held_lock+0x2b/0x80 [ 10.204885][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 10.204887][ T169] ? fast_dput+0x316/0x540 [ 10.204891][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.204895][ T169] _printk+0xc7/0x100 [ 10.204899][ T169] ? snapshot_read.cold+0x21/0x21 [ 10.204902][ T169] ? __up_write+0x2e5/0x5f0 [ 10.204905][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.204909][ T169] ? configfs_register_subsystem+0x340/0x570 [ 10.204914][ T169] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.204917][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.204924][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.204926][ T169] do_one_initcall+0x124/0x4f0 [ 10.204930][ T169] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.204935][ T169] ? do_init_module+0xae/0x8a0 [ 10.204938][ T169] ? kasan_unpoison+0x44/0x70 [ 10.204943][ T169] do_init_module+0x2ad/0x8a0 [ 10.204947][ T169] ? lockdep_hardirqs_on+0x91/0x130 [ 10.204951][ T169] ? free_module+0x470/0x470 [ 10.204954][ T169] ? kfree+0x123/0x590 [ 10.204958][ T169] load_module+0x1424/0x1bb0 [ 10.204964][ T169] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.204968][ T169] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.204971][ T169] ? ovl_real_file+0x172/0x1e0 [ 10.204975][ T169] ? backing_file_read_iter+0x541/0x790 [ 10.204979][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.204983][ T169] init_module_from_file+0x11f/0x1a0 [ 10.204986][ T169] ? __do_sys_init_module+0x220/0x220 [ 10.204994][ T169] ? __rwlock_init+0x150/0x150 [ 10.204997][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 10.205000][ T169] idempotent_init_module+0x37b/0x7c0 [ 10.205004][ T169] ? init_module_from_file+0x1a0/0x1a0 [ 10.205010][ T169] ? rcu_is_watching+0x16/0xd0 [ 10.205012][ T169] ? cap_capable+0x1d7/0x3d0 [ 10.205018][ T169] __x64_sys_finit_module+0xdf/0x190 [ 10.205020][ T169] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.205024][ T169] do_syscall_64+0xff/0x530 [ 10.205026][ T169] ? exc_page_fault+0xee/0x100 [ 10.205029][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.205031][ T169] RIP: 0033:0x7f200f27237d [ 10.205034][ T169] 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.205036][ T169] RSP: 002b:00007ffd8cbe56e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.205039][ T169] RAX: ffffffffffffffda RBX: 00005652e1406700 RCX: 00007f200f27237d [ 10.205040][ T169] RDX: 0000000000000000 RSI: 00005652c3f93ffd RDI: 0000000000000005 [ 10.205041][ T169] RBP: 00007ffd8cbe5780 R08: 0000000000000000 R09: 0000000000000000 [ 10.205042][ T169] R10: 0000000000000000 R11: 0000000000000246 R12: 00005652c3f93ffd [ 10.205043][ T169] R13: 00005652e1406810 R14: 0000000000040000 R15: 0000000000000000 [ 10.205050][ T169] [ 13.462600][ T157] netconsole selftest: netcons_zvKlr [ 13.462630][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.462633][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 13.462635][ T157] preempt_count: 1, expected: 0 [ 13.462636][ T157] RCU nest depth: 0, expected: 0 [ 13.462638][ T157] locks held by bash/157: 4, last CPU#2: [ 13.462640][ T157] #0: ffffffffb3d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.462654][ T157] #1: ffffffffb3d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.462659][ T157] #2: ffffffffb3c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.462664][ T157] #3: ffffffffb3c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.462668][ T157] irq event stamp: 123404 [ 13.462670][ T157] hardirqs last enabled at (123403): [] __down_trylock_console_sem+0x86/0xa0 [ 13.462672][ T157] hardirqs last disabled at (123404): [] console_emit_next_record+0x3f8/0x4f0 [ 13.462674][ T157] softirqs last enabled at (123308): [] handle_softirqs+0x67c/0x900 [ 13.462678][ T157] softirqs last disabled at (123301): [] __irq_exit_rcu+0x145/0x1c0 [ 13.462681][ T157] Preemption disabled at: [ 13.462682][ T157] [] vprintk_emit+0x31b/0x3e0 [ 13.462689][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.462692][ T157] Tainted: [W]=WARN [ 13.462693][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.462695][ T157] Call Trace: [ 13.462697][ T157] [ 13.462699][ T157] dump_stack_lvl+0x6f/0xa0 [ 13.462704][ T157] ? vprintk_emit+0x31b/0x3e0 [ 13.462706][ T157] __might_resched.cold+0x1fe/0x2c1 [ 13.462711][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.462715][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 13.462719][ T157] __kmalloc_noprof+0x443/0x760 [ 13.462721][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 13.462727][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 13.462730][ T157] alloc_buf.isra.0+0x4b/0x260 [ 13.462733][ T157] put_chars+0x1e1/0x2f0 [ 13.462736][ T157] ? __send_to_port+0x420/0x420 [ 13.462737][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 13.462740][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.462743][ T157] ? validate_chain+0x38b/0xc20 [ 13.462748][ T157] hvc_console_print+0x292/0x780 [ 13.462750][ T157] ? __lock_acquire+0x518/0xc20 [ 13.462752][ T157] ? __lock_acquire+0x518/0xc20 [ 13.462756][ T157] ? hvc_write+0x3a0/0x3a0 [ 13.462759][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.462762][ T157] ? lock_acquire+0x13c/0x160 [ 13.462766][ T157] console_emit_next_record+0x252/0x4f0 [ 13.462770][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 13.462774][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.462776][ T157] ? lock_acquire+0x13c/0x160 [ 13.462780][ T157] console_flush_one_record+0x46f/0x710 [ 13.462784][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 13.462785][ T157] ? __lock_acquire+0x518/0xc20 [ 13.462790][ T157] console_unlock+0xee/0x1f0 [ 13.462793][ T157] ? console_flush_one_record+0x710/0x710 [ 13.462795][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.462797][ T157] ? lock_acquire+0x60/0x160 [ 13.462801][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.462802][ T157] ? vprintk_emit+0x320/0x3e0 [ 13.462805][ T157] vprintk_emit+0x37c/0x3e0 [ 13.462809][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 13.462812][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 13.462818][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.462822][ T157] ? vprintk_emit.cold+0x107/0x107 [ 13.462826][ T157] ? __kmalloc_noprof+0x302/0x760 [ 13.462828][ T157] ? idr_get_free+0x830/0x830 [ 13.462832][ T157] ? devkmsg_write+0xd1/0x2c0 [ 13.462835][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 13.462837][ T157] devkmsg_write.cold+0x5a/0x8b [ 13.462840][ T157] ? vprintk_default+0x20/0x20 [ 13.462842][ T157] ? __lock_acquire+0x518/0xc20 [ 13.462844][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 13.462849][ T157] ? vprintk_default+0x20/0x20 [ 13.462851][ T157] new_sync_write+0x33e/0x760 [ 13.462856][ T157] ? new_sync_read+0x750/0x750 [ 13.462857][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.462865][ T157] vfs_write+0x6a2/0xbd0 [ 13.462869][ T157] ksys_write+0x116/0x250 [ 13.462872][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 13.462874][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 13.462876][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.462880][ T157] do_syscall_64+0xff/0x530 [ 13.462882][ T157] ? exc_page_fault+0xee/0x100 [ 13.462885][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.462888][ T157] RIP: 0033:0x7f7b6619a54e [ 13.462892][ 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 [ 13.462894][ T157] RSP: 002b:00007ffde4ddde60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.462897][ T157] RAX: ffffffffffffffda RBX: 00007f7b6631b580 RCX: 00007f7b6619a54e [ 13.462898][ T157] RDX: 0000000000000023 RSI: 00005556c5b13ab0 RDI: 0000000000000001 [ 13.462899][ T157] RBP: 00007ffde4ddde70 R08: 0000000000000000 R09: 0000000000000000 [ 13.462900][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.462901][ T157] R13: 0000000000000023 R14: 00005556c5b13ab0 R15: 0000000000000000 [ 13.462908][ T157] [ 17.551305][ T157] netconsole selftest: netcons_zvKlr [ 17.551331][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.551334][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 17.551335][ T157] preempt_count: 1, expected: 0 [ 17.551336][ T157] RCU nest depth: 0, expected: 0 [ 17.551338][ T157] locks held by bash/157: 4, last CPU#1: [ 17.551340][ T157] #0: ffffffffb3d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.551353][ T157] #1: ffffffffb3d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.551358][ T157] #2: ffffffffb3c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.551363][ T157] #3: ffffffffb3c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.551367][ T157] irq event stamp: 259460 [ 17.551369][ T157] hardirqs last enabled at (259459): [] __down_trylock_console_sem+0x86/0xa0 [ 17.551371][ T157] hardirqs last disabled at (259460): [] console_emit_next_record+0x3f8/0x4f0 [ 17.551373][ T157] softirqs last enabled at (259264): [] restore_fpregs_from_user+0x1cf/0x490 [ 17.551377][ T157] softirqs last disabled at (259262): [] restore_fpregs_from_user+0xc3/0x490 [ 17.551379][ T157] Preemption disabled at: [ 17.551380][ T157] [] vprintk_emit+0x31b/0x3e0 [ 17.551386][ T157] CPU: 1 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.551390][ T157] Tainted: [W]=WARN [ 17.551391][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.551393][ T157] Call Trace: [ 17.551394][ T157] [ 17.551396][ T157] dump_stack_lvl+0x6f/0xa0 [ 17.551402][ T157] ? vprintk_emit+0x31b/0x3e0 [ 17.551404][ T157] __might_resched.cold+0x1fe/0x2c1 [ 17.551408][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.551412][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 17.551417][ T157] __kmalloc_noprof+0x443/0x760 [ 17.551419][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 17.551424][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 17.551427][ T157] alloc_buf.isra.0+0x4b/0x260 [ 17.551430][ T157] put_chars+0x1e1/0x2f0 [ 17.551436][ T157] ? __send_to_port+0x420/0x420 [ 17.551438][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 17.551441][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.551445][ T157] ? validate_chain+0x38b/0xc20 [ 17.551449][ T157] hvc_console_print+0x292/0x780 [ 17.551452][ T157] ? __lock_acquire+0x518/0xc20 [ 17.551453][ T157] ? __lock_acquire+0x518/0xc20 [ 17.551457][ T157] ? hvc_write+0x3a0/0x3a0 [ 17.551460][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.551463][ T157] ? lock_acquire+0x13c/0x160 [ 17.551467][ T157] console_emit_next_record+0x252/0x4f0 [ 17.551470][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 17.551474][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.551476][ T157] ? lock_acquire+0x13c/0x160 [ 17.551480][ T157] console_flush_one_record+0x46f/0x710 [ 17.551484][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 17.551485][ T157] ? __lock_acquire+0x518/0xc20 [ 17.551490][ T157] console_unlock+0xee/0x1f0 [ 17.551493][ T157] ? console_flush_one_record+0x710/0x710 [ 17.551494][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.551496][ T157] ? lock_acquire+0x60/0x160 [ 17.551500][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.551501][ T157] ? vprintk_emit+0x320/0x3e0 [ 17.551504][ T157] vprintk_emit+0x37c/0x3e0 [ 17.551507][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 17.551510][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 17.551516][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.551520][ T157] ? vprintk_emit.cold+0x107/0x107 [ 17.551524][ T157] ? __kmalloc_noprof+0x302/0x760 [ 17.551525][ T157] ? idr_get_free+0x830/0x830 [ 17.551529][ T157] ? devkmsg_write+0xd1/0x2c0 [ 17.551532][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 17.551534][ T157] devkmsg_write.cold+0x5a/0x8b [ 17.551537][ T157] ? vprintk_default+0x20/0x20 [ 17.551539][ T157] ? __lock_acquire+0x518/0xc20 [ 17.551541][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 17.551545][ T157] ? vprintk_default+0x20/0x20 [ 17.551547][ T157] new_sync_write+0x33e/0x760 [ 17.551552][ T157] ? new_sync_read+0x750/0x750 [ 17.551554][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.551561][ T157] vfs_write+0x6a2/0xbd0 [ 17.551566][ T157] ksys_write+0x116/0x250 [ 17.551568][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 17.551570][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 17.551573][ T157] ? rcu_is_watching+0x16/0xd0 [ 17.551576][ T157] do_syscall_64+0xff/0x530 [ 17.551578][ T157] ? exc_page_fault+0xee/0x100 [ 17.551581][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.551584][ T157] RIP: 0033:0x7f7b6619a54e [ 17.551588][ 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.551589][ T157] RSP: 002b:00007ffde4ddde60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.551593][ T157] RAX: ffffffffffffffda RBX: 00007f7b6631b580 RCX: 00007f7b6619a54e [ 17.551594][ T157] RDX: 0000000000000023 RSI: 00005556c5b13ab0 RDI: 0000000000000001 [ 17.551595][ T157] RBP: 00007ffde4ddde70 R08: 0000000000000000 R09: 0000000000000000 [ 17.551596][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.551597][ T157] R13: 0000000000000023 R14: 00005556c5b13ab0 R15: 0000000000000000 [ 17.551611][ T157] [ 21.295527][ T157] netconsole selftest: netcons_zvKlr [ 21.295554][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.295557][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 21.295559][ T157] preempt_count: 1, expected: 0 [ 21.295560][ T157] RCU nest depth: 0, expected: 0 [ 21.295561][ T157] locks held by bash/157: 4, last CPU#3: [ 21.295564][ T157] #0: ffffffffb3d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.295578][ T157] #1: ffffffffb3d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.295584][ T157] #2: ffffffffb3c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.295588][ T157] #3: ffffffffb3c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 21.295593][ T157] irq event stamp: 388812 [ 21.295595][ T157] hardirqs last enabled at (388811): [] __down_trylock_console_sem+0x86/0xa0 [ 21.295597][ T157] hardirqs last disabled at (388812): [] console_emit_next_record+0x3f8/0x4f0 [ 21.295599][ T157] softirqs last enabled at (388742): [] handle_softirqs+0x67c/0x900 [ 21.295603][ T157] softirqs last disabled at (388735): [] __irq_exit_rcu+0x145/0x1c0 [ 21.295606][ T157] Preemption disabled at: [ 21.295607][ T157] [] vprintk_emit+0x31b/0x3e0 [ 21.295613][ T157] CPU: 3 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.295617][ T157] Tainted: [W]=WARN [ 21.295618][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.295620][ T157] Call Trace: [ 21.295627][ T157] [ 21.295629][ T157] dump_stack_lvl+0x6f/0xa0 [ 21.295635][ T157] ? vprintk_emit+0x31b/0x3e0 [ 21.295637][ T157] __might_resched.cold+0x1fe/0x2c1 [ 21.295641][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.295645][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 21.295650][ T157] __kmalloc_noprof+0x443/0x760 [ 21.295652][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 21.295658][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 21.295660][ T157] alloc_buf.isra.0+0x4b/0x260 [ 21.295663][ T157] put_chars+0x1e1/0x2f0 [ 21.295666][ T157] ? __send_to_port+0x420/0x420 [ 21.295668][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 21.295671][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 21.295674][ T157] ? validate_chain+0x38b/0xc20 [ 21.295678][ T157] hvc_console_print+0x292/0x780 [ 21.295681][ T157] ? __lock_acquire+0x518/0xc20 [ 21.295683][ T157] ? __lock_acquire+0x518/0xc20 [ 21.295687][ T157] ? hvc_write+0x3a0/0x3a0 [ 21.295690][ T157] ? rcu_is_watching+0x16/0xd0 [ 21.295693][ T157] ? lock_acquire+0x13c/0x160 [ 21.295697][ T157] console_emit_next_record+0x252/0x4f0 [ 21.295700][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 21.295704][ T157] ? rcu_is_watching+0x16/0xd0 [ 21.295707][ T157] ? lock_acquire+0x13c/0x160 [ 21.295710][ T157] console_flush_one_record+0x46f/0x710 [ 21.295714][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 21.295716][ T157] ? __lock_acquire+0x518/0xc20 [ 21.295721][ T157] console_unlock+0xee/0x1f0 [ 21.295724][ T157] ? console_flush_one_record+0x710/0x710 [ 21.295725][ T157] ? rcu_is_watching+0x16/0xd0 [ 21.295727][ T157] ? lock_acquire+0x60/0x160 [ 21.295731][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.295732][ T157] ? vprintk_emit+0x320/0x3e0 [ 21.295735][ T157] vprintk_emit+0x37c/0x3e0 [ 21.295739][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 21.295742][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 21.295747][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 21.295752][ T157] ? vprintk_emit.cold+0x107/0x107 [ 21.295756][ T157] ? __kmalloc_noprof+0x302/0x760 [ 21.295757][ T157] ? idr_get_free+0x830/0x830 [ 21.295761][ T157] ? devkmsg_write+0xd1/0x2c0 [ 21.295764][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 21.295767][ T157] devkmsg_write.cold+0x5a/0x8b [ 21.295770][ T157] ? vprintk_default+0x20/0x20 [ 21.295772][ T157] ? handle_pte_fault+0x448/0x710 [ 21.295776][ T157] ? do_numa_page.isra.0+0xa70/0xa70 [ 21.295779][ T157] ? vprintk_default+0x20/0x20 [ 21.295781][ T157] new_sync_write+0x33e/0x760 [ 21.295786][ T157] ? new_sync_read+0x750/0x750 [ 21.295788][ T157] ? lock_vma_under_rcu+0x159/0x410 [ 21.295796][ T157] vfs_write+0x6a2/0xbd0 [ 21.295801][ T157] ksys_write+0x116/0x250 [ 21.295804][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 21.295806][ T157] ? rcu_is_watching+0x16/0xd0 [ 21.295809][ T157] ? rcu_is_watching+0x16/0xd0 [ 21.295812][ T157] do_syscall_64+0xff/0x530 [ 21.295814][ T157] ? exc_page_fault+0xee/0x100 [ 21.295818][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.295820][ T157] RIP: 0033:0x7f7b6619a54e [ 21.295825][ 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 [ 21.295827][ T157] RSP: 002b:00007ffde4ddde60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 21.295830][ T157] RAX: ffffffffffffffda RBX: 00007f7b6631b580 RCX: 00007f7b6619a54e [ 21.295832][ T157] RDX: 0000000000000023 RSI: 00005556c5b13ab0 RDI: 0000000000000001 [ 21.295833][ T157] RBP: 00007ffde4ddde70 R08: 0000000000000000 R09: 0000000000000000 [ 21.295834][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 21.295835][ T157] R13: 0000000000000023 R14: 00005556c5b13ab0 R15: 0000000000000000 [ 21.295841][ T157] [ 24.953652][ T157] netconsole selftest: netcons_zvKlr [ 24.953841][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 24.953844][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 24.953846][ T157] preempt_count: 1, expected: 0 [ 24.953847][ T157] RCU nest depth: 0, expected: 0 [ 24.953849][ T157] locks held by bash/157: 4, last CPU#2: [ 24.953851][ T157] #0: ffffffffb3d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 24.953866][ T157] #1: ffffffffb3d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 24.953872][ T157] #2: ffffffffb3c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 24.953877][ T157] #3: ffffffffb3c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 24.953882][ T157] irq event stamp: 501240 [ 24.953884][ T157] hardirqs last enabled at (501239): [] __down_trylock_console_sem+0x86/0xa0 [ 24.953886][ T157] hardirqs last disabled at (501240): [] console_emit_next_record+0x3f8/0x4f0 [ 24.953888][ T157] softirqs last enabled at (501040): [] restore_fpregs_from_user+0x1cf/0x490 [ 24.953892][ T157] softirqs last disabled at (501038): [] restore_fpregs_from_user+0xc3/0x490 [ 24.953895][ T157] Preemption disabled at: [ 24.953895][ T157] [] vprintk_emit+0x31b/0x3e0 [ 24.953901][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 24.953905][ T157] Tainted: [W]=WARN [ 24.953906][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.953908][ T157] Call Trace: [ 24.953910][ T157] [ 24.953911][ T157] dump_stack_lvl+0x6f/0xa0 [ 24.953917][ T157] ? vprintk_emit+0x31b/0x3e0 [ 24.953919][ T157] __might_resched.cold+0x1fe/0x2c1 [ 24.953923][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 24.953927][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 24.953932][ T157] __kmalloc_noprof+0x443/0x760 [ 24.953934][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 24.953940][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 24.953942][ T157] alloc_buf.isra.0+0x4b/0x260 [ 24.953946][ T157] put_chars+0x1e1/0x2f0 [ 24.953949][ T157] ? __send_to_port+0x420/0x420 [ 24.953950][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 24.953953][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 24.953956][ T157] ? validate_chain+0x38b/0xc20 [ 24.953960][ T157] hvc_console_print+0x292/0x780 [ 24.953964][ T157] ? __lock_acquire+0x518/0xc20 [ 24.953965][ T157] ? __lock_acquire+0x518/0xc20 [ 24.953969][ T157] ? hvc_write+0x3a0/0x3a0 [ 24.953972][ T157] ? rcu_is_watching+0x16/0xd0 [ 24.953975][ T157] ? lock_acquire+0x13c/0x160 [ 24.953979][ T157] console_emit_next_record+0x252/0x4f0 [ 24.953983][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 24.953987][ T157] ? rcu_is_watching+0x16/0xd0 [ 24.953989][ T157] ? lock_acquire+0x13c/0x160 [ 24.953993][ T157] console_flush_one_record+0x46f/0x710 [ 24.953997][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 24.953999][ T157] ? __lock_acquire+0x518/0xc20 [ 24.954003][ T157] console_unlock+0xee/0x1f0 [ 24.954006][ T157] ? console_flush_one_record+0x710/0x710 [ 24.954008][ T157] ? rcu_is_watching+0x16/0xd0 [ 24.954010][ T157] ? lock_acquire+0x60/0x160 [ 24.954014][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 24.954015][ T157] ? vprintk_emit+0x320/0x3e0 [ 24.954018][ T157] vprintk_emit+0x37c/0x3e0 [ 24.954022][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 24.954025][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 24.954031][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 24.954035][ T157] ? vprintk_emit.cold+0x107/0x107 [ 24.954039][ T157] ? __kmalloc_noprof+0x302/0x760 [ 24.954040][ T157] ? idr_get_free+0x830/0x830 [ 24.954044][ T157] ? devkmsg_write+0xd1/0x2c0 [ 24.954047][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 24.954050][ T157] devkmsg_write.cold+0x5a/0x8b [ 24.954053][ T157] ? vprintk_default+0x20/0x20 [ 24.954054][ T157] ? __lock_acquire+0x518/0xc20 [ 24.954056][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 24.954061][ T157] ? vprintk_default+0x20/0x20 [ 24.954063][ T157] new_sync_write+0x33e/0x760 [ 24.954068][ T157] ? new_sync_read+0x750/0x750 [ 24.954070][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 24.954078][ T157] vfs_write+0x6a2/0xbd0 [ 24.954082][ T157] ksys_write+0x116/0x250 [ 24.954085][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 24.954087][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 24.954089][ T157] ? rcu_is_watching+0x16/0xd0 [ 24.954093][ T157] do_syscall_64+0xff/0x530 [ 24.954095][ T157] ? exc_page_fault+0xee/0x100 [ 24.954098][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 24.954101][ T157] RIP: 0033:0x7f7b6619a54e [ 24.954105][ 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 [ 24.954107][ T157] RSP: 002b:00007ffde4ddde60 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 24.954110][ T157] RAX: ffffffffffffffda RBX: 00007f7b6631b580 RCX: 00007f7b6619a54e [ 24.954112][ T157] RDX: 0000000000000023 RSI: 00005556c5b13ab0 RDI: 0000000000000001 [ 24.954113][ T157] RBP: 00007ffde4ddde70 R08: 0000000000000000 R09: 0000000000000000 [ 24.954114][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 24.954115][ T157] R13: 0000000000000023 R14: 00005556c5b13ab0 R15: 0000000000000000 [ 24.954122][ T157]