[ 9.605861][ T179] netconsole: network logging started [ 9.605878][ T179] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.605880][ T179] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 179, name: modprobe [ 9.605882][ T179] preempt_count: 1, expected: 0 [ 9.605883][ T179] RCU nest depth: 0, expected: 0 [ 9.605884][ T179] locks held by modprobe/179: 4, last CPU#3: [ 9.605886][ T179] #0: ffffffff9eb99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.605898][ T179] #1: ffffffff9eb99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.605902][ T179] #2: ffffffff9ea89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.605907][ T179] #3: ffffffff9ea89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.605911][ T179] irq event stamp: 30006 [ 9.605912][ T179] hardirqs last enabled at (30005): [] __down_trylock_console_sem+0x86/0xa0 [ 9.605915][ T179] hardirqs last disabled at (30006): [] console_emit_next_record+0x3f8/0x4f0 [ 9.605916][ T179] softirqs last enabled at (25872): [] handle_softirqs+0x67c/0x900 [ 9.605920][ T179] softirqs last disabled at (25021): [] __irq_exit_rcu+0x145/0x1c0 [ 9.605922][ T179] Preemption disabled at: [ 9.605923][ T179] [] vprintk_emit+0x31b/0x3e0 [ 9.605928][ T179] CPU: 3 UID: 0 PID: 179 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.605931][ T179] Tainted: [W]=WARN [ 9.605932][ T179] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.605934][ T179] Call Trace: [ 9.605935][ T179] [ 9.605937][ T179] dump_stack_lvl+0x6f/0xa0 [ 9.605942][ T179] ? vprintk_emit+0x31b/0x3e0 [ 9.605944][ T179] __might_resched.cold+0x1fe/0x2c1 [ 9.605948][ T179] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.605952][ T179] ? __kmalloc_noprof+0xdb/0x760 [ 9.605957][ T179] __kmalloc_noprof+0x443/0x760 [ 9.605959][ T179] ? alloc_buf.isra.0+0x4b/0x260 [ 9.605965][ T179] ? do_raw_spin_unlock+0x59/0x250 [ 9.605967][ T179] alloc_buf.isra.0+0x4b/0x260 [ 9.605971][ T179] put_chars+0x1e1/0x2f0 [ 9.605974][ T179] ? __send_to_port+0x420/0x420 [ 9.605978][ T179] ? validate_chain+0x38b/0xc20 [ 9.605983][ T179] hvc_console_print+0x292/0x780 [ 9.605990][ T179] ? hvc_write+0x3a0/0x3a0 [ 9.605993][ T179] ? rcu_is_watching+0x16/0xd0 [ 9.605996][ T179] ? lock_acquire+0x13c/0x160 [ 9.606000][ T179] console_emit_next_record+0x252/0x4f0 [ 9.606004][ T179] ? devkmsg_read+0x4e0/0x4e0 [ 9.606008][ T179] ? rcu_is_watching+0x16/0xd0 [ 9.606010][ T179] ? lock_acquire+0x13c/0x160 [ 9.606014][ T179] console_flush_one_record+0x46f/0x710 [ 9.606017][ T179] ? console_emit_next_record+0x4f0/0x4f0 [ 9.606019][ T179] ? __lock_acquire+0x518/0xc20 [ 9.606024][ T179] console_unlock+0xee/0x1f0 [ 9.606026][ T179] ? console_flush_one_record+0x710/0x710 [ 9.606028][ T179] ? rcu_is_watching+0x16/0xd0 [ 9.606029][ T179] ? lock_acquire+0x60/0x160 [ 9.606033][ T179] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.606035][ T179] ? vprintk_emit+0x320/0x3e0 [ 9.606038][ T179] vprintk_emit+0x37c/0x3e0 [ 9.606041][ T179] ? wake_up_klogd_work_func+0x90/0x90 [ 9.606043][ T179] ? find_held_lock+0x2b/0x80 [ 9.606047][ T179] ? __lock_release.isra.0+0x69/0x1a0 [ 9.606049][ T179] ? fast_dput+0x316/0x540 [ 9.606054][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.606058][ T179] _printk+0xc7/0x100 [ 9.606062][ T179] ? snapshot_read.cold+0x21/0x21 [ 9.606065][ T179] ? __up_write+0x2e5/0x5f0 [ 9.606068][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.606072][ T179] ? configfs_register_subsystem+0x340/0x570 [ 9.606076][ T179] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.606079][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.606086][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.606088][ T179] do_one_initcall+0x124/0x4f0 [ 9.606092][ T179] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.606096][ T179] ? do_init_module+0xae/0x8a0 [ 9.606099][ T179] ? kasan_unpoison+0x44/0x70 [ 9.606104][ T179] do_init_module+0x2ad/0x8a0 [ 9.606107][ T179] ? lockdep_hardirqs_on+0x91/0x130 [ 9.606111][ T179] ? free_module+0x470/0x470 [ 9.606113][ T179] ? kfree+0x123/0x590 [ 9.606118][ T179] load_module+0x1424/0x1bb0 [ 9.606124][ T179] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.606127][ T179] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.606130][ T179] ? ovl_real_file+0x172/0x1e0 [ 9.606134][ T179] ? backing_file_read_iter+0x541/0x790 [ 9.606138][ T179] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.606141][ T179] init_module_from_file+0x11f/0x1a0 [ 9.606144][ T179] ? __do_sys_init_module+0x220/0x220 [ 9.606151][ T179] ? __rwlock_init+0x150/0x150 [ 9.606154][ T179] ? do_raw_spin_unlock+0x59/0x250 [ 9.606157][ T179] idempotent_init_module+0x37b/0x7c0 [ 9.606160][ T179] ? init_module_from_file+0x1a0/0x1a0 [ 9.606165][ T179] ? rcu_is_watching+0x16/0xd0 [ 9.606167][ T179] ? cap_capable+0x1d7/0x3d0 [ 9.606173][ T179] __x64_sys_finit_module+0xdf/0x190 [ 9.606174][ T179] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.606178][ T179] do_syscall_64+0xff/0x530 [ 9.606180][ T179] ? exc_page_fault+0xee/0x100 [ 9.606182][ T179] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.606185][ T179] RIP: 0033:0x7f30a983f37d [ 9.606188][ T179] 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.606190][ T179] RSP: 002b:00007ffc11307a78 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.606192][ T179] RAX: ffffffffffffffda RBX: 000055c0499bb700 RCX: 00007f30a983f37d [ 9.606194][ T179] RDX: 0000000000000000 RSI: 000055c019591ffd RDI: 0000000000000005 [ 9.606194][ T179] RBP: 00007ffc11307b10 R08: 0000000000000000 R09: 0000000000000000 [ 9.606195][ T179] R10: 0000000000000000 R11: 0000000000000246 R12: 000055c019591ffd [ 9.606196][ T179] R13: 000055c0499bb810 R14: 0000000000040000 R15: 0000000000000000 [ 9.606202][ T179] [ 13.435179][ T167] netconsole selftest: netcons_sJK35 [ 13.435207][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.435211][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: bash [ 13.435212][ T167] preempt_count: 1, expected: 0 [ 13.435213][ T167] RCU nest depth: 0, expected: 0 [ 13.435215][ T167] locks held by bash/167: 4, last CPU#3: [ 13.435217][ T167] #0: ffffffff9eb99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.435230][ T167] #1: ffffffff9eb99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.435234][ T167] #2: ffffffff9ea89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.435238][ T167] #3: ffffffff9ea89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.435242][ T167] irq event stamp: 150376 [ 13.435244][ T167] hardirqs last enabled at (150375): [] __down_trylock_console_sem+0x86/0xa0 [ 13.435248][ T167] hardirqs last disabled at (150376): [] console_emit_next_record+0x3f8/0x4f0 [ 13.435249][ T167] softirqs last enabled at (150174): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.435253][ T167] softirqs last disabled at (150172): [] restore_fpregs_from_user+0xc3/0x490 [ 13.435256][ T167] Preemption disabled at: [ 13.435257][ T167] [] vprintk_emit+0x31b/0x3e0 [ 13.435262][ T167] CPU: 3 UID: 0 PID: 167 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.435266][ T167] Tainted: [W]=WARN [ 13.435267][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.435269][ T167] Call Trace: [ 13.435270][ T167] [ 13.435272][ T167] dump_stack_lvl+0x6f/0xa0 [ 13.435276][ T167] ? vprintk_emit+0x31b/0x3e0 [ 13.435278][ T167] __might_resched.cold+0x1fe/0x2c1 [ 13.435283][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.435286][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 13.435292][ T167] __kmalloc_noprof+0x443/0x760 [ 13.435294][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 13.435301][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 13.435303][ T167] alloc_buf.isra.0+0x4b/0x260 [ 13.435307][ T167] put_chars+0x1e1/0x2f0 [ 13.435310][ T167] ? __send_to_port+0x420/0x420 [ 13.435312][ T167] ? printk_get_next_message+0x2fe/0x7d0 [ 13.435315][ T167] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.435318][ T167] ? validate_chain+0x38b/0xc20 [ 13.435323][ T167] hvc_console_print+0x292/0x780 [ 13.435327][ T167] ? __lock_acquire+0x518/0xc20 [ 13.435329][ T167] ? __lock_acquire+0x518/0xc20 [ 13.435334][ T167] ? hvc_write+0x3a0/0x3a0 [ 13.435337][ T167] ? rcu_is_watching+0x16/0xd0 [ 13.435340][ T167] ? lock_acquire+0x13c/0x160 [ 13.435344][ T167] console_emit_next_record+0x252/0x4f0 [ 13.435347][ T167] ? devkmsg_read+0x4e0/0x4e0 [ 13.435351][ T167] ? rcu_is_watching+0x16/0xd0 [ 13.435353][ T167] ? lock_acquire+0x13c/0x160 [ 13.435357][ T167] console_flush_one_record+0x46f/0x710 [ 13.435361][ T167] ? console_emit_next_record+0x4f0/0x4f0 [ 13.435362][ T167] ? __lock_acquire+0x518/0xc20 [ 13.435368][ T167] console_unlock+0xee/0x1f0 [ 13.435370][ T167] ? console_flush_one_record+0x710/0x710 [ 13.435371][ T167] ? rcu_is_watching+0x16/0xd0 [ 13.435373][ T167] ? lock_acquire+0x60/0x160 [ 13.435377][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.435379][ T167] ? vprintk_emit+0x320/0x3e0 [ 13.435382][ T167] vprintk_emit+0x37c/0x3e0 [ 13.435385][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 13.435388][ T167] ? _copy_from_iter+0x1bb/0x1810 [ 13.435393][ T167] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.435397][ T167] ? vprintk_emit.cold+0x107/0x107 [ 13.435401][ T167] ? __kmalloc_noprof+0x302/0x760 [ 13.435403][ T167] ? idr_get_free+0x830/0x830 [ 13.435407][ T167] ? devkmsg_write+0xd1/0x2c0 [ 13.435409][ T167] ? _copy_from_iter+0x1bb/0x1810 [ 13.435412][ T167] devkmsg_write.cold+0x5a/0x8b [ 13.435415][ T167] ? vprintk_default+0x20/0x20 [ 13.435416][ T167] ? handle_pte_fault+0x448/0x710 [ 13.435421][ T167] ? do_numa_page.isra.0+0xa70/0xa70 [ 13.435423][ T167] ? vprintk_default+0x20/0x20 [ 13.435425][ T167] new_sync_write+0x33e/0x760 [ 13.435429][ T167] ? new_sync_read+0x750/0x750 [ 13.435431][ T167] ? lock_vma_under_rcu+0x159/0x410 [ 13.435440][ T167] vfs_write+0x6a2/0xbd0 [ 13.435444][ T167] ksys_write+0x116/0x250 [ 13.435446][ T167] ? __ia32_sys_read+0xc0/0xc0 [ 13.435448][ T167] ? rcu_is_watching+0x16/0xd0 [ 13.435450][ T167] ? rcu_is_watching+0x16/0xd0 [ 13.435458][ T167] do_syscall_64+0xff/0x530 [ 13.435461][ T167] ? exc_page_fault+0xee/0x100 [ 13.435464][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.435466][ T167] RIP: 0033:0x7f35fdda054e [ 13.435470][ T167] 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.435472][ T167] RSP: 002b:00007ffd798025e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.435475][ T167] RAX: ffffffffffffffda RBX: 00007f35fdf21580 RCX: 00007f35fdda054e [ 13.435476][ T167] RDX: 0000000000000023 RSI: 00005627ce07f120 RDI: 0000000000000001 [ 13.435477][ T167] RBP: 00007ffd798025f0 R08: 0000000000000000 R09: 0000000000000000 [ 13.435478][ T167] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.435479][ T167] R13: 0000000000000023 R14: 00005627ce07f120 R15: 0000000000000000 [ 13.435486][ T167] [ 13.964239][ T294] netconsole: netconsole: nsim997 is a slave device, aborting