[ 8.653153][ T169] netconsole: network logging started [ 8.653167][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.653170][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: modprobe [ 8.653171][ T169] preempt_count: 1, expected: 0 [ 8.653172][ T169] RCU nest depth: 0, expected: 0 [ 8.653173][ T169] locks held by modprobe/169: 4, last CPU#3: [ 8.653175][ T169] #0: ffffffffb1399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.653187][ T169] #1: ffffffffb1399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.653192][ T169] #2: ffffffffb1289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.653195][ T169] #3: ffffffffb1289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.653199][ T169] irq event stamp: 36338 [ 8.653199][ T169] hardirqs last enabled at (36337): [] __down_trylock_console_sem+0x86/0xa0 [ 8.653201][ T169] hardirqs last disabled at (36338): [] console_emit_next_record+0x3f8/0x4f0 [ 8.653203][ T169] softirqs last enabled at (26420): [] handle_softirqs+0x67c/0x900 [ 8.653207][ T169] softirqs last disabled at (26415): [] __irq_exit_rcu+0x145/0x1c0 [ 8.653209][ T169] Preemption disabled at: [ 8.653210][ T169] [] vprintk_emit+0x31b/0x3e0 [ 8.653215][ T169] CPU: 3 UID: 0 PID: 169 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.653218][ T169] Tainted: [W]=WARN [ 8.653219][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.653225][ T169] Call Trace: [ 8.653226][ T169] [ 8.653228][ T169] dump_stack_lvl+0x6f/0xa0 [ 8.653233][ T169] ? vprintk_emit+0x31b/0x3e0 [ 8.653235][ T169] __might_resched.cold+0x1fe/0x2c1 [ 8.653239][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.653243][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 8.653248][ T169] __kmalloc_noprof+0x443/0x760 [ 8.653249][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 8.653255][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.653257][ T169] alloc_buf.isra.0+0x4b/0x260 [ 8.653260][ T169] put_chars+0x1e1/0x2f0 [ 8.653263][ T169] ? __send_to_port+0x420/0x420 [ 8.653266][ T169] ? validate_chain+0x38b/0xc20 [ 8.653271][ T169] hvc_console_print+0x292/0x780 [ 8.653276][ T169] ? hvc_write+0x3a0/0x3a0 [ 8.653278][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.653282][ T169] ? lock_acquire+0x13c/0x160 [ 8.653285][ T169] console_emit_next_record+0x252/0x4f0 [ 8.653289][ T169] ? devkmsg_read+0x4e0/0x4e0 [ 8.653293][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.653295][ T169] ? lock_acquire+0x13c/0x160 [ 8.653298][ T169] console_flush_one_record+0x46f/0x710 [ 8.653302][ T169] ? console_emit_next_record+0x4f0/0x4f0 [ 8.653304][ T169] ? __lock_acquire+0x518/0xc20 [ 8.653308][ T169] console_unlock+0xee/0x1f0 [ 8.653311][ T169] ? console_flush_one_record+0x710/0x710 [ 8.653312][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.653314][ T169] ? lock_acquire+0x60/0x160 [ 8.653318][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.653319][ T169] ? vprintk_emit+0x320/0x3e0 [ 8.653322][ T169] vprintk_emit+0x37c/0x3e0 [ 8.653325][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 8.653327][ T169] ? find_held_lock+0x2b/0x80 [ 8.653331][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 8.653332][ T169] ? fast_dput+0x316/0x540 [ 8.653336][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.653340][ T169] _printk+0xc7/0x100 [ 8.653344][ T169] ? snapshot_read.cold+0x21/0x21 [ 8.653346][ T169] ? __up_write+0x2e5/0x5f0 [ 8.653350][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.653353][ T169] ? configfs_register_subsystem+0x340/0x570 [ 8.653358][ T169] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.653362][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.653368][ T169] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.653370][ T169] do_one_initcall+0x124/0x4f0 [ 8.653374][ T169] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.653379][ T169] ? do_init_module+0xae/0x8a0 [ 8.653381][ T169] ? kasan_unpoison+0x44/0x70 [ 8.653386][ T169] do_init_module+0x2ad/0x8a0 [ 8.653390][ T169] ? lockdep_hardirqs_on+0x91/0x130 [ 8.653394][ T169] ? free_module+0x470/0x470 [ 8.653397][ T169] ? kfree+0x123/0x590 [ 8.653400][ T169] load_module+0x1424/0x1bb0 [ 8.653407][ T169] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.653410][ T169] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.653414][ T169] ? find_held_lock+0x2b/0x80 [ 8.653416][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.653420][ T169] init_module_from_file+0x11f/0x1a0 [ 8.653423][ T169] ? __do_sys_init_module+0x220/0x220 [ 8.653431][ T169] ? __rwlock_init+0x150/0x150 [ 8.653434][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 8.653437][ T169] idempotent_init_module+0x37b/0x7c0 [ 8.653440][ T169] ? init_module_from_file+0x1a0/0x1a0 [ 8.653447][ T169] ? rcu_is_watching+0x16/0xd0 [ 8.653450][ T169] ? cap_capable+0x1d7/0x3d0 [ 8.653455][ T169] __x64_sys_finit_module+0xdf/0x190 [ 8.653457][ T169] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.653461][ T169] do_syscall_64+0xff/0x530 [ 8.653463][ T169] ? exc_page_fault+0xee/0x100 [ 8.653465][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.653468][ T169] RIP: 0033:0x7f6aea02837d [ 8.653471][ 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.653473][ T169] RSP: 002b:00007ffd5c44dc58 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.653475][ T169] RAX: ffffffffffffffda RBX: 000055d3eb5ef700 RCX: 00007f6aea02837d [ 8.653476][ T169] RDX: 0000000000000000 RSI: 000055d3de1ffffd RDI: 0000000000000005 [ 8.653477][ T169] RBP: 00007ffd5c44dcf0 R08: 0000000000000000 R09: 0000000000000000 [ 8.653478][ T169] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d3de1ffffd [ 8.653479][ T169] R13: 000055d3eb5ef810 R14: 0000000000040000 R15: 0000000000000000 [ 8.653485][ T169] [ 9.089726][ T83] netdevsim netdevsim564 eni564np1: renamed from eth0 [ 9.105265][ T88] netdevsim netdevsim474 eni474np1: renamed from eth1 [ 9.522681][ T157] printk: console [netcon_ext0] enabled [ 9.523437][ T157] netconsole: netconsole: local port 6665 [ 9.523751][ T157] netconsole: netconsole: local IPv4 address 192.0.2.1 [ 9.524000][ T157] netconsole: netconsole: interface name 'eni474np1' [ 9.524245][ T157] netconsole: netconsole: local ethernet address '00:00:00:00:00:00' [ 9.524546][ T157] netconsole: netconsole: remote port 6666 [ 9.524841][ T157] netconsole: netconsole: remote IPv4 address 192.0.2.2 [ 9.525081][ T157] netconsole: netconsole: remote ethernet address 32:56:60:51:3a:2a [ 9.533463][ T157] netconsole: network logging started [ 14.793127][ T157] printk: console [netcon_ext0] disabled [ 14.793168][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.793170][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 14.793172][ T157] preempt_count: 1, expected: 0 [ 14.793173][ T157] RCU nest depth: 0, expected: 0 [ 14.793174][ T157] locks held by bash/157: 9, last CPU#0: [ 14.793177][ T157] #0: ff1100000a804430 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 14.793191][ T157] #1: ff1100000db86b80 (&buffer->mutex){+.+.}-{4:4}, at: configfs_write_iter+0x71/0x4b0 [ 14.793198][ T157] #2: ff11000009253a30 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x1db/0x4b0 [ 14.793202][ T157] #3: ffffffffc0192880 (dynamic_netconsole_mutex){+.+.}-{4:4}, at: enabled_store+0xa0/0x750 [netconsole] [ 14.793208][ T157] #4: ffffffffb139a240 (console_mutex){+.+.}-{4:4}, at: unregister_console+0x16/0x40 [ 14.793214][ T157] #5: ffffffffb1399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.793218][ T157] #6: ffffffffb1399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.793222][ T157] #7: ffffffffb1289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.793226][ T157] #8: ffffffffb1289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.793231][ T157] irq event stamp: 599214 [ 14.793233][ T157] hardirqs last enabled at (599213): [] __down_trylock_console_sem+0x86/0xa0 [ 14.793235][ T157] hardirqs last disabled at (599214): [] console_emit_next_record+0x3f8/0x4f0 [ 14.793237][ T157] softirqs last enabled at (598984): [] restore_fpregs_from_user+0x1cf/0x490 [ 14.793240][ T157] softirqs last disabled at (598982): [] restore_fpregs_from_user+0xc3/0x490 [ 14.793248][ T157] Preemption disabled at: [ 14.793249][ T157] [] vprintk_emit+0x31b/0x3e0 [ 14.793255][ T157] CPU: 0 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.793258][ T157] Tainted: [W]=WARN [ 14.793259][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.793261][ T157] Call Trace: [ 14.793263][ T157] [ 14.793264][ T157] dump_stack_lvl+0x6f/0xa0 [ 14.793269][ T157] ? vprintk_emit+0x31b/0x3e0 [ 14.793271][ T157] __might_resched.cold+0x1fe/0x2c1 [ 14.793276][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.793280][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 14.793284][ T157] __kmalloc_noprof+0x443/0x760 [ 14.793287][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 14.793292][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 14.793294][ T157] alloc_buf.isra.0+0x4b/0x260 [ 14.793298][ T157] put_chars+0x1e1/0x2f0 [ 14.793301][ T157] ? __send_to_port+0x420/0x420 [ 14.793304][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.793307][ T157] ? validate_chain+0x38b/0xc20 [ 14.793312][ T157] hvc_console_print+0x292/0x780 [ 14.793314][ T157] ? __lock_acquire+0x518/0xc20 [ 14.793316][ T157] ? __lock_acquire+0x518/0xc20 [ 14.793320][ T157] ? hvc_write+0x3a0/0x3a0 [ 14.793322][ T157] ? console_emit_next_record+0x202/0x4f0 [ 14.793325][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793328][ T157] ? lock_acquire+0x13c/0x160 [ 14.793332][ T157] console_emit_next_record+0x252/0x4f0 [ 14.793336][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 14.793340][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793342][ T157] ? lock_acquire+0x13c/0x160 [ 14.793346][ T157] console_flush_one_record+0x46f/0x710 [ 14.793351][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 14.793352][ T157] ? __lock_acquire+0x518/0xc20 [ 14.793358][ T157] console_unlock+0xee/0x1f0 [ 14.793360][ T157] ? console_flush_one_record+0x710/0x710 [ 14.793362][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793364][ T157] ? lock_acquire+0x60/0x160 [ 14.793368][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.793370][ T157] ? vprintk_emit+0x320/0x3e0 [ 14.793373][ T157] vprintk_emit+0x37c/0x3e0 [ 14.793377][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 14.793379][ T157] ? lock_acquire+0x13c/0x160 [ 14.793381][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793382][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793387][ T157] _printk+0xc7/0x100 [ 14.793390][ T157] ? snapshot_read.cold+0x21/0x21 [ 14.793393][ T157] ? find_held_lock+0x2b/0x80 [ 14.793397][ T157] ? ww_mutex_lock+0x160/0x160 [ 14.793400][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 14.793405][ T157] unregister_console_locked.cold+0x88/0x6f7 [ 14.793409][ T157] ? console_suspend+0x150/0x150 [ 14.793415][ T157] ? console_list_lock+0x4c/0x60 [ 14.793416][ T157] unregister_console+0x1f/0x40 [ 14.793419][ T157] enabled_store+0x5b0/0x750 [netconsole] [ 14.793421][ T157] ? __kasan_kmalloc+0x7b/0x90 [ 14.793425][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 14.793427][ T157] ? down_write_killable_nested+0x270/0x270 [ 14.793429][ T157] ? __kmalloc_cache_noprof+0x240/0x620 [ 14.793431][ T157] ? configfs_write_iter+0x336/0x4b0 [ 14.793435][ T157] ? netconsole_write_ext+0x20/0x20 [netconsole] [ 14.793437][ T157] configfs_write_iter+0x2c0/0x4b0 [ 14.793440][ T157] ? configfs_bin_write_iter+0x530/0x530 [ 14.793443][ T157] new_sync_write+0x33e/0x760 [ 14.793449][ T157] ? __lock_acquire+0x518/0xc20 [ 14.793452][ T157] ? new_sync_read+0x750/0x750 [ 14.793455][ T157] ? lock_acquire.part.0+0xd4/0x280 [ 14.793457][ T157] ? ksys_write+0x116/0x250 [ 14.793463][ T157] vfs_write+0x6a2/0xbd0 [ 14.793468][ T157] ksys_write+0x116/0x250 [ 14.793471][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 14.793473][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793475][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.793479][ T157] do_syscall_64+0xff/0x530 [ 14.793482][ T157] ? exc_page_fault+0xee/0x100 [ 14.793485][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.793487][ T157] RIP: 0033:0x7fe38353654e [ 14.793491][ 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 [ 14.793493][ T157] RSP: 002b:00007fff51f63a90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.793496][ T157] RAX: ffffffffffffffda RBX: 00007fe3836b7580 RCX: 00007fe38353654e [ 14.793497][ T157] RDX: 0000000000000002 RSI: 000055d8971750f0 RDI: 0000000000000001 [ 14.793498][ T157] RBP: 00007fff51f63aa0 R08: 0000000000000000 R09: 0000000000000000 [ 14.793499][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002 [ 14.793500][ T157] R13: 0000000000000002 R14: 000055d8971750f0 R15: 0000000000000000 [ 14.793508][ T157]