[ 10.344219][ T170] netconsole: network logging started [ 10.344236][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.344238][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 10.344240][ T170] preempt_count: 1, expected: 0 [ 10.344241][ T170] RCU nest depth: 0, expected: 0 [ 10.344242][ T170] locks held by modprobe/170: 4, last CPU#0: [ 10.344244][ T170] #0: ffffffff86399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.344256][ T170] #1: ffffffff86399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.344261][ T170] #2: ffffffff86289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.344264][ T170] #3: ffffffff86289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.344268][ T170] irq event stamp: 44344 [ 10.344269][ T170] hardirqs last enabled at (44343): [] __down_trylock_console_sem+0x86/0xa0 [ 10.344272][ T170] hardirqs last disabled at (44344): [] console_emit_next_record+0x3f8/0x4f0 [ 10.344273][ T170] softirqs last enabled at (44294): [] handle_softirqs+0x67c/0x900 [ 10.344277][ T170] softirqs last disabled at (44283): [] __irq_exit_rcu+0x145/0x1c0 [ 10.344280][ T170] Preemption disabled at: [ 10.344280][ T170] [] vprintk_emit+0x31b/0x3e0 [ 10.344286][ T170] CPU: 0 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.344289][ T170] Tainted: [W]=WARN [ 10.344290][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.344292][ T170] Call Trace: [ 10.344294][ T170] [ 10.344296][ T170] dump_stack_lvl+0x6f/0xa0 [ 10.344301][ T170] ? vprintk_emit+0x31b/0x3e0 [ 10.344303][ T170] __might_resched.cold+0x1fe/0x2c1 [ 10.344308][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.344311][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 10.344316][ T170] __kmalloc_noprof+0x443/0x760 [ 10.344318][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 10.344325][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.344327][ T170] alloc_buf.isra.0+0x4b/0x260 [ 10.344330][ T170] put_chars+0x1e1/0x2f0 [ 10.344333][ T170] ? __send_to_port+0x420/0x420 [ 10.344336][ T170] ? validate_chain+0x38b/0xc20 [ 10.344342][ T170] hvc_console_print+0x292/0x780 [ 10.344348][ T170] ? hvc_write+0x3a0/0x3a0 [ 10.344351][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.344354][ T170] ? lock_acquire+0x13c/0x160 [ 10.344358][ T170] console_emit_next_record+0x252/0x4f0 [ 10.344362][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 10.344367][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.344369][ T170] ? lock_acquire+0x13c/0x160 [ 10.344373][ T170] console_flush_one_record+0x46f/0x710 [ 10.344377][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 10.344378][ T170] ? __lock_acquire+0x518/0xc20 [ 10.344384][ T170] console_unlock+0xee/0x1f0 [ 10.344386][ T170] ? console_flush_one_record+0x710/0x710 [ 10.344388][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.344390][ T170] ? lock_acquire+0x60/0x160 [ 10.344394][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.344395][ T170] ? vprintk_emit+0x320/0x3e0 [ 10.344398][ T170] vprintk_emit+0x37c/0x3e0 [ 10.344402][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 10.344404][ T170] ? find_held_lock+0x2b/0x80 [ 10.344408][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 10.344409][ T170] ? fast_dput+0x316/0x540 [ 10.344414][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.344419][ T170] _printk+0xc7/0x100 [ 10.344422][ T170] ? snapshot_read.cold+0x21/0x21 [ 10.344425][ T170] ? __up_write+0x2e5/0x5f0 [ 10.344429][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.344433][ T170] ? configfs_register_subsystem+0x340/0x570 [ 10.344438][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.344442][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.344449][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.344452][ T170] do_one_initcall+0x124/0x4f0 [ 10.344455][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.344461][ T170] ? do_init_module+0xae/0x8a0 [ 10.344463][ T170] ? kasan_unpoison+0x44/0x70 [ 10.344469][ T170] do_init_module+0x2ad/0x8a0 [ 10.344473][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 10.344477][ T170] ? free_module+0x470/0x470 [ 10.344480][ T170] ? kfree+0x123/0x590 [ 10.344484][ T170] load_module+0x1424/0x1bb0 [ 10.344491][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.344495][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.344498][ T170] ? ovl_real_file+0x172/0x1e0 [ 10.344502][ T170] ? find_held_lock+0x2b/0x80 [ 10.344504][ T170] ? backing_file_read_iter+0x541/0x790 [ 10.344508][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.344512][ T170] init_module_from_file+0x11f/0x1a0 [ 10.344515][ T170] ? __do_sys_init_module+0x220/0x220 [ 10.344524][ T170] ? __rwlock_init+0x150/0x150 [ 10.344527][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.344530][ T170] idempotent_init_module+0x37b/0x7c0 [ 10.344533][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 10.344540][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.344542][ T170] ? cap_capable+0x1d7/0x3d0 [ 10.344548][ T170] __x64_sys_finit_module+0xdf/0x190 [ 10.344550][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.344554][ T170] do_syscall_64+0xff/0x530 [ 10.344556][ T170] ? exc_page_fault+0xee/0x100 [ 10.344560][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.344562][ T170] RIP: 0033:0x7f94980ec37d [ 10.344565][ 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 [ 10.344567][ T170] RSP: 002b:00007ffca66efb78 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.344570][ T170] RAX: ffffffffffffffda RBX: 000055b5219a3700 RCX: 00007f94980ec37d [ 10.344571][ T170] RDX: 0000000000000000 RSI: 000055b4fab2fffd RDI: 0000000000000005 [ 10.344572][ T170] RBP: 00007ffca66efc10 R08: 0000000000000000 R09: 0000000000000000 [ 10.344573][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055b4fab2fffd [ 10.344574][ T170] R13: 000055b5219a3810 R14: 0000000000040000 R15: 0000000000000000 [ 10.344581][ T170] [ 13.923779][ T158] netconsole selftest: netcons_U6n4Q [ 13.923816][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.923826][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.923828][ T158] preempt_count: 1, expected: 0 [ 13.923830][ T158] RCU nest depth: 0, expected: 0 [ 13.923831][ T158] locks held by bash/158: 4, last CPU#3: [ 13.923834][ T158] #0: ffffffff86399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.923851][ T158] #1: ffffffff86399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.923859][ T158] #2: ffffffff86289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.923866][ T158] #3: ffffffff86289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.923873][ T158] irq event stamp: 132768 [ 13.923875][ T158] hardirqs last enabled at (132767): [] __down_trylock_console_sem+0x86/0xa0 [ 13.923879][ T158] hardirqs last disabled at (132768): [] console_emit_next_record+0x3f8/0x4f0 [ 13.923882][ T158] softirqs last enabled at (132544): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.923886][ T158] softirqs last disabled at (132542): [] restore_fpregs_from_user+0xc3/0x490 [ 13.923890][ T158] Preemption disabled at: [ 13.923891][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.923899][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.923904][ T158] Tainted: [W]=WARN [ 13.923905][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.923908][ T158] Call Trace: [ 13.923910][ T158] [ 13.923913][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.923919][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.923922][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.923929][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.923934][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.923941][ T158] __kmalloc_noprof+0x443/0x760 [ 13.923945][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.923953][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.923957][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.923962][ T158] put_chars+0x1e1/0x2f0 [ 13.923967][ T158] ? __send_to_port+0x420/0x420 [ 13.923969][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.923975][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.923978][ T158] ? validate_chain+0x38b/0xc20 [ 13.923986][ T158] hvc_console_print+0x292/0x780 [ 13.923990][ T158] ? __lock_acquire+0x518/0xc20 [ 13.923992][ T158] ? __lock_acquire+0x518/0xc20 [ 13.923998][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.924004][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.924008][ T158] ? lock_acquire+0x13c/0x160 [ 13.924014][ T158] console_emit_next_record+0x252/0x4f0 [ 13.924020][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.924027][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.924031][ T158] ? lock_acquire+0x13c/0x160 [ 13.924037][ T158] console_flush_one_record+0x46f/0x710 [ 13.924044][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.924046][ T158] ? __lock_acquire+0x518/0xc20 [ 13.924055][ T158] console_unlock+0xee/0x1f0 [ 13.924059][ T158] ? console_flush_one_record+0x710/0x710 [ 13.924062][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.924065][ T158] ? lock_acquire+0x60/0x160 [ 13.924071][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.924074][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.924079][ T158] vprintk_emit+0x37c/0x3e0 [ 13.924084][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.924089][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.924103][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.924108][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.924115][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.924118][ T158] ? idr_get_free+0x830/0x830 [ 13.924123][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.924128][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.924132][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.924137][ T158] ? vprintk_default+0x20/0x20 [ 13.924139][ T158] ? __lock_acquire+0x518/0xc20 [ 13.924143][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.924149][ T158] ? vprintk_default+0x20/0x20 [ 13.924152][ T158] new_sync_write+0x33e/0x760 [ 13.924160][ T158] ? new_sync_read+0x750/0x750 [ 13.924162][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.924175][ T158] vfs_write+0x6a2/0xbd0 [ 13.924181][ T158] ksys_write+0x116/0x250 [ 13.924186][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.924188][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.924192][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.924197][ T158] do_syscall_64+0xff/0x530 [ 13.924201][ T158] ? exc_page_fault+0xee/0x100 [ 13.924206][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.924210][ T158] RIP: 0033:0x7fd305c1154e [ 13.924215][ 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.924218][ T158] RSP: 002b:00007ffc34c5ce90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.924224][ T158] RAX: ffffffffffffffda RBX: 00007fd305d92580 RCX: 00007fd305c1154e [ 13.924226][ T158] RDX: 0000000000000023 RSI: 00005584bf972ab0 RDI: 0000000000000001 [ 13.924228][ T158] RBP: 00007ffc34c5cea0 R08: 0000000000000000 R09: 0000000000000000 [ 13.924229][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.924231][ T158] R13: 0000000000000023 R14: 00005584bf972ab0 R15: 0000000000000000 [ 13.924244][ T158] [ 17.856602][ T158] netconsole selftest: netcons_U6n4Q [ 17.856635][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.856638][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 17.856641][ T158] preempt_count: 1, expected: 0 [ 17.856643][ T158] RCU nest depth: 0, expected: 0 [ 17.856644][ T158] locks held by bash/158: 4, last CPU#3: [ 17.856648][ T158] #0: ffffffff86399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.856665][ T158] #1: ffffffff86399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.856673][ T158] #2: ffffffff86289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.856680][ T158] #3: ffffffff86289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.856687][ T158] irq event stamp: 273770 [ 17.856690][ T158] hardirqs last enabled at (273769): [] __down_trylock_console_sem+0x86/0xa0 [ 17.856693][ T158] hardirqs last disabled at (273770): [] console_emit_next_record+0x3f8/0x4f0 [ 17.856696][ T158] softirqs last enabled at (273564): [] restore_fpregs_from_user+0x1cf/0x490 [ 17.856701][ T158] softirqs last disabled at (273562): [] restore_fpregs_from_user+0xc3/0x490 [ 17.856705][ T158] Preemption disabled at: [ 17.856706][ T158] [] vprintk_emit+0x31b/0x3e0 [ 17.856714][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.856719][ T158] Tainted: [W]=WARN [ 17.856720][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.856723][ T158] Call Trace: [ 17.856725][ T158] [ 17.856728][ T158] dump_stack_lvl+0x6f/0xa0 [ 17.856735][ T158] ? vprintk_emit+0x31b/0x3e0 [ 17.856738][ T158] __might_resched.cold+0x1fe/0x2c1 [ 17.856744][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.856750][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 17.856757][ T158] __kmalloc_noprof+0x443/0x760 [ 17.856761][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 17.856770][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.856774][ T158] alloc_buf.isra.0+0x4b/0x260 [ 17.856779][ T158] put_chars+0x1e1/0x2f0 [ 17.856784][ T158] ? __send_to_port+0x420/0x420 [ 17.856786][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 17.856798][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.856802][ T158] ? validate_chain+0x38b/0xc20 [ 17.856809][ T158] hvc_console_print+0x292/0x780 [ 17.856814][ T158] ? __lock_acquire+0x518/0xc20 [ 17.856816][ T158] ? __lock_acquire+0x518/0xc20 [ 17.856824][ T158] ? hvc_write+0x3a0/0x3a0 [ 17.856829][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.856834][ T158] ? lock_acquire+0x13c/0x160 [ 17.856841][ T158] console_emit_next_record+0x252/0x4f0 [ 17.856847][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 17.856854][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.856858][ T158] ? lock_acquire+0x13c/0x160 [ 17.856865][ T158] console_flush_one_record+0x46f/0x710 [ 17.856872][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 17.856874][ T158] ? __lock_acquire+0x518/0xc20 [ 17.856884][ T158] console_unlock+0xee/0x1f0 [ 17.856888][ T158] ? console_flush_one_record+0x710/0x710 [ 17.856891][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.856894][ T158] ? lock_acquire+0x60/0x160 [ 17.856900][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.856903][ T158] ? vprintk_emit+0x320/0x3e0 [ 17.856909][ T158] vprintk_emit+0x37c/0x3e0 [ 17.856914][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 17.856920][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.856928][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.856934][ T158] ? vprintk_emit.cold+0x107/0x107 [ 17.856941][ T158] ? __kmalloc_noprof+0x302/0x760 [ 17.856944][ T158] ? idr_get_free+0x830/0x830 [ 17.856948][ T158] ? devkmsg_write+0xd1/0x2c0 [ 17.856954][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.856958][ T158] devkmsg_write.cold+0x5a/0x8b [ 17.856963][ T158] ? vprintk_default+0x20/0x20 [ 17.856965][ T158] ? __lock_acquire+0x518/0xc20 [ 17.856969][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 17.856976][ T158] ? vprintk_default+0x20/0x20 [ 17.856980][ T158] new_sync_write+0x33e/0x760 [ 17.856988][ T158] ? new_sync_read+0x750/0x750 [ 17.856990][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.857005][ T158] vfs_write+0x6a2/0xbd0 [ 17.857013][ T158] ksys_write+0x116/0x250 [ 17.857018][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 17.857021][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.857025][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.857031][ T158] do_syscall_64+0xff/0x530 [ 17.857034][ T158] ? exc_page_fault+0xee/0x100 [ 17.857040][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.857043][ T158] RIP: 0033:0x7fd305c1154e [ 17.857049][ 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.857052][ T158] RSP: 002b:00007ffc34c5ce90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.857056][ T158] RAX: ffffffffffffffda RBX: 00007fd305d92580 RCX: 00007fd305c1154e [ 17.857058][ T158] RDX: 0000000000000023 RSI: 00005584bf972ab0 RDI: 0000000000000001 [ 17.857060][ T158] RBP: 00007ffc34c5cea0 R08: 0000000000000000 R09: 0000000000000000 [ 17.857062][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.857064][ T158] R13: 0000000000000023 R14: 00005584bf972ab0 R15: 0000000000000000 [ 17.857077][ T158] [ 21.664837][ T158] netconsole selftest: netcons_U6n4Q [ 21.664865][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.664868][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 21.664870][ T158] preempt_count: 1, expected: 0 [ 21.664871][ T158] RCU nest depth: 0, expected: 0 [ 21.664873][ T158] locks held by bash/158: 4, last CPU#0: [ 21.664875][ T158] #0: ffffffff86399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.664888][ T158] #1: ffffffff86399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.664893][ T158] #2: ffffffff86289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.664897][ T158] #3: ffffffff86289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 21.664901][ T158] irq event stamp: 419388 [ 21.664903][ T158] hardirqs last enabled at (419387): [] __down_trylock_console_sem+0x86/0xa0 [ 21.664905][ T158] hardirqs last disabled at (419388): [] console_emit_next_record+0x3f8/0x4f0 [ 21.664907][ T158] softirqs last enabled at (419170): [] restore_fpregs_from_user+0x1cf/0x490 [ 21.664911][ T158] softirqs last disabled at (419168): [] restore_fpregs_from_user+0xc3/0x490 [ 21.664913][ T158] Preemption disabled at: [ 21.664914][ T158] [] vprintk_emit+0x31b/0x3e0 [ 21.664920][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.664924][ T158] Tainted: [W]=WARN [ 21.664924][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.664926][ T158] Call Trace: [ 21.664928][ T158] [ 21.664930][ T158] dump_stack_lvl+0x6f/0xa0 [ 21.664935][ T158] ? vprintk_emit+0x31b/0x3e0 [ 21.664937][ T158] __might_resched.cold+0x1fe/0x2c1 [ 21.664941][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.664945][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 21.664950][ T158] __kmalloc_noprof+0x443/0x760 [ 21.664952][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 21.664958][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 21.664960][ T158] alloc_buf.isra.0+0x4b/0x260 [ 21.664963][ T158] put_chars+0x1e1/0x2f0 [ 21.664966][ T158] ? __send_to_port+0x420/0x420 [ 21.664968][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 21.664971][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 21.664974][ T158] ? validate_chain+0x38b/0xc20 [ 21.664978][ T158] hvc_console_print+0x292/0x780 [ 21.664981][ T158] ? __lock_acquire+0x518/0xc20 [ 21.664982][ T158] ? __lock_acquire+0x518/0xc20 [ 21.664986][ T158] ? hvc_write+0x3a0/0x3a0 [ 21.664989][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.664993][ T158] ? lock_acquire+0x13c/0x160 [ 21.664996][ T158] console_emit_next_record+0x252/0x4f0 [ 21.665000][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 21.665004][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.665006][ T158] ? lock_acquire+0x13c/0x160 [ 21.665010][ T158] console_flush_one_record+0x46f/0x710 [ 21.665014][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 21.665015][ T158] ? __lock_acquire+0x518/0xc20 [ 21.665020][ T158] console_unlock+0xee/0x1f0 [ 21.665023][ T158] ? console_flush_one_record+0x710/0x710 [ 21.665025][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.665027][ T158] ? lock_acquire+0x60/0x160 [ 21.665030][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.665032][ T158] ? vprintk_emit+0x320/0x3e0 [ 21.665035][ T158] vprintk_emit+0x37c/0x3e0 [ 21.665038][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 21.665041][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 21.665047][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 21.665051][ T158] ? vprintk_emit.cold+0x107/0x107 [ 21.665055][ T158] ? __kmalloc_noprof+0x302/0x760 [ 21.665057][ T158] ? idr_get_free+0x830/0x830 [ 21.665061][ T158] ? devkmsg_write+0xd1/0x2c0 [ 21.665064][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 21.665066][ T158] devkmsg_write.cold+0x5a/0x8b [ 21.665069][ T158] ? vprintk_default+0x20/0x20 [ 21.665071][ T158] ? __lock_acquire+0x518/0xc20 [ 21.665073][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 21.665077][ T158] ? vprintk_default+0x20/0x20 [ 21.665080][ T158] new_sync_write+0x33e/0x760 [ 21.665085][ T158] ? new_sync_read+0x750/0x750 [ 21.665086][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 21.665094][ T158] vfs_write+0x6a2/0xbd0 [ 21.665101][ T158] ksys_write+0x116/0x250 [ 21.665104][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 21.665106][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 21.665109][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.665112][ T158] do_syscall_64+0xff/0x530 [ 21.665114][ T158] ? exc_page_fault+0xee/0x100 [ 21.665117][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.665120][ T158] RIP: 0033:0x7fd305c1154e [ 21.665124][ 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 [ 21.665125][ T158] RSP: 002b:00007ffc34c5ce90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 21.665129][ T158] RAX: ffffffffffffffda RBX: 00007fd305d92580 RCX: 00007fd305c1154e [ 21.665130][ T158] RDX: 0000000000000023 RSI: 00005584bf972ab0 RDI: 0000000000000001 [ 21.665131][ T158] RBP: 00007ffc34c5cea0 R08: 0000000000000000 R09: 0000000000000000 [ 21.665132][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 21.665133][ T158] R13: 0000000000000023 R14: 00005584bf972ab0 R15: 0000000000000000 [ 21.665140][ T158] [ 25.725237][ T158] netconsole selftest: netcons_U6n4Q [ 25.725263][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 25.725266][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 25.725268][ T158] preempt_count: 1, expected: 0 [ 25.725269][ T158] RCU nest depth: 0, expected: 0 [ 25.725270][ T158] locks held by bash/158: 4, last CPU#2: [ 25.725273][ T158] #0: ffffffff86399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 25.725286][ T158] #1: ffffffff86399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 25.725291][ T158] #2: ffffffff86289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 25.725295][ T158] #3: ffffffff86289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 25.725300][ T158] irq event stamp: 559736 [ 25.725301][ T158] hardirqs last enabled at (559735): [] __down_trylock_console_sem+0x86/0xa0 [ 25.725304][ T158] hardirqs last disabled at (559736): [] console_emit_next_record+0x3f8/0x4f0 [ 25.725306][ T158] softirqs last enabled at (559646): [] handle_softirqs+0x67c/0x900 [ 25.725309][ T158] softirqs last disabled at (559639): [] __irq_exit_rcu+0x145/0x1c0 [ 25.725312][ T158] Preemption disabled at: [ 25.725313][ T158] [] vprintk_emit+0x31b/0x3e0 [ 25.725319][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 25.725322][ T158] Tainted: [W]=WARN [ 25.725323][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.725325][ T158] Call Trace: [ 25.725327][ T158] [ 25.725329][ T158] dump_stack_lvl+0x6f/0xa0 [ 25.725334][ T158] ? vprintk_emit+0x31b/0x3e0 [ 25.725336][ T158] __might_resched.cold+0x1fe/0x2c1 [ 25.725341][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 25.725344][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 25.725349][ T158] __kmalloc_noprof+0x443/0x760 [ 25.725351][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 25.725357][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 25.725359][ T158] alloc_buf.isra.0+0x4b/0x260 [ 25.725363][ T158] put_chars+0x1e1/0x2f0 [ 25.725366][ T158] ? __send_to_port+0x420/0x420 [ 25.725367][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 25.725370][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 25.725373][ T158] ? validate_chain+0x38b/0xc20 [ 25.725378][ T158] hvc_console_print+0x292/0x780 [ 25.725380][ T158] ? __lock_acquire+0x518/0xc20 [ 25.725382][ T158] ? __lock_acquire+0x518/0xc20 [ 25.725386][ T158] ? hvc_write+0x3a0/0x3a0 [ 25.725389][ T158] ? rcu_is_watching+0x16/0xd0 [ 25.725392][ T158] ? lock_acquire+0x13c/0x160 [ 25.725396][ T158] console_emit_next_record+0x252/0x4f0 [ 25.725399][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 25.725403][ T158] ? rcu_is_watching+0x16/0xd0 [ 25.725405][ T158] ? lock_acquire+0x13c/0x160 [ 25.725409][ T158] console_flush_one_record+0x46f/0x710 [ 25.725413][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 25.725414][ T158] ? __lock_acquire+0x518/0xc20 [ 25.725419][ T158] console_unlock+0xee/0x1f0 [ 25.725422][ T158] ? console_flush_one_record+0x710/0x710 [ 25.725423][ T158] ? rcu_is_watching+0x16/0xd0 [ 25.725426][ T158] ? lock_acquire+0x60/0x160 [ 25.725429][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 25.725430][ T158] ? vprintk_emit+0x320/0x3e0 [ 25.725433][ T158] vprintk_emit+0x37c/0x3e0 [ 25.725437][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 25.725440][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 25.725446][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 25.725450][ T158] ? vprintk_emit.cold+0x107/0x107 [ 25.725454][ T158] ? __kmalloc_noprof+0x302/0x760 [ 25.725455][ T158] ? idr_get_free+0x830/0x830 [ 25.725459][ T158] ? devkmsg_write+0xd1/0x2c0 [ 25.725462][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 25.725465][ T158] devkmsg_write.cold+0x5a/0x8b [ 25.725468][ T158] ? vprintk_default+0x20/0x20 [ 25.725470][ T158] ? __lock_acquire+0x518/0xc20 [ 25.725472][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 25.725476][ T158] ? vprintk_default+0x20/0x20 [ 25.725479][ T158] new_sync_write+0x33e/0x760 [ 25.725484][ T158] ? new_sync_read+0x750/0x750 [ 25.725485][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 25.725493][ T158] vfs_write+0x6a2/0xbd0 [ 25.725497][ T158] ksys_write+0x116/0x250 [ 25.725500][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 25.725501][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 25.725504][ T158] ? rcu_is_watching+0x16/0xd0 [ 25.725507][ T158] do_syscall_64+0xff/0x530 [ 25.725510][ T158] ? exc_page_fault+0xee/0x100 [ 25.725513][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 25.725515][ T158] RIP: 0033:0x7fd305c1154e [ 25.725519][ 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 [ 25.725521][ T158] RSP: 002b:00007ffc34c5ce90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 25.725524][ T158] RAX: ffffffffffffffda RBX: 00007fd305d92580 RCX: 00007fd305c1154e [ 25.725525][ T158] RDX: 0000000000000023 RSI: 00005584bf972ab0 RDI: 0000000000000001 [ 25.725526][ T158] RBP: 00007ffc34c5cea0 R08: 0000000000000000 R09: 0000000000000000 [ 25.725527][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 25.725528][ T158] R13: 0000000000000023 R14: 00005584bf972ab0 R15: 0000000000000000 [ 25.725535][ T158]