[ 10.637133][ T170] netconsole: network logging started [ 10.637152][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.637155][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 10.637158][ T170] preempt_count: 1, expected: 0 [ 10.637159][ T170] RCU nest depth: 0, expected: 0 [ 10.637160][ T170] locks held by modprobe/170: 4, last CPU#0: [ 10.637163][ T170] #0: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.637177][ T170] #1: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.637184][ T170] #2: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.637189][ T170] #3: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.637195][ T170] irq event stamp: 33556 [ 10.637196][ T170] hardirqs last enabled at (33555): [] __down_trylock_console_sem+0x86/0xa0 [ 10.637199][ T170] hardirqs last disabled at (33556): [] console_emit_next_record+0x3f8/0x4f0 [ 10.637202][ T170] softirqs last enabled at (33500): [] handle_softirqs+0x67c/0x900 [ 10.637206][ T170] softirqs last disabled at (33491): [] __irq_exit_rcu+0x145/0x1c0 [ 10.637210][ T170] Preemption disabled at: [ 10.637210][ T170] [] vprintk_emit+0x31b/0x3e0 [ 10.637217][ T170] CPU: 0 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.637222][ T170] Tainted: [W]=WARN [ 10.637223][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.637225][ T170] Call Trace: [ 10.637227][ T170] [ 10.637229][ T170] dump_stack_lvl+0x6f/0xa0 [ 10.637236][ T170] ? vprintk_emit+0x31b/0x3e0 [ 10.637239][ T170] __might_resched.cold+0x1fe/0x2c1 [ 10.637245][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.637250][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 10.637257][ T170] __kmalloc_noprof+0x443/0x760 [ 10.637260][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 10.637269][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.637272][ T170] alloc_buf.isra.0+0x4b/0x260 [ 10.637277][ T170] put_chars+0x1e1/0x2f0 [ 10.637281][ T170] ? __send_to_port+0x420/0x420 [ 10.637286][ T170] ? validate_chain+0x38b/0xc20 [ 10.637294][ T170] hvc_console_print+0x292/0x780 [ 10.637304][ T170] ? hvc_write+0x3a0/0x3a0 [ 10.637308][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.637313][ T170] ? lock_acquire+0x13c/0x160 [ 10.637319][ T170] console_emit_next_record+0x252/0x4f0 [ 10.637325][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 10.637332][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.637336][ T170] ? lock_acquire+0x13c/0x160 [ 10.637342][ T170] console_flush_one_record+0x46f/0x710 [ 10.637349][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 10.637351][ T170] ? __lock_acquire+0x518/0xc20 [ 10.637360][ T170] console_unlock+0xee/0x1f0 [ 10.637364][ T170] ? console_flush_one_record+0x710/0x710 [ 10.637366][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.637369][ T170] ? lock_acquire+0x60/0x160 [ 10.637375][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.637377][ T170] ? vprintk_emit+0x320/0x3e0 [ 10.637382][ T170] vprintk_emit+0x37c/0x3e0 [ 10.637388][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 10.637391][ T170] ? find_held_lock+0x2b/0x80 [ 10.637396][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 10.637398][ T170] ? fast_dput+0x316/0x540 [ 10.637405][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.637411][ T170] _printk+0xc7/0x100 [ 10.637415][ T170] ? snapshot_read.cold+0x21/0x21 [ 10.637420][ T170] ? __up_write+0x2e5/0x5f0 [ 10.637425][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.637432][ T170] ? configfs_register_subsystem+0x340/0x570 [ 10.637439][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.637444][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.637456][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.637461][ T170] do_one_initcall+0x124/0x4f0 [ 10.637466][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.637474][ T170] ? do_init_module+0xae/0x8a0 [ 10.637477][ T170] ? kasan_unpoison+0x44/0x70 [ 10.637485][ T170] do_init_module+0x2ad/0x8a0 [ 10.637491][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 10.637496][ T170] ? free_module+0x470/0x470 [ 10.637501][ T170] ? kfree+0x123/0x590 [ 10.637508][ T170] load_module+0x1424/0x1bb0 [ 10.637519][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.637525][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.637529][ T170] ? ovl_real_file+0x172/0x1e0 [ 10.637534][ T170] ? backing_file_read_iter+0x541/0x790 [ 10.637539][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.637545][ T170] init_module_from_file+0x11f/0x1a0 [ 10.637551][ T170] ? __do_sys_init_module+0x220/0x220 [ 10.637564][ T170] ? __rwlock_init+0x150/0x150 [ 10.637570][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.637574][ T170] idempotent_init_module+0x37b/0x7c0 [ 10.637579][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 10.637590][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.637593][ T170] ? cap_capable+0x1d7/0x3d0 [ 10.637602][ T170] __x64_sys_finit_module+0xdf/0x190 [ 10.637605][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.637611][ T170] do_syscall_64+0xff/0x530 [ 10.637613][ T170] ? exc_page_fault+0xee/0x100 [ 10.637617][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.637621][ T170] RIP: 0033:0x7fc7c8c9237d [ 10.637625][ 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.637628][ T170] RSP: 002b:00007ffc05fd9808 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.637631][ T170] RAX: ffffffffffffffda RBX: 00005597f0552700 RCX: 00007fc7c8c9237d [ 10.637633][ T170] RDX: 0000000000000000 RSI: 00005597e5242ffd RDI: 0000000000000005 [ 10.637634][ T170] RBP: 00007ffc05fd98a0 R08: 0000000000000000 R09: 0000000000000000 [ 10.637636][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 00005597e5242ffd [ 10.637637][ T170] R13: 00005597f0552810 R14: 0000000000040000 R15: 0000000000000000 [ 10.637649][ T170] [ 13.947558][ T158] netconsole selftest: netcons_DyfVH [ 13.947586][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.947589][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.947591][ T158] preempt_count: 1, expected: 0 [ 13.947592][ T158] RCU nest depth: 0, expected: 0 [ 13.947593][ T158] locks held by bash/158: 4, last CPU#3: [ 13.947595][ T158] #0: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.947609][ T158] #1: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.947614][ T158] #2: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.947618][ T158] #3: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.947622][ T158] irq event stamp: 119852 [ 13.947624][ T158] hardirqs last enabled at (119851): [] __down_trylock_console_sem+0x86/0xa0 [ 13.947627][ T158] hardirqs last disabled at (119852): [] console_emit_next_record+0x3f8/0x4f0 [ 13.947628][ T158] softirqs last enabled at (119656): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.947632][ T158] softirqs last disabled at (119654): [] restore_fpregs_from_user+0xc3/0x490 [ 13.947634][ T158] Preemption disabled at: [ 13.947635][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.947641][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.947645][ T158] Tainted: [W]=WARN [ 13.947646][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.947648][ T158] Call Trace: [ 13.947649][ T158] [ 13.947651][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.947656][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.947659][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.947663][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.947667][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.947672][ T158] __kmalloc_noprof+0x443/0x760 [ 13.947674][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.947680][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.947683][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.947686][ T158] put_chars+0x1e1/0x2f0 [ 13.947689][ T158] ? __send_to_port+0x420/0x420 [ 13.947690][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.947694][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.947697][ T158] ? validate_chain+0x38b/0xc20 [ 13.947701][ T158] hvc_console_print+0x292/0x780 [ 13.947704][ T158] ? __lock_acquire+0x518/0xc20 [ 13.947705][ T158] ? __lock_acquire+0x518/0xc20 [ 13.947709][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.947712][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.947715][ T158] ? lock_acquire+0x13c/0x160 [ 13.947719][ T158] console_emit_next_record+0x252/0x4f0 [ 13.947729][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.947733][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.947735][ T158] ? lock_acquire+0x13c/0x160 [ 13.947739][ T158] console_flush_one_record+0x46f/0x710 [ 13.947743][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.947744][ T158] ? __lock_acquire+0x518/0xc20 [ 13.947749][ T158] console_unlock+0xee/0x1f0 [ 13.947752][ T158] ? console_flush_one_record+0x710/0x710 [ 13.947754][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.947756][ T158] ? lock_acquire+0x60/0x160 [ 13.947759][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.947761][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.947764][ T158] vprintk_emit+0x37c/0x3e0 [ 13.947767][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.947770][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.947776][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.947780][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.947784][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.947786][ T158] ? idr_get_free+0x830/0x830 [ 13.947790][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.947793][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.947796][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.947799][ T158] ? vprintk_default+0x20/0x20 [ 13.947801][ T158] ? __lock_acquire+0x518/0xc20 [ 13.947803][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.947807][ T158] ? vprintk_default+0x20/0x20 [ 13.947810][ T158] new_sync_write+0x33e/0x760 [ 13.947814][ T158] ? new_sync_read+0x750/0x750 [ 13.947816][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.947826][ T158] vfs_write+0x6a2/0xbd0 [ 13.947831][ T158] ksys_write+0x116/0x250 [ 13.947834][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.947835][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.947838][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.947841][ T158] do_syscall_64+0xff/0x530 [ 13.947844][ T158] ? exc_page_fault+0xee/0x100 [ 13.947847][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.947850][ T158] RIP: 0033:0x7f014cdde54e [ 13.947854][ 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.947856][ T158] RSP: 002b:00007ffd1e996650 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.947859][ T158] RAX: ffffffffffffffda RBX: 00007f014cf5f580 RCX: 00007f014cdde54e [ 13.947860][ T158] RDX: 0000000000000023 RSI: 00005633d8301ab0 RDI: 0000000000000001 [ 13.947861][ T158] RBP: 00007ffd1e996660 R08: 0000000000000000 R09: 0000000000000000 [ 13.947862][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.947863][ T158] R13: 0000000000000023 R14: 00005633d8301ab0 R15: 0000000000000000 [ 13.947874][ T158] [ 17.900077][ T158] netconsole selftest: netcons_DyfVH [ 17.900106][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.900109][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 17.900111][ T158] preempt_count: 1, expected: 0 [ 17.900113][ T158] RCU nest depth: 0, expected: 0 [ 17.900114][ T158] locks held by bash/158: 4, last CPU#2: [ 17.900117][ T158] #0: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.900133][ T158] #1: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.900140][ T158] #2: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.900145][ T158] #3: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.900152][ T158] irq event stamp: 229882 [ 17.900154][ T158] hardirqs last enabled at (229881): [] __down_trylock_console_sem+0x86/0xa0 [ 17.900157][ T158] hardirqs last disabled at (229882): [] console_emit_next_record+0x3f8/0x4f0 [ 17.900159][ T158] softirqs last enabled at (229704): [] handle_softirqs+0x67c/0x900 [ 17.900164][ T158] softirqs last disabled at (229697): [] __irq_exit_rcu+0x145/0x1c0 [ 17.900168][ T158] Preemption disabled at: [ 17.900169][ T158] [] vprintk_emit+0x31b/0x3e0 [ 17.900176][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.900181][ T158] Tainted: [W]=WARN [ 17.900182][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.900184][ T158] Call Trace: [ 17.900187][ T158] [ 17.900189][ T158] dump_stack_lvl+0x6f/0xa0 [ 17.900196][ T158] ? vprintk_emit+0x31b/0x3e0 [ 17.900199][ T158] __might_resched.cold+0x1fe/0x2c1 [ 17.900204][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.900209][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 17.900215][ T158] __kmalloc_noprof+0x443/0x760 [ 17.900218][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 17.900226][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.900230][ T158] alloc_buf.isra.0+0x4b/0x260 [ 17.900235][ T158] put_chars+0x1e1/0x2f0 [ 17.900239][ T158] ? __send_to_port+0x420/0x420 [ 17.900242][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 17.900247][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.900251][ T158] ? validate_chain+0x38b/0xc20 [ 17.900258][ T158] hvc_console_print+0x292/0x780 [ 17.900262][ T158] ? __lock_acquire+0x518/0xc20 [ 17.900264][ T158] ? __lock_acquire+0x518/0xc20 [ 17.900271][ T158] ? hvc_write+0x3a0/0x3a0 [ 17.900276][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.900280][ T158] ? lock_acquire+0x13c/0x160 [ 17.900287][ T158] console_emit_next_record+0x252/0x4f0 [ 17.900292][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 17.900299][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.900302][ T158] ? lock_acquire+0x13c/0x160 [ 17.900309][ T158] console_flush_one_record+0x46f/0x710 [ 17.900315][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 17.900318][ T158] ? __lock_acquire+0x518/0xc20 [ 17.900326][ T158] console_unlock+0xee/0x1f0 [ 17.900330][ T158] ? console_flush_one_record+0x710/0x710 [ 17.900333][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.900336][ T158] ? lock_acquire+0x60/0x160 [ 17.900342][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.900344][ T158] ? vprintk_emit+0x320/0x3e0 [ 17.900349][ T158] vprintk_emit+0x37c/0x3e0 [ 17.900355][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 17.900359][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.900368][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.900373][ T158] ? vprintk_emit.cold+0x107/0x107 [ 17.900379][ T158] ? __kmalloc_noprof+0x302/0x760 [ 17.900382][ T158] ? idr_get_free+0x830/0x830 [ 17.900387][ T158] ? devkmsg_write+0xd1/0x2c0 [ 17.900391][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.900396][ T158] devkmsg_write.cold+0x5a/0x8b [ 17.900400][ T158] ? vprintk_default+0x20/0x20 [ 17.900403][ T158] ? __lock_acquire+0x518/0xc20 [ 17.900406][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 17.900413][ T158] ? vprintk_default+0x20/0x20 [ 17.900417][ T158] new_sync_write+0x33e/0x760 [ 17.900424][ T158] ? new_sync_read+0x750/0x750 [ 17.900426][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.900441][ T158] vfs_write+0x6a2/0xbd0 [ 17.900448][ T158] ksys_write+0x116/0x250 [ 17.900452][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 17.900455][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.900459][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.900465][ T158] do_syscall_64+0xff/0x530 [ 17.900468][ T158] ? exc_page_fault+0xee/0x100 [ 17.900473][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.900476][ T158] RIP: 0033:0x7f014cdde54e [ 17.900481][ 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.900484][ T158] RSP: 002b:00007ffd1e996650 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.900488][ T158] RAX: ffffffffffffffda RBX: 00007f014cf5f580 RCX: 00007f014cdde54e [ 17.900490][ T158] RDX: 0000000000000023 RSI: 00005633d8301ab0 RDI: 0000000000000001 [ 17.900491][ T158] RBP: 00007ffd1e996660 R08: 0000000000000000 R09: 0000000000000000 [ 17.900493][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.900494][ T158] R13: 0000000000000023 R14: 00005633d8301ab0 R15: 0000000000000000 [ 17.900506][ T158] [ 21.971553][ T158] netconsole selftest: netcons_DyfVH [ 21.971586][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.971590][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 21.971592][ T158] preempt_count: 1, expected: 0 [ 21.971593][ T158] RCU nest depth: 0, expected: 0 [ 21.971595][ T158] locks held by bash/158: 4, last CPU#0: [ 21.971599][ T158] #0: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.971615][ T158] #1: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.971622][ T158] #2: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.971629][ T158] #3: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 21.971637][ T158] irq event stamp: 379028 [ 21.971640][ T158] hardirqs last enabled at (379027): [] __down_trylock_console_sem+0x86/0xa0 [ 21.971643][ T158] hardirqs last disabled at (379028): [] console_emit_next_record+0x3f8/0x4f0 [ 21.971647][ T158] softirqs last enabled at (378826): [] restore_fpregs_from_user+0x1cf/0x490 [ 21.971652][ T158] softirqs last disabled at (378824): [] restore_fpregs_from_user+0xc3/0x490 [ 21.971655][ T158] Preemption disabled at: [ 21.971656][ T158] [] vprintk_emit+0x31b/0x3e0 [ 21.971664][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.971669][ T158] Tainted: [W]=WARN [ 21.971670][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.971673][ T158] Call Trace: [ 21.971675][ T158] [ 21.971678][ T158] dump_stack_lvl+0x6f/0xa0 [ 21.971684][ T158] ? vprintk_emit+0x31b/0x3e0 [ 21.971688][ T158] __might_resched.cold+0x1fe/0x2c1 [ 21.971694][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.971700][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 21.971707][ T158] __kmalloc_noprof+0x443/0x760 [ 21.971711][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 21.971720][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 21.971723][ T158] alloc_buf.isra.0+0x4b/0x260 [ 21.971728][ T158] put_chars+0x1e1/0x2f0 [ 21.971733][ T158] ? __send_to_port+0x420/0x420 [ 21.971735][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 21.971741][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 21.971745][ T158] ? validate_chain+0x38b/0xc20 [ 21.971757][ T158] hvc_console_print+0x292/0x780 [ 21.971762][ T158] ? __lock_acquire+0x518/0xc20 [ 21.971764][ T158] ? __lock_acquire+0x518/0xc20 [ 21.971771][ T158] ? hvc_write+0x3a0/0x3a0 [ 21.971777][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.971781][ T158] ? lock_acquire+0x13c/0x160 [ 21.971788][ T158] console_emit_next_record+0x252/0x4f0 [ 21.971794][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 21.971801][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.971805][ T158] ? lock_acquire+0x13c/0x160 [ 21.971811][ T158] console_flush_one_record+0x46f/0x710 [ 21.971822][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 21.971825][ T158] ? __lock_acquire+0x518/0xc20 [ 21.971833][ T158] console_unlock+0xee/0x1f0 [ 21.971838][ T158] ? console_flush_one_record+0x710/0x710 [ 21.971840][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.971844][ T158] ? lock_acquire+0x60/0x160 [ 21.971850][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.971852][ T158] ? vprintk_emit+0x320/0x3e0 [ 21.971857][ T158] vprintk_emit+0x37c/0x3e0 [ 21.971863][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 21.971868][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 21.971877][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 21.971883][ T158] ? vprintk_emit.cold+0x107/0x107 [ 21.971889][ T158] ? __kmalloc_noprof+0x302/0x760 [ 21.971892][ T158] ? idr_get_free+0x830/0x830 [ 21.971897][ T158] ? devkmsg_write+0xd1/0x2c0 [ 21.971902][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 21.971906][ T158] devkmsg_write.cold+0x5a/0x8b [ 21.971911][ T158] ? vprintk_default+0x20/0x20 [ 21.971913][ T158] ? __lock_acquire+0x518/0xc20 [ 21.971917][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 21.971923][ T158] ? vprintk_default+0x20/0x20 [ 21.971927][ T158] new_sync_write+0x33e/0x760 [ 21.971935][ T158] ? new_sync_read+0x750/0x750 [ 21.971937][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 21.971952][ T158] vfs_write+0x6a2/0xbd0 [ 21.971959][ T158] ksys_write+0x116/0x250 [ 21.971963][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 21.971966][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 21.971970][ T158] ? rcu_is_watching+0x16/0xd0 [ 21.971976][ T158] do_syscall_64+0xff/0x530 [ 21.971980][ T158] ? exc_page_fault+0xee/0x100 [ 21.971985][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.971988][ T158] RIP: 0033:0x7f014cdde54e [ 21.971994][ 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.971996][ T158] RSP: 002b:00007ffd1e996650 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 21.972000][ T158] RAX: ffffffffffffffda RBX: 00007f014cf5f580 RCX: 00007f014cdde54e [ 21.972003][ T158] RDX: 0000000000000023 RSI: 00005633d8301ab0 RDI: 0000000000000001 [ 21.972004][ T158] RBP: 00007ffd1e996660 R08: 0000000000000000 R09: 0000000000000000 [ 21.972006][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 21.972007][ T158] R13: 0000000000000023 R14: 00005633d8301ab0 R15: 0000000000000000 [ 21.972020][ T158] [ 26.141588][ T158] netconsole selftest: netcons_DyfVH [ 26.141617][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 26.141620][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 26.141621][ T158] preempt_count: 1, expected: 0 [ 26.141622][ T158] RCU nest depth: 0, expected: 0 [ 26.141624][ T158] locks held by bash/158: 4, last CPU#3: [ 26.141626][ T158] #0: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 26.141640][ T158] #1: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 26.141646][ T158] #2: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 26.141650][ T158] #3: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 26.141655][ T158] irq event stamp: 502496 [ 26.141657][ T158] hardirqs last enabled at (502495): [] __down_trylock_console_sem+0x86/0xa0 [ 26.141660][ T158] hardirqs last disabled at (502496): [] console_emit_next_record+0x3f8/0x4f0 [ 26.141662][ T158] softirqs last enabled at (502312): [] restore_fpregs_from_user+0x1cf/0x490 [ 26.141666][ T158] softirqs last disabled at (502310): [] restore_fpregs_from_user+0xc3/0x490 [ 26.141668][ T158] Preemption disabled at: [ 26.141669][ T158] [] vprintk_emit+0x31b/0x3e0 [ 26.141675][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 26.141679][ T158] Tainted: [W]=WARN [ 26.141680][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.141682][ T158] Call Trace: [ 26.141684][ T158] [ 26.141686][ T158] dump_stack_lvl+0x6f/0xa0 [ 26.141691][ T158] ? vprintk_emit+0x31b/0x3e0 [ 26.141693][ T158] __might_resched.cold+0x1fe/0x2c1 [ 26.141698][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 26.141702][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 26.141707][ T158] __kmalloc_noprof+0x443/0x760 [ 26.141709][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 26.141715][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 26.141718][ T158] alloc_buf.isra.0+0x4b/0x260 [ 26.141722][ T158] put_chars+0x1e1/0x2f0 [ 26.141725][ T158] ? __send_to_port+0x420/0x420 [ 26.141727][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 26.141730][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 26.141733][ T158] ? validate_chain+0x38b/0xc20 [ 26.141737][ T158] hvc_console_print+0x292/0x780 [ 26.141740][ T158] ? __lock_acquire+0x518/0xc20 [ 26.141742][ T158] ? __lock_acquire+0x518/0xc20 [ 26.141746][ T158] ? hvc_write+0x3a0/0x3a0 [ 26.141749][ T158] ? rcu_is_watching+0x16/0xd0 [ 26.141753][ T158] ? lock_acquire+0x13c/0x160 [ 26.141757][ T158] console_emit_next_record+0x252/0x4f0 [ 26.141767][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 26.141772][ T158] ? rcu_is_watching+0x16/0xd0 [ 26.141774][ T158] ? lock_acquire+0x13c/0x160 [ 26.141778][ T158] console_flush_one_record+0x46f/0x710 [ 26.141782][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 26.141784][ T158] ? __lock_acquire+0x518/0xc20 [ 26.141789][ T158] console_unlock+0xee/0x1f0 [ 26.141791][ T158] ? console_flush_one_record+0x710/0x710 [ 26.141793][ T158] ? rcu_is_watching+0x16/0xd0 [ 26.141796][ T158] ? lock_acquire+0x60/0x160 [ 26.141799][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 26.141801][ T158] ? vprintk_emit+0x320/0x3e0 [ 26.141804][ T158] vprintk_emit+0x37c/0x3e0 [ 26.141807][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 26.141811][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 26.141817][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 26.141824][ T158] ? vprintk_emit.cold+0x107/0x107 [ 26.141828][ T158] ? __kmalloc_noprof+0x302/0x760 [ 26.141830][ T158] ? idr_get_free+0x830/0x830 [ 26.141834][ T158] ? devkmsg_write+0xd1/0x2c0 [ 26.141837][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 26.141840][ T158] devkmsg_write.cold+0x5a/0x8b [ 26.141843][ T158] ? vprintk_default+0x20/0x20 [ 26.141845][ T158] ? __lock_acquire+0x518/0xc20 [ 26.141847][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 26.141852][ T158] ? vprintk_default+0x20/0x20 [ 26.141855][ T158] new_sync_write+0x33e/0x760 [ 26.141860][ T158] ? new_sync_read+0x750/0x750 [ 26.141861][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 26.141870][ T158] vfs_write+0x6a2/0xbd0 [ 26.141874][ T158] ksys_write+0x116/0x250 [ 26.141877][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 26.141879][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 26.141881][ T158] ? rcu_is_watching+0x16/0xd0 [ 26.141885][ T158] do_syscall_64+0xff/0x530 [ 26.141888][ T158] ? exc_page_fault+0xee/0x100 [ 26.141891][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 26.141894][ T158] RIP: 0033:0x7f014cdde54e [ 26.141898][ 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 [ 26.141900][ T158] RSP: 002b:00007ffd1e996650 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 26.141903][ T158] RAX: ffffffffffffffda RBX: 00007f014cf5f580 RCX: 00007f014cdde54e [ 26.141905][ T158] RDX: 0000000000000023 RSI: 00005633d8301ab0 RDI: 0000000000000001 [ 26.141906][ T158] RBP: 00007ffd1e996660 R08: 0000000000000000 R09: 0000000000000000 [ 26.141907][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 26.141908][ T158] R13: 0000000000000023 R14: 00005633d8301ab0 R15: 0000000000000000 [ 26.141915][ T158]