[ 9.232507][ T170] netconsole: network logging started [ 9.232524][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.232526][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 9.232528][ T170] preempt_count: 1, expected: 0 [ 9.232528][ T170] RCU nest depth: 0, expected: 0 [ 9.232530][ T170] locks held by modprobe/170: 4, last CPU#1: [ 9.232532][ T170] #0: ffffffff97b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.232544][ T170] #1: ffffffff97b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.232548][ T170] #2: ffffffff97a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.232552][ T170] #3: ffffffff97a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.232555][ T170] irq event stamp: 30870 [ 9.232556][ T170] hardirqs last enabled at (30869): [] __down_trylock_console_sem+0x86/0xa0 [ 9.232558][ T170] hardirqs last disabled at (30870): [] console_emit_next_record+0x3f8/0x4f0 [ 9.232560][ T170] softirqs last enabled at (29354): [] handle_softirqs+0x67c/0x900 [ 9.232563][ T170] softirqs last disabled at (29345): [] __irq_exit_rcu+0x145/0x1c0 [ 9.232566][ T170] Preemption disabled at: [ 9.232566][ T170] [] vprintk_emit+0x31b/0x3e0 [ 9.232572][ T170] CPU: 1 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.232576][ T170] Tainted: [W]=WARN [ 9.232576][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.232578][ T170] Call Trace: [ 9.232579][ T170] [ 9.232581][ T170] dump_stack_lvl+0x6f/0xa0 [ 9.232586][ T170] ? vprintk_emit+0x31b/0x3e0 [ 9.232588][ T170] __might_resched.cold+0x1fe/0x2c1 [ 9.232593][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.232597][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 9.232601][ T170] __kmalloc_noprof+0x443/0x760 [ 9.232603][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 9.232609][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.232611][ T170] alloc_buf.isra.0+0x4b/0x260 [ 9.232614][ T170] put_chars+0x1e1/0x2f0 [ 9.232617][ T170] ? __send_to_port+0x420/0x420 [ 9.232620][ T170] ? validate_chain+0x38b/0xc20 [ 9.232625][ T170] hvc_console_print+0x292/0x780 [ 9.232631][ T170] ? hvc_write+0x3a0/0x3a0 [ 9.232633][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.232636][ T170] ? lock_acquire+0x13c/0x160 [ 9.232640][ T170] console_emit_next_record+0x252/0x4f0 [ 9.232644][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 9.232648][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.232650][ T170] ? lock_acquire+0x13c/0x160 [ 9.232653][ T170] console_flush_one_record+0x46f/0x710 [ 9.232657][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 9.232659][ T170] ? __lock_acquire+0x518/0xc20 [ 9.232663][ T170] console_unlock+0xee/0x1f0 [ 9.232666][ T170] ? console_flush_one_record+0x710/0x710 [ 9.232668][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.232670][ T170] ? lock_acquire+0x60/0x160 [ 9.232673][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.232674][ T170] ? vprintk_emit+0x320/0x3e0 [ 9.232677][ T170] vprintk_emit+0x37c/0x3e0 [ 9.232681][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 9.232683][ T170] ? find_held_lock+0x2b/0x80 [ 9.232689][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 9.232691][ T170] ? fast_dput+0x316/0x540 [ 9.232695][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.232700][ T170] _printk+0xc7/0x100 [ 9.232703][ T170] ? snapshot_read.cold+0x21/0x21 [ 9.232706][ T170] ? __up_write+0x2e5/0x5f0 [ 9.232709][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.232713][ T170] ? configfs_register_subsystem+0x340/0x570 [ 9.232718][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.232721][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.232728][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.232731][ T170] do_one_initcall+0x124/0x4f0 [ 9.232734][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.232739][ T170] ? do_init_module+0xae/0x8a0 [ 9.232742][ T170] ? kasan_unpoison+0x44/0x70 [ 9.232747][ T170] do_init_module+0x2ad/0x8a0 [ 9.232750][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 9.232755][ T170] ? free_module+0x470/0x470 [ 9.232758][ T170] ? kfree+0x123/0x590 [ 9.232761][ T170] load_module+0x1424/0x1bb0 [ 9.232768][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.232772][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.232775][ T170] ? ovl_real_file+0x172/0x1e0 [ 9.232778][ T170] ? find_held_lock+0x2b/0x80 [ 9.232780][ T170] ? backing_file_read_iter+0x541/0x790 [ 9.232784][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.232787][ T170] init_module_from_file+0x11f/0x1a0 [ 9.232791][ T170] ? __do_sys_init_module+0x220/0x220 [ 9.232799][ T170] ? __rwlock_init+0x150/0x150 [ 9.232802][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.232805][ T170] idempotent_init_module+0x37b/0x7c0 [ 9.232808][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 9.232814][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.232816][ T170] ? cap_capable+0x1d7/0x3d0 [ 9.232822][ T170] __x64_sys_finit_module+0xdf/0x190 [ 9.232824][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.232828][ T170] do_syscall_64+0xff/0x530 [ 9.232830][ T170] ? exc_page_fault+0xee/0x100 [ 9.232832][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.232835][ T170] RIP: 0033:0x7fadf763b37d [ 9.232838][ 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.232840][ T170] RSP: 002b:00007fff4c9f0328 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.232843][ T170] RAX: ffffffffffffffda RBX: 00005555fcc8c700 RCX: 00007fadf763b37d [ 9.232844][ T170] RDX: 0000000000000000 RSI: 00005555dc675ffd RDI: 0000000000000005 [ 9.232845][ T170] RBP: 00007fff4c9f03c0 R08: 0000000000000000 R09: 0000000000000000 [ 9.232846][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 00005555dc675ffd [ 9.232847][ T170] R13: 00005555fcc8c810 R14: 0000000000040000 R15: 0000000000000000 [ 9.232854][ T170] [ 12.368650][ T158] netconsole selftest: netcons_fcSjn [ 12.368674][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.368677][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.368679][ T158] preempt_count: 1, expected: 0 [ 12.368679][ T158] RCU nest depth: 0, expected: 0 [ 12.368681][ T158] locks held by bash/158: 4, last CPU#1: [ 12.368683][ T158] #0: ffffffff97b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.368700][ T158] #1: ffffffff97b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.368705][ T158] #2: ffffffff97a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.368709][ T158] #3: ffffffff97a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.368714][ T158] irq event stamp: 149346 [ 12.368716][ T158] hardirqs last enabled at (149345): [] __down_trylock_console_sem+0x86/0xa0 [ 12.368718][ T158] hardirqs last disabled at (149346): [] console_emit_next_record+0x3f8/0x4f0 [ 12.368720][ T158] softirqs last enabled at (149136): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.368723][ T158] softirqs last disabled at (149134): [] restore_fpregs_from_user+0xc3/0x490 [ 12.368726][ T158] Preemption disabled at: [ 12.368727][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.368732][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.368736][ T158] Tainted: [W]=WARN [ 12.368737][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.368739][ T158] Call Trace: [ 12.368741][ T158] [ 12.368742][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.368747][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.368749][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.368754][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.368758][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.368763][ T158] __kmalloc_noprof+0x443/0x760 [ 12.368765][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.368771][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.368773][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.368776][ T158] put_chars+0x1e1/0x2f0 [ 12.368779][ T158] ? __send_to_port+0x420/0x420 [ 12.368780][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.368784][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.368787][ T158] ? validate_chain+0x38b/0xc20 [ 12.368791][ T158] hvc_console_print+0x292/0x780 [ 12.368794][ T158] ? __lock_acquire+0x518/0xc20 [ 12.368795][ T158] ? __lock_acquire+0x518/0xc20 [ 12.368800][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.368803][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.368806][ T158] ? lock_acquire+0x13c/0x160 [ 12.368809][ T158] console_emit_next_record+0x252/0x4f0 [ 12.368813][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.368817][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.368819][ T158] ? lock_acquire+0x13c/0x160 [ 12.368823][ T158] console_flush_one_record+0x46f/0x710 [ 12.368827][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.368829][ T158] ? __lock_acquire+0x518/0xc20 [ 12.368833][ T158] console_unlock+0xee/0x1f0 [ 12.368836][ T158] ? console_flush_one_record+0x710/0x710 [ 12.368838][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.368840][ T158] ? lock_acquire+0x60/0x160 [ 12.368843][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.368845][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.368848][ T158] vprintk_emit+0x37c/0x3e0 [ 12.368851][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.368854][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.368860][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.368864][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.368868][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.368869][ T158] ? idr_get_free+0x830/0x830 [ 12.368873][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.368876][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.368879][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.368882][ T158] ? vprintk_default+0x20/0x20 [ 12.368883][ T158] ? __lock_acquire+0x518/0xc20 [ 12.368885][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 12.368890][ T158] ? vprintk_default+0x20/0x20 [ 12.368892][ T158] new_sync_write+0x33e/0x760 [ 12.368897][ T158] ? new_sync_read+0x750/0x750 [ 12.368899][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.368906][ T158] vfs_write+0x6a2/0xbd0 [ 12.368911][ T158] ksys_write+0x116/0x250 [ 12.368914][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.368916][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.368918][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.368922][ T158] do_syscall_64+0xff/0x530 [ 12.368924][ T158] ? exc_page_fault+0xee/0x100 [ 12.368927][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.368930][ T158] RIP: 0033:0x7f523111a54e [ 12.368934][ 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.368936][ T158] RSP: 002b:00007fff79a34cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.368939][ T158] RAX: ffffffffffffffda RBX: 00007f523129b580 RCX: 00007f523111a54e [ 12.368941][ T158] RDX: 0000000000000023 RSI: 000055fa5d6b8ab0 RDI: 0000000000000001 [ 12.368942][ T158] RBP: 00007fff79a34d00 R08: 0000000000000000 R09: 0000000000000000 [ 12.368943][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.368944][ T158] R13: 0000000000000023 R14: 000055fa5d6b8ab0 R15: 0000000000000000 [ 12.368951][ T158] [ 15.949007][ T158] netconsole selftest: netcons_fcSjn [ 15.949034][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.949037][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.949039][ T158] preempt_count: 1, expected: 0 [ 15.949040][ T158] RCU nest depth: 0, expected: 0 [ 15.949041][ T158] locks held by bash/158: 4, last CPU#3: [ 15.949044][ T158] #0: ffffffff97b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.949057][ T158] #1: ffffffff97b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.949061][ T158] #2: ffffffff97a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.949066][ T158] #3: ffffffff97a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.949070][ T158] irq event stamp: 258872 [ 15.949072][ T158] hardirqs last enabled at (258871): [] __down_trylock_console_sem+0x86/0xa0 [ 15.949074][ T158] hardirqs last disabled at (258872): [] console_emit_next_record+0x3f8/0x4f0 [ 15.949076][ T158] softirqs last enabled at (258668): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.949080][ T158] softirqs last disabled at (258666): [] restore_fpregs_from_user+0xc3/0x490 [ 15.949083][ T158] Preemption disabled at: [ 15.949084][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.949090][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.949093][ T158] Tainted: [W]=WARN [ 15.949094][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.949097][ T158] Call Trace: [ 15.949098][ T158] [ 15.949100][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.949105][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.949108][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.949112][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.949116][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.949121][ T158] __kmalloc_noprof+0x443/0x760 [ 15.949123][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.949129][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.949131][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.949135][ T158] put_chars+0x1e1/0x2f0 [ 15.949138][ T158] ? __send_to_port+0x420/0x420 [ 15.949139][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.949142][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.949146][ T158] ? validate_chain+0x38b/0xc20 [ 15.949150][ T158] hvc_console_print+0x292/0x780 [ 15.949153][ T158] ? __lock_acquire+0x518/0xc20 [ 15.949155][ T158] ? __lock_acquire+0x518/0xc20 [ 15.949159][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.949162][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.949165][ T158] ? lock_acquire+0x13c/0x160 [ 15.949169][ T158] console_emit_next_record+0x252/0x4f0 [ 15.949173][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.949177][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.949179][ T158] ? lock_acquire+0x13c/0x160 [ 15.949183][ T158] console_flush_one_record+0x46f/0x710 [ 15.949187][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.949188][ T158] ? __lock_acquire+0x518/0xc20 [ 15.949193][ T158] console_unlock+0xee/0x1f0 [ 15.949196][ T158] ? console_flush_one_record+0x710/0x710 [ 15.949198][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.949200][ T158] ? lock_acquire+0x60/0x160 [ 15.949203][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.949205][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.949208][ T158] vprintk_emit+0x37c/0x3e0 [ 15.949212][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.949215][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.949220][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.949224][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.949228][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.949230][ T158] ? idr_get_free+0x830/0x830 [ 15.949234][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.949237][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.949240][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.949243][ T158] ? vprintk_default+0x20/0x20 [ 15.949244][ T158] ? __lock_acquire+0x518/0xc20 [ 15.949246][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.949251][ T158] ? vprintk_default+0x20/0x20 [ 15.949253][ T158] new_sync_write+0x33e/0x760 [ 15.949258][ T158] ? new_sync_read+0x750/0x750 [ 15.949260][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.949268][ T158] vfs_write+0x6a2/0xbd0 [ 15.949272][ T158] ksys_write+0x116/0x250 [ 15.949275][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.949277][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.949280][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.949283][ T158] do_syscall_64+0xff/0x530 [ 15.949285][ T158] ? exc_page_fault+0xee/0x100 [ 15.949288][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.949291][ T158] RIP: 0033:0x7f523111a54e [ 15.949295][ 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.949297][ T158] RSP: 002b:00007fff79a34cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.949301][ T158] RAX: ffffffffffffffda RBX: 00007f523129b580 RCX: 00007f523111a54e [ 15.949302][ T158] RDX: 0000000000000023 RSI: 000055fa5d6b8ab0 RDI: 0000000000000001 [ 15.949303][ T158] RBP: 00007fff79a34d00 R08: 0000000000000000 R09: 0000000000000000 [ 15.949304][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.949305][ T158] R13: 0000000000000023 R14: 000055fa5d6b8ab0 R15: 0000000000000000 [ 15.949312][ T158] [ 19.491091][ T158] netconsole selftest: netcons_fcSjn [ 19.491118][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 19.491121][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 19.491123][ T158] preempt_count: 1, expected: 0 [ 19.491125][ T158] RCU nest depth: 0, expected: 0 [ 19.491126][ T158] locks held by bash/158: 4, last CPU#1: [ 19.491129][ T158] #0: ffffffff97b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 19.491142][ T158] #1: ffffffff97b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 19.491147][ T158] #2: ffffffff97a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 19.491151][ T158] #3: ffffffff97a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 19.491155][ T158] irq event stamp: 371044 [ 19.491157][ T158] hardirqs last enabled at (371043): [] __down_trylock_console_sem+0x86/0xa0 [ 19.491159][ T158] hardirqs last disabled at (371044): [] console_emit_next_record+0x3f8/0x4f0 [ 19.491161][ T158] softirqs last enabled at (370842): [] restore_fpregs_from_user+0x1cf/0x490 [ 19.491165][ T158] softirqs last disabled at (370840): [] restore_fpregs_from_user+0xc3/0x490 [ 19.491167][ T158] Preemption disabled at: [ 19.491168][ T158] [] vprintk_emit+0x31b/0x3e0 [ 19.491174][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 19.491177][ T158] Tainted: [W]=WARN [ 19.491178][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.491180][ T158] Call Trace: [ 19.491182][ T158] [ 19.491184][ T158] dump_stack_lvl+0x6f/0xa0 [ 19.491189][ T158] ? vprintk_emit+0x31b/0x3e0 [ 19.491191][ T158] __might_resched.cold+0x1fe/0x2c1 [ 19.491196][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 19.491200][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 19.491205][ T158] __kmalloc_noprof+0x443/0x760 [ 19.491207][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 19.491212][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 19.491215][ T158] alloc_buf.isra.0+0x4b/0x260 [ 19.491218][ T158] put_chars+0x1e1/0x2f0 [ 19.491221][ T158] ? __send_to_port+0x420/0x420 [ 19.491222][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 19.491226][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 19.491229][ T158] ? validate_chain+0x38b/0xc20 [ 19.491233][ T158] hvc_console_print+0x292/0x780 [ 19.491236][ T158] ? __lock_acquire+0x518/0xc20 [ 19.491237][ T158] ? __lock_acquire+0x518/0xc20 [ 19.491241][ T158] ? hvc_write+0x3a0/0x3a0 [ 19.491244][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.491247][ T158] ? lock_acquire+0x13c/0x160 [ 19.491251][ T158] console_emit_next_record+0x252/0x4f0 [ 19.491254][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 19.491259][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.491261][ T158] ? lock_acquire+0x13c/0x160 [ 19.491264][ T158] console_flush_one_record+0x46f/0x710 [ 19.491268][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 19.491270][ T158] ? __lock_acquire+0x518/0xc20 [ 19.491275][ T158] console_unlock+0xee/0x1f0 [ 19.491277][ T158] ? console_flush_one_record+0x710/0x710 [ 19.491279][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.491281][ T158] ? lock_acquire+0x60/0x160 [ 19.491285][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 19.491286][ T158] ? vprintk_emit+0x320/0x3e0 [ 19.491289][ T158] vprintk_emit+0x37c/0x3e0 [ 19.491293][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 19.491296][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 19.491301][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 19.491305][ T158] ? vprintk_emit.cold+0x107/0x107 [ 19.491309][ T158] ? __kmalloc_noprof+0x302/0x760 [ 19.491311][ T158] ? idr_get_free+0x830/0x830 [ 19.491314][ T158] ? devkmsg_write+0xd1/0x2c0 [ 19.491317][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 19.491320][ T158] devkmsg_write.cold+0x5a/0x8b [ 19.491323][ T158] ? vprintk_default+0x20/0x20 [ 19.491325][ T158] ? __lock_acquire+0x518/0xc20 [ 19.491327][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 19.491331][ T158] ? vprintk_default+0x20/0x20 [ 19.491334][ T158] new_sync_write+0x33e/0x760 [ 19.491338][ T158] ? new_sync_read+0x750/0x750 [ 19.491340][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 19.491348][ T158] vfs_write+0x6a2/0xbd0 [ 19.491352][ T158] ksys_write+0x116/0x250 [ 19.491355][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 19.491356][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 19.491359][ T158] ? rcu_is_watching+0x16/0xd0 [ 19.491362][ T158] do_syscall_64+0xff/0x530 [ 19.491365][ T158] ? exc_page_fault+0xee/0x100 [ 19.491368][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.491370][ T158] RIP: 0033:0x7f523111a54e [ 19.491374][ 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 [ 19.491377][ T158] RSP: 002b:00007fff79a34cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 19.491380][ T158] RAX: ffffffffffffffda RBX: 00007f523129b580 RCX: 00007f523111a54e [ 19.491381][ T158] RDX: 0000000000000023 RSI: 000055fa5d6b8ab0 RDI: 0000000000000001 [ 19.491382][ T158] RBP: 00007fff79a34d00 R08: 0000000000000000 R09: 0000000000000000 [ 19.491383][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 19.491384][ T158] R13: 0000000000000023 R14: 000055fa5d6b8ab0 R15: 0000000000000000 [ 19.491391][ T158] [ 23.041666][ T158] netconsole selftest: netcons_fcSjn [ 23.041704][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 23.041707][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 23.041709][ T158] preempt_count: 1, expected: 0 [ 23.041710][ T158] RCU nest depth: 0, expected: 0 [ 23.041711][ T158] locks held by bash/158: 4, last CPU#0: [ 23.041713][ T158] #0: ffffffff97b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 23.041727][ T158] #1: ffffffff97b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 23.041732][ T158] #2: ffffffff97a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 23.041736][ T158] #3: ffffffff97a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 23.041740][ T158] irq event stamp: 481238 [ 23.041742][ T158] hardirqs last enabled at (481237): [] irqentry_exit+0x21c/0x790 [ 23.041747][ T158] hardirqs last disabled at (481238): [] console_emit_next_record+0x3f8/0x4f0 [ 23.041749][ T158] softirqs last enabled at (481024): [] restore_fpregs_from_user+0x1cf/0x490 [ 23.041753][ T158] softirqs last disabled at (481022): [] restore_fpregs_from_user+0xc3/0x490 [ 23.041755][ T158] Preemption disabled at: [ 23.041756][ T158] [] vprintk_emit+0x31b/0x3e0 [ 23.041762][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 23.041766][ T158] Tainted: [W]=WARN [ 23.041767][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.041769][ T158] Call Trace: [ 23.041771][ T158] [ 23.041772][ T158] dump_stack_lvl+0x6f/0xa0 [ 23.041779][ T158] ? vprintk_emit+0x31b/0x3e0 [ 23.041781][ T158] __might_resched.cold+0x1fe/0x2c1 [ 23.041785][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 23.041789][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 23.041794][ T158] __kmalloc_noprof+0x443/0x760 [ 23.041796][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 23.041801][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 23.041804][ T158] alloc_buf.isra.0+0x4b/0x260 [ 23.041807][ T158] put_chars+0x1e1/0x2f0 [ 23.041810][ T158] ? __send_to_port+0x420/0x420 [ 23.041811][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 23.041814][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 23.041818][ T158] ? validate_chain+0x38b/0xc20 [ 23.041822][ T158] hvc_console_print+0x292/0x780 [ 23.041825][ T158] ? __lock_acquire+0x518/0xc20 [ 23.041826][ T158] ? __lock_acquire+0x518/0xc20 [ 23.041830][ T158] ? hvc_write+0x3a0/0x3a0 [ 23.041834][ T158] ? rcu_is_watching+0x16/0xd0 [ 23.041837][ T158] ? lock_acquire+0x13c/0x160 [ 23.041840][ T158] console_emit_next_record+0x252/0x4f0 [ 23.041844][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 23.041848][ T158] ? rcu_is_watching+0x16/0xd0 [ 23.041850][ T158] ? lock_acquire+0x13c/0x160 [ 23.041854][ T158] console_flush_one_record+0x46f/0x710 [ 23.041858][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 23.041860][ T158] ? __lock_acquire+0x518/0xc20 [ 23.041865][ T158] console_unlock+0xee/0x1f0 [ 23.041868][ T158] ? console_flush_one_record+0x710/0x710 [ 23.041869][ T158] ? rcu_is_watching+0x16/0xd0 [ 23.041871][ T158] ? lock_acquire+0x60/0x160 [ 23.041875][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 23.041877][ T158] ? vprintk_emit+0x320/0x3e0 [ 23.041880][ T158] vprintk_emit+0x37c/0x3e0 [ 23.041883][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 23.041886][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 23.041892][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 23.041896][ T158] ? vprintk_emit.cold+0x107/0x107 [ 23.041900][ T158] ? __kmalloc_noprof+0x302/0x760 [ 23.041902][ T158] ? idr_get_free+0x830/0x830 [ 23.041905][ T158] ? devkmsg_write+0xd1/0x2c0 [ 23.041908][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 23.041911][ T158] devkmsg_write.cold+0x5a/0x8b [ 23.041914][ T158] ? vprintk_default+0x20/0x20 [ 23.041915][ T158] ? handle_pte_fault+0x448/0x710 [ 23.041921][ T158] ? do_numa_page.isra.0+0xa70/0xa70 [ 23.041923][ T158] ? vprintk_default+0x20/0x20 [ 23.041926][ T158] new_sync_write+0x33e/0x760 [ 23.041931][ T158] ? new_sync_read+0x750/0x750 [ 23.041932][ T158] ? lock_vma_under_rcu+0x159/0x410 [ 23.041941][ T158] vfs_write+0x6a2/0xbd0 [ 23.041945][ T158] ksys_write+0x116/0x250 [ 23.041948][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 23.041950][ T158] ? rcu_is_watching+0x16/0xd0 [ 23.041952][ T158] ? rcu_is_watching+0x16/0xd0 [ 23.041956][ T158] do_syscall_64+0xff/0x530 [ 23.041958][ T158] ? exc_page_fault+0xee/0x100 [ 23.041961][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 23.041963][ T158] RIP: 0033:0x7f523111a54e [ 23.041968][ 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 [ 23.041970][ T158] RSP: 002b:00007fff79a34cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 23.041973][ T158] RAX: ffffffffffffffda RBX: 00007f523129b580 RCX: 00007f523111a54e [ 23.041974][ T158] RDX: 0000000000000023 RSI: 000055fa5d6b8ab0 RDI: 0000000000000001 [ 23.041975][ T158] RBP: 00007fff79a34d00 R08: 0000000000000000 R09: 0000000000000000 [ 23.041976][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 23.041977][ T158] R13: 0000000000000023 R14: 000055fa5d6b8ab0 R15: 0000000000000000 [ 23.041984][ T158]