[ 9.224480][ T171] netconsole: network logging started [ 9.224496][ T171] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.224498][ T171] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 171, name: modprobe [ 9.224500][ T171] preempt_count: 1, expected: 0 [ 9.224501][ T171] RCU nest depth: 0, expected: 0 [ 9.224502][ T171] locks held by modprobe/171: 4, last CPU#0: [ 9.224504][ T171] #0: ffffffffaa999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.224515][ T171] #1: ffffffffaa999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.224519][ T171] #2: ffffffffaa889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.224523][ T171] #3: ffffffffaa889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.224527][ T171] irq event stamp: 38044 [ 9.224528][ T171] hardirqs last enabled at (38043): [] __down_trylock_console_sem+0x86/0xa0 [ 9.224530][ T171] hardirqs last disabled at (38044): [] console_emit_next_record+0x3f8/0x4f0 [ 9.224532][ T171] softirqs last enabled at (35408): [] handle_softirqs+0x67c/0x900 [ 9.224535][ T171] softirqs last disabled at (35399): [] __irq_exit_rcu+0x145/0x1c0 [ 9.224538][ T171] Preemption disabled at: [ 9.224538][ T171] [] vprintk_emit+0x31b/0x3e0 [ 9.224543][ T171] CPU: 0 UID: 0 PID: 171 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.224547][ T171] Tainted: [W]=WARN [ 9.224548][ T171] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.224549][ T171] Call Trace: [ 9.224551][ T171] [ 9.224553][ T171] dump_stack_lvl+0x6f/0xa0 [ 9.224559][ T171] ? vprintk_emit+0x31b/0x3e0 [ 9.224561][ T171] __might_resched.cold+0x1fe/0x2c1 [ 9.224566][ T171] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.224569][ T171] ? __kmalloc_noprof+0xdb/0x760 [ 9.224574][ T171] __kmalloc_noprof+0x443/0x760 [ 9.224576][ T171] ? alloc_buf.isra.0+0x4b/0x260 [ 9.224582][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.224584][ T171] alloc_buf.isra.0+0x4b/0x260 [ 9.224587][ T171] put_chars+0x1e1/0x2f0 [ 9.224590][ T171] ? __send_to_port+0x420/0x420 [ 9.224593][ T171] ? validate_chain+0x38b/0xc20 [ 9.224599][ T171] hvc_console_print+0x292/0x780 [ 9.224605][ T171] ? hvc_write+0x3a0/0x3a0 [ 9.224607][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.224611][ T171] ? lock_acquire+0x13c/0x160 [ 9.224614][ T171] console_emit_next_record+0x252/0x4f0 [ 9.224618][ T171] ? devkmsg_read+0x4e0/0x4e0 [ 9.224623][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.224625][ T171] ? lock_acquire+0x13c/0x160 [ 9.224628][ T171] console_flush_one_record+0x46f/0x710 [ 9.224632][ T171] ? console_emit_next_record+0x4f0/0x4f0 [ 9.224634][ T171] ? __lock_acquire+0x518/0xc20 [ 9.224639][ T171] console_unlock+0xee/0x1f0 [ 9.224642][ T171] ? console_flush_one_record+0x710/0x710 [ 9.224643][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.224645][ T171] ? lock_acquire+0x60/0x160 [ 9.224649][ T171] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.224650][ T171] ? vprintk_emit+0x320/0x3e0 [ 9.224654][ T171] vprintk_emit+0x37c/0x3e0 [ 9.224658][ T171] ? wake_up_klogd_work_func+0x90/0x90 [ 9.224659][ T171] ? find_held_lock+0x2b/0x80 [ 9.224663][ T171] ? __lock_release.isra.0+0x69/0x1a0 [ 9.224664][ T171] ? fast_dput+0x316/0x540 [ 9.224669][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.224673][ T171] _printk+0xc7/0x100 [ 9.224677][ T171] ? snapshot_read.cold+0x21/0x21 [ 9.224680][ T171] ? __up_write+0x2e5/0x5f0 [ 9.224683][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.224687][ T171] ? configfs_register_subsystem+0x340/0x570 [ 9.224692][ T171] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.224696][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.224703][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.224706][ T171] do_one_initcall+0x124/0x4f0 [ 9.224709][ T171] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.224714][ T171] ? do_init_module+0xae/0x8a0 [ 9.224717][ T171] ? kasan_unpoison+0x44/0x70 [ 9.224723][ T171] do_init_module+0x2ad/0x8a0 [ 9.224726][ T171] ? lockdep_hardirqs_on+0x91/0x130 [ 9.224730][ T171] ? free_module+0x470/0x470 [ 9.224733][ T171] ? kfree+0x123/0x590 [ 9.224737][ T171] load_module+0x1424/0x1bb0 [ 9.224744][ T171] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.224748][ T171] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.224751][ T171] ? ovl_real_file+0x172/0x1e0 [ 9.224755][ T171] ? backing_file_read_iter+0x541/0x790 [ 9.224759][ T171] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.224762][ T171] init_module_from_file+0x11f/0x1a0 [ 9.224766][ T171] ? __do_sys_init_module+0x220/0x220 [ 9.224775][ T171] ? __rwlock_init+0x150/0x150 [ 9.224778][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.224781][ T171] idempotent_init_module+0x37b/0x7c0 [ 9.224784][ T171] ? init_module_from_file+0x1a0/0x1a0 [ 9.224790][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.224792][ T171] ? cap_capable+0x1d7/0x3d0 [ 9.224798][ T171] __x64_sys_finit_module+0xdf/0x190 [ 9.224800][ T171] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.224804][ T171] do_syscall_64+0xff/0x530 [ 9.224806][ T171] ? exc_page_fault+0xee/0x100 [ 9.224809][ T171] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.224811][ T171] RIP: 0033:0x7f53a658137d [ 9.224815][ T171] 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.224816][ T171] RSP: 002b:00007ffc3dbd2b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.224819][ T171] RAX: ffffffffffffffda RBX: 000055d1bc5d5700 RCX: 00007f53a658137d [ 9.224821][ T171] RDX: 0000000000000000 RSI: 000055d180a22ffd RDI: 0000000000000005 [ 9.224821][ T171] RBP: 00007ffc3dbd2c20 R08: 0000000000000000 R09: 0000000000000000 [ 9.224822][ T171] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d180a22ffd [ 9.224823][ T171] R13: 000055d1bc5d5810 R14: 0000000000040000 R15: 0000000000000000 [ 9.224830][ T171] [ 12.531157][ T158] netconsole selftest: netcons_O5P8n [ 12.531180][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.531183][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.531185][ T158] preempt_count: 1, expected: 0 [ 12.531186][ T158] RCU nest depth: 0, expected: 0 [ 12.531187][ T158] locks held by bash/158: 4, last CPU#0: [ 12.531189][ T158] #0: ffffffffaa999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.531207][ T158] #1: ffffffffaa999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.531212][ T158] #2: ffffffffaa889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.531216][ T158] #3: ffffffffaa889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.531220][ T158] irq event stamp: 142254 [ 12.531222][ T158] hardirqs last enabled at (142253): [] __down_trylock_console_sem+0x86/0xa0 [ 12.531224][ T158] hardirqs last disabled at (142254): [] console_emit_next_record+0x3f8/0x4f0 [ 12.531226][ T158] softirqs last enabled at (142092): [] handle_softirqs+0x67c/0x900 [ 12.531230][ T158] softirqs last disabled at (142085): [] __irq_exit_rcu+0x145/0x1c0 [ 12.531233][ T158] Preemption disabled at: [ 12.531234][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.531240][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.531244][ T158] Tainted: [W]=WARN [ 12.531245][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.531246][ T158] Call Trace: [ 12.531248][ T158] [ 12.531250][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.531255][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.531258][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.531262][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.531265][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.531270][ T158] __kmalloc_noprof+0x443/0x760 [ 12.531272][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.531278][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.531281][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.531284][ T158] put_chars+0x1e1/0x2f0 [ 12.531287][ T158] ? __send_to_port+0x420/0x420 [ 12.531288][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.531292][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.531295][ T158] ? validate_chain+0x38b/0xc20 [ 12.531299][ T158] hvc_console_print+0x292/0x780 [ 12.531301][ T158] ? __lock_acquire+0x518/0xc20 [ 12.531303][ T158] ? __lock_acquire+0x518/0xc20 [ 12.531307][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.531311][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.531313][ T158] ? lock_acquire+0x13c/0x160 [ 12.531317][ T158] console_emit_next_record+0x252/0x4f0 [ 12.531321][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.531325][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.531327][ T158] ? lock_acquire+0x13c/0x160 [ 12.531331][ T158] console_flush_one_record+0x46f/0x710 [ 12.531335][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.531337][ T158] ? __lock_acquire+0x518/0xc20 [ 12.531341][ T158] console_unlock+0xee/0x1f0 [ 12.531344][ T158] ? console_flush_one_record+0x710/0x710 [ 12.531346][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.531348][ T158] ? lock_acquire+0x60/0x160 [ 12.531351][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.531352][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.531356][ T158] vprintk_emit+0x37c/0x3e0 [ 12.531359][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.531362][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.531367][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.531372][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.531376][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.531377][ T158] ? idr_get_free+0x830/0x830 [ 12.531381][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.531384][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.531387][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.531390][ T158] ? vprintk_default+0x20/0x20 [ 12.531391][ T158] ? handle_pte_fault+0x448/0x710 [ 12.531396][ T158] ? do_numa_page.isra.0+0xa70/0xa70 [ 12.531399][ T158] ? vprintk_default+0x20/0x20 [ 12.531401][ T158] new_sync_write+0x33e/0x760 [ 12.531406][ T158] ? new_sync_read+0x750/0x750 [ 12.531407][ T158] ? lock_vma_under_rcu+0x159/0x410 [ 12.531416][ T158] vfs_write+0x6a2/0xbd0 [ 12.531420][ T158] ksys_write+0x116/0x250 [ 12.531422][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.531425][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.531427][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.531430][ T158] do_syscall_64+0xff/0x530 [ 12.531432][ T158] ? exc_page_fault+0xee/0x100 [ 12.531435][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.531438][ T158] RIP: 0033:0x7f2840fee54e [ 12.531442][ T158] 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 [ 12.531443][ T158] RSP: 002b:00007ffde420e740 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.531447][ T158] RAX: ffffffffffffffda RBX: 00007f284116f580 RCX: 00007f2840fee54e [ 12.531448][ T158] RDX: 0000000000000023 RSI: 000055a86a2e8790 RDI: 0000000000000001 [ 12.531449][ T158] RBP: 00007ffde420e750 R08: 0000000000000000 R09: 0000000000000000 [ 12.531450][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.531451][ T158] R13: 0000000000000023 R14: 000055a86a2e8790 R15: 0000000000000000 [ 12.531458][ T158] [ 14.073012][ T158] netconsole selftest: netcons_O5P8n [ 14.073028][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.073032][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 14.073034][ T158] preempt_count: 1, expected: 0 [ 14.073035][ T158] RCU nest depth: 0, expected: 0 [ 14.073036][ T158] locks held by bash/158: 4, last CPU#0: [ 14.073038][ T158] #0: ffffffffaa999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.073050][ T158] #1: ffffffffaa999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.073055][ T158] #2: ffffffffaa889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.073059][ T158] #3: ffffffffaa889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.073063][ T158] irq event stamp: 174002 [ 14.073065][ T158] hardirqs last enabled at (174001): [] __down_trylock_console_sem+0x86/0xa0 [ 14.073067][ T158] hardirqs last disabled at (174002): [] console_emit_next_record+0x3f8/0x4f0 [ 14.073069][ T158] softirqs last enabled at (173992): [] handle_softirqs+0x67c/0x900 [ 14.073073][ T158] softirqs last disabled at (173981): [] __irq_exit_rcu+0x145/0x1c0 [ 14.073076][ T158] Preemption disabled at: [ 14.073076][ T158] [] vprintk_emit+0x31b/0x3e0 [ 14.073082][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.073086][ T158] Tainted: [W]=WARN [ 14.073087][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.073089][ T158] Call Trace: [ 14.073091][ T158] [ 14.073092][ T158] dump_stack_lvl+0x6f/0xa0 [ 14.073097][ T158] ? vprintk_emit+0x31b/0x3e0 [ 14.073099][ T158] __might_resched.cold+0x1fe/0x2c1 [ 14.073104][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.073107][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 14.073112][ T158] __kmalloc_noprof+0x443/0x760 [ 14.073114][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 14.073120][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 14.073122][ T158] alloc_buf.isra.0+0x4b/0x260 [ 14.073125][ T158] put_chars+0x1e1/0x2f0 [ 14.073128][ T158] ? __send_to_port+0x420/0x420 [ 14.073130][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 14.073133][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.073136][ T158] ? validate_chain+0x38b/0xc20 [ 14.073140][ T158] hvc_console_print+0x292/0x780 [ 14.073142][ T158] ? __lock_acquire+0x518/0xc20 [ 14.073144][ T158] ? __lock_acquire+0x518/0xc20 [ 14.073148][ T158] ? hvc_write+0x3a0/0x3a0 [ 14.073151][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.073154][ T158] ? lock_acquire+0x13c/0x160 [ 14.073158][ T158] console_emit_next_record+0x252/0x4f0 [ 14.073161][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 14.073165][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.073167][ T158] ? lock_acquire+0x13c/0x160 [ 14.073171][ T158] console_flush_one_record+0x46f/0x710 [ 14.073175][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 14.073177][ T158] ? __lock_acquire+0x518/0xc20 [ 14.073182][ T158] console_unlock+0xee/0x1f0 [ 14.073185][ T158] ? console_flush_one_record+0x710/0x710 [ 14.073186][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.073188][ T158] ? lock_acquire+0x60/0x160 [ 14.073192][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.073193][ T158] ? vprintk_emit+0x320/0x3e0 [ 14.073196][ T158] vprintk_emit+0x37c/0x3e0 [ 14.073204][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 14.073207][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 14.073212][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.073216][ T158] ? vprintk_emit.cold+0x107/0x107 [ 14.073220][ T158] ? __kmalloc_noprof+0x302/0x760 [ 14.073222][ T158] ? idr_get_free+0x830/0x830 [ 14.073226][ T158] ? devkmsg_write+0xd1/0x2c0 [ 14.073229][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 14.073231][ T158] devkmsg_write.cold+0x5a/0x8b [ 14.073234][ T158] ? vprintk_default+0x20/0x20 [ 14.073236][ T158] ? __lock_acquire+0x518/0xc20 [ 14.073238][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 14.073242][ T158] ? vprintk_default+0x20/0x20 [ 14.073245][ T158] new_sync_write+0x33e/0x760 [ 14.073250][ T158] ? new_sync_read+0x750/0x750 [ 14.073251][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.073259][ T158] vfs_write+0x6a2/0xbd0 [ 14.073263][ T158] ksys_write+0x116/0x250 [ 14.073266][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 14.073268][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 14.073270][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.073274][ T158] do_syscall_64+0xff/0x530 [ 14.073276][ T158] ? exc_page_fault+0xee/0x100 [ 14.073279][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.073282][ T158] RIP: 0033:0x7f2840fee54e [ 14.073285][ T158] 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.073287][ T158] RSP: 002b:00007ffde420e740 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.073290][ T158] RAX: ffffffffffffffda RBX: 00007f284116f580 RCX: 00007f2840fee54e [ 14.073291][ T158] RDX: 0000000000000023 RSI: 000055a86a2e8790 RDI: 0000000000000001 [ 14.073292][ T158] RBP: 00007ffde420e750 R08: 0000000000000000 R09: 0000000000000000 [ 14.073293][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.073294][ T158] R13: 0000000000000023 R14: 000055a86a2e8790 R15: 0000000000000000 [ 14.073301][ T158] [ 15.551025][ T158] netconsole selftest: netcons_O5P8n [ 15.551053][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.551056][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.551058][ T158] preempt_count: 1, expected: 0 [ 15.551059][ T158] RCU nest depth: 0, expected: 0 [ 15.551060][ T158] locks held by bash/158: 4, last CPU#3: [ 15.551063][ T158] #0: ffffffffaa999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.551077][ T158] #1: ffffffffaa999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.551082][ T158] #2: ffffffffaa889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.551086][ T158] #3: ffffffffaa889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.551090][ T158] irq event stamp: 195814 [ 15.551092][ T158] hardirqs last enabled at (195813): [] __down_trylock_console_sem+0x86/0xa0 [ 15.551095][ T158] hardirqs last disabled at (195814): [] console_emit_next_record+0x3f8/0x4f0 [ 15.551097][ T158] softirqs last enabled at (195794): [] handle_softirqs+0x67c/0x900 [ 15.551101][ T158] softirqs last disabled at (195787): [] __irq_exit_rcu+0x145/0x1c0 [ 15.551104][ T158] Preemption disabled at: [ 15.551104][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.551110][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.551114][ T158] Tainted: [W]=WARN [ 15.551115][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.551117][ T158] Call Trace: [ 15.551119][ T158] [ 15.551120][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.551126][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.551128][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.551133][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.551137][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.551142][ T158] __kmalloc_noprof+0x443/0x760 [ 15.551144][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.551150][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.551152][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.551156][ T158] put_chars+0x1e1/0x2f0 [ 15.551159][ T158] ? __send_to_port+0x420/0x420 [ 15.551160][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.551164][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.551167][ T158] ? validate_chain+0x38b/0xc20 [ 15.551171][ T158] hvc_console_print+0x292/0x780 [ 15.551174][ T158] ? __lock_acquire+0x518/0xc20 [ 15.551176][ T158] ? __lock_acquire+0x518/0xc20 [ 15.551180][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.551183][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.551186][ T158] ? lock_acquire+0x13c/0x160 [ 15.551190][ T158] console_emit_next_record+0x252/0x4f0 [ 15.551193][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.551198][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.551200][ T158] ? lock_acquire+0x13c/0x160 [ 15.551209][ T158] console_flush_one_record+0x46f/0x710 [ 15.551213][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.551215][ T158] ? __lock_acquire+0x518/0xc20 [ 15.551220][ T158] console_unlock+0xee/0x1f0 [ 15.551222][ T158] ? console_flush_one_record+0x710/0x710 [ 15.551224][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.551226][ T158] ? lock_acquire+0x60/0x160 [ 15.551229][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.551231][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.551234][ T158] vprintk_emit+0x37c/0x3e0 [ 15.551237][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.551240][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.551246][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.551250][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.551254][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.551256][ T158] ? idr_get_free+0x830/0x830 [ 15.551260][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.551263][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.551265][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.551268][ T158] ? vprintk_default+0x20/0x20 [ 15.551270][ T158] ? __lock_acquire+0x518/0xc20 [ 15.551272][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.551276][ T158] ? vprintk_default+0x20/0x20 [ 15.551279][ T158] new_sync_write+0x33e/0x760 [ 15.551283][ T158] ? new_sync_read+0x750/0x750 [ 15.551285][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.551293][ T158] vfs_write+0x6a2/0xbd0 [ 15.551297][ T158] ksys_write+0x116/0x250 [ 15.551300][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.551301][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.551304][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.551307][ T158] do_syscall_64+0xff/0x530 [ 15.551310][ T158] ? exc_page_fault+0xee/0x100 [ 15.551313][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.551316][ T158] RIP: 0033:0x7f2840fee54e [ 15.551319][ T158] 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.551321][ T158] RSP: 002b:00007ffde420e740 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.551324][ T158] RAX: ffffffffffffffda RBX: 00007f284116f580 RCX: 00007f2840fee54e [ 15.551326][ T158] RDX: 0000000000000023 RSI: 000055a86a2e8790 RDI: 0000000000000001 [ 15.551327][ T158] RBP: 00007ffde420e750 R08: 0000000000000000 R09: 0000000000000000 [ 15.551328][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.551329][ T158] R13: 0000000000000023 R14: 000055a86a2e8790 R15: 0000000000000000 [ 15.551335][ T158] [ 17.184215][ T158] netconsole selftest: netcons_O5P8n [ 17.184240][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.184244][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 17.184246][ T158] preempt_count: 1, expected: 0 [ 17.184247][ T158] RCU nest depth: 0, expected: 0 [ 17.184248][ T158] locks held by bash/158: 4, last CPU#0: [ 17.184250][ T158] #0: ffffffffaa999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.184262][ T158] #1: ffffffffaa999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.184266][ T158] #2: ffffffffaa889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.184271][ T158] #3: ffffffffaa889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.184275][ T158] irq event stamp: 221444 [ 17.184277][ T158] hardirqs last enabled at (221443): [] __down_trylock_console_sem+0x86/0xa0 [ 17.184279][ T158] hardirqs last disabled at (221444): [] console_emit_next_record+0x3f8/0x4f0 [ 17.184281][ T158] softirqs last enabled at (221262): [] restore_fpregs_from_user+0x1cf/0x490 [ 17.184284][ T158] softirqs last disabled at (221260): [] restore_fpregs_from_user+0xc3/0x490 [ 17.184286][ T158] Preemption disabled at: [ 17.184287][ T158] [] vprintk_emit+0x31b/0x3e0 [ 17.184293][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.184296][ T158] Tainted: [W]=WARN [ 17.184297][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.184300][ T158] Call Trace: [ 17.184302][ T158] [ 17.184303][ T158] dump_stack_lvl+0x6f/0xa0 [ 17.184308][ T158] ? vprintk_emit+0x31b/0x3e0 [ 17.184310][ T158] __might_resched.cold+0x1fe/0x2c1 [ 17.184315][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.184319][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 17.184323][ T158] __kmalloc_noprof+0x443/0x760 [ 17.184325][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 17.184331][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.184333][ T158] alloc_buf.isra.0+0x4b/0x260 [ 17.184336][ T158] put_chars+0x1e1/0x2f0 [ 17.184339][ T158] ? __send_to_port+0x420/0x420 [ 17.184340][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 17.184343][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.184346][ T158] ? validate_chain+0x38b/0xc20 [ 17.184351][ T158] hvc_console_print+0x292/0x780 [ 17.184353][ T158] ? __lock_acquire+0x518/0xc20 [ 17.184355][ T158] ? __lock_acquire+0x518/0xc20 [ 17.184359][ T158] ? hvc_write+0x3a0/0x3a0 [ 17.184362][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.184365][ T158] ? lock_acquire+0x13c/0x160 [ 17.184368][ T158] console_emit_next_record+0x252/0x4f0 [ 17.184372][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 17.184376][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.184378][ T158] ? lock_acquire+0x13c/0x160 [ 17.184382][ T158] console_flush_one_record+0x46f/0x710 [ 17.184386][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 17.184388][ T158] ? __lock_acquire+0x518/0xc20 [ 17.184393][ T158] console_unlock+0xee/0x1f0 [ 17.184395][ T158] ? console_flush_one_record+0x710/0x710 [ 17.184397][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.184399][ T158] ? lock_acquire+0x60/0x160 [ 17.184403][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.184404][ T158] ? vprintk_emit+0x320/0x3e0 [ 17.184407][ T158] vprintk_emit+0x37c/0x3e0 [ 17.184411][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 17.184414][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.184420][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.184424][ T158] ? vprintk_emit.cold+0x107/0x107 [ 17.184428][ T158] ? __kmalloc_noprof+0x302/0x760 [ 17.184430][ T158] ? idr_get_free+0x830/0x830 [ 17.184433][ T158] ? devkmsg_write+0xd1/0x2c0 [ 17.184436][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.184439][ T158] devkmsg_write.cold+0x5a/0x8b [ 17.184442][ T158] ? vprintk_default+0x20/0x20 [ 17.184444][ T158] ? __lock_acquire+0x518/0xc20 [ 17.184446][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 17.184450][ T158] ? vprintk_default+0x20/0x20 [ 17.184453][ T158] new_sync_write+0x33e/0x760 [ 17.184457][ T158] ? new_sync_read+0x750/0x750 [ 17.184459][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.184467][ T158] vfs_write+0x6a2/0xbd0 [ 17.184471][ T158] ksys_write+0x116/0x250 [ 17.184474][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 17.184476][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.184478][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.184482][ T158] do_syscall_64+0xff/0x530 [ 17.184484][ T158] ? exc_page_fault+0xee/0x100 [ 17.184487][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.184489][ T158] RIP: 0033:0x7f2840fee54e [ 17.184493][ T158] 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 [ 17.184495][ T158] RSP: 002b:00007ffde420e740 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.184498][ T158] RAX: ffffffffffffffda RBX: 00007f284116f580 RCX: 00007f2840fee54e [ 17.184499][ T158] RDX: 0000000000000023 RSI: 000055a86a2e8790 RDI: 0000000000000001 [ 17.184500][ T158] RBP: 00007ffde420e750 R08: 0000000000000000 R09: 0000000000000000 [ 17.184502][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.184503][ T158] R13: 0000000000000023 R14: 000055a86a2e8790 R15: 0000000000000000 [ 17.184510][ T158]