[ 9.659024][ T181] netconsole: network logging started [ 9.659042][ T181] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.659044][ T181] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 181, name: modprobe [ 9.659046][ T181] preempt_count: 1, expected: 0 [ 9.659046][ T181] RCU nest depth: 0, expected: 0 [ 9.659048][ T181] locks held by modprobe/181: 4, last CPU#1: [ 9.659050][ T181] #0: ffffffffb4999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.659062][ T181] #1: ffffffffb4999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.659066][ T181] #2: ffffffffb4889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.659070][ T181] #3: ffffffffb4889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.659073][ T181] irq event stamp: 30880 [ 9.659074][ T181] hardirqs last enabled at (30879): [] __down_trylock_console_sem+0x86/0xa0 [ 9.659077][ T181] hardirqs last disabled at (30880): [] console_emit_next_record+0x3f8/0x4f0 [ 9.659078][ T181] softirqs last enabled at (30702): [] handle_softirqs+0x67c/0x900 [ 9.659082][ T181] softirqs last disabled at (29837): [] __irq_exit_rcu+0x145/0x1c0 [ 9.659084][ T181] Preemption disabled at: [ 9.659085][ T181] [] vprintk_emit+0x31b/0x3e0 [ 9.659091][ T181] CPU: 1 UID: 0 PID: 181 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.659094][ T181] Tainted: [W]=WARN [ 9.659095][ T181] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.659097][ T181] Call Trace: [ 9.659098][ T181] [ 9.659100][ T181] dump_stack_lvl+0x6f/0xa0 [ 9.659105][ T181] ? vprintk_emit+0x31b/0x3e0 [ 9.659107][ T181] __might_resched.cold+0x1fe/0x2c1 [ 9.659111][ T181] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.659115][ T181] ? __kmalloc_noprof+0xdb/0x760 [ 9.659120][ T181] __kmalloc_noprof+0x443/0x760 [ 9.659122][ T181] ? alloc_buf.isra.0+0x4b/0x260 [ 9.659128][ T181] ? do_raw_spin_unlock+0x59/0x250 [ 9.659130][ T181] alloc_buf.isra.0+0x4b/0x260 [ 9.659134][ T181] put_chars+0x1e1/0x2f0 [ 9.659137][ T181] ? __send_to_port+0x420/0x420 [ 9.659140][ T181] ? validate_chain+0x38b/0xc20 [ 9.659146][ T181] hvc_console_print+0x292/0x780 [ 9.659153][ T181] ? hvc_write+0x3a0/0x3a0 [ 9.659156][ T181] ? rcu_is_watching+0x16/0xd0 [ 9.659159][ T181] ? lock_acquire+0x13c/0x160 [ 9.659163][ T181] console_emit_next_record+0x252/0x4f0 [ 9.659166][ T181] ? devkmsg_read+0x4e0/0x4e0 [ 9.659170][ T181] ? rcu_is_watching+0x16/0xd0 [ 9.659176][ T181] ? lock_acquire+0x13c/0x160 [ 9.659180][ T181] console_flush_one_record+0x46f/0x710 [ 9.659183][ T181] ? console_emit_next_record+0x4f0/0x4f0 [ 9.659185][ T181] ? __lock_acquire+0x518/0xc20 [ 9.659190][ T181] console_unlock+0xee/0x1f0 [ 9.659192][ T181] ? console_flush_one_record+0x710/0x710 [ 9.659194][ T181] ? rcu_is_watching+0x16/0xd0 [ 9.659195][ T181] ? lock_acquire+0x60/0x160 [ 9.659199][ T181] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.659201][ T181] ? vprintk_emit+0x320/0x3e0 [ 9.659205][ T181] vprintk_emit+0x37c/0x3e0 [ 9.659209][ T181] ? wake_up_klogd_work_func+0x90/0x90 [ 9.659211][ T181] ? find_held_lock+0x2b/0x80 [ 9.659214][ T181] ? __lock_release.isra.0+0x69/0x1a0 [ 9.659215][ T181] ? fast_dput+0x316/0x540 [ 9.659220][ T181] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.659224][ T181] _printk+0xc7/0x100 [ 9.659228][ T181] ? snapshot_read.cold+0x21/0x21 [ 9.659230][ T181] ? __up_write+0x2e5/0x5f0 [ 9.659233][ T181] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.659237][ T181] ? configfs_register_subsystem+0x340/0x570 [ 9.659241][ T181] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.659245][ T181] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.659251][ T181] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.659254][ T181] do_one_initcall+0x124/0x4f0 [ 9.659257][ T181] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.659261][ T181] ? do_init_module+0xae/0x8a0 [ 9.659264][ T181] ? kasan_unpoison+0x44/0x70 [ 9.659269][ T181] do_init_module+0x2ad/0x8a0 [ 9.659272][ T181] ? lockdep_hardirqs_on+0x91/0x130 [ 9.659276][ T181] ? free_module+0x470/0x470 [ 9.659278][ T181] ? kfree+0x123/0x590 [ 9.659283][ T181] load_module+0x1424/0x1bb0 [ 9.659289][ T181] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.659293][ T181] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.659296][ T181] ? find_held_lock+0x2b/0x80 [ 9.659298][ T181] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.659302][ T181] init_module_from_file+0x11f/0x1a0 [ 9.659305][ T181] ? __do_sys_init_module+0x220/0x220 [ 9.659312][ T181] ? __rwlock_init+0x150/0x150 [ 9.659315][ T181] ? do_raw_spin_unlock+0x59/0x250 [ 9.659317][ T181] idempotent_init_module+0x37b/0x7c0 [ 9.659320][ T181] ? init_module_from_file+0x1a0/0x1a0 [ 9.659326][ T181] ? rcu_is_watching+0x16/0xd0 [ 9.659328][ T181] ? cap_capable+0x1d7/0x3d0 [ 9.659333][ T181] __x64_sys_finit_module+0xdf/0x190 [ 9.659338][ T181] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.659342][ T181] do_syscall_64+0xff/0x530 [ 9.659344][ T181] ? exc_page_fault+0xee/0x100 [ 9.659346][ T181] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.659348][ T181] RIP: 0033:0x7fef6d44a37d [ 9.659352][ T181] 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.659354][ T181] RSP: 002b:00007ffc0a310ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.659356][ T181] RAX: ffffffffffffffda RBX: 000055cc6b691700 RCX: 00007fef6d44a37d [ 9.659357][ T181] RDX: 0000000000000000 RSI: 000055cc4b1bcffd RDI: 0000000000000005 [ 9.659358][ T181] RBP: 00007ffc0a310f90 R08: 0000000000000000 R09: 0000000000000000 [ 9.659359][ T181] R10: 0000000000000000 R11: 0000000000000246 R12: 000055cc4b1bcffd [ 9.659360][ T181] R13: 000055cc6b691810 R14: 0000000000040000 R15: 0000000000000000 [ 9.659366][ T181] [ 13.587331][ T169] netconsole selftest: netcons_beMtL [ 13.587363][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.587366][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: bash [ 13.587368][ T169] preempt_count: 1, expected: 0 [ 13.587369][ T169] RCU nest depth: 0, expected: 0 [ 13.587370][ T169] locks held by bash/169: 4, last CPU#3: [ 13.587373][ T169] #0: ffffffffb4999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.587386][ T169] #1: ffffffffb4999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.587390][ T169] #2: ffffffffb4889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.587394][ T169] #3: ffffffffb4889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.587398][ T169] irq event stamp: 120694 [ 13.587400][ T169] hardirqs last enabled at (120693): [] __down_trylock_console_sem+0x86/0xa0 [ 13.587403][ T169] hardirqs last disabled at (120694): [] console_emit_next_record+0x3f8/0x4f0 [ 13.587405][ T169] softirqs last enabled at (120688): [] handle_softirqs+0x67c/0x900 [ 13.587409][ T169] softirqs last disabled at (120683): [] __irq_exit_rcu+0x145/0x1c0 [ 13.587411][ T169] Preemption disabled at: [ 13.587412][ T169] [] vprintk_emit+0x31b/0x3e0 [ 13.587418][ T169] CPU: 3 UID: 0 PID: 169 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.587421][ T169] Tainted: [W]=WARN [ 13.587422][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.587424][ T169] Call Trace: [ 13.587426][ T169] [ 13.587427][ T169] dump_stack_lvl+0x6f/0xa0 [ 13.587432][ T169] ? vprintk_emit+0x31b/0x3e0 [ 13.587434][ T169] __might_resched.cold+0x1fe/0x2c1 [ 13.587439][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.587442][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 13.587448][ T169] __kmalloc_noprof+0x443/0x760 [ 13.587450][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 13.587457][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 13.587459][ T169] alloc_buf.isra.0+0x4b/0x260 [ 13.587463][ T169] put_chars+0x1e1/0x2f0 [ 13.587466][ T169] ? __send_to_port+0x420/0x420 [ 13.587468][ T169] ? printk_get_next_message+0x2fe/0x7d0 [ 13.587471][ T169] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.587475][ T169] ? validate_chain+0x38b/0xc20 [ 13.587480][ T169] hvc_console_print+0x292/0x780 [ 13.587484][ T169] ? __lock_acquire+0x518/0xc20 [ 13.587486][ T169] ? __lock_acquire+0x518/0xc20 [ 13.587490][ T169] ? hvc_write+0x3a0/0x3a0 [ 13.587494][ T169] ? rcu_is_watching+0x16/0xd0 [ 13.587496][ T169] ? lock_acquire+0x13c/0x160 [ 13.587501][ T169] console_emit_next_record+0x252/0x4f0 [ 13.587504][ T169] ? devkmsg_read+0x4e0/0x4e0 [ 13.587508][ T169] ? rcu_is_watching+0x16/0xd0 [ 13.587510][ T169] ? lock_acquire+0x13c/0x160 [ 13.587514][ T169] console_flush_one_record+0x46f/0x710 [ 13.587518][ T169] ? console_emit_next_record+0x4f0/0x4f0 [ 13.587519][ T169] ? __lock_acquire+0x518/0xc20 [ 13.587525][ T169] console_unlock+0xee/0x1f0 [ 13.587527][ T169] ? console_flush_one_record+0x710/0x710 [ 13.587529][ T169] ? rcu_is_watching+0x16/0xd0 [ 13.587530][ T169] ? lock_acquire+0x60/0x160 [ 13.587534][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.587536][ T169] ? vprintk_emit+0x320/0x3e0 [ 13.587539][ T169] vprintk_emit+0x37c/0x3e0 [ 13.587542][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 13.587545][ T169] ? _copy_from_iter+0x1bb/0x1810 [ 13.587551][ T169] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.587554][ T169] ? vprintk_emit.cold+0x107/0x107 [ 13.587558][ T169] ? __kmalloc_noprof+0x302/0x760 [ 13.587561][ T169] ? idr_get_free+0x830/0x830 [ 13.587564][ T169] ? devkmsg_write+0xd1/0x2c0 [ 13.587567][ T169] ? _copy_from_iter+0x1bb/0x1810 [ 13.587570][ T169] devkmsg_write.cold+0x5a/0x8b [ 13.587572][ T169] ? vprintk_default+0x20/0x20 [ 13.587574][ T169] ? handle_pte_fault+0x448/0x710 [ 13.587579][ T169] ? do_numa_page.isra.0+0xa70/0xa70 [ 13.587581][ T169] ? vprintk_default+0x20/0x20 [ 13.587583][ T169] new_sync_write+0x33e/0x760 [ 13.587588][ T169] ? new_sync_read+0x750/0x750 [ 13.587589][ T169] ? lock_vma_under_rcu+0x159/0x410 [ 13.587598][ T169] vfs_write+0x6a2/0xbd0 [ 13.587602][ T169] ksys_write+0x116/0x250 [ 13.587605][ T169] ? __ia32_sys_read+0xc0/0xc0 [ 13.587607][ T169] ? rcu_is_watching+0x16/0xd0 [ 13.587609][ T169] ? rcu_is_watching+0x16/0xd0 [ 13.587612][ T169] do_syscall_64+0xff/0x530 [ 13.587614][ T169] ? exc_page_fault+0xee/0x100 [ 13.587617][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.587620][ T169] RIP: 0033:0x7fd6d97aa54e [ 13.587624][ T169] 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.587625][ T169] RSP: 002b:00007ffc4c5fe0c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.587628][ T169] RAX: ffffffffffffffda RBX: 00007fd6d992b580 RCX: 00007fd6d97aa54e [ 13.587630][ T169] RDX: 0000000000000023 RSI: 000055587d379120 RDI: 0000000000000001 [ 13.587631][ T169] RBP: 00007ffc4c5fe0d0 R08: 0000000000000000 R09: 0000000000000000 [ 13.587632][ T169] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.587633][ T169] R13: 0000000000000023 R14: 000055587d379120 R15: 0000000000000000 [ 13.587639][ T169] [ 14.119936][ T295] netconsole: netconsole: nsim1022 is a slave device, aborting