[ 8.716784][ T170] netconsole: network logging started [ 8.716800][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.716802][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 8.716804][ T170] preempt_count: 1, expected: 0 [ 8.716805][ T170] RCU nest depth: 0, expected: 0 [ 8.716806][ T170] locks held by modprobe/170: 4, last CPU#1: [ 8.716808][ T170] #0: ffffffff9ed99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.716821][ T170] #1: ffffffff9ed99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.716826][ T170] #2: ffffffff9ec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.716829][ T170] #3: ffffffff9ec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.716833][ T170] irq event stamp: 34002 [ 8.716834][ T170] hardirqs last enabled at (34001): [] __down_trylock_console_sem+0x86/0xa0 [ 8.716836][ T170] hardirqs last disabled at (34002): [] console_emit_next_record+0x3f8/0x4f0 [ 8.716838][ T170] softirqs last enabled at (31704): [] handle_softirqs+0x67c/0x900 [ 8.716842][ T170] softirqs last disabled at (30869): [] __irq_exit_rcu+0x145/0x1c0 [ 8.716844][ T170] Preemption disabled at: [ 8.716845][ T170] [] vprintk_emit+0x31b/0x3e0 [ 8.716850][ T170] CPU: 1 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.716854][ T170] Tainted: [W]=WARN [ 8.716855][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.716856][ T170] Call Trace: [ 8.716858][ T170] [ 8.716860][ T170] dump_stack_lvl+0x6f/0xa0 [ 8.716865][ T170] ? vprintk_emit+0x31b/0x3e0 [ 8.716867][ T170] __might_resched.cold+0x1fe/0x2c1 [ 8.716871][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.716875][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 8.716879][ T170] __kmalloc_noprof+0x443/0x760 [ 8.716881][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 8.716887][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.716890][ T170] alloc_buf.isra.0+0x4b/0x260 [ 8.716893][ T170] put_chars+0x1e1/0x2f0 [ 8.716896][ T170] ? __send_to_port+0x420/0x420 [ 8.716898][ T170] ? validate_chain+0x38b/0xc20 [ 8.716903][ T170] hvc_console_print+0x292/0x780 [ 8.716909][ T170] ? hvc_write+0x3a0/0x3a0 [ 8.716911][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.716915][ T170] ? lock_acquire+0x13c/0x160 [ 8.716919][ T170] console_emit_next_record+0x252/0x4f0 [ 8.716922][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 8.716926][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.716928][ T170] ? lock_acquire+0x13c/0x160 [ 8.716932][ T170] console_flush_one_record+0x46f/0x710 [ 8.716936][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 8.716937][ T170] ? __lock_acquire+0x518/0xc20 [ 8.716942][ T170] console_unlock+0xee/0x1f0 [ 8.716944][ T170] ? console_flush_one_record+0x710/0x710 [ 8.716946][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.716948][ T170] ? lock_acquire+0x60/0x160 [ 8.716951][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.716953][ T170] ? vprintk_emit+0x320/0x3e0 [ 8.716956][ T170] vprintk_emit+0x37c/0x3e0 [ 8.716959][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 8.716961][ T170] ? find_held_lock+0x2b/0x80 [ 8.716965][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 8.716966][ T170] ? fast_dput+0x316/0x540 [ 8.716971][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.716974][ T170] _printk+0xc7/0x100 [ 8.716978][ T170] ? snapshot_read.cold+0x21/0x21 [ 8.716981][ T170] ? __up_write+0x2e5/0x5f0 [ 8.716984][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.716988][ T170] ? configfs_register_subsystem+0x340/0x570 [ 8.716992][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.716995][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.717002][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.717005][ T170] do_one_initcall+0x124/0x4f0 [ 8.717008][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.717013][ T170] ? do_init_module+0xae/0x8a0 [ 8.717016][ T170] ? kasan_unpoison+0x44/0x70 [ 8.717021][ T170] do_init_module+0x2ad/0x8a0 [ 8.717024][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 8.717029][ T170] ? free_module+0x470/0x470 [ 8.717031][ T170] ? kfree+0x123/0x590 [ 8.717040][ T170] load_module+0x1424/0x1bb0 [ 8.717047][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.717050][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.717053][ T170] ? ovl_real_file+0x172/0x1e0 [ 8.717056][ T170] ? find_held_lock+0x2b/0x80 [ 8.717058][ T170] ? backing_file_read_iter+0x541/0x790 [ 8.717062][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.717066][ T170] init_module_from_file+0x11f/0x1a0 [ 8.717069][ T170] ? __do_sys_init_module+0x220/0x220 [ 8.717077][ T170] ? __rwlock_init+0x150/0x150 [ 8.717080][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.717083][ T170] idempotent_init_module+0x37b/0x7c0 [ 8.717086][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 8.717092][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.717094][ T170] ? cap_capable+0x1d7/0x3d0 [ 8.717099][ T170] __x64_sys_finit_module+0xdf/0x190 [ 8.717101][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.717106][ T170] do_syscall_64+0xff/0x530 [ 8.717107][ T170] ? exc_page_fault+0xee/0x100 [ 8.717110][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.717112][ T170] RIP: 0033:0x7f1bd251b37d [ 8.717115][ 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.717117][ T170] RSP: 002b:00007ffce8b34608 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.717120][ T170] RAX: ffffffffffffffda RBX: 000055b320178700 RCX: 00007f1bd251b37d [ 8.717121][ T170] RDX: 0000000000000000 RSI: 000055b2f46dcffd RDI: 0000000000000005 [ 8.717122][ T170] RBP: 00007ffce8b346a0 R08: 0000000000000000 R09: 0000000000000000 [ 8.717123][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055b2f46dcffd [ 8.717124][ T170] R13: 000055b320178810 R14: 0000000000040000 R15: 0000000000000000 [ 8.717130][ T170] [ 11.795953][ T158] netconsole selftest: netcons_SNpDi [ 11.795979][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.795981][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.795983][ T158] preempt_count: 1, expected: 0 [ 11.795984][ T158] RCU nest depth: 0, expected: 0 [ 11.795985][ T158] locks held by bash/158: 4, last CPU#1: [ 11.795987][ T158] #0: ffffffff9ed99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.796000][ T158] #1: ffffffff9ed99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.796005][ T158] #2: ffffffff9ec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.796009][ T158] #3: ffffffff9ec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.796013][ T158] irq event stamp: 140550 [ 11.796015][ T158] hardirqs last enabled at (140549): [] __down_trylock_console_sem+0x86/0xa0 [ 11.796017][ T158] hardirqs last disabled at (140550): [] console_emit_next_record+0x3f8/0x4f0 [ 11.796019][ T158] softirqs last enabled at (140346): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.796023][ T158] softirqs last disabled at (140344): [] restore_fpregs_from_user+0xc3/0x490 [ 11.796025][ T158] Preemption disabled at: [ 11.796026][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.796031][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.796035][ T158] Tainted: [W]=WARN [ 11.796036][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.796038][ T158] Call Trace: [ 11.796039][ T158] [ 11.796041][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.796052][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.796054][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.796059][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.796062][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.796067][ T158] __kmalloc_noprof+0x443/0x760 [ 11.796069][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.796075][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.796077][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.796080][ T158] put_chars+0x1e1/0x2f0 [ 11.796083][ T158] ? __send_to_port+0x420/0x420 [ 11.796085][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.796088][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.796091][ T158] ? validate_chain+0x38b/0xc20 [ 11.796095][ T158] hvc_console_print+0x292/0x780 [ 11.796098][ T158] ? __lock_acquire+0x518/0xc20 [ 11.796099][ T158] ? __lock_acquire+0x518/0xc20 [ 11.796103][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.796106][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.796109][ T158] ? lock_acquire+0x13c/0x160 [ 11.796113][ T158] console_emit_next_record+0x252/0x4f0 [ 11.796116][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.796120][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.796122][ T158] ? lock_acquire+0x13c/0x160 [ 11.796126][ T158] console_flush_one_record+0x46f/0x710 [ 11.796130][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.796131][ T158] ? __lock_acquire+0x518/0xc20 [ 11.796136][ T158] console_unlock+0xee/0x1f0 [ 11.796139][ T158] ? console_flush_one_record+0x710/0x710 [ 11.796140][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.796142][ T158] ? lock_acquire+0x60/0x160 [ 11.796146][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.796147][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.796150][ T158] vprintk_emit+0x37c/0x3e0 [ 11.796153][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.796156][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.796162][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.796166][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.796170][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.796172][ T158] ? idr_get_free+0x830/0x830 [ 11.796176][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.796179][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.796181][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.796184][ T158] ? vprintk_default+0x20/0x20 [ 11.796186][ T158] ? __lock_acquire+0x518/0xc20 [ 11.796188][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.796192][ T158] ? vprintk_default+0x20/0x20 [ 11.796195][ T158] new_sync_write+0x33e/0x760 [ 11.796199][ T158] ? new_sync_read+0x750/0x750 [ 11.796201][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.796208][ T158] vfs_write+0x6a2/0xbd0 [ 11.796212][ T158] ksys_write+0x116/0x250 [ 11.796215][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.796217][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.796219][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.796223][ T158] do_syscall_64+0xff/0x530 [ 11.796225][ T158] ? exc_page_fault+0xee/0x100 [ 11.796228][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.796231][ T158] RIP: 0033:0x7f0c9e1be54e [ 11.796234][ 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.796236][ T158] RSP: 002b:00007ffdc8d39d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.796239][ T158] RAX: ffffffffffffffda RBX: 00007f0c9e33f580 RCX: 00007f0c9e1be54e [ 11.796240][ T158] RDX: 0000000000000023 RSI: 0000564eb5effab0 RDI: 0000000000000001 [ 11.796241][ T158] RBP: 00007ffdc8d39d40 R08: 0000000000000000 R09: 0000000000000000 [ 11.796242][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.796243][ T158] R13: 0000000000000023 R14: 0000564eb5effab0 R15: 0000000000000000 [ 11.796250][ T158] [ 15.244757][ T158] netconsole selftest: netcons_SNpDi [ 15.244782][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.244785][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.244787][ T158] preempt_count: 1, expected: 0 [ 15.244788][ T158] RCU nest depth: 0, expected: 0 [ 15.244789][ T158] locks held by bash/158: 4, last CPU#1: [ 15.244792][ T158] #0: ffffffff9ed99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.244806][ T158] #1: ffffffff9ed99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.244810][ T158] #2: ffffffff9ec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.244814][ T158] #3: ffffffff9ec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.244819][ T158] irq event stamp: 249554 [ 15.244820][ T158] hardirqs last enabled at (249553): [] __down_trylock_console_sem+0x86/0xa0 [ 15.244823][ T158] hardirqs last disabled at (249554): [] console_emit_next_record+0x3f8/0x4f0 [ 15.244825][ T158] softirqs last enabled at (249350): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.244828][ T158] softirqs last disabled at (249348): [] restore_fpregs_from_user+0xc3/0x490 [ 15.244830][ T158] Preemption disabled at: [ 15.244831][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.244837][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.244840][ T158] Tainted: [W]=WARN [ 15.244841][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.244844][ T158] Call Trace: [ 15.244846][ T158] [ 15.244847][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.244852][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.244854][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.244859][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.244862][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.244867][ T158] __kmalloc_noprof+0x443/0x760 [ 15.244869][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.244875][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.244877][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.244881][ T158] put_chars+0x1e1/0x2f0 [ 15.244884][ T158] ? __send_to_port+0x420/0x420 [ 15.244885][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.244888][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.244891][ T158] ? validate_chain+0x38b/0xc20 [ 15.244895][ T158] hvc_console_print+0x292/0x780 [ 15.244898][ T158] ? __lock_acquire+0x518/0xc20 [ 15.244900][ T158] ? __lock_acquire+0x518/0xc20 [ 15.244904][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.244907][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.244910][ T158] ? lock_acquire+0x13c/0x160 [ 15.244913][ T158] console_emit_next_record+0x252/0x4f0 [ 15.244917][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.244921][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.244923][ T158] ? lock_acquire+0x13c/0x160 [ 15.244927][ T158] console_flush_one_record+0x46f/0x710 [ 15.244931][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.244932][ T158] ? __lock_acquire+0x518/0xc20 [ 15.244937][ T158] console_unlock+0xee/0x1f0 [ 15.244940][ T158] ? console_flush_one_record+0x710/0x710 [ 15.244941][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.244943][ T158] ? lock_acquire+0x60/0x160 [ 15.244947][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.244948][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.244951][ T158] vprintk_emit+0x37c/0x3e0 [ 15.244955][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.244958][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.244963][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.244967][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.244971][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.244973][ T158] ? idr_get_free+0x830/0x830 [ 15.244977][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.244980][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.244983][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.244985][ T158] ? vprintk_default+0x20/0x20 [ 15.244987][ T158] ? __lock_acquire+0x518/0xc20 [ 15.244989][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.244993][ T158] ? vprintk_default+0x20/0x20 [ 15.244996][ T158] new_sync_write+0x33e/0x760 [ 15.245001][ T158] ? new_sync_read+0x750/0x750 [ 15.245002][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.245010][ T158] vfs_write+0x6a2/0xbd0 [ 15.245014][ T158] ksys_write+0x116/0x250 [ 15.245017][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.245019][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.245021][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.245025][ T158] do_syscall_64+0xff/0x530 [ 15.245027][ T158] ? exc_page_fault+0xee/0x100 [ 15.245030][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.245032][ T158] RIP: 0033:0x7f0c9e1be54e [ 15.245036][ 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.245038][ T158] RSP: 002b:00007ffdc8d39d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.245041][ T158] RAX: ffffffffffffffda RBX: 00007f0c9e33f580 RCX: 00007f0c9e1be54e [ 15.245042][ T158] RDX: 0000000000000023 RSI: 0000564eb5effab0 RDI: 0000000000000001 [ 15.245043][ T158] RBP: 00007ffdc8d39d40 R08: 0000000000000000 R09: 0000000000000000 [ 15.245044][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.245045][ T158] R13: 0000000000000023 R14: 0000564eb5effab0 R15: 0000000000000000 [ 15.245052][ T158] [ 18.668689][ T158] netconsole selftest: netcons_SNpDi [ 18.668708][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 18.668710][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 18.668711][ T158] preempt_count: 1, expected: 0 [ 18.668712][ T158] RCU nest depth: 0, expected: 0 [ 18.668713][ T158] locks held by bash/158: 4, last CPU#0: [ 18.668716][ T158] #0: ffffffff9ed99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 18.668729][ T158] #1: ffffffff9ed99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 18.668733][ T158] #2: ffffffff9ec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 18.668737][ T158] #3: ffffffff9ec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 18.668741][ T158] irq event stamp: 354546 [ 18.668743][ T158] hardirqs last enabled at (354545): [] __down_trylock_console_sem+0x86/0xa0 [ 18.668745][ T158] hardirqs last disabled at (354546): [] console_emit_next_record+0x3f8/0x4f0 [ 18.668747][ T158] softirqs last enabled at (354346): [] restore_fpregs_from_user+0x1cf/0x490 [ 18.668750][ T158] softirqs last disabled at (354344): [] restore_fpregs_from_user+0xc3/0x490 [ 18.668753][ T158] Preemption disabled at: [ 18.668753][ T158] [] vprintk_emit+0x31b/0x3e0 [ 18.668759][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 18.668762][ T158] Tainted: [W]=WARN [ 18.668763][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.668765][ T158] Call Trace: [ 18.668767][ T158] [ 18.668768][ T158] dump_stack_lvl+0x6f/0xa0 [ 18.668773][ T158] ? vprintk_emit+0x31b/0x3e0 [ 18.668775][ T158] __might_resched.cold+0x1fe/0x2c1 [ 18.668779][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 18.668783][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 18.668788][ T158] __kmalloc_noprof+0x443/0x760 [ 18.668790][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 18.668795][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 18.668798][ T158] alloc_buf.isra.0+0x4b/0x260 [ 18.668801][ T158] put_chars+0x1e1/0x2f0 [ 18.668803][ T158] ? __send_to_port+0x420/0x420 [ 18.668805][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 18.668808][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 18.668811][ T158] ? validate_chain+0x38b/0xc20 [ 18.668815][ T158] hvc_console_print+0x292/0x780 [ 18.668818][ T158] ? __lock_acquire+0x518/0xc20 [ 18.668819][ T158] ? __lock_acquire+0x518/0xc20 [ 18.668823][ T158] ? hvc_write+0x3a0/0x3a0 [ 18.668826][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.668829][ T158] ? lock_acquire+0x13c/0x160 [ 18.668833][ T158] console_emit_next_record+0x252/0x4f0 [ 18.668836][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 18.668840][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.668842][ T158] ? lock_acquire+0x13c/0x160 [ 18.668846][ T158] console_flush_one_record+0x46f/0x710 [ 18.668849][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 18.668851][ T158] ? __lock_acquire+0x518/0xc20 [ 18.668856][ T158] console_unlock+0xee/0x1f0 [ 18.668858][ T158] ? console_flush_one_record+0x710/0x710 [ 18.668860][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.668862][ T158] ? lock_acquire+0x60/0x160 [ 18.668865][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 18.668867][ T158] ? vprintk_emit+0x320/0x3e0 [ 18.668870][ T158] vprintk_emit+0x37c/0x3e0 [ 18.668873][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 18.668876][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 18.668882][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 18.668885][ T158] ? vprintk_emit.cold+0x107/0x107 [ 18.668889][ T158] ? __kmalloc_noprof+0x302/0x760 [ 18.668891][ T158] ? idr_get_free+0x830/0x830 [ 18.668895][ T158] ? devkmsg_write+0xd1/0x2c0 [ 18.668898][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 18.668900][ T158] devkmsg_write.cold+0x5a/0x8b [ 18.668903][ T158] ? vprintk_default+0x20/0x20 [ 18.668905][ T158] ? __lock_acquire+0x518/0xc20 [ 18.668907][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 18.668911][ T158] ? vprintk_default+0x20/0x20 [ 18.668913][ T158] new_sync_write+0x33e/0x760 [ 18.668918][ T158] ? new_sync_read+0x750/0x750 [ 18.668919][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 18.668927][ T158] vfs_write+0x6a2/0xbd0 [ 18.668931][ T158] ksys_write+0x116/0x250 [ 18.668934][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 18.668935][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 18.668938][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.668941][ T158] do_syscall_64+0xff/0x530 [ 18.668944][ T158] ? exc_page_fault+0xee/0x100 [ 18.668947][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 18.668949][ T158] RIP: 0033:0x7f0c9e1be54e [ 18.668953][ 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 [ 18.668955][ T158] RSP: 002b:00007ffdc8d39d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 18.668958][ T158] RAX: ffffffffffffffda RBX: 00007f0c9e33f580 RCX: 00007f0c9e1be54e [ 18.668959][ T158] RDX: 0000000000000023 RSI: 0000564eb5effab0 RDI: 0000000000000001 [ 18.668960][ T158] RBP: 00007ffdc8d39d40 R08: 0000000000000000 R09: 0000000000000000 [ 18.668961][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 18.668962][ T158] R13: 0000000000000023 R14: 0000564eb5effab0 R15: 0000000000000000 [ 18.668969][ T158] [ 22.255891][ T158] netconsole selftest: netcons_SNpDi [ 22.255910][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 22.255913][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 22.255915][ T158] preempt_count: 1, expected: 0 [ 22.255916][ T158] RCU nest depth: 0, expected: 0 [ 22.255917][ T158] locks held by bash/158: 4, last CPU#3: [ 22.255919][ T158] #0: ffffffff9ed99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 22.255932][ T158] #1: ffffffff9ed99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 22.255937][ T158] #2: ffffffff9ec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 22.255941][ T158] #3: ffffffff9ec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 22.255946][ T158] irq event stamp: 470286 [ 22.255947][ T158] hardirqs last enabled at (470285): [] __down_trylock_console_sem+0x86/0xa0 [ 22.255950][ T158] hardirqs last disabled at (470286): [] console_emit_next_record+0x3f8/0x4f0 [ 22.255952][ T158] softirqs last enabled at (470076): [] restore_fpregs_from_user+0x1cf/0x490 [ 22.255955][ T158] softirqs last disabled at (470074): [] restore_fpregs_from_user+0xc3/0x490 [ 22.255958][ T158] Preemption disabled at: [ 22.255958][ T158] [] vprintk_emit+0x31b/0x3e0 [ 22.255964][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 22.255967][ T158] Tainted: [W]=WARN [ 22.255968][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.255971][ T158] Call Trace: [ 22.255972][ T158] [ 22.255974][ T158] dump_stack_lvl+0x6f/0xa0 [ 22.255979][ T158] ? vprintk_emit+0x31b/0x3e0 [ 22.255981][ T158] __might_resched.cold+0x1fe/0x2c1 [ 22.255986][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 22.255989][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 22.255994][ T158] __kmalloc_noprof+0x443/0x760 [ 22.255997][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 22.256002][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 22.256005][ T158] alloc_buf.isra.0+0x4b/0x260 [ 22.256008][ T158] put_chars+0x1e1/0x2f0 [ 22.256011][ T158] ? __send_to_port+0x420/0x420 [ 22.256013][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 22.256016][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.256019][ T158] ? validate_chain+0x38b/0xc20 [ 22.256024][ T158] hvc_console_print+0x292/0x780 [ 22.256027][ T158] ? __lock_acquire+0x518/0xc20 [ 22.256028][ T158] ? __lock_acquire+0x518/0xc20 [ 22.256032][ T158] ? hvc_write+0x3a0/0x3a0 [ 22.256036][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.256038][ T158] ? lock_acquire+0x13c/0x160 [ 22.256042][ T158] console_emit_next_record+0x252/0x4f0 [ 22.256046][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 22.256050][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.256052][ T158] ? lock_acquire+0x13c/0x160 [ 22.256056][ T158] console_flush_one_record+0x46f/0x710 [ 22.256060][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 22.256062][ T158] ? __lock_acquire+0x518/0xc20 [ 22.256067][ T158] console_unlock+0xee/0x1f0 [ 22.256070][ T158] ? console_flush_one_record+0x710/0x710 [ 22.256071][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.256074][ T158] ? lock_acquire+0x60/0x160 [ 22.256082][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 22.256084][ T158] ? vprintk_emit+0x320/0x3e0 [ 22.256087][ T158] vprintk_emit+0x37c/0x3e0 [ 22.256091][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 22.256094][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.256100][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 22.256104][ T158] ? vprintk_emit.cold+0x107/0x107 [ 22.256108][ T158] ? __kmalloc_noprof+0x302/0x760 [ 22.256110][ T158] ? idr_get_free+0x830/0x830 [ 22.256114][ T158] ? devkmsg_write+0xd1/0x2c0 [ 22.256117][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.256120][ T158] devkmsg_write.cold+0x5a/0x8b [ 22.256123][ T158] ? vprintk_default+0x20/0x20 [ 22.256124][ T158] ? handle_pte_fault+0x448/0x710 [ 22.256129][ T158] ? do_numa_page.isra.0+0xa70/0xa70 [ 22.256132][ T158] ? vprintk_default+0x20/0x20 [ 22.256134][ T158] new_sync_write+0x33e/0x760 [ 22.256139][ T158] ? new_sync_read+0x750/0x750 [ 22.256141][ T158] ? lock_vma_under_rcu+0x159/0x410 [ 22.256149][ T158] vfs_write+0x6a2/0xbd0 [ 22.256153][ T158] ksys_write+0x116/0x250 [ 22.256156][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 22.256158][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.256161][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.256164][ T158] do_syscall_64+0xff/0x530 [ 22.256166][ T158] ? exc_page_fault+0xee/0x100 [ 22.256170][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 22.256172][ T158] RIP: 0033:0x7f0c9e1be54e [ 22.256176][ 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.256178][ T158] RSP: 002b:00007ffdc8d39d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 22.256181][ T158] RAX: ffffffffffffffda RBX: 00007f0c9e33f580 RCX: 00007f0c9e1be54e [ 22.256182][ T158] RDX: 0000000000000023 RSI: 0000564eb5effab0 RDI: 0000000000000001 [ 22.256184][ T158] RBP: 00007ffdc8d39d40 R08: 0000000000000000 R09: 0000000000000000 [ 22.256185][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 22.256186][ T158] R13: 0000000000000023 R14: 0000564eb5effab0 R15: 0000000000000000 [ 22.256192][ T158]