[ 9.183949][ T170] netconsole: network logging started [ 9.183964][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.183966][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 9.183968][ T170] preempt_count: 1, expected: 0 [ 9.183969][ T170] RCU nest depth: 0, expected: 0 [ 9.183969][ T170] locks held by modprobe/170: 4, last CPU#3: [ 9.183972][ T170] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.183983][ T170] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.183988][ T170] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.183991][ T170] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.183995][ T170] irq event stamp: 25392 [ 9.183996][ T170] hardirqs last enabled at (25391): [] __down_trylock_console_sem+0x86/0xa0 [ 9.183998][ T170] hardirqs last disabled at (25392): [] console_emit_next_record+0x3f8/0x4f0 [ 9.184000][ T170] softirqs last enabled at (25260): [] handle_softirqs+0x67c/0x900 [ 9.184003][ T170] softirqs last disabled at (25151): [] __irq_exit_rcu+0x145/0x1c0 [ 9.184006][ T170] Preemption disabled at: [ 9.184007][ T170] [] vprintk_emit+0x31b/0x3e0 [ 9.184012][ T170] CPU: 3 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.184015][ T170] Tainted: [W]=WARN [ 9.184016][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.184017][ T170] Call Trace: [ 9.184019][ T170] [ 9.184021][ T170] dump_stack_lvl+0x6f/0xa0 [ 9.184026][ T170] ? vprintk_emit+0x31b/0x3e0 [ 9.184028][ T170] __might_resched.cold+0x1fe/0x2c1 [ 9.184032][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.184036][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 9.184040][ T170] __kmalloc_noprof+0x443/0x760 [ 9.184042][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 9.184048][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.184050][ T170] alloc_buf.isra.0+0x4b/0x260 [ 9.184053][ T170] put_chars+0x1e1/0x2f0 [ 9.184056][ T170] ? __send_to_port+0x420/0x420 [ 9.184058][ T170] ? validate_chain+0x38b/0xc20 [ 9.184063][ T170] hvc_console_print+0x292/0x780 [ 9.184069][ T170] ? hvc_write+0x3a0/0x3a0 [ 9.184071][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.184075][ T170] ? lock_acquire+0x13c/0x160 [ 9.184078][ T170] console_emit_next_record+0x252/0x4f0 [ 9.184082][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 9.184086][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.184088][ T170] ? lock_acquire+0x13c/0x160 [ 9.184091][ T170] console_flush_one_record+0x46f/0x710 [ 9.184095][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 9.184096][ T170] ? __lock_acquire+0x518/0xc20 [ 9.184101][ T170] console_unlock+0xee/0x1f0 [ 9.184103][ T170] ? console_flush_one_record+0x710/0x710 [ 9.184105][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.184107][ T170] ? lock_acquire+0x60/0x160 [ 9.184110][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.184111][ T170] ? vprintk_emit+0x320/0x3e0 [ 9.184114][ T170] vprintk_emit+0x37c/0x3e0 [ 9.184118][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 9.184119][ T170] ? find_held_lock+0x2b/0x80 [ 9.184123][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 9.184124][ T170] ? fast_dput+0x316/0x540 [ 9.184129][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.184133][ T170] _printk+0xc7/0x100 [ 9.184136][ T170] ? snapshot_read.cold+0x21/0x21 [ 9.184139][ T170] ? __up_write+0x2e5/0x5f0 [ 9.184142][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.184146][ T170] ? configfs_register_subsystem+0x340/0x570 [ 9.184150][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.184153][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.184160][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.184162][ T170] do_one_initcall+0x124/0x4f0 [ 9.184166][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.184171][ T170] ? do_init_module+0xae/0x8a0 [ 9.184174][ T170] ? kasan_unpoison+0x44/0x70 [ 9.184179][ T170] do_init_module+0x2ad/0x8a0 [ 9.184182][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 9.184186][ T170] ? free_module+0x470/0x470 [ 9.184189][ T170] ? kfree+0x123/0x590 [ 9.184192][ T170] load_module+0x1424/0x1bb0 [ 9.184203][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.184206][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.184209][ T170] ? ovl_real_file+0x172/0x1e0 [ 9.184212][ T170] ? find_held_lock+0x2b/0x80 [ 9.184214][ T170] ? backing_file_read_iter+0x541/0x790 [ 9.184218][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.184222][ T170] init_module_from_file+0x11f/0x1a0 [ 9.184225][ T170] ? __do_sys_init_module+0x220/0x220 [ 9.184232][ T170] ? __rwlock_init+0x150/0x150 [ 9.184235][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.184238][ T170] idempotent_init_module+0x37b/0x7c0 [ 9.184242][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 9.184248][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.184250][ T170] ? cap_capable+0x1d7/0x3d0 [ 9.184255][ T170] __x64_sys_finit_module+0xdf/0x190 [ 9.184257][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.184261][ T170] do_syscall_64+0xff/0x530 [ 9.184263][ T170] ? exc_page_fault+0xee/0x100 [ 9.184266][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.184268][ T170] RIP: 0033:0x7f042a8cb37d [ 9.184271][ 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 [ 9.184273][ T170] RSP: 002b:00007fff3f87a8d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.184275][ T170] RAX: ffffffffffffffda RBX: 0000562b751cf700 RCX: 00007f042a8cb37d [ 9.184277][ T170] RDX: 0000000000000000 RSI: 0000562b69477ffd RDI: 0000000000000005 [ 9.184278][ T170] RBP: 00007fff3f87a970 R08: 0000000000000000 R09: 0000000000000000 [ 9.184278][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 0000562b69477ffd [ 9.184279][ T170] R13: 0000562b751cf810 R14: 0000000000040000 R15: 0000000000000000 [ 9.184286][ T170] [ 12.240964][ T158] netconsole selftest: netcons_Ar1Cr [ 12.240987][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.240990][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.240991][ T158] preempt_count: 1, expected: 0 [ 12.240992][ T158] RCU nest depth: 0, expected: 0 [ 12.240993][ T158] locks held by bash/158: 4, last CPU#1: [ 12.240995][ T158] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.241007][ T158] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.241012][ T158] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.241016][ T158] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.241020][ T158] irq event stamp: 131112 [ 12.241021][ T158] hardirqs last enabled at (131111): [] __down_trylock_console_sem+0x86/0xa0 [ 12.241023][ T158] hardirqs last disabled at (131112): [] console_emit_next_record+0x3f8/0x4f0 [ 12.241025][ T158] softirqs last enabled at (130912): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.241029][ T158] softirqs last disabled at (130910): [] restore_fpregs_from_user+0xc3/0x490 [ 12.241031][ T158] Preemption disabled at: [ 12.241032][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.241037][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.241041][ T158] Tainted: [W]=WARN [ 12.241042][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.241044][ T158] Call Trace: [ 12.241045][ T158] [ 12.241047][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.241052][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.241054][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.241058][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.241061][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.241066][ T158] __kmalloc_noprof+0x443/0x760 [ 12.241068][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.241074][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.241076][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.241079][ T158] put_chars+0x1e1/0x2f0 [ 12.241082][ T158] ? __send_to_port+0x420/0x420 [ 12.241083][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.241086][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.241089][ T158] ? validate_chain+0x38b/0xc20 [ 12.241093][ T158] hvc_console_print+0x292/0x780 [ 12.241096][ T158] ? __lock_acquire+0x518/0xc20 [ 12.241097][ T158] ? __lock_acquire+0x518/0xc20 [ 12.241101][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.241104][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.241107][ T158] ? lock_acquire+0x13c/0x160 [ 12.241111][ T158] console_emit_next_record+0x252/0x4f0 [ 12.241114][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.241118][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.241121][ T158] ? lock_acquire+0x13c/0x160 [ 12.241124][ T158] console_flush_one_record+0x46f/0x710 [ 12.241128][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.241129][ T158] ? __lock_acquire+0x518/0xc20 [ 12.241134][ T158] console_unlock+0xee/0x1f0 [ 12.241137][ T158] ? console_flush_one_record+0x710/0x710 [ 12.241138][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.241140][ T158] ? lock_acquire+0x60/0x160 [ 12.241143][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.241145][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.241148][ T158] vprintk_emit+0x37c/0x3e0 [ 12.241151][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.241154][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.241160][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.241164][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.241168][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.241169][ T158] ? idr_get_free+0x830/0x830 [ 12.241173][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.241176][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.241179][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.241181][ T158] ? vprintk_default+0x20/0x20 [ 12.241183][ T158] ? __lock_acquire+0x518/0xc20 [ 12.241185][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 12.241189][ T158] ? vprintk_default+0x20/0x20 [ 12.241191][ T158] new_sync_write+0x33e/0x760 [ 12.241196][ T158] ? new_sync_read+0x750/0x750 [ 12.241197][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.241211][ T158] vfs_write+0x6a2/0xbd0 [ 12.241215][ T158] ksys_write+0x116/0x250 [ 12.241218][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.241219][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.241222][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.241225][ T158] do_syscall_64+0xff/0x530 [ 12.241227][ T158] ? exc_page_fault+0xee/0x100 [ 12.241230][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.241233][ T158] RIP: 0033:0x7fb96fc5e54e [ 12.241237][ 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 [ 12.241239][ T158] RSP: 002b:00007ffde95a5040 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.241241][ T158] RAX: ffffffffffffffda RBX: 00007fb96fddf580 RCX: 00007fb96fc5e54e [ 12.241243][ T158] RDX: 0000000000000023 RSI: 000055e6ad921ab0 RDI: 0000000000000001 [ 12.241244][ T158] RBP: 00007ffde95a5050 R08: 0000000000000000 R09: 0000000000000000 [ 12.241245][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.241246][ T158] R13: 0000000000000023 R14: 000055e6ad921ab0 R15: 0000000000000000 [ 12.241252][ T158]