[ 8.586837][ T170] netconsole: network logging started [ 8.586852][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.586854][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 8.586856][ T170] preempt_count: 1, expected: 0 [ 8.586857][ T170] RCU nest depth: 0, expected: 0 [ 8.586858][ T170] locks held by modprobe/170: 4, last CPU#1: [ 8.586860][ T170] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.586871][ T170] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.586875][ T170] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.586879][ T170] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.586882][ T170] irq event stamp: 40424 [ 8.586883][ T170] hardirqs last enabled at (40423): [] __down_trylock_console_sem+0x86/0xa0 [ 8.586885][ T170] hardirqs last disabled at (40424): [] console_emit_next_record+0x3f8/0x4f0 [ 8.586887][ T170] softirqs last enabled at (36328): [] handle_softirqs+0x67c/0x900 [ 8.586890][ T170] softirqs last disabled at (36221): [] __irq_exit_rcu+0x145/0x1c0 [ 8.586893][ T170] Preemption disabled at: [ 8.586894][ T170] [] vprintk_emit+0x31b/0x3e0 [ 8.586899][ T170] CPU: 1 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.586902][ T170] Tainted: [W]=WARN [ 8.586903][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.586905][ T170] Call Trace: [ 8.586906][ T170] [ 8.586908][ T170] dump_stack_lvl+0x6f/0xa0 [ 8.586913][ T170] ? vprintk_emit+0x31b/0x3e0 [ 8.586915][ T170] __might_resched.cold+0x1fe/0x2c1 [ 8.586919][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.586923][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 8.586927][ T170] __kmalloc_noprof+0x443/0x760 [ 8.586929][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 8.586935][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.586937][ T170] alloc_buf.isra.0+0x4b/0x260 [ 8.586940][ T170] put_chars+0x1e1/0x2f0 [ 8.586943][ T170] ? __send_to_port+0x420/0x420 [ 8.586945][ T170] ? validate_chain+0x38b/0xc20 [ 8.586950][ T170] hvc_console_print+0x292/0x780 [ 8.586956][ T170] ? hvc_write+0x3a0/0x3a0 [ 8.586958][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.586962][ T170] ? lock_acquire+0x13c/0x160 [ 8.586965][ T170] console_emit_next_record+0x252/0x4f0 [ 8.586969][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 8.586973][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.586975][ T170] ? lock_acquire+0x13c/0x160 [ 8.586978][ T170] console_flush_one_record+0x46f/0x710 [ 8.586982][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 8.586985][ T170] ? __lock_acquire+0x518/0xc20 [ 8.586990][ T170] console_unlock+0xee/0x1f0 [ 8.586993][ T170] ? console_flush_one_record+0x710/0x710 [ 8.586994][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.586996][ T170] ? lock_acquire+0x60/0x160 [ 8.587000][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.587001][ T170] ? vprintk_emit+0x320/0x3e0 [ 8.587004][ T170] vprintk_emit+0x37c/0x3e0 [ 8.587007][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 8.587009][ T170] ? find_held_lock+0x2b/0x80 [ 8.587013][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 8.587014][ T170] ? fast_dput+0x316/0x540 [ 8.587018][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.587022][ T170] _printk+0xc7/0x100 [ 8.587026][ T170] ? snapshot_read.cold+0x21/0x21 [ 8.587029][ T170] ? __up_write+0x2e5/0x5f0 [ 8.587032][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.587036][ T170] ? configfs_register_subsystem+0x340/0x570 [ 8.587040][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 8.587044][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.587050][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 8.587053][ T170] do_one_initcall+0x124/0x4f0 [ 8.587056][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.587061][ T170] ? do_init_module+0xae/0x8a0 [ 8.587064][ T170] ? kasan_unpoison+0x44/0x70 [ 8.587069][ T170] do_init_module+0x2ad/0x8a0 [ 8.587072][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 8.587076][ T170] ? free_module+0x470/0x470 [ 8.587079][ T170] ? kfree+0x123/0x590 [ 8.587083][ T170] load_module+0x1424/0x1bb0 [ 8.587089][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.587093][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.587096][ T170] ? find_held_lock+0x2b/0x80 [ 8.587099][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.587102][ T170] init_module_from_file+0x11f/0x1a0 [ 8.587106][ T170] ? __do_sys_init_module+0x220/0x220 [ 8.587113][ T170] ? __rwlock_init+0x150/0x150 [ 8.587116][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 8.587119][ T170] idempotent_init_module+0x37b/0x7c0 [ 8.587122][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 8.587128][ T170] ? rcu_is_watching+0x16/0xd0 [ 8.587131][ T170] ? cap_capable+0x1d7/0x3d0 [ 8.587136][ T170] __x64_sys_finit_module+0xdf/0x190 [ 8.587138][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.587142][ T170] do_syscall_64+0xff/0x530 [ 8.587144][ T170] ? exc_page_fault+0xee/0x100 [ 8.587147][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.587149][ T170] RIP: 0033:0x7f669615837d [ 8.587152][ 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 [ 8.587154][ T170] RSP: 002b:00007ffc0be69f58 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.587156][ T170] RAX: ffffffffffffffda RBX: 00005611f14a8700 RCX: 00007f669615837d [ 8.587158][ T170] RDX: 0000000000000000 RSI: 00005611e6189ffd RDI: 0000000000000005 [ 8.587159][ T170] RBP: 00007ffc0be69ff0 R08: 0000000000000000 R09: 0000000000000000 [ 8.587159][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 00005611e6189ffd [ 8.587160][ T170] R13: 00005611f14a8810 R14: 0000000000040000 R15: 0000000000000000 [ 8.587166][ T170] [ 11.770580][ T158] netconsole selftest: netcons_ekt4F [ 11.770602][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.770605][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.770606][ T158] preempt_count: 1, expected: 0 [ 11.770607][ T158] RCU nest depth: 0, expected: 0 [ 11.770608][ T158] locks held by bash/158: 4, last CPU#1: [ 11.770611][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.770623][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.770627][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.770631][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.770635][ T158] irq event stamp: 160190 [ 11.770637][ T158] hardirqs last enabled at (160189): [] __down_trylock_console_sem+0x86/0xa0 [ 11.770639][ T158] hardirqs last disabled at (160190): [] console_emit_next_record+0x3f8/0x4f0 [ 11.770641][ T158] softirqs last enabled at (159986): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.770645][ T158] softirqs last disabled at (159984): [] restore_fpregs_from_user+0xc3/0x490 [ 11.770647][ T158] Preemption disabled at: [ 11.770648][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.770659][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.770663][ T158] Tainted: [W]=WARN [ 11.770664][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.770666][ T158] Call Trace: [ 11.770667][ T158] [ 11.770669][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.770674][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.770676][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.770681][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.770684][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.770689][ T158] __kmalloc_noprof+0x443/0x760 [ 11.770691][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.770697][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.770699][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.770702][ T158] put_chars+0x1e1/0x2f0 [ 11.770705][ T158] ? __send_to_port+0x420/0x420 [ 11.770706][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.770709][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.770713][ T158] ? validate_chain+0x38b/0xc20 [ 11.770717][ T158] hvc_console_print+0x292/0x780 [ 11.770720][ T158] ? __lock_acquire+0x518/0xc20 [ 11.770721][ T158] ? __lock_acquire+0x518/0xc20 [ 11.770725][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.770728][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.770731][ T158] ? lock_acquire+0x13c/0x160 [ 11.770735][ T158] console_emit_next_record+0x252/0x4f0 [ 11.770738][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.770742][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.770745][ T158] ? lock_acquire+0x13c/0x160 [ 11.770748][ T158] console_flush_one_record+0x46f/0x710 [ 11.770752][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.770754][ T158] ? __lock_acquire+0x518/0xc20 [ 11.770759][ T158] console_unlock+0xee/0x1f0 [ 11.770761][ T158] ? console_flush_one_record+0x710/0x710 [ 11.770763][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.770765][ T158] ? lock_acquire+0x60/0x160 [ 11.770768][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.770770][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.770773][ T158] vprintk_emit+0x37c/0x3e0 [ 11.770776][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.770779][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.770785][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.770789][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.770793][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.770795][ T158] ? idr_get_free+0x830/0x830 [ 11.770798][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.770801][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.770804][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.770807][ T158] ? vprintk_default+0x20/0x20 [ 11.770809][ T158] ? __lock_acquire+0x518/0xc20 [ 11.770811][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.770815][ T158] ? vprintk_default+0x20/0x20 [ 11.770818][ T158] new_sync_write+0x33e/0x760 [ 11.770822][ T158] ? new_sync_read+0x750/0x750 [ 11.770824][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.770832][ T158] vfs_write+0x6a2/0xbd0 [ 11.770836][ T158] ksys_write+0x116/0x250 [ 11.770839][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.770840][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.770843][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.770846][ T158] do_syscall_64+0xff/0x530 [ 11.770849][ T158] ? exc_page_fault+0xee/0x100 [ 11.770852][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.770854][ T158] RIP: 0033:0x7f3bbdc0354e [ 11.770858][ 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 [ 11.770860][ T158] RSP: 002b:00007ffc94ec23e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.770863][ T158] RAX: ffffffffffffffda RBX: 00007f3bbdd84580 RCX: 00007f3bbdc0354e [ 11.770864][ T158] RDX: 0000000000000023 RSI: 0000556fd9fc3ab0 RDI: 0000000000000001 [ 11.770865][ T158] RBP: 00007ffc94ec23f0 R08: 0000000000000000 R09: 0000000000000000 [ 11.770866][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.770867][ T158] R13: 0000000000000023 R14: 0000556fd9fc3ab0 R15: 0000000000000000 [ 11.770874][ T158] [ 15.206212][ T158] netconsole selftest: netcons_ekt4F [ 15.206231][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.206233][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.206235][ T158] preempt_count: 1, expected: 0 [ 15.206236][ T158] RCU nest depth: 0, expected: 0 [ 15.206237][ T158] locks held by bash/158: 4, last CPU#3: [ 15.206239][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.206252][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.206256][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.206260][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.206264][ T158] irq event stamp: 287910 [ 15.206266][ T158] hardirqs last enabled at (287909): [] __down_trylock_console_sem+0x86/0xa0 [ 15.206268][ T158] hardirqs last disabled at (287910): [] console_emit_next_record+0x3f8/0x4f0 [ 15.206270][ T158] softirqs last enabled at (287704): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.206273][ T158] softirqs last disabled at (287702): [] restore_fpregs_from_user+0xc3/0x490 [ 15.206276][ T158] Preemption disabled at: [ 15.206277][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.206282][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.206285][ T158] Tainted: [W]=WARN [ 15.206286][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.206288][ T158] Call Trace: [ 15.206290][ T158] [ 15.206291][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.206296][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.206299][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.206303][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.206307][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.206311][ T158] __kmalloc_noprof+0x443/0x760 [ 15.206313][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.206319][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.206322][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.206325][ T158] put_chars+0x1e1/0x2f0 [ 15.206327][ T158] ? __send_to_port+0x420/0x420 [ 15.206329][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.206332][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.206335][ T158] ? validate_chain+0x38b/0xc20 [ 15.206339][ T158] hvc_console_print+0x292/0x780 [ 15.206342][ T158] ? __lock_acquire+0x518/0xc20 [ 15.206344][ T158] ? __lock_acquire+0x518/0xc20 [ 15.206348][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.206351][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.206354][ T158] ? lock_acquire+0x13c/0x160 [ 15.206357][ T158] console_emit_next_record+0x252/0x4f0 [ 15.206361][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.206365][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.206367][ T158] ? lock_acquire+0x13c/0x160 [ 15.206371][ T158] console_flush_one_record+0x46f/0x710 [ 15.206375][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.206376][ T158] ? __lock_acquire+0x518/0xc20 [ 15.206381][ T158] console_unlock+0xee/0x1f0 [ 15.206384][ T158] ? console_flush_one_record+0x710/0x710 [ 15.206385][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.206387][ T158] ? lock_acquire+0x60/0x160 [ 15.206391][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.206392][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.206395][ T158] vprintk_emit+0x37c/0x3e0 [ 15.206398][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.206402][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.206407][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.206411][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.206415][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.206417][ T158] ? idr_get_free+0x830/0x830 [ 15.206421][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.206423][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.206426][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.206429][ T158] ? vprintk_default+0x20/0x20 [ 15.206430][ T158] ? __lock_acquire+0x518/0xc20 [ 15.206432][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.206437][ T158] ? vprintk_default+0x20/0x20 [ 15.206439][ T158] new_sync_write+0x33e/0x760 [ 15.206444][ T158] ? new_sync_read+0x750/0x750 [ 15.206445][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.206453][ T158] vfs_write+0x6a2/0xbd0 [ 15.206457][ T158] ksys_write+0x116/0x250 [ 15.206460][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.206462][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.206464][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.206468][ T158] do_syscall_64+0xff/0x530 [ 15.206470][ T158] ? exc_page_fault+0xee/0x100 [ 15.206473][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.206475][ T158] RIP: 0033:0x7f3bbdc0354e [ 15.206479][ 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.206481][ T158] RSP: 002b:00007ffc94ec23e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.206484][ T158] RAX: ffffffffffffffda RBX: 00007f3bbdd84580 RCX: 00007f3bbdc0354e [ 15.206485][ T158] RDX: 0000000000000023 RSI: 0000556fd9fc3ab0 RDI: 0000000000000001 [ 15.206487][ T158] RBP: 00007ffc94ec23f0 R08: 0000000000000000 R09: 0000000000000000 [ 15.206488][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.206489][ T158] R13: 0000000000000023 R14: 0000556fd9fc3ab0 R15: 0000000000000000 [ 15.206495][ T158] [ 18.647312][ T158] netconsole selftest: netcons_ekt4F [ 18.647331][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 18.647333][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 18.647335][ T158] preempt_count: 1, expected: 0 [ 18.647335][ T158] RCU nest depth: 0, expected: 0 [ 18.647336][ T158] locks held by bash/158: 4, last CPU#2: [ 18.647338][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 18.647351][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 18.647355][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 18.647360][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 18.647364][ T158] irq event stamp: 393164 [ 18.647366][ T158] hardirqs last enabled at (393163): [] __down_trylock_console_sem+0x86/0xa0 [ 18.647368][ T158] hardirqs last disabled at (393164): [] console_emit_next_record+0x3f8/0x4f0 [ 18.647370][ T158] softirqs last enabled at (392968): [] restore_fpregs_from_user+0x1cf/0x490 [ 18.647373][ T158] softirqs last disabled at (392966): [] restore_fpregs_from_user+0xc3/0x490 [ 18.647376][ T158] Preemption disabled at: [ 18.647376][ T158] [] vprintk_emit+0x31b/0x3e0 [ 18.647381][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 18.647385][ T158] Tainted: [W]=WARN [ 18.647386][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.647388][ T158] Call Trace: [ 18.647389][ T158] [ 18.647391][ T158] dump_stack_lvl+0x6f/0xa0 [ 18.647396][ T158] ? vprintk_emit+0x31b/0x3e0 [ 18.647398][ T158] __might_resched.cold+0x1fe/0x2c1 [ 18.647403][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 18.647406][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 18.647411][ T158] __kmalloc_noprof+0x443/0x760 [ 18.647413][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 18.647418][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 18.647420][ T158] alloc_buf.isra.0+0x4b/0x260 [ 18.647423][ T158] put_chars+0x1e1/0x2f0 [ 18.647426][ T158] ? __send_to_port+0x420/0x420 [ 18.647428][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 18.647431][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 18.647434][ T158] ? validate_chain+0x38b/0xc20 [ 18.647438][ T158] hvc_console_print+0x292/0x780 [ 18.647441][ T158] ? __lock_acquire+0x518/0xc20 [ 18.647442][ T158] ? __lock_acquire+0x518/0xc20 [ 18.647446][ T158] ? hvc_write+0x3a0/0x3a0 [ 18.647449][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.647452][ T158] ? lock_acquire+0x13c/0x160 [ 18.647456][ T158] console_emit_next_record+0x252/0x4f0 [ 18.647459][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 18.647464][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.647466][ T158] ? lock_acquire+0x13c/0x160 [ 18.647469][ T158] console_flush_one_record+0x46f/0x710 [ 18.647473][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 18.647475][ T158] ? __lock_acquire+0x518/0xc20 [ 18.647480][ T158] console_unlock+0xee/0x1f0 [ 18.647482][ T158] ? console_flush_one_record+0x710/0x710 [ 18.647484][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.647486][ T158] ? lock_acquire+0x60/0x160 [ 18.647489][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 18.647491][ T158] ? vprintk_emit+0x320/0x3e0 [ 18.647494][ T158] vprintk_emit+0x37c/0x3e0 [ 18.647497][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 18.647500][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 18.647506][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 18.647510][ T158] ? vprintk_emit.cold+0x107/0x107 [ 18.647514][ T158] ? __kmalloc_noprof+0x302/0x760 [ 18.647516][ T158] ? idr_get_free+0x830/0x830 [ 18.647519][ T158] ? devkmsg_write+0xd1/0x2c0 [ 18.647522][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 18.647525][ T158] devkmsg_write.cold+0x5a/0x8b [ 18.647528][ T158] ? vprintk_default+0x20/0x20 [ 18.647529][ T158] ? __lock_acquire+0x518/0xc20 [ 18.647531][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 18.647536][ T158] ? vprintk_default+0x20/0x20 [ 18.647538][ T158] new_sync_write+0x33e/0x760 [ 18.647543][ T158] ? new_sync_read+0x750/0x750 [ 18.647545][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 18.647552][ T158] vfs_write+0x6a2/0xbd0 [ 18.647557][ T158] ksys_write+0x116/0x250 [ 18.647559][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 18.647561][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 18.647564][ T158] ? rcu_is_watching+0x16/0xd0 [ 18.647567][ T158] do_syscall_64+0xff/0x530 [ 18.647569][ T158] ? exc_page_fault+0xee/0x100 [ 18.647572][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 18.647575][ T158] RIP: 0033:0x7f3bbdc0354e [ 18.647579][ 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 [ 18.647581][ T158] RSP: 002b:00007ffc94ec23e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 18.647584][ T158] RAX: ffffffffffffffda RBX: 00007f3bbdd84580 RCX: 00007f3bbdc0354e [ 18.647585][ T158] RDX: 0000000000000023 RSI: 0000556fd9fc3ab0 RDI: 0000000000000001 [ 18.647586][ T158] RBP: 00007ffc94ec23f0 R08: 0000000000000000 R09: 0000000000000000 [ 18.647587][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 18.647588][ T158] R13: 0000000000000023 R14: 0000556fd9fc3ab0 R15: 0000000000000000 [ 18.647595][ T158] [ 22.116195][ T158] netconsole selftest: netcons_ekt4F [ 22.116215][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 22.116217][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 22.116219][ T158] preempt_count: 1, expected: 0 [ 22.116220][ T158] RCU nest depth: 0, expected: 0 [ 22.116221][ T158] locks held by bash/158: 4, last CPU#2: [ 22.116223][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 22.116236][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 22.116241][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 22.116245][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 22.116249][ T158] irq event stamp: 523182 [ 22.116251][ T158] hardirqs last enabled at (523181): [] __down_trylock_console_sem+0x86/0xa0 [ 22.116253][ T158] hardirqs last disabled at (523182): [] console_emit_next_record+0x3f8/0x4f0 [ 22.116255][ T158] softirqs last enabled at (522974): [] restore_fpregs_from_user+0x1cf/0x490 [ 22.116259][ T158] softirqs last disabled at (522972): [] restore_fpregs_from_user+0xc3/0x490 [ 22.116262][ T158] Preemption disabled at: [ 22.116263][ T158] [] vprintk_emit+0x31b/0x3e0 [ 22.116268][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 22.116271][ T158] Tainted: [W]=WARN [ 22.116272][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.116274][ T158] Call Trace: [ 22.116276][ T158] [ 22.116277][ T158] dump_stack_lvl+0x6f/0xa0 [ 22.116282][ T158] ? vprintk_emit+0x31b/0x3e0 [ 22.116284][ T158] __might_resched.cold+0x1fe/0x2c1 [ 22.116289][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 22.116292][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 22.116297][ T158] __kmalloc_noprof+0x443/0x760 [ 22.116299][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 22.116305][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 22.116307][ T158] alloc_buf.isra.0+0x4b/0x260 [ 22.116310][ T158] put_chars+0x1e1/0x2f0 [ 22.116313][ T158] ? __send_to_port+0x420/0x420 [ 22.116315][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 22.116318][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.116321][ T158] ? validate_chain+0x38b/0xc20 [ 22.116325][ T158] hvc_console_print+0x292/0x780 [ 22.116328][ T158] ? __lock_acquire+0x518/0xc20 [ 22.116329][ T158] ? __lock_acquire+0x518/0xc20 [ 22.116333][ T158] ? hvc_write+0x3a0/0x3a0 [ 22.116337][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.116339][ T158] ? lock_acquire+0x13c/0x160 [ 22.116343][ T158] console_emit_next_record+0x252/0x4f0 [ 22.116347][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 22.116351][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.116353][ T158] ? lock_acquire+0x13c/0x160 [ 22.116356][ T158] console_flush_one_record+0x46f/0x710 [ 22.116360][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 22.116362][ T158] ? __lock_acquire+0x518/0xc20 [ 22.116367][ T158] console_unlock+0xee/0x1f0 [ 22.116369][ T158] ? console_flush_one_record+0x710/0x710 [ 22.116371][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.116373][ T158] ? lock_acquire+0x60/0x160 [ 22.116376][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 22.116378][ T158] ? vprintk_emit+0x320/0x3e0 [ 22.116381][ T158] vprintk_emit+0x37c/0x3e0 [ 22.116384][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 22.116387][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.116393][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 22.116397][ T158] ? vprintk_emit.cold+0x107/0x107 [ 22.116401][ T158] ? __kmalloc_noprof+0x302/0x760 [ 22.116403][ T158] ? idr_get_free+0x830/0x830 [ 22.116406][ T158] ? devkmsg_write+0xd1/0x2c0 [ 22.116409][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 22.116412][ T158] devkmsg_write.cold+0x5a/0x8b [ 22.116415][ T158] ? vprintk_default+0x20/0x20 [ 22.116416][ T158] ? __lock_acquire+0x518/0xc20 [ 22.116418][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 22.116423][ T158] ? vprintk_default+0x20/0x20 [ 22.116425][ T158] new_sync_write+0x33e/0x760 [ 22.116430][ T158] ? new_sync_read+0x750/0x750 [ 22.116432][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.116439][ T158] vfs_write+0x6a2/0xbd0 [ 22.116443][ T158] ksys_write+0x116/0x250 [ 22.116446][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 22.116448][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 22.116450][ T158] ? rcu_is_watching+0x16/0xd0 [ 22.116454][ T158] do_syscall_64+0xff/0x530 [ 22.116456][ T158] ? exc_page_fault+0xee/0x100 [ 22.116459][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 22.116461][ T158] RIP: 0033:0x7f3bbdc0354e [ 22.116465][ 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 [ 22.116467][ T158] RSP: 002b:00007ffc94ec23e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 22.116470][ T158] RAX: ffffffffffffffda RBX: 00007f3bbdd84580 RCX: 00007f3bbdc0354e [ 22.116471][ T158] RDX: 0000000000000023 RSI: 0000556fd9fc3ab0 RDI: 0000000000000001 [ 22.116472][ T158] RBP: 00007ffc94ec23f0 R08: 0000000000000000 R09: 0000000000000000 [ 22.116473][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 22.116475][ T158] R13: 0000000000000023 R14: 0000556fd9fc3ab0 R15: 0000000000000000 [ 22.116481][ T158]