[ 8.855198][ T169] netconsole: network logging started [ 8.855216][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.855218][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: modprobe [ 8.855220][ T169] preempt_count: 1, expected: 0 [ 8.855220][ T169] RCU nest depth: 0, expected: 0 [ 8.855221][ T169] locks held by modprobe/169: 4, last CPU#0: [ 8.855224][ T169] #0: ffffffffa8d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.855235][ T169] #1: ffffffffa8d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.855239][ T169] #2: ffffffffa8c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.855242][ T169] #3: ffffffffa8c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.855246][ T169] irq event stamp: 38048 [ 8.855247][ T169] hardirqs last enabled at (38047): [] __down_trylock_console_sem+0x86/0xa0 [ 8.855249][ T169] hardirqs last disabled at (38048): [] console_emit_next_record+0x3f8/0x4f0 [ 8.855251][ T169] softirqs last enabled at (34104): [] handle_softirqs+0x67c/0x900 [ 8.855254][ T169] softirqs last disabled at (34099): [] __irq_exit_rcu+0x145/0x1c0 [ 8.855257][ T169] Preemption disabled at: [ 8.855258][ T169] [] vprintk_emit+0x31b/0x3e0 [ 8.855263][ T169] CPU: 0 UID: 0 PID: 169 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.855266][ T169] Tainted: [W]=WARN [ 8.855267][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.855269][ T169] Call Trace: [ 8.855270][ T169] [ 8.855272][ T169] dump_stack_lvl+0x6f/0xa0 [ 8.855277][ T169] ? vprintk_emit+0x31b/0x3e0 [ 8.855279][ T169] __might_resched.cold+0x1fe/0x2c1 [ 8.855283][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.855287][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 8.855291][ T169] __kmalloc_noprof+0x443/0x760 [ 8.855293][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 8.855299][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.855302][ T169] alloc_buf.isra.0+0x4b/0x260 [ 8.855305][ T169] put_chars+0x1e1/0x2f0 [ 8.855308][ T169] ? __send_to_port+0x420/0x420 [ 8.855311][ T169] ? validate_chain+0x38b/0xc20 [ 8.855316][ T169] hvc_console_print+0x292/0x780 [ 8.855322][ T169] ? hvc_write+0x3a0/0x3a0 [ 8.855324][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.855328][ T169] ? lock_acquire+0x13c/0x160 [ 8.855336][ T169] console_emit_next_record+0x252/0x4f0 [ 8.855340][ T169] ? devkmsg_read+0x4e0/0x4e0 [ 8.855344][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.855346][ T169] ? lock_acquire+0x13c/0x160 [ 8.855349][ T169] console_flush_one_record+0x46f/0x710 [ 8.855353][ T169] ? console_emit_next_record+0x4f0/0x4f0 [ 8.855355][ T169] ? __lock_acquire+0x518/0xc20 [ 8.855359][ T169] console_unlock+0xee/0x1f0 [ 8.855362][ T169] ? console_flush_one_record+0x710/0x710 [ 8.855364][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.855366][ T169] ? lock_acquire+0x60/0x160 [ 8.855369][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.855370][ T169] ? vprintk_emit+0x320/0x3e0 [ 8.855373][ T169] vprintk_emit+0x37c/0x3e0 [ 8.855377][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 8.855378][ T169] ? find_held_lock+0x2b/0x80 [ 8.855382][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 8.855383][ T169] ? fast_dput+0x316/0x540 [ 8.855388][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.855392][ T169] _printk+0xc7/0x100 [ 8.855395][ T169] ? snapshot_read.cold+0x21/0x21 [ 8.855398][ T169] ? __up_write+0x2e5/0x5f0 [ 8.855401][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.855405][ T169] ? configfs_register_subsystem+0x340/0x570 [ 8.855410][ T169] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.855413][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.855419][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.855422][ T169] do_one_initcall+0x124/0x4f0 [ 8.855425][ T169] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.855430][ T169] ? do_init_module+0xae/0x8a0 [ 8.855433][ T169] ? kasan_unpoison+0x44/0x70 [ 8.855438][ T169] do_init_module+0x2ad/0x8a0 [ 8.855441][ T169] ? lockdep_hardirqs_on+0x91/0x130 [ 8.855446][ T169] ? free_module+0x470/0x470 [ 8.855449][ T169] ? kfree+0x123/0x590 [ 8.855452][ T169] load_module+0x1424/0x1bb0 [ 8.855459][ T169] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.855462][ T169] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.855465][ T169] ? ovl_real_file+0x172/0x1e0 [ 8.855469][ T169] ? backing_file_read_iter+0x541/0x790 [ 8.855473][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.855476][ T169] init_module_from_file+0x11f/0x1a0 [ 8.855480][ T169] ? __do_sys_init_module+0x220/0x220 [ 8.855487][ T169] ? __rwlock_init+0x150/0x150 [ 8.855490][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.855493][ T169] idempotent_init_module+0x37b/0x7c0 [ 8.855496][ T169] ? init_module_from_file+0x1a0/0x1a0 [ 8.855502][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.855504][ T169] ? cap_capable+0x1d7/0x3d0 [ 8.855510][ T169] __x64_sys_finit_module+0xdf/0x190 [ 8.855511][ T169] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.855516][ T169] do_syscall_64+0xff/0x530 [ 8.855517][ T169] ? exc_page_fault+0xee/0x100 [ 8.855520][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.855522][ T169] RIP: 0033:0x7f4e32cc437d [ 8.855525][ T169] 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 [ 8.855527][ T169] RSP: 002b:00007fffdf210ab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.855530][ T169] RAX: ffffffffffffffda RBX: 00005556a4b2c700 RCX: 00007f4e32cc437d [ 8.855531][ T169] RDX: 0000000000000000 RSI: 000055567043bffd RDI: 0000000000000005 [ 8.855532][ T169] RBP: 00007fffdf210b50 R08: 0000000000000000 R09: 0000000000000000 [ 8.855533][ T169] R10: 0000000000000000 R11: 0000000000000246 R12: 000055567043bffd [ 8.855533][ T169] R13: 00005556a4b2c810 R14: 0000000000040000 R15: 0000000000000000 [ 8.855540][ T169] [ 9.285581][ T91] netdevsim netdevsim549 eni549np1: renamed from eth0 [ 9.303264][ T82] netdevsim netdevsim322 eni322np1: renamed from eth1 [ 9.774531][ T157] printk: console [netcon_ext0] enabled [ 9.774829][ T157] netconsole: netconsole: local port 6665 [ 9.775165][ T157] netconsole: netconsole: local IPv4 address 192.0.2.1 [ 9.775462][ T157] netconsole: netconsole: interface name 'eni322np1' [ 9.775710][ T157] netconsole: netconsole: local ethernet address '00:00:00:00:00:00' [ 9.776001][ T157] netconsole: netconsole: remote port 6666 [ 9.776298][ T157] netconsole: netconsole: remote IPv4 address 192.0.2.2 [ 9.776633][ T157] netconsole: netconsole: remote ethernet address 92:ec:ee:18:ea:91 [ 9.785109][ T157] netconsole: network logging started [ 15.106721][ T157] printk: console [netcon_ext0] disabled [ 15.106745][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.106747][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 15.106749][ T157] preempt_count: 1, expected: 0 [ 15.106750][ T157] RCU nest depth: 0, expected: 0 [ 15.106751][ T157] locks held by bash/157: 9, last CPU#3: [ 15.106754][ T157] #0: ff11000009fdc430 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 15.106768][ T157] #1: ff1100000b924d80 (&buffer->mutex){+.+.}-{4:4}, at: configfs_write_iter+0x71/0x4b0 [ 15.106774][ T157] #2: ff1100000bbf1a30 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x1db/0x4b0 [ 15.106778][ T157] #3: ffffffffc0362880 (dynamic_netconsole_mutex){+.+.}-{4:4}, at: enabled_store+0xa0/0x750 [netconsole] [ 15.106785][ T157] #4: ffffffffa8d9a240 (console_mutex){+.+.}-{4:4}, at: unregister_console+0x16/0x40 [ 15.106791][ T157] #5: ffffffffa8d99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.106795][ T157] #6: ffffffffa8d99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.106799][ T157] #7: ffffffffa8c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.106803][ T157] #8: ffffffffa8c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.106807][ T157] irq event stamp: 611360 [ 15.106810][ T157] hardirqs last enabled at (611359): [] __down_trylock_console_sem+0x86/0xa0 [ 15.106812][ T157] hardirqs last disabled at (611360): [] console_emit_next_record+0x3f8/0x4f0 [ 15.106814][ T157] softirqs last enabled at (611132): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.106818][ T157] softirqs last disabled at (611130): [] restore_fpregs_from_user+0xc3/0x490 [ 15.106820][ T157] Preemption disabled at: [ 15.106821][ T157] [] vprintk_emit+0x31b/0x3e0 [ 15.106826][ T157] CPU: 3 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.106830][ T157] Tainted: [W]=WARN [ 15.106831][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.106833][ T157] Call Trace: [ 15.106835][ T157] [ 15.106836][ T157] dump_stack_lvl+0x6f/0xa0 [ 15.106841][ T157] ? vprintk_emit+0x31b/0x3e0 [ 15.106843][ T157] __might_resched.cold+0x1fe/0x2c1 [ 15.106848][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.106852][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 15.106856][ T157] __kmalloc_noprof+0x443/0x760 [ 15.106859][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 15.106864][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 15.106867][ T157] alloc_buf.isra.0+0x4b/0x260 [ 15.106870][ T157] put_chars+0x1e1/0x2f0 [ 15.106873][ T157] ? __send_to_port+0x420/0x420 [ 15.106874][ T157] ? desc_read_finalized_seq+0x41/0x120 [ 15.106878][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.106881][ T157] ? validate_chain+0x38b/0xc20 [ 15.106885][ T157] hvc_console_print+0x292/0x780 [ 15.106888][ T157] ? __lock_acquire+0x518/0xc20 [ 15.106889][ T157] ? __lock_acquire+0x518/0xc20 [ 15.106894][ T157] ? hvc_write+0x3a0/0x3a0 [ 15.106896][ T157] ? console_emit_next_record+0x202/0x4f0 [ 15.106899][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.106902][ T157] ? lock_acquire+0x13c/0x160 [ 15.106906][ T157] console_emit_next_record+0x252/0x4f0 [ 15.106910][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 15.106914][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.106916][ T157] ? lock_acquire+0x13c/0x160 [ 15.106920][ T157] console_flush_one_record+0x46f/0x710 [ 15.106924][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 15.106926][ T157] ? __lock_acquire+0x518/0xc20 [ 15.106931][ T157] console_unlock+0xee/0x1f0 [ 15.106934][ T157] ? console_flush_one_record+0x710/0x710 [ 15.106935][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.106938][ T157] ? lock_acquire+0x60/0x160 [ 15.106941][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.106943][ T157] ? vprintk_emit+0x320/0x3e0 [ 15.106946][ T157] vprintk_emit+0x37c/0x3e0 [ 15.106950][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 15.106952][ T157] ? lock_acquire+0x13c/0x160 [ 15.106954][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.106955][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.106959][ T157] _printk+0xc7/0x100 [ 15.106963][ T157] ? snapshot_read.cold+0x21/0x21 [ 15.106966][ T157] ? find_held_lock+0x2b/0x80 [ 15.106970][ T157] ? ww_mutex_lock+0x160/0x160 [ 15.106974][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 15.106978][ T157] unregister_console_locked.cold+0x88/0x6f7 [ 15.106983][ T157] ? console_suspend+0x150/0x150 [ 15.106988][ T157] ? console_list_lock+0x4c/0x60 [ 15.106990][ T157] unregister_console+0x1f/0x40 [ 15.106992][ T157] enabled_store+0x5b0/0x750 [netconsole] [ 15.106995][ T157] ? __kasan_kmalloc+0x7b/0x90 [ 15.106998][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 15.107000][ T157] ? down_write_killable_nested+0x270/0x270 [ 15.107002][ T157] ? __kmalloc_cache_noprof+0x240/0x620 [ 15.107004][ T157] ? configfs_write_iter+0x336/0x4b0 [ 15.107009][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 15.107011][ T157] configfs_write_iter+0x2c0/0x4b0 [ 15.107013][ T157] ? configfs_bin_write_iter+0x530/0x530 [ 15.107016][ T157] new_sync_write+0x33e/0x760 [ 15.107019][ T157] ? __lock_acquire+0x518/0xc20 [ 15.107021][ T157] ? new_sync_read+0x750/0x750 [ 15.107025][ T157] ? lock_acquire.part.0+0xd4/0x280 [ 15.107026][ T157] ? ksys_write+0x116/0x250 [ 15.107033][ T157] vfs_write+0x6a2/0xbd0 [ 15.107037][ T157] ksys_write+0x116/0x250 [ 15.107040][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 15.107043][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.107045][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.107048][ T157] do_syscall_64+0xff/0x530 [ 15.107051][ T157] ? exc_page_fault+0xee/0x100 [ 15.107054][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.107056][ T157] RIP: 0033:0x7fac7340354e [ 15.107060][ T157] 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 [ 15.107062][ T157] RSP: 002b:00007ffeef60b8a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.107065][ T157] RAX: ffffffffffffffda RBX: 00007fac73584580 RCX: 00007fac7340354e [ 15.107066][ T157] RDX: 0000000000000002 RSI: 0000564c41ffb0f0 RDI: 0000000000000001 [ 15.107067][ T157] RBP: 00007ffeef60b8b0 R08: 0000000000000000 R09: 0000000000000000 [ 15.107068][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002 [ 15.107069][ T157] R13: 0000000000000002 R14: 0000564c41ffb0f0 R15: 0000000000000000 [ 15.107076][ T157]