[ 8.772394][ T169] netconsole: network logging started [ 8.772409][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.772411][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: modprobe [ 8.772413][ T169] preempt_count: 1, expected: 0 [ 8.772414][ T169] RCU nest depth: 0, expected: 0 [ 8.772415][ T169] locks held by modprobe/169: 4, last CPU#2: [ 8.772417][ T169] #0: ffffffff9a599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.772429][ T169] #1: ffffffff9a599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.772433][ T169] #2: ffffffff9a489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.772437][ T169] #3: ffffffff9a489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.772441][ T169] irq event stamp: 33536 [ 8.772441][ T169] hardirqs last enabled at (33535): [] __down_trylock_console_sem+0x86/0xa0 [ 8.772443][ T169] hardirqs last disabled at (33536): [] console_emit_next_record+0x3f8/0x4f0 [ 8.772445][ T169] softirqs last enabled at (33482): [] handle_softirqs+0x67c/0x900 [ 8.772449][ T169] softirqs last disabled at (33475): [] __irq_exit_rcu+0x145/0x1c0 [ 8.772451][ T169] Preemption disabled at: [ 8.772452][ T169] [] vprintk_emit+0x31b/0x3e0 [ 8.772457][ T169] CPU: 2 UID: 0 PID: 169 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.772461][ T169] Tainted: [W]=WARN [ 8.772461][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.772463][ T169] Call Trace: [ 8.772465][ T169] [ 8.772466][ T169] dump_stack_lvl+0x6f/0xa0 [ 8.772471][ T169] ? vprintk_emit+0x31b/0x3e0 [ 8.772473][ T169] __might_resched.cold+0x1fe/0x2c1 [ 8.772478][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.772482][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 8.772486][ T169] __kmalloc_noprof+0x443/0x760 [ 8.772488][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 8.772494][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.772497][ T169] alloc_buf.isra.0+0x4b/0x260 [ 8.772500][ T169] put_chars+0x1e1/0x2f0 [ 8.772503][ T169] ? __send_to_port+0x420/0x420 [ 8.772506][ T169] ? validate_chain+0x38b/0xc20 [ 8.772510][ T169] hvc_console_print+0x292/0x780 [ 8.772516][ T169] ? hvc_write+0x3a0/0x3a0 [ 8.772519][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.772522][ T169] ? lock_acquire+0x13c/0x160 [ 8.772526][ T169] console_emit_next_record+0x252/0x4f0 [ 8.772529][ T169] ? devkmsg_read+0x4e0/0x4e0 [ 8.772534][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.772536][ T169] ? lock_acquire+0x13c/0x160 [ 8.772539][ T169] console_flush_one_record+0x46f/0x710 [ 8.772543][ T169] ? console_emit_next_record+0x4f0/0x4f0 [ 8.772545][ T169] ? __lock_acquire+0x518/0xc20 [ 8.772550][ T169] console_unlock+0xee/0x1f0 [ 8.772552][ T169] ? console_flush_one_record+0x710/0x710 [ 8.772554][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.772556][ T169] ? lock_acquire+0x60/0x160 [ 8.772559][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.772561][ T169] ? vprintk_emit+0x320/0x3e0 [ 8.772564][ T169] vprintk_emit+0x37c/0x3e0 [ 8.772567][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 8.772569][ T169] ? find_held_lock+0x2b/0x80 [ 8.772573][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 8.772574][ T169] ? fast_dput+0x316/0x540 [ 8.772579][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.772583][ T169] _printk+0xc7/0x100 [ 8.772586][ T169] ? snapshot_read.cold+0x21/0x21 [ 8.772589][ T169] ? __up_write+0x2e5/0x5f0 [ 8.772593][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.772596][ T169] ? configfs_register_subsystem+0x340/0x570 [ 8.772601][ T169] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.772604][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.772611][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.772614][ T169] do_one_initcall+0x124/0x4f0 [ 8.772617][ T169] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.772622][ T169] ? do_init_module+0xae/0x8a0 [ 8.772625][ T169] ? kasan_unpoison+0x44/0x70 [ 8.772630][ T169] do_init_module+0x2ad/0x8a0 [ 8.772634][ T169] ? lockdep_hardirqs_on+0x91/0x130 [ 8.772638][ T169] ? free_module+0x470/0x470 [ 8.772641][ T169] ? kfree+0x123/0x590 [ 8.772645][ T169] load_module+0x1424/0x1bb0 [ 8.772651][ T169] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.772655][ T169] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.772659][ T169] ? find_held_lock+0x2b/0x80 [ 8.772662][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.772666][ T169] init_module_from_file+0x11f/0x1a0 [ 8.772670][ T169] ? __do_sys_init_module+0x220/0x220 [ 8.772677][ T169] ? __rwlock_init+0x150/0x150 [ 8.772681][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.772683][ T169] idempotent_init_module+0x37b/0x7c0 [ 8.772686][ T169] ? init_module_from_file+0x1a0/0x1a0 [ 8.772692][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.772695][ T169] ? cap_capable+0x1d7/0x3d0 [ 8.772700][ T169] __x64_sys_finit_module+0xdf/0x190 [ 8.772702][ T169] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.772706][ T169] do_syscall_64+0xff/0x530 [ 8.772708][ T169] ? exc_page_fault+0xee/0x100 [ 8.772711][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.772713][ T169] RIP: 0033:0x7f9ce8c8a37d [ 8.772717][ 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.772718][ T169] RSP: 002b:00007ffebf401f58 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.772721][ T169] RAX: ffffffffffffffda RBX: 000056537b4b7700 RCX: 00007f9ce8c8a37d [ 8.772722][ T169] RDX: 0000000000000000 RSI: 000056534fb84ffd RDI: 0000000000000005 [ 8.772723][ T169] RBP: 00007ffebf401ff0 R08: 0000000000000000 R09: 0000000000000000 [ 8.772724][ T169] R10: 0000000000000000 R11: 0000000000000246 R12: 000056534fb84ffd [ 8.772725][ T169] R13: 000056537b4b7810 R14: 0000000000040000 R15: 0000000000000000 [ 8.772731][ T169] [ 9.233855][ T91] netdevsim netdevsim655 eni655np1: renamed from eth0 [ 9.237485][ T83] netdevsim netdevsim491 eni491np1: renamed from eth1 [ 9.704931][ T157] printk: console [netcon_ext0] enabled [ 9.705279][ T157] netconsole: netconsole: local port 6665 [ 9.705591][ T157] netconsole: netconsole: local IPv4 address 192.0.2.1 [ 9.705840][ T157] netconsole: netconsole: interface name 'eni491np1' [ 9.706089][ T157] netconsole: netconsole: local ethernet address '00:00:00:00:00:00' [ 9.706393][ T157] netconsole: netconsole: remote port 6666 [ 9.706636][ T157] netconsole: netconsole: remote IPv4 address 192.0.2.2 [ 9.706879][ T157] netconsole: netconsole: remote ethernet address 56:4e:6b:73:70:1b [ 9.714426][ T157] netconsole: network logging started [ 15.029560][ T157] printk: console [netcon_ext0] disabled [ 15.029584][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.029587][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 15.029588][ T157] preempt_count: 1, expected: 0 [ 15.029589][ T157] RCU nest depth: 0, expected: 0 [ 15.029590][ T157] locks held by bash/157: 9, last CPU#2: [ 15.029593][ T157] #0: ff1100001106c430 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 15.029606][ T157] #1: ff11000005239380 (&buffer->mutex){+.+.}-{4:4}, at: configfs_write_iter+0x71/0x4b0 [ 15.029614][ T157] #2: ff11000011b9c230 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x1db/0x4b0 [ 15.029618][ T157] #3: ffffffffc01e7880 (dynamic_netconsole_mutex){+.+.}-{4:4}, at: enabled_store+0xa0/0x750 [netconsole] [ 15.029625][ T157] #4: ffffffff9a59a240 (console_mutex){+.+.}-{4:4}, at: unregister_console+0x16/0x40 [ 15.029630][ T157] #5: ffffffff9a599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.029634][ T157] #6: ffffffff9a599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.029638][ T157] #7: ffffffff9a489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.029642][ T157] #8: ffffffff9a489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.029646][ T157] irq event stamp: 576396 [ 15.029648][ T157] hardirqs last enabled at (576395): [] __down_trylock_console_sem+0x86/0xa0 [ 15.029651][ T157] hardirqs last disabled at (576396): [] console_emit_next_record+0x3f8/0x4f0 [ 15.029653][ T157] softirqs last enabled at (576084): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.029656][ T157] softirqs last disabled at (576082): [] restore_fpregs_from_user+0xc3/0x490 [ 15.029659][ T157] Preemption disabled at: [ 15.029659][ T157] [] vprintk_emit+0x31b/0x3e0 [ 15.029665][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.029668][ T157] Tainted: [W]=WARN [ 15.029669][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.029671][ T157] Call Trace: [ 15.029673][ T157] [ 15.029674][ T157] dump_stack_lvl+0x6f/0xa0 [ 15.029680][ T157] ? vprintk_emit+0x31b/0x3e0 [ 15.029682][ T157] __might_resched.cold+0x1fe/0x2c1 [ 15.029686][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.029690][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 15.029694][ T157] __kmalloc_noprof+0x443/0x760 [ 15.029697][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 15.029702][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 15.029704][ T157] alloc_buf.isra.0+0x4b/0x260 [ 15.029708][ T157] put_chars+0x1e1/0x2f0 [ 15.029711][ T157] ? __send_to_port+0x420/0x420 [ 15.029712][ T157] ? desc_read_finalized_seq+0x41/0x120 [ 15.029716][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.029719][ T157] ? validate_chain+0x38b/0xc20 [ 15.029724][ T157] hvc_console_print+0x292/0x780 [ 15.029726][ T157] ? __lock_acquire+0x518/0xc20 [ 15.029728][ T157] ? __lock_acquire+0x518/0xc20 [ 15.029732][ T157] ? hvc_write+0x3a0/0x3a0 [ 15.029733][ T157] ? console_emit_next_record+0x202/0x4f0 [ 15.029737][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029740][ T157] ? lock_acquire+0x13c/0x160 [ 15.029743][ T157] console_emit_next_record+0x252/0x4f0 [ 15.029747][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 15.029752][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029754][ T157] ? lock_acquire+0x13c/0x160 [ 15.029758][ T157] console_flush_one_record+0x46f/0x710 [ 15.029762][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 15.029764][ T157] ? __lock_acquire+0x518/0xc20 [ 15.029769][ T157] console_unlock+0xee/0x1f0 [ 15.029771][ T157] ? console_flush_one_record+0x710/0x710 [ 15.029773][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029775][ T157] ? lock_acquire+0x60/0x160 [ 15.029779][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.029780][ T157] ? vprintk_emit+0x320/0x3e0 [ 15.029784][ T157] vprintk_emit+0x37c/0x3e0 [ 15.029788][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 15.029790][ T157] ? lock_acquire+0x13c/0x160 [ 15.029792][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029793][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029797][ T157] _printk+0xc7/0x100 [ 15.029801][ T157] ? snapshot_read.cold+0x21/0x21 [ 15.029804][ T157] ? find_held_lock+0x2b/0x80 [ 15.029808][ T157] ? ww_mutex_lock+0x160/0x160 [ 15.029811][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 15.029816][ T157] unregister_console_locked.cold+0x88/0x6f7 [ 15.029820][ T157] ? console_suspend+0x150/0x150 [ 15.029825][ T157] ? console_list_lock+0x4c/0x60 [ 15.029827][ T157] unregister_console+0x1f/0x40 [ 15.029830][ T157] enabled_store+0x5b0/0x750 [netconsole] [ 15.029832][ T157] ? __kasan_kmalloc+0x7b/0x90 [ 15.029835][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 15.029837][ T157] ? down_write_killable_nested+0x270/0x270 [ 15.029839][ T157] ? __kmalloc_cache_noprof+0x240/0x620 [ 15.029841][ T157] ? configfs_write_iter+0x336/0x4b0 [ 15.029846][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 15.029848][ T157] configfs_write_iter+0x2c0/0x4b0 [ 15.029850][ T157] ? configfs_bin_write_iter+0x530/0x530 [ 15.029853][ T157] new_sync_write+0x33e/0x760 [ 15.029856][ T157] ? __lock_acquire+0x518/0xc20 [ 15.029858][ T157] ? new_sync_read+0x750/0x750 [ 15.029862][ T157] ? lock_acquire.part.0+0xd4/0x280 [ 15.029863][ T157] ? ksys_write+0x116/0x250 [ 15.029870][ T157] vfs_write+0x6a2/0xbd0 [ 15.029874][ T157] ksys_write+0x116/0x250 [ 15.029877][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 15.029879][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029881][ T157] ? rcu_is_watching+0x16/0xd0 [ 15.029885][ T157] do_syscall_64+0xff/0x530 [ 15.029888][ T157] ? exc_page_fault+0xee/0x100 [ 15.029891][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.029893][ T157] RIP: 0033:0x7f7a3d7f654e [ 15.029897][ 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.029899][ T157] RSP: 002b:00007ffe8b823a80 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.029902][ T157] RAX: ffffffffffffffda RBX: 00007f7a3d977580 RCX: 00007f7a3d7f654e [ 15.029903][ T157] RDX: 0000000000000002 RSI: 00005611f92550f0 RDI: 0000000000000001 [ 15.029904][ T157] RBP: 00007ffe8b823a90 R08: 0000000000000000 R09: 0000000000000000 [ 15.029905][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002 [ 15.029906][ T157] R13: 0000000000000002 R14: 00005611f92550f0 R15: 0000000000000000 [ 15.029914][ T157]