[ 9.552344][ T170] netconsole: network logging started [ 9.552365][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.552368][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 9.552370][ T170] preempt_count: 1, expected: 0 [ 9.552372][ T170] RCU nest depth: 0, expected: 0 [ 9.552373][ T170] locks held by modprobe/170: 4, last CPU#0: [ 9.552377][ T170] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.552392][ T170] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.552399][ T170] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.552404][ T170] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.552410][ T170] irq event stamp: 40330 [ 9.552411][ T170] hardirqs last enabled at (40329): [] __down_trylock_console_sem+0x86/0xa0 [ 9.552414][ T170] hardirqs last disabled at (40330): [] console_emit_next_record+0x3f8/0x4f0 [ 9.552416][ T170] softirqs last enabled at (40200): [] handle_softirqs+0x67c/0x900 [ 9.552421][ T170] softirqs last disabled at (40193): [] __irq_exit_rcu+0x145/0x1c0 [ 9.552425][ T170] Preemption disabled at: [ 9.552426][ T170] [] vprintk_emit+0x31b/0x3e0 [ 9.552433][ T170] CPU: 0 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.552438][ T170] Tainted: [W]=WARN [ 9.552439][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.552441][ T170] Call Trace: [ 9.552443][ T170] [ 9.552446][ T170] dump_stack_lvl+0x6f/0xa0 [ 9.552452][ T170] ? vprintk_emit+0x31b/0x3e0 [ 9.552455][ T170] __might_resched.cold+0x1fe/0x2c1 [ 9.552462][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.552467][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 9.552473][ T170] __kmalloc_noprof+0x443/0x760 [ 9.552477][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 9.552485][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.552488][ T170] alloc_buf.isra.0+0x4b/0x260 [ 9.552494][ T170] put_chars+0x1e1/0x2f0 [ 9.552498][ T170] ? __send_to_port+0x420/0x420 [ 9.552503][ T170] ? validate_chain+0x38b/0xc20 [ 9.552511][ T170] hvc_console_print+0x292/0x780 [ 9.552521][ T170] ? hvc_write+0x3a0/0x3a0 [ 9.552525][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.552530][ T170] ? lock_acquire+0x13c/0x160 [ 9.552537][ T170] console_emit_next_record+0x252/0x4f0 [ 9.552543][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 9.552549][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.552553][ T170] ? lock_acquire+0x13c/0x160 [ 9.552559][ T170] console_flush_one_record+0x46f/0x710 [ 9.552566][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 9.552568][ T170] ? __lock_acquire+0x518/0xc20 [ 9.552577][ T170] console_unlock+0xee/0x1f0 [ 9.552581][ T170] ? console_flush_one_record+0x710/0x710 [ 9.552583][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.552587][ T170] ? lock_acquire+0x60/0x160 [ 9.552592][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.552594][ T170] ? vprintk_emit+0x320/0x3e0 [ 9.552600][ T170] vprintk_emit+0x37c/0x3e0 [ 9.552606][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 9.552608][ T170] ? find_held_lock+0x2b/0x80 [ 9.552614][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 9.552616][ T170] ? fast_dput+0x316/0x540 [ 9.552623][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.552629][ T170] _printk+0xc7/0x100 [ 9.552634][ T170] ? snapshot_read.cold+0x21/0x21 [ 9.552638][ T170] ? __up_write+0x2e5/0x5f0 [ 9.552644][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.552651][ T170] ? configfs_register_subsystem+0x340/0x570 [ 9.552657][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.552663][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.552676][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.552681][ T170] do_one_initcall+0x124/0x4f0 [ 9.552686][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.552695][ T170] ? do_init_module+0xae/0x8a0 [ 9.552698][ T170] ? kasan_unpoison+0x44/0x70 [ 9.552706][ T170] do_init_module+0x2ad/0x8a0 [ 9.552711][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 9.552717][ T170] ? free_module+0x470/0x470 [ 9.552722][ T170] ? kfree+0x123/0x590 [ 9.552728][ T170] load_module+0x1424/0x1bb0 [ 9.552740][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.552746][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.552751][ T170] ? find_held_lock+0x2b/0x80 [ 9.552756][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.552762][ T170] init_module_from_file+0x11f/0x1a0 [ 9.552768][ T170] ? __do_sys_init_module+0x220/0x220 [ 9.552781][ T170] ? __rwlock_init+0x150/0x150 [ 9.552787][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.552791][ T170] idempotent_init_module+0x37b/0x7c0 [ 9.552797][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 9.552807][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.552810][ T170] ? cap_capable+0x1d7/0x3d0 [ 9.552819][ T170] __x64_sys_finit_module+0xdf/0x190 [ 9.552822][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.552828][ T170] do_syscall_64+0xff/0x530 [ 9.552831][ T170] ? exc_page_fault+0xee/0x100 [ 9.552835][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.552839][ T170] RIP: 0033:0x7fb68838837d [ 9.552844][ T170] 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.552847][ T170] RSP: 002b:00007ffffb88be08 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.552851][ T170] RAX: ffffffffffffffda RBX: 000055bdb20fa700 RCX: 00007fb68838837d [ 9.552852][ T170] RDX: 0000000000000000 RSI: 000055bda7c0dffd RDI: 0000000000000005 [ 9.552854][ T170] RBP: 00007ffffb88bea0 R08: 0000000000000000 R09: 0000000000000000 [ 9.552855][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055bda7c0dffd [ 9.552857][ T170] R13: 000055bdb20fa810 R14: 0000000000040000 R15: 0000000000000000 [ 9.552869][ T170] [ 13.127402][ T158] netconsole selftest: netcons_aJfpw [ 13.127429][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.127431][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.127433][ T158] preempt_count: 1, expected: 0 [ 13.127434][ T158] RCU nest depth: 0, expected: 0 [ 13.127436][ T158] locks held by bash/158: 4, last CPU#1: [ 13.127438][ T158] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.127452][ T158] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.127456][ T158] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.127461][ T158] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.127465][ T158] irq event stamp: 130354 [ 13.127467][ T158] hardirqs last enabled at (130353): [] __down_trylock_console_sem+0x86/0xa0 [ 13.127469][ T158] hardirqs last disabled at (130354): [] console_emit_next_record+0x3f8/0x4f0 [ 13.127471][ T158] softirqs last enabled at (130144): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.127475][ T158] softirqs last disabled at (130142): [] restore_fpregs_from_user+0xc3/0x490 [ 13.127477][ T158] Preemption disabled at: [ 13.127477][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.127484][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.127487][ T158] Tainted: [W]=WARN [ 13.127488][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.127490][ T158] Call Trace: [ 13.127492][ T158] [ 13.127493][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.127499][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.127501][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.127505][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.127509][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.127513][ T158] __kmalloc_noprof+0x443/0x760 [ 13.127515][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.127521][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.127523][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.127526][ T158] put_chars+0x1e1/0x2f0 [ 13.127529][ T158] ? __send_to_port+0x420/0x420 [ 13.127531][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.127534][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.127537][ T158] ? validate_chain+0x38b/0xc20 [ 13.127541][ T158] hvc_console_print+0x292/0x780 [ 13.127544][ T158] ? __lock_acquire+0x518/0xc20 [ 13.127545][ T158] ? __lock_acquire+0x518/0xc20 [ 13.127549][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.127552][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.127556][ T158] ? lock_acquire+0x13c/0x160 [ 13.127559][ T158] console_emit_next_record+0x252/0x4f0 [ 13.127563][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.127567][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.127569][ T158] ? lock_acquire+0x13c/0x160 [ 13.127572][ T158] console_flush_one_record+0x46f/0x710 [ 13.127576][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.127578][ T158] ? __lock_acquire+0x518/0xc20 [ 13.127583][ T158] console_unlock+0xee/0x1f0 [ 13.127585][ T158] ? console_flush_one_record+0x710/0x710 [ 13.127587][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.127589][ T158] ? lock_acquire+0x60/0x160 [ 13.127592][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.127594][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.127597][ T158] vprintk_emit+0x37c/0x3e0 [ 13.127600][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.127603][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.127609][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.127613][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.127616][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.127618][ T158] ? idr_get_free+0x830/0x830 [ 13.127622][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.127625][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.127628][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.127630][ T158] ? vprintk_default+0x20/0x20 [ 13.127632][ T158] ? __lock_acquire+0x518/0xc20 [ 13.127634][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.127638][ T158] ? vprintk_default+0x20/0x20 [ 13.127641][ T158] new_sync_write+0x33e/0x760 [ 13.127645][ T158] ? new_sync_read+0x750/0x750 [ 13.127647][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.127654][ T158] vfs_write+0x6a2/0xbd0 [ 13.127659][ T158] ksys_write+0x116/0x250 [ 13.127661][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.127663][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.127666][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.127669][ T158] do_syscall_64+0xff/0x530 [ 13.127671][ T158] ? exc_page_fault+0xee/0x100 [ 13.127674][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.127677][ T158] RIP: 0033:0x7f237e88054e [ 13.127681][ 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 [ 13.127683][ T158] RSP: 002b:00007ffe1a859d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.127686][ T158] RAX: ffffffffffffffda RBX: 00007f237ea01580 RCX: 00007f237e88054e [ 13.127687][ T158] RDX: 0000000000000023 RSI: 0000561946d6eab0 RDI: 0000000000000001 [ 13.127688][ T158] RBP: 00007ffe1a859d40 R08: 0000000000000000 R09: 0000000000000000 [ 13.127689][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.127690][ T158] R13: 0000000000000023 R14: 0000561946d6eab0 R15: 0000000000000000 [ 13.127697][ T158] [ 16.936093][ T158] netconsole selftest: netcons_aJfpw [ 16.936319][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.936322][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 16.936323][ T158] preempt_count: 1, expected: 0 [ 16.936324][ T158] RCU nest depth: 0, expected: 0 [ 16.936326][ T158] locks held by bash/158: 4, last CPU#2: [ 16.936328][ T158] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.936342][ T158] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.936346][ T158] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.936350][ T158] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 16.936355][ T158] irq event stamp: 253248 [ 16.936356][ T158] hardirqs last enabled at (253247): [] __down_trylock_console_sem+0x86/0xa0 [ 16.936358][ T158] hardirqs last disabled at (253248): [] console_emit_next_record+0x3f8/0x4f0 [ 16.936360][ T158] softirqs last enabled at (253132): [] handle_softirqs+0x67c/0x900 [ 16.936364][ T158] softirqs last disabled at (253117): [] __irq_exit_rcu+0x145/0x1c0 [ 16.936367][ T158] Preemption disabled at: [ 16.936367][ T158] [] vprintk_emit+0x31b/0x3e0 [ 16.936373][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.936377][ T158] Tainted: [W]=WARN [ 16.936378][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.936380][ T158] Call Trace: [ 16.936381][ T158] [ 16.936383][ T158] dump_stack_lvl+0x6f/0xa0 [ 16.936389][ T158] ? vprintk_emit+0x31b/0x3e0 [ 16.936391][ T158] __might_resched.cold+0x1fe/0x2c1 [ 16.936395][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.936399][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 16.936404][ T158] __kmalloc_noprof+0x443/0x760 [ 16.936406][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 16.936411][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 16.936414][ T158] alloc_buf.isra.0+0x4b/0x260 [ 16.936417][ T158] put_chars+0x1e1/0x2f0 [ 16.936420][ T158] ? __send_to_port+0x420/0x420 [ 16.936421][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 16.936424][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.936427][ T158] ? validate_chain+0x38b/0xc20 [ 16.936431][ T158] hvc_console_print+0x292/0x780 [ 16.936434][ T158] ? __lock_acquire+0x518/0xc20 [ 16.936436][ T158] ? __lock_acquire+0x518/0xc20 [ 16.936440][ T158] ? hvc_write+0x3a0/0x3a0 [ 16.936443][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.936446][ T158] ? lock_acquire+0x13c/0x160 [ 16.936449][ T158] console_emit_next_record+0x252/0x4f0 [ 16.936453][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 16.936457][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.936459][ T158] ? lock_acquire+0x13c/0x160 [ 16.936462][ T158] console_flush_one_record+0x46f/0x710 [ 16.936466][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 16.936468][ T158] ? __lock_acquire+0x518/0xc20 [ 16.936473][ T158] console_unlock+0xee/0x1f0 [ 16.936475][ T158] ? console_flush_one_record+0x710/0x710 [ 16.936477][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.936479][ T158] ? lock_acquire+0x60/0x160 [ 16.936482][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.936484][ T158] ? vprintk_emit+0x320/0x3e0 [ 16.936487][ T158] vprintk_emit+0x37c/0x3e0 [ 16.936490][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 16.936493][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 16.936499][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 16.936503][ T158] ? vprintk_emit.cold+0x107/0x107 [ 16.936507][ T158] ? __kmalloc_noprof+0x302/0x760 [ 16.936509][ T158] ? idr_get_free+0x830/0x830 [ 16.936513][ T158] ? devkmsg_write+0xd1/0x2c0 [ 16.936516][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 16.936518][ T158] devkmsg_write.cold+0x5a/0x8b [ 16.936521][ T158] ? vprintk_default+0x20/0x20 [ 16.936523][ T158] ? __lock_acquire+0x518/0xc20 [ 16.936525][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 16.936529][ T158] ? vprintk_default+0x20/0x20 [ 16.936531][ T158] new_sync_write+0x33e/0x760 [ 16.936537][ T158] ? new_sync_read+0x750/0x750 [ 16.936538][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.936546][ T158] vfs_write+0x6a2/0xbd0 [ 16.936550][ T158] ksys_write+0x116/0x250 [ 16.936553][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 16.936554][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 16.936557][ T158] ? rcu_is_watching+0x16/0xd0 [ 16.936560][ T158] do_syscall_64+0xff/0x530 [ 16.936563][ T158] ? exc_page_fault+0xee/0x100 [ 16.936566][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.936568][ T158] RIP: 0033:0x7f237e88054e [ 16.936572][ 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 [ 16.936574][ T158] RSP: 002b:00007ffe1a859d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 16.936577][ T158] RAX: ffffffffffffffda RBX: 00007f237ea01580 RCX: 00007f237e88054e [ 16.936579][ T158] RDX: 0000000000000023 RSI: 0000561946d6eab0 RDI: 0000000000000001 [ 16.936580][ T158] RBP: 00007ffe1a859d40 R08: 0000000000000000 R09: 0000000000000000 [ 16.936580][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 16.936581][ T158] R13: 0000000000000023 R14: 0000561946d6eab0 R15: 0000000000000000 [ 16.936588][ T158] [ 20.518459][ T158] netconsole selftest: netcons_aJfpw [ 20.518485][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 20.518488][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 20.518490][ T158] preempt_count: 1, expected: 0 [ 20.518491][ T158] RCU nest depth: 0, expected: 0 [ 20.518492][ T158] locks held by bash/158: 4, last CPU#1: [ 20.518495][ T158] #0: ffffffffb5399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 20.518508][ T158] #1: ffffffffb5399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 20.518512][ T158] #2: ffffffffb5289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 20.518517][ T158] #3: ffffffffb5289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 20.518521][ T158] irq event stamp: 369278 [ 20.518523][ T158] hardirqs last enabled at (369277): [] __down_trylock_console_sem+0x86/0xa0 [ 20.518525][ T158] hardirqs last disabled at (369278): [] console_emit_next_record+0x3f8/0x4f0 [ 20.518527][ T158] softirqs last enabled at (369078): [] restore_fpregs_from_user+0x1cf/0x490 [ 20.518531][ T158] softirqs last disabled at (369076): [] restore_fpregs_from_user+0xc3/0x490 [ 20.518533][ T158] Preemption disabled at: [ 20.518534][ T158] [] vprintk_emit+0x31b/0x3e0 [ 20.518540][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 20.518543][ T158] Tainted: [W]=WARN [ 20.518544][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.518546][ T158] Call Trace: [ 20.518548][ T158] [ 20.518550][ T158] dump_stack_lvl+0x6f/0xa0 [ 20.518555][ T158] ? vprintk_emit+0x31b/0x3e0 [ 20.518557][ T158] __might_resched.cold+0x1fe/0x2c1 [ 20.518562][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 20.518565][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 20.518570][ T158] __kmalloc_noprof+0x443/0x760 [ 20.518572][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 20.518578][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 20.518580][ T158] alloc_buf.isra.0+0x4b/0x260 [ 20.518583][ T158] put_chars+0x1e1/0x2f0 [ 20.518586][ T158] ? __send_to_port+0x420/0x420 [ 20.518588][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 20.518591][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 20.518594][ T158] ? validate_chain+0x38b/0xc20 [ 20.518598][ T158] hvc_console_print+0x292/0x780 [ 20.518601][ T158] ? __lock_acquire+0x518/0xc20 [ 20.518602][ T158] ? __lock_acquire+0x518/0xc20 [ 20.518606][ T158] ? hvc_write+0x3a0/0x3a0 [ 20.518609][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.518612][ T158] ? lock_acquire+0x13c/0x160 [ 20.518616][ T158] console_emit_next_record+0x252/0x4f0 [ 20.518619][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 20.518623][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.518626][ T158] ? lock_acquire+0x13c/0x160 [ 20.518629][ T158] console_flush_one_record+0x46f/0x710 [ 20.518633][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 20.518635][ T158] ? __lock_acquire+0x518/0xc20 [ 20.518639][ T158] console_unlock+0xee/0x1f0 [ 20.518642][ T158] ? console_flush_one_record+0x710/0x710 [ 20.518643][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.518646][ T158] ? lock_acquire+0x60/0x160 [ 20.518649][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 20.518650][ T158] ? vprintk_emit+0x320/0x3e0 [ 20.518653][ T158] vprintk_emit+0x37c/0x3e0 [ 20.518657][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 20.518660][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 20.518665][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 20.518669][ T158] ? vprintk_emit.cold+0x107/0x107 [ 20.518673][ T158] ? __kmalloc_noprof+0x302/0x760 [ 20.518675][ T158] ? idr_get_free+0x830/0x830 [ 20.518679][ T158] ? devkmsg_write+0xd1/0x2c0 [ 20.518681][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 20.518684][ T158] devkmsg_write.cold+0x5a/0x8b [ 20.518687][ T158] ? vprintk_default+0x20/0x20 [ 20.518689][ T158] ? __lock_acquire+0x518/0xc20 [ 20.518691][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 20.518695][ T158] ? vprintk_default+0x20/0x20 [ 20.518697][ T158] new_sync_write+0x33e/0x760 [ 20.518702][ T158] ? new_sync_read+0x750/0x750 [ 20.518704][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 20.518711][ T158] vfs_write+0x6a2/0xbd0 [ 20.518715][ T158] ksys_write+0x116/0x250 [ 20.518718][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 20.518720][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 20.518722][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.518726][ T158] do_syscall_64+0xff/0x530 [ 20.518728][ T158] ? exc_page_fault+0xee/0x100 [ 20.518731][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 20.518734][ T158] RIP: 0033:0x7f237e88054e [ 20.518738][ 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 [ 20.518739][ T158] RSP: 002b:00007ffe1a859d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 20.518742][ T158] RAX: ffffffffffffffda RBX: 00007f237ea01580 RCX: 00007f237e88054e [ 20.518744][ T158] RDX: 0000000000000023 RSI: 0000561946d6eab0 RDI: 0000000000000001 [ 20.518745][ T158] RBP: 00007ffe1a859d40 R08: 0000000000000000 R09: 0000000000000000 [ 20.518746][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 20.518747][ T158] R13: 0000000000000023 R14: 0000561946d6eab0 R15: 0000000000000000 [ 20.518753][ T158]