[ 9.873145][ T180] netconsole: network logging started [ 9.873161][ T180] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.873163][ T180] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 180, name: modprobe [ 9.873165][ T180] preempt_count: 1, expected: 0 [ 9.873166][ T180] RCU nest depth: 0, expected: 0 [ 9.873167][ T180] locks held by modprobe/180: 4, last CPU#0: [ 9.873169][ T180] #0: ffffffff9e399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.873182][ T180] #1: ffffffff9e399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.873186][ T180] #2: ffffffff9e289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.873189][ T180] #3: ffffffff9e289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.873193][ T180] irq event stamp: 26492 [ 9.873193][ T180] hardirqs last enabled at (26491): [] __down_trylock_console_sem+0x86/0xa0 [ 9.873197][ T180] hardirqs last disabled at (26492): [] console_emit_next_record+0x3f8/0x4f0 [ 9.873198][ T180] softirqs last enabled at (24552): [] handle_softirqs+0x67c/0x900 [ 9.873202][ T180] softirqs last disabled at (24547): [] __irq_exit_rcu+0x145/0x1c0 [ 9.873204][ T180] Preemption disabled at: [ 9.873205][ T180] [] vprintk_emit+0x31b/0x3e0 [ 9.873210][ T180] CPU: 0 UID: 0 PID: 180 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.873214][ T180] Tainted: [W]=WARN [ 9.873215][ T180] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.873216][ T180] Call Trace: [ 9.873218][ T180] [ 9.873219][ T180] dump_stack_lvl+0x6f/0xa0 [ 9.873224][ T180] ? vprintk_emit+0x31b/0x3e0 [ 9.873226][ T180] __might_resched.cold+0x1fe/0x2c1 [ 9.873230][ T180] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.873234][ T180] ? __kmalloc_noprof+0xdb/0x760 [ 9.873239][ T180] __kmalloc_noprof+0x443/0x760 [ 9.873242][ T180] ? alloc_buf.isra.0+0x4b/0x260 [ 9.873248][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 9.873251][ T180] alloc_buf.isra.0+0x4b/0x260 [ 9.873254][ T180] put_chars+0x1e1/0x2f0 [ 9.873257][ T180] ? __send_to_port+0x420/0x420 [ 9.873261][ T180] ? validate_chain+0x38b/0xc20 [ 9.873267][ T180] hvc_console_print+0x292/0x780 [ 9.873274][ T180] ? hvc_write+0x3a0/0x3a0 [ 9.873277][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.873281][ T180] ? lock_acquire+0x13c/0x160 [ 9.873285][ T180] console_emit_next_record+0x252/0x4f0 [ 9.873289][ T180] ? devkmsg_read+0x4e0/0x4e0 [ 9.873295][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.873297][ T180] ? lock_acquire+0x13c/0x160 [ 9.873301][ T180] console_flush_one_record+0x46f/0x710 [ 9.873305][ T180] ? console_emit_next_record+0x4f0/0x4f0 [ 9.873307][ T180] ? __lock_acquire+0x518/0xc20 [ 9.873312][ T180] console_unlock+0xee/0x1f0 [ 9.873315][ T180] ? console_flush_one_record+0x710/0x710 [ 9.873316][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.873318][ T180] ? lock_acquire+0x60/0x160 [ 9.873322][ T180] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.873324][ T180] ? vprintk_emit+0x320/0x3e0 [ 9.873327][ T180] vprintk_emit+0x37c/0x3e0 [ 9.873330][ T180] ? wake_up_klogd_work_func+0x90/0x90 [ 9.873332][ T180] ? find_held_lock+0x2b/0x80 [ 9.873335][ T180] ? __lock_release.isra.0+0x69/0x1a0 [ 9.873337][ T180] ? fast_dput+0x316/0x540 [ 9.873341][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.873345][ T180] _printk+0xc7/0x100 [ 9.873349][ T180] ? snapshot_read.cold+0x21/0x21 [ 9.873352][ T180] ? __up_write+0x2e5/0x5f0 [ 9.873355][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.873359][ T180] ? configfs_register_subsystem+0x340/0x570 [ 9.873364][ T180] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.873367][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.873374][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.873376][ T180] do_one_initcall+0x124/0x4f0 [ 9.873379][ T180] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.873384][ T180] ? do_init_module+0xae/0x8a0 [ 9.873387][ T180] ? kasan_unpoison+0x44/0x70 [ 9.873392][ T180] do_init_module+0x2ad/0x8a0 [ 9.873395][ T180] ? lockdep_hardirqs_on+0x91/0x130 [ 9.873399][ T180] ? free_module+0x470/0x470 [ 9.873402][ T180] ? kfree+0x123/0x590 [ 9.873407][ T180] load_module+0x1424/0x1bb0 [ 9.873413][ T180] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.873417][ T180] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.873420][ T180] ? ovl_real_file+0x172/0x1e0 [ 9.873423][ T180] ? backing_file_read_iter+0x541/0x790 [ 9.873427][ T180] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.873431][ T180] init_module_from_file+0x11f/0x1a0 [ 9.873433][ T180] ? __do_sys_init_module+0x220/0x220 [ 9.873441][ T180] ? __rwlock_init+0x150/0x150 [ 9.873444][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 9.873447][ T180] idempotent_init_module+0x37b/0x7c0 [ 9.873450][ T180] ? init_module_from_file+0x1a0/0x1a0 [ 9.873456][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.873458][ T180] ? cap_capable+0x1d7/0x3d0 [ 9.873463][ T180] __x64_sys_finit_module+0xdf/0x190 [ 9.873465][ T180] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.873469][ T180] do_syscall_64+0xff/0x530 [ 9.873470][ T180] ? exc_page_fault+0xee/0x100 [ 9.873473][ T180] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.873475][ T180] RIP: 0033:0x7fc3b6bbd37d [ 9.873478][ 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 [ 9.873480][ T180] RSP: 002b:00007ffe638487c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.873483][ T180] RAX: ffffffffffffffda RBX: 0000555c206f5700 RCX: 00007fc3b6bbd37d [ 9.873484][ T180] RDX: 0000000000000000 RSI: 0000555bf62d8ffd RDI: 0000000000000005 [ 9.873485][ T180] RBP: 00007ffe63848860 R08: 0000000000000000 R09: 0000000000000000 [ 9.873486][ T180] R10: 0000000000000000 R11: 0000000000000246 R12: 0000555bf62d8ffd [ 9.873486][ T180] R13: 0000555c206f5810 R14: 0000000000040000 R15: 0000000000000000 [ 9.873493][ T180] [ 14.505280][ T168] netconsole selftest: netcons_UZolB [ 14.505315][ T168] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.505318][ T168] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 168, name: bash [ 14.505320][ T168] preempt_count: 1, expected: 0 [ 14.505321][ T168] RCU nest depth: 0, expected: 0 [ 14.505322][ T168] locks held by bash/168: 4, last CPU#0: [ 14.505324][ T168] #0: ffffffff9e399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.505337][ T168] #1: ffffffff9e399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.505342][ T168] #2: ffffffff9e289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.505346][ T168] #3: ffffffff9e289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.505350][ T168] irq event stamp: 140822 [ 14.505352][ T168] hardirqs last enabled at (140821): [] __down_trylock_console_sem+0x86/0xa0 [ 14.505356][ T168] hardirqs last disabled at (140822): [] console_emit_next_record+0x3f8/0x4f0 [ 14.505357][ T168] softirqs last enabled at (140818): [] handle_softirqs+0x67c/0x900 [ 14.505361][ T168] softirqs last disabled at (140811): [] __irq_exit_rcu+0x145/0x1c0 [ 14.505363][ T168] Preemption disabled at: [ 14.505364][ T168] [] vprintk_emit+0x31b/0x3e0 [ 14.505370][ T168] CPU: 0 UID: 0 PID: 168 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.505373][ T168] Tainted: [W]=WARN [ 14.505375][ T168] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.505376][ T168] Call Trace: [ 14.505379][ T168] [ 14.505380][ T168] dump_stack_lvl+0x6f/0xa0 [ 14.505385][ T168] ? vprintk_emit+0x31b/0x3e0 [ 14.505387][ T168] __might_resched.cold+0x1fe/0x2c1 [ 14.505392][ T168] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.505395][ T168] ? __kmalloc_noprof+0xdb/0x760 [ 14.505401][ T168] __kmalloc_noprof+0x443/0x760 [ 14.505404][ T168] ? alloc_buf.isra.0+0x4b/0x260 [ 14.505410][ T168] ? do_raw_spin_unlock+0x59/0x250 [ 14.505412][ T168] alloc_buf.isra.0+0x4b/0x260 [ 14.505416][ T168] put_chars+0x1e1/0x2f0 [ 14.505420][ T168] ? __send_to_port+0x420/0x420 [ 14.505422][ T168] ? printk_get_next_message+0x2fe/0x7d0 [ 14.505425][ T168] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.505429][ T168] ? validate_chain+0x38b/0xc20 [ 14.505434][ T168] hvc_console_print+0x292/0x780 [ 14.505438][ T168] ? __lock_acquire+0x518/0xc20 [ 14.505440][ T168] ? __lock_acquire+0x518/0xc20 [ 14.505444][ T168] ? hvc_write+0x3a0/0x3a0 [ 14.505448][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.505451][ T168] ? lock_acquire+0x13c/0x160 [ 14.505455][ T168] console_emit_next_record+0x252/0x4f0 [ 14.505459][ T168] ? devkmsg_read+0x4e0/0x4e0 [ 14.505463][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.505465][ T168] ? lock_acquire+0x13c/0x160 [ 14.505469][ T168] console_flush_one_record+0x46f/0x710 [ 14.505473][ T168] ? console_emit_next_record+0x4f0/0x4f0 [ 14.505474][ T168] ? __lock_acquire+0x518/0xc20 [ 14.505480][ T168] console_unlock+0xee/0x1f0 [ 14.505482][ T168] ? console_flush_one_record+0x710/0x710 [ 14.505484][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.505486][ T168] ? lock_acquire+0x60/0x160 [ 14.505490][ T168] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.505492][ T168] ? vprintk_emit+0x320/0x3e0 [ 14.505495][ T168] vprintk_emit+0x37c/0x3e0 [ 14.505498][ T168] ? wake_up_klogd_work_func+0x90/0x90 [ 14.505501][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 14.505507][ T168] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.505511][ T168] ? vprintk_emit.cold+0x107/0x107 [ 14.505515][ T168] ? __kmalloc_noprof+0x302/0x760 [ 14.505517][ T168] ? idr_get_free+0x830/0x830 [ 14.505521][ T168] ? devkmsg_write+0xd1/0x2c0 [ 14.505524][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 14.505526][ T168] devkmsg_write.cold+0x5a/0x8b [ 14.505529][ T168] ? vprintk_default+0x20/0x20 [ 14.505531][ T168] ? handle_pte_fault+0x448/0x710 [ 14.505535][ T168] ? do_numa_page.isra.0+0xa70/0xa70 [ 14.505537][ T168] ? vprintk_default+0x20/0x20 [ 14.505540][ T168] new_sync_write+0x33e/0x760 [ 14.505544][ T168] ? new_sync_read+0x750/0x750 [ 14.505546][ T168] ? lock_vma_under_rcu+0x159/0x410 [ 14.505555][ T168] vfs_write+0x6a2/0xbd0 [ 14.505560][ T168] ksys_write+0x116/0x250 [ 14.505562][ T168] ? __ia32_sys_read+0xc0/0xc0 [ 14.505564][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.505566][ T168] ? rcu_is_watching+0x16/0xd0 [ 14.505570][ T168] do_syscall_64+0xff/0x530 [ 14.505572][ T168] ? exc_page_fault+0xee/0x100 [ 14.505575][ T168] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.505577][ T168] RIP: 0033:0x7f6cab7a554e [ 14.505581][ 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.505583][ T168] RSP: 002b:00007ffd0ae1d330 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.505586][ T168] RAX: ffffffffffffffda RBX: 00007f6cab926580 RCX: 00007f6cab7a554e [ 14.505588][ T168] RDX: 0000000000000023 RSI: 000055f2edead120 RDI: 0000000000000001 [ 14.505589][ T168] RBP: 00007ffd0ae1d340 R08: 0000000000000000 R09: 0000000000000000 [ 14.505590][ T168] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.505591][ T168] R13: 0000000000000023 R14: 000055f2edead120 R15: 0000000000000000 [ 14.505597][ T168] [ 15.136650][ T296] netconsole: netconsole: nsim996 is a slave device, aborting