[ 10.975380][ T180] netconsole: network logging started [ 10.975397][ T180] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.975400][ T180] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 180, name: modprobe [ 10.975401][ T180] preempt_count: 1, expected: 0 [ 10.975402][ T180] RCU nest depth: 0, expected: 0 [ 10.975403][ T180] locks held by modprobe/180: 4, last CPU#1: [ 10.975406][ T180] #0: ffffffff87d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.975418][ T180] #1: ffffffff87d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.975422][ T180] #2: ffffffff87c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.975425][ T180] #3: ffffffff87c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.975429][ T180] irq event stamp: 43894 [ 10.975430][ T180] hardirqs last enabled at (43893): [] __down_trylock_console_sem+0x86/0xa0 [ 10.975433][ T180] hardirqs last disabled at (43894): [] console_emit_next_record+0x3f8/0x4f0 [ 10.975435][ T180] softirqs last enabled at (42190): [] handle_softirqs+0x67c/0x900 [ 10.975438][ T180] softirqs last disabled at (41439): [] __irq_exit_rcu+0x145/0x1c0 [ 10.975441][ T180] Preemption disabled at: [ 10.975441][ T180] [] vprintk_emit+0x31b/0x3e0 [ 10.975447][ T180] CPU: 1 UID: 0 PID: 180 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.975451][ T180] Tainted: [W]=WARN [ 10.975452][ T180] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.975454][ T180] Call Trace: [ 10.975455][ T180] [ 10.975457][ T180] dump_stack_lvl+0x6f/0xa0 [ 10.975462][ T180] ? vprintk_emit+0x31b/0x3e0 [ 10.975464][ T180] __might_resched.cold+0x1fe/0x2c1 [ 10.975469][ T180] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.975472][ T180] ? __kmalloc_noprof+0xdb/0x760 [ 10.975478][ T180] __kmalloc_noprof+0x443/0x760 [ 10.975481][ T180] ? alloc_buf.isra.0+0x4b/0x260 [ 10.975487][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 10.975489][ T180] alloc_buf.isra.0+0x4b/0x260 [ 10.975493][ T180] put_chars+0x1e1/0x2f0 [ 10.975496][ T180] ? __send_to_port+0x420/0x420 [ 10.975500][ T180] ? validate_chain+0x38b/0xc20 [ 10.975505][ T180] hvc_console_print+0x292/0x780 [ 10.975513][ T180] ? hvc_write+0x3a0/0x3a0 [ 10.975515][ T180] ? rcu_is_watching+0x16/0xd0 [ 10.975519][ T180] ? lock_acquire+0x13c/0x160 [ 10.975523][ T180] console_emit_next_record+0x252/0x4f0 [ 10.975526][ T180] ? devkmsg_read+0x4e0/0x4e0 [ 10.975530][ T180] ? rcu_is_watching+0x16/0xd0 [ 10.975532][ T180] ? lock_acquire+0x13c/0x160 [ 10.975537][ T180] console_flush_one_record+0x46f/0x710 [ 10.975544][ T180] ? console_emit_next_record+0x4f0/0x4f0 [ 10.975545][ T180] ? __lock_acquire+0x518/0xc20 [ 10.975551][ T180] console_unlock+0xee/0x1f0 [ 10.975553][ T180] ? console_flush_one_record+0x710/0x710 [ 10.975555][ T180] ? rcu_is_watching+0x16/0xd0 [ 10.975556][ T180] ? lock_acquire+0x60/0x160 [ 10.975560][ T180] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.975562][ T180] ? vprintk_emit+0x320/0x3e0 [ 10.975565][ T180] vprintk_emit+0x37c/0x3e0 [ 10.975569][ T180] ? wake_up_klogd_work_func+0x90/0x90 [ 10.975571][ T180] ? find_held_lock+0x2b/0x80 [ 10.975574][ T180] ? __lock_release.isra.0+0x69/0x1a0 [ 10.975576][ T180] ? fast_dput+0x316/0x540 [ 10.975580][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.975585][ T180] _printk+0xc7/0x100 [ 10.975589][ T180] ? snapshot_read.cold+0x21/0x21 [ 10.975591][ T180] ? __up_write+0x2e5/0x5f0 [ 10.975595][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.975598][ T180] ? configfs_register_subsystem+0x340/0x570 [ 10.975603][ T180] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.975606][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.975613][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.975616][ T180] do_one_initcall+0x124/0x4f0 [ 10.975619][ T180] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.975624][ T180] ? do_init_module+0xae/0x8a0 [ 10.975626][ T180] ? kasan_unpoison+0x44/0x70 [ 10.975632][ T180] do_init_module+0x2ad/0x8a0 [ 10.975635][ T180] ? lockdep_hardirqs_on+0x91/0x130 [ 10.975639][ T180] ? free_module+0x470/0x470 [ 10.975642][ T180] ? kfree+0x123/0x590 [ 10.975646][ T180] load_module+0x1424/0x1bb0 [ 10.975653][ T180] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.975657][ T180] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.975660][ T180] ? find_held_lock+0x2b/0x80 [ 10.975663][ T180] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.975666][ T180] init_module_from_file+0x11f/0x1a0 [ 10.975669][ T180] ? __do_sys_init_module+0x220/0x220 [ 10.975677][ T180] ? __rwlock_init+0x150/0x150 [ 10.975680][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 10.975686][ T180] idempotent_init_module+0x37b/0x7c0 [ 10.975689][ T180] ? init_module_from_file+0x1a0/0x1a0 [ 10.975695][ T180] ? rcu_is_watching+0x16/0xd0 [ 10.975697][ T180] ? cap_capable+0x1d7/0x3d0 [ 10.975703][ T180] __x64_sys_finit_module+0xdf/0x190 [ 10.975705][ T180] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.975709][ T180] do_syscall_64+0xff/0x530 [ 10.975711][ T180] ? exc_page_fault+0xee/0x100 [ 10.975713][ T180] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.975715][ T180] RIP: 0033:0x7f38ddce837d [ 10.975719][ T180] 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.975721][ T180] RSP: 002b:00007ffe39f7d278 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.975724][ T180] RAX: ffffffffffffffda RBX: 000055c224a8c700 RCX: 00007f38ddce837d [ 10.975725][ T180] RDX: 0000000000000000 RSI: 000055c218047ffd RDI: 0000000000000005 [ 10.975726][ T180] RBP: 00007ffe39f7d310 R08: 0000000000000000 R09: 0000000000000000 [ 10.975727][ T180] R10: 0000000000000000 R11: 0000000000000246 R12: 000055c218047ffd [ 10.975728][ T180] R13: 000055c224a8c810 R14: 0000000000040000 R15: 0000000000000000 [ 10.975735][ T180] [ 14.920842][ T168] netconsole selftest: netcons_tYm9h [ 14.920871][ T168] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.920875][ T168] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 168, name: bash [ 14.920878][ T168] preempt_count: 1, expected: 0 [ 14.920879][ T168] RCU nest depth: 0, expected: 0 [ 14.920880][ T168] locks held by bash/168: 4, last CPU#0: [ 14.920883][ T168] #0: ffffffff87d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.920899][ T168] #1: ffffffff87d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.920905][ T168] #2: ffffffff87c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.920912][ T168] #3: ffffffff87c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.920918][ T168] irq event stamp: 148222 [ 14.920921][ T168] hardirqs last enabled at (148221): [] __down_trylock_console_sem+0x86/0xa0 [ 14.920926][ T168] hardirqs last disabled at (148222): [] console_emit_next_record+0x3f8/0x4f0 [ 14.920928][ T168] softirqs last enabled at (148032): [] handle_softirqs+0x67c/0x900 [ 14.920933][ T168] softirqs last disabled at (148025): [] __irq_exit_rcu+0x145/0x1c0 [ 14.920937][ T168] Preemption disabled at: [ 14.920938][ T168] [] vprintk_emit+0x31b/0x3e0 [ 14.920945][ T168] CPU: 0 UID: 0 PID: 168 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.920950][ T168] Tainted: [W]=WARN [ 14.920952][ T168] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.920954][ T168] Call Trace: [ 14.920956][ T168] [ 14.920959][ T168] dump_stack_lvl+0x6f/0xa0 [ 14.920966][ T168] ? vprintk_emit+0x31b/0x3e0 [ 14.920968][ T168] __might_resched.cold+0x1fe/0x2c1 [ 14.920975][ T168] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.920980][ T168] ? __kmalloc_noprof+0xdb/0x760 [ 14.920988][ T168] __kmalloc_noprof+0x443/0x760 [ 14.920992][ T168] ? alloc_buf.isra.0+0x4b/0x260 [ 14.921001][ T168] ? do_raw_spin_unlock+0x59/0x250 [ 14.921004][ T168] alloc_buf.isra.0+0x4b/0x260 [ 14.921010][ T168] put_chars+0x1e1/0x2f0 [ 14.921015][ T168] ? __send_to_port+0x420/0x420 [ 14.921018][ T168] ? printk_get_next_message+0x2fe/0x7d0 [ 14.921023][ T168] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.921028][ T168] ? validate_chain+0x38b/0xc20 [ 14.921035][ T168] hvc_console_print+0x292/0x780 [ 14.921040][ T168] ? __lock_acquire+0x518/0xc20 [ 14.921043][ T168] ? __lock_acquire+0x518/0xc20 [ 14.921051][ T168] ? hvc_write+0x3a0/0x3a0 [ 14.921057][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.921061][ T168] ? lock_acquire+0x13c/0x160 [ 14.921067][ T168] console_emit_next_record+0x252/0x4f0 [ 14.921073][ T168] ? devkmsg_read+0x4e0/0x4e0 [ 14.921080][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.921083][ T168] ? lock_acquire+0x13c/0x160 [ 14.921090][ T168] console_flush_one_record+0x46f/0x710 [ 14.921096][ T168] ? console_emit_next_record+0x4f0/0x4f0 [ 14.921098][ T168] ? __lock_acquire+0x518/0xc20 [ 14.921108][ T168] console_unlock+0xee/0x1f0 [ 14.921112][ T168] ? console_flush_one_record+0x710/0x710 [ 14.921114][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.921118][ T168] ? lock_acquire+0x60/0x160 [ 14.921124][ T168] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.921127][ T168] ? vprintk_emit+0x320/0x3e0 [ 14.921132][ T168] vprintk_emit+0x37c/0x3e0 [ 14.921137][ T168] ? wake_up_klogd_work_func+0x90/0x90 [ 14.921142][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 14.921150][ T168] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.921156][ T168] ? vprintk_emit.cold+0x107/0x107 [ 14.921162][ T168] ? __kmalloc_noprof+0x302/0x760 [ 14.921165][ T168] ? idr_get_free+0x830/0x830 [ 14.921170][ T168] ? devkmsg_write+0xd1/0x2c0 [ 14.921175][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 14.921179][ T168] devkmsg_write.cold+0x5a/0x8b [ 14.921183][ T168] ? vprintk_default+0x20/0x20 [ 14.921186][ T168] ? handle_pte_fault+0x448/0x710 [ 14.921193][ T168] ? do_numa_page.isra.0+0xa70/0xa70 [ 14.921196][ T168] ? vprintk_default+0x20/0x20 [ 14.921200][ T168] new_sync_write+0x33e/0x760 [ 14.921207][ T168] ? new_sync_read+0x750/0x750 [ 14.921209][ T168] ? lock_vma_under_rcu+0x159/0x410 [ 14.921225][ T168] vfs_write+0x6a2/0xbd0 [ 14.921232][ T168] ksys_write+0x116/0x250 [ 14.921236][ T168] ? __ia32_sys_read+0xc0/0xc0 [ 14.921239][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.921242][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.921248][ T168] do_syscall_64+0xff/0x530 [ 14.921251][ T168] ? exc_page_fault+0xee/0x100 [ 14.921257][ T168] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.921261][ T168] RIP: 0033:0x7f7bbd61254e [ 14.921266][ T168] 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.921268][ T168] RSP: 002b:00007ffe22d06cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.921272][ T168] RAX: ffffffffffffffda RBX: 00007f7bbd793580 RCX: 00007f7bbd61254e [ 14.921274][ T168] RDX: 0000000000000023 RSI: 0000562a299a3120 RDI: 0000000000000001 [ 14.921276][ T168] RBP: 00007ffe22d06d00 R08: 0000000000000000 R09: 0000000000000000 [ 14.921277][ T168] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.921279][ T168] R13: 0000000000000023 R14: 0000562a299a3120 R15: 0000000000000000 [ 14.921291][ T168] [ 15.513244][ T297] netconsole: netconsole: nsim844 is a slave device, aborting