[ 9.578868][ T171] netconsole: network logging started [ 9.578885][ T171] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.578887][ T171] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 171, name: modprobe [ 9.578889][ T171] preempt_count: 1, expected: 0 [ 9.578890][ T171] RCU nest depth: 0, expected: 0 [ 9.578891][ T171] locks held by modprobe/171: 4, last CPU#3: [ 9.578893][ T171] #0: ffffffff96599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.578905][ T171] #1: ffffffff96599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.578910][ T171] #2: ffffffff96489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.578913][ T171] #3: ffffffff96489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.578917][ T171] irq event stamp: 31454 [ 9.578918][ T171] hardirqs last enabled at (31453): [] __down_trylock_console_sem+0x86/0xa0 [ 9.578920][ T171] hardirqs last disabled at (31454): [] console_emit_next_record+0x3f8/0x4f0 [ 9.578922][ T171] softirqs last enabled at (29688): [] handle_softirqs+0x67c/0x900 [ 9.578926][ T171] softirqs last disabled at (29681): [] __irq_exit_rcu+0x145/0x1c0 [ 9.578928][ T171] Preemption disabled at: [ 9.578929][ T171] [] vprintk_emit+0x31b/0x3e0 [ 9.578934][ T171] CPU: 3 UID: 0 PID: 171 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.578937][ T171] Tainted: [W]=WARN [ 9.578938][ T171] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.578940][ T171] Call Trace: [ 9.578941][ T171] [ 9.578943][ T171] dump_stack_lvl+0x6f/0xa0 [ 9.578948][ T171] ? vprintk_emit+0x31b/0x3e0 [ 9.578950][ T171] __might_resched.cold+0x1fe/0x2c1 [ 9.578954][ T171] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.578958][ T171] ? __kmalloc_noprof+0xdb/0x760 [ 9.578962][ T171] __kmalloc_noprof+0x443/0x760 [ 9.578964][ T171] ? alloc_buf.isra.0+0x4b/0x260 [ 9.578970][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.578972][ T171] alloc_buf.isra.0+0x4b/0x260 [ 9.578975][ T171] put_chars+0x1e1/0x2f0 [ 9.578978][ T171] ? __send_to_port+0x420/0x420 [ 9.578981][ T171] ? validate_chain+0x38b/0xc20 [ 9.578986][ T171] hvc_console_print+0x292/0x780 [ 9.578992][ T171] ? hvc_write+0x3a0/0x3a0 [ 9.578994][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.578998][ T171] ? lock_acquire+0x13c/0x160 [ 9.579001][ T171] console_emit_next_record+0x252/0x4f0 [ 9.579005][ T171] ? devkmsg_read+0x4e0/0x4e0 [ 9.579009][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.579011][ T171] ? lock_acquire+0x13c/0x160 [ 9.579015][ T171] console_flush_one_record+0x46f/0x710 [ 9.579019][ T171] ? console_emit_next_record+0x4f0/0x4f0 [ 9.579021][ T171] ? __lock_acquire+0x518/0xc20 [ 9.579025][ T171] console_unlock+0xee/0x1f0 [ 9.579028][ T171] ? console_flush_one_record+0x710/0x710 [ 9.579030][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.579032][ T171] ? lock_acquire+0x60/0x160 [ 9.579035][ T171] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.579037][ T171] ? vprintk_emit+0x320/0x3e0 [ 9.579040][ T171] vprintk_emit+0x37c/0x3e0 [ 9.579043][ T171] ? wake_up_klogd_work_func+0x90/0x90 [ 9.579045][ T171] ? find_held_lock+0x2b/0x80 [ 9.579049][ T171] ? __lock_release.isra.0+0x69/0x1a0 [ 9.579050][ T171] ? fast_dput+0x316/0x540 [ 9.579055][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.579060][ T171] _printk+0xc7/0x100 [ 9.579063][ T171] ? snapshot_read.cold+0x21/0x21 [ 9.579066][ T171] ? __up_write+0x2e5/0x5f0 [ 9.579070][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.579073][ T171] ? configfs_register_subsystem+0x340/0x570 [ 9.579078][ T171] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.579082][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.579089][ T171] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.579091][ T171] do_one_initcall+0x124/0x4f0 [ 9.579095][ T171] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.579100][ T171] ? do_init_module+0xae/0x8a0 [ 9.579102][ T171] ? kasan_unpoison+0x44/0x70 [ 9.579108][ T171] do_init_module+0x2ad/0x8a0 [ 9.579112][ T171] ? lockdep_hardirqs_on+0x91/0x130 [ 9.579116][ T171] ? free_module+0x470/0x470 [ 9.579119][ T171] ? kfree+0x123/0x590 [ 9.579123][ T171] load_module+0x1424/0x1bb0 [ 9.579129][ T171] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.579133][ T171] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.579136][ T171] ? ovl_real_file+0x172/0x1e0 [ 9.579140][ T171] ? backing_file_read_iter+0x541/0x790 [ 9.579143][ T171] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.579147][ T171] init_module_from_file+0x11f/0x1a0 [ 9.579151][ T171] ? __do_sys_init_module+0x220/0x220 [ 9.579159][ T171] ? __rwlock_init+0x150/0x150 [ 9.579162][ T171] ? do_raw_spin_unlock+0x59/0x250 [ 9.579165][ T171] idempotent_init_module+0x37b/0x7c0 [ 9.579168][ T171] ? init_module_from_file+0x1a0/0x1a0 [ 9.579174][ T171] ? rcu_is_watching+0x16/0xd0 [ 9.579177][ T171] ? cap_capable+0x1d7/0x3d0 [ 9.579183][ T171] __x64_sys_finit_module+0xdf/0x190 [ 9.579185][ T171] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.579189][ T171] do_syscall_64+0xff/0x530 [ 9.579191][ T171] ? exc_page_fault+0xee/0x100 [ 9.579194][ T171] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.579198][ T171] RIP: 0033:0x7f2c6248237d [ 9.579201][ T171] 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.579203][ T171] RSP: 002b:00007ffd59a28938 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.579206][ T171] RAX: ffffffffffffffda RBX: 00005594b08c6700 RCX: 00007f2c6248237d [ 9.579207][ T171] RDX: 0000000000000000 RSI: 00005594907e5ffd RDI: 0000000000000005 [ 9.579208][ T171] RBP: 00007ffd59a289d0 R08: 0000000000000000 R09: 0000000000000000 [ 9.579209][ T171] R10: 0000000000000000 R11: 0000000000000246 R12: 00005594907e5ffd [ 9.579210][ T171] R13: 00005594b08c6810 R14: 0000000000040000 R15: 0000000000000000 [ 9.579217][ T171] [ 12.932531][ T158] netconsole selftest: netcons_zkJJL [ 12.932561][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.932564][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.932567][ T158] preempt_count: 1, expected: 0 [ 12.932568][ T158] RCU nest depth: 0, expected: 0 [ 12.932569][ T158] locks held by bash/158: 4, last CPU#3: [ 12.932571][ T158] #0: ffffffff96599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.932585][ T158] #1: ffffffff96599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.932589][ T158] #2: ffffffff96489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.932593][ T158] #3: ffffffff96489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.932598][ T158] irq event stamp: 130648 [ 12.932600][ T158] hardirqs last enabled at (130647): [] __down_trylock_console_sem+0x86/0xa0 [ 12.932602][ T158] hardirqs last disabled at (130648): [] console_emit_next_record+0x3f8/0x4f0 [ 12.932604][ T158] softirqs last enabled at (130452): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.932607][ T158] softirqs last disabled at (130450): [] restore_fpregs_from_user+0xc3/0x490 [ 12.932610][ T158] Preemption disabled at: [ 12.932611][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.932616][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.932620][ T158] Tainted: [W]=WARN [ 12.932621][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.932623][ T158] Call Trace: [ 12.932625][ T158] [ 12.932627][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.932632][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.932634][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.932638][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.932642][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.932647][ T158] __kmalloc_noprof+0x443/0x760 [ 12.932649][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.932655][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.932658][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.932661][ T158] put_chars+0x1e1/0x2f0 [ 12.932664][ T158] ? __send_to_port+0x420/0x420 [ 12.932665][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.932668][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.932671][ T158] ? validate_chain+0x38b/0xc20 [ 12.932675][ T158] hvc_console_print+0x292/0x780 [ 12.932678][ T158] ? __lock_acquire+0x518/0xc20 [ 12.932680][ T158] ? __lock_acquire+0x518/0xc20 [ 12.932684][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.932687][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.932690][ T158] ? lock_acquire+0x13c/0x160 [ 12.932694][ T158] console_emit_next_record+0x252/0x4f0 [ 12.932697][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.932701][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.932703][ T158] ? lock_acquire+0x13c/0x160 [ 12.932707][ T158] console_flush_one_record+0x46f/0x710 [ 12.932711][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.932712][ T158] ? __lock_acquire+0x518/0xc20 [ 12.932717][ T158] console_unlock+0xee/0x1f0 [ 12.932720][ T158] ? console_flush_one_record+0x710/0x710 [ 12.932721][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.932723][ T158] ? lock_acquire+0x60/0x160 [ 12.932727][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.932728][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.932731][ T158] vprintk_emit+0x37c/0x3e0 [ 12.932735][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.932738][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.932743][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.932747][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.932751][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.932753][ T158] ? idr_get_free+0x830/0x830 [ 12.932757][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.932760][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.932762][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.932765][ T158] ? vprintk_default+0x20/0x20 [ 12.932767][ T158] ? __lock_acquire+0x518/0xc20 [ 12.932769][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 12.932773][ T158] ? vprintk_default+0x20/0x20 [ 12.932775][ T158] new_sync_write+0x33e/0x760 [ 12.932780][ T158] ? new_sync_read+0x750/0x750 [ 12.932782][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.932790][ T158] vfs_write+0x6a2/0xbd0 [ 12.932794][ T158] ksys_write+0x116/0x250 [ 12.932797][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.932798][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.932801][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.932804][ T158] do_syscall_64+0xff/0x530 [ 12.932806][ T158] ? exc_page_fault+0xee/0x100 [ 12.932809][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.932812][ T158] RIP: 0033:0x7f49bce2154e [ 12.932816][ 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.932818][ T158] RSP: 002b:00007ffc7abbd5b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.932821][ T158] RAX: ffffffffffffffda RBX: 00007f49bcfa2580 RCX: 00007f49bce2154e [ 12.932822][ T158] RDX: 0000000000000023 RSI: 000055a63521bab0 RDI: 0000000000000001 [ 12.932823][ T158] RBP: 00007ffc7abbd5c0 R08: 0000000000000000 R09: 0000000000000000 [ 12.932824][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.932825][ T158] R13: 0000000000000023 R14: 000055a63521bab0 R15: 0000000000000000 [ 12.932832][ T158] [ 17.008948][ T158] netconsole selftest: netcons_zkJJL [ 17.008975][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.008978][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 17.008980][ T158] preempt_count: 1, expected: 0 [ 17.008981][ T158] RCU nest depth: 0, expected: 0 [ 17.008982][ T158] locks held by bash/158: 4, last CPU#3: [ 17.008984][ T158] #0: ffffffff96599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.008998][ T158] #1: ffffffff96599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.009002][ T158] #2: ffffffff96489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.009006][ T158] #3: ffffffff96489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.009011][ T158] irq event stamp: 249674 [ 17.009012][ T158] hardirqs last enabled at (249673): [] __down_trylock_console_sem+0x86/0xa0 [ 17.009015][ T158] hardirqs last disabled at (249674): [] console_emit_next_record+0x3f8/0x4f0 [ 17.009016][ T158] softirqs last enabled at (249478): [] restore_fpregs_from_user+0x1cf/0x490 [ 17.009020][ T158] softirqs last disabled at (249476): [] restore_fpregs_from_user+0xc3/0x490 [ 17.009023][ T158] Preemption disabled at: [ 17.009024][ T158] [] vprintk_emit+0x31b/0x3e0 [ 17.009029][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.009033][ T158] Tainted: [W]=WARN [ 17.009034][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.009036][ T158] Call Trace: [ 17.009038][ T158] [ 17.009040][ T158] dump_stack_lvl+0x6f/0xa0 [ 17.009045][ T158] ? vprintk_emit+0x31b/0x3e0 [ 17.009047][ T158] __might_resched.cold+0x1fe/0x2c1 [ 17.009051][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.009055][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 17.009060][ T158] __kmalloc_noprof+0x443/0x760 [ 17.009062][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 17.009068][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.009070][ T158] alloc_buf.isra.0+0x4b/0x260 [ 17.009073][ T158] put_chars+0x1e1/0x2f0 [ 17.009076][ T158] ? __send_to_port+0x420/0x420 [ 17.009078][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 17.009081][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.009084][ T158] ? validate_chain+0x38b/0xc20 [ 17.009088][ T158] hvc_console_print+0x292/0x780 [ 17.009091][ T158] ? __lock_acquire+0x518/0xc20 [ 17.009092][ T158] ? __lock_acquire+0x518/0xc20 [ 17.009097][ T158] ? hvc_write+0x3a0/0x3a0 [ 17.009100][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.009103][ T158] ? lock_acquire+0x13c/0x160 [ 17.009107][ T158] console_emit_next_record+0x252/0x4f0 [ 17.009110][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 17.009114][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.009117][ T158] ? lock_acquire+0x13c/0x160 [ 17.009120][ T158] console_flush_one_record+0x46f/0x710 [ 17.009124][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 17.009126][ T158] ? __lock_acquire+0x518/0xc20 [ 17.009131][ T158] console_unlock+0xee/0x1f0 [ 17.009133][ T158] ? console_flush_one_record+0x710/0x710 [ 17.009135][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.009137][ T158] ? lock_acquire+0x60/0x160 [ 17.009141][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.009142][ T158] ? vprintk_emit+0x320/0x3e0 [ 17.009146][ T158] vprintk_emit+0x37c/0x3e0 [ 17.009149][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 17.009152][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.009158][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.009162][ T158] ? vprintk_emit.cold+0x107/0x107 [ 17.009166][ T158] ? __kmalloc_noprof+0x302/0x760 [ 17.009168][ T158] ? idr_get_free+0x830/0x830 [ 17.009172][ T158] ? devkmsg_write+0xd1/0x2c0 [ 17.009175][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.009178][ T158] devkmsg_write.cold+0x5a/0x8b [ 17.009181][ T158] ? vprintk_default+0x20/0x20 [ 17.009182][ T158] ? __lock_acquire+0x518/0xc20 [ 17.009184][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 17.009189][ T158] ? vprintk_default+0x20/0x20 [ 17.009191][ T158] new_sync_write+0x33e/0x760 [ 17.009199][ T158] ? new_sync_read+0x750/0x750 [ 17.009201][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.009209][ T158] vfs_write+0x6a2/0xbd0 [ 17.009213][ T158] ksys_write+0x116/0x250 [ 17.009216][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 17.009217][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.009220][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.009223][ T158] do_syscall_64+0xff/0x530 [ 17.009225][ T158] ? exc_page_fault+0xee/0x100 [ 17.009228][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.009231][ T158] RIP: 0033:0x7f49bce2154e [ 17.009235][ 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.009237][ T158] RSP: 002b:00007ffc7abbd5b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.009240][ T158] RAX: ffffffffffffffda RBX: 00007f49bcfa2580 RCX: 00007f49bce2154e [ 17.009241][ T158] RDX: 0000000000000023 RSI: 000055a63521bab0 RDI: 0000000000000001 [ 17.009242][ T158] RBP: 00007ffc7abbd5c0 R08: 0000000000000000 R09: 0000000000000000 [ 17.009243][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.009244][ T158] R13: 0000000000000023 R14: 000055a63521bab0 R15: 0000000000000000 [ 17.009251][ T158] [ 20.785428][ T158] netconsole selftest: netcons_zkJJL [ 20.785461][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 20.785465][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 20.785468][ T158] preempt_count: 1, expected: 0 [ 20.785470][ T158] RCU nest depth: 0, expected: 0 [ 20.785471][ T158] locks held by bash/158: 4, last CPU#0: [ 20.785475][ T158] #0: ffffffff96599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 20.785492][ T158] #1: ffffffff96599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 20.785499][ T158] #2: ffffffff96489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 20.785506][ T158] #3: ffffffff96489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 20.785513][ T158] irq event stamp: 359434 [ 20.785515][ T158] hardirqs last enabled at (359433): [] __down_trylock_console_sem+0x86/0xa0 [ 20.785519][ T158] hardirqs last disabled at (359434): [] console_emit_next_record+0x3f8/0x4f0 [ 20.785522][ T158] softirqs last enabled at (359348): [] handle_softirqs+0x67c/0x900 [ 20.785526][ T158] softirqs last disabled at (359341): [] __irq_exit_rcu+0x145/0x1c0 [ 20.785531][ T158] Preemption disabled at: [ 20.785532][ T158] [] vprintk_emit+0x31b/0x3e0 [ 20.785539][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 20.785544][ T158] Tainted: [W]=WARN [ 20.785545][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.785548][ T158] Call Trace: [ 20.785550][ T158] [ 20.785553][ T158] dump_stack_lvl+0x6f/0xa0 [ 20.785560][ T158] ? vprintk_emit+0x31b/0x3e0 [ 20.785563][ T158] __might_resched.cold+0x1fe/0x2c1 [ 20.785570][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 20.785575][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 20.785582][ T158] __kmalloc_noprof+0x443/0x760 [ 20.785586][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 20.785595][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 20.785598][ T158] alloc_buf.isra.0+0x4b/0x260 [ 20.785604][ T158] put_chars+0x1e1/0x2f0 [ 20.785608][ T158] ? __send_to_port+0x420/0x420 [ 20.785611][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 20.785616][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 20.785620][ T158] ? validate_chain+0x38b/0xc20 [ 20.785628][ T158] hvc_console_print+0x292/0x780 [ 20.785632][ T158] ? __lock_acquire+0x518/0xc20 [ 20.785634][ T158] ? __lock_acquire+0x518/0xc20 [ 20.785641][ T158] ? hvc_write+0x3a0/0x3a0 [ 20.785647][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.785651][ T158] ? lock_acquire+0x13c/0x160 [ 20.785659][ T158] console_emit_next_record+0x252/0x4f0 [ 20.785665][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 20.785672][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.785676][ T158] ? lock_acquire+0x13c/0x160 [ 20.785682][ T158] console_flush_one_record+0x46f/0x710 [ 20.785689][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 20.785692][ T158] ? __lock_acquire+0x518/0xc20 [ 20.785701][ T158] console_unlock+0xee/0x1f0 [ 20.785705][ T158] ? console_flush_one_record+0x710/0x710 [ 20.785707][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.785711][ T158] ? lock_acquire+0x60/0x160 [ 20.785717][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 20.785719][ T158] ? vprintk_emit+0x320/0x3e0 [ 20.785725][ T158] vprintk_emit+0x37c/0x3e0 [ 20.785730][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 20.785736][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 20.785744][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 20.785750][ T158] ? vprintk_emit.cold+0x107/0x107 [ 20.785756][ T158] ? __kmalloc_noprof+0x302/0x760 [ 20.785759][ T158] ? idr_get_free+0x830/0x830 [ 20.785764][ T158] ? devkmsg_write+0xd1/0x2c0 [ 20.785769][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 20.785774][ T158] devkmsg_write.cold+0x5a/0x8b [ 20.785778][ T158] ? vprintk_default+0x20/0x20 [ 20.785781][ T158] ? __lock_acquire+0x518/0xc20 [ 20.785784][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 20.785791][ T158] ? vprintk_default+0x20/0x20 [ 20.785795][ T158] new_sync_write+0x33e/0x760 [ 20.785803][ T158] ? new_sync_read+0x750/0x750 [ 20.785805][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 20.785820][ T158] vfs_write+0x6a2/0xbd0 [ 20.785828][ T158] ksys_write+0x116/0x250 [ 20.785832][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 20.785835][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 20.785839][ T158] ? rcu_is_watching+0x16/0xd0 [ 20.785845][ T158] do_syscall_64+0xff/0x530 [ 20.785849][ T158] ? exc_page_fault+0xee/0x100 [ 20.785854][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 20.785858][ T158] RIP: 0033:0x7f49bce2154e [ 20.785863][ T158] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 20.785866][ T158] RSP: 002b:00007ffc7abbd5b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 20.785870][ T158] RAX: ffffffffffffffda RBX: 00007f49bcfa2580 RCX: 00007f49bce2154e [ 20.785872][ T158] RDX: 0000000000000023 RSI: 000055a63521bab0 RDI: 0000000000000001 [ 20.785874][ T158] RBP: 00007ffc7abbd5c0 R08: 0000000000000000 R09: 0000000000000000 [ 20.785876][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 20.785878][ T158] R13: 0000000000000023 R14: 000055a63521bab0 R15: 0000000000000000 [ 20.785890][ T158] [ 24.788027][ T158] netconsole selftest: netcons_zkJJL [ 24.788055][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 24.788059][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 24.788061][ T158] preempt_count: 1, expected: 0 [ 24.788062][ T158] RCU nest depth: 0, expected: 0 [ 24.788063][ T158] locks held by bash/158: 4, last CPU#2: [ 24.788066][ T158] #0: ffffffff96599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 24.788079][ T158] #1: ffffffff96599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 24.788084][ T158] #2: ffffffff96489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 24.788088][ T158] #3: ffffffff96489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 24.788093][ T158] irq event stamp: 486608 [ 24.788094][ T158] hardirqs last enabled at (486607): [] __down_trylock_console_sem+0x86/0xa0 [ 24.788097][ T158] hardirqs last disabled at (486608): [] console_emit_next_record+0x3f8/0x4f0 [ 24.788099][ T158] softirqs last enabled at (486406): [] restore_fpregs_from_user+0x1cf/0x490 [ 24.788103][ T158] softirqs last disabled at (486404): [] restore_fpregs_from_user+0xc3/0x490 [ 24.788105][ T158] Preemption disabled at: [ 24.788106][ T158] [] vprintk_emit+0x31b/0x3e0 [ 24.788112][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 24.788116][ T158] Tainted: [W]=WARN [ 24.788117][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.788119][ T158] Call Trace: [ 24.788120][ T158] [ 24.788122][ T158] dump_stack_lvl+0x6f/0xa0 [ 24.788127][ T158] ? vprintk_emit+0x31b/0x3e0 [ 24.788129][ T158] __might_resched.cold+0x1fe/0x2c1 [ 24.788134][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 24.788138][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 24.788143][ T158] __kmalloc_noprof+0x443/0x760 [ 24.788145][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 24.788151][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 24.788153][ T158] alloc_buf.isra.0+0x4b/0x260 [ 24.788156][ T158] put_chars+0x1e1/0x2f0 [ 24.788159][ T158] ? __send_to_port+0x420/0x420 [ 24.788161][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 24.788164][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 24.788167][ T158] ? validate_chain+0x38b/0xc20 [ 24.788171][ T158] hvc_console_print+0x292/0x780 [ 24.788174][ T158] ? __lock_acquire+0x518/0xc20 [ 24.788176][ T158] ? __lock_acquire+0x518/0xc20 [ 24.788180][ T158] ? hvc_write+0x3a0/0x3a0 [ 24.788183][ T158] ? rcu_is_watching+0x16/0xd0 [ 24.788186][ T158] ? lock_acquire+0x13c/0x160 [ 24.788189][ T158] console_emit_next_record+0x252/0x4f0 [ 24.788193][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 24.788201][ T158] ? rcu_is_watching+0x16/0xd0 [ 24.788203][ T158] ? lock_acquire+0x13c/0x160 [ 24.788207][ T158] console_flush_one_record+0x46f/0x710 [ 24.788211][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 24.788212][ T158] ? __lock_acquire+0x518/0xc20 [ 24.788217][ T158] console_unlock+0xee/0x1f0 [ 24.788220][ T158] ? console_flush_one_record+0x710/0x710 [ 24.788221][ T158] ? rcu_is_watching+0x16/0xd0 [ 24.788223][ T158] ? lock_acquire+0x60/0x160 [ 24.788227][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 24.788228][ T158] ? vprintk_emit+0x320/0x3e0 [ 24.788232][ T158] vprintk_emit+0x37c/0x3e0 [ 24.788235][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 24.788238][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 24.788244][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 24.788248][ T158] ? vprintk_emit.cold+0x107/0x107 [ 24.788252][ T158] ? __kmalloc_noprof+0x302/0x760 [ 24.788254][ T158] ? idr_get_free+0x830/0x830 [ 24.788257][ T158] ? devkmsg_write+0xd1/0x2c0 [ 24.788260][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 24.788263][ T158] devkmsg_write.cold+0x5a/0x8b [ 24.788266][ T158] ? vprintk_default+0x20/0x20 [ 24.788267][ T158] ? handle_pte_fault+0x448/0x710 [ 24.788272][ T158] ? do_numa_page.isra.0+0xa70/0xa70 [ 24.788275][ T158] ? vprintk_default+0x20/0x20 [ 24.788277][ T158] new_sync_write+0x33e/0x760 [ 24.788282][ T158] ? new_sync_read+0x750/0x750 [ 24.788283][ T158] ? lock_vma_under_rcu+0x159/0x410 [ 24.788291][ T158] vfs_write+0x6a2/0xbd0 [ 24.788295][ T158] ksys_write+0x116/0x250 [ 24.788298][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 24.788300][ T158] ? rcu_is_watching+0x16/0xd0 [ 24.788303][ T158] ? rcu_is_watching+0x16/0xd0 [ 24.788306][ T158] do_syscall_64+0xff/0x530 [ 24.788308][ T158] ? exc_page_fault+0xee/0x100 [ 24.788311][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 24.788314][ T158] RIP: 0033:0x7f49bce2154e [ 24.788318][ 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 [ 24.788320][ T158] RSP: 002b:00007ffc7abbd5b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 24.788323][ T158] RAX: ffffffffffffffda RBX: 00007f49bcfa2580 RCX: 00007f49bce2154e [ 24.788325][ T158] RDX: 0000000000000023 RSI: 000055a63521bab0 RDI: 0000000000000001 [ 24.788326][ T158] RBP: 00007ffc7abbd5c0 R08: 0000000000000000 R09: 0000000000000000 [ 24.788326][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 24.788327][ T158] R13: 0000000000000023 R14: 000055a63521bab0 R15: 0000000000000000 [ 24.788334][ T158]