[ 9.804863][ T180] netconsole: network logging started [ 9.804886][ T180] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.804888][ T180] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 180, name: modprobe [ 9.804890][ T180] preempt_count: 1, expected: 0 [ 9.804891][ T180] RCU nest depth: 0, expected: 0 [ 9.804892][ T180] locks held by modprobe/180: 4, last CPU#1: [ 9.804894][ T180] #0: ffffffffaf399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.804905][ T180] #1: ffffffffaf399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.804909][ T180] #2: ffffffffaf289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.804913][ T180] #3: ffffffffaf289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.804916][ T180] irq event stamp: 31584 [ 9.804917][ T180] hardirqs last enabled at (31583): [] __down_trylock_console_sem+0x86/0xa0 [ 9.804920][ T180] hardirqs last disabled at (31584): [] console_emit_next_record+0x3f8/0x4f0 [ 9.804922][ T180] softirqs last enabled at (31180): [] handle_softirqs+0x67c/0x900 [ 9.804925][ T180] softirqs last disabled at (31147): [] __irq_exit_rcu+0x145/0x1c0 [ 9.804928][ T180] Preemption disabled at: [ 9.804928][ T180] [] vprintk_emit+0x31b/0x3e0 [ 9.804933][ T180] CPU: 1 UID: 0 PID: 180 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.804937][ T180] Tainted: [W]=WARN [ 9.804938][ T180] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.804940][ T180] Call Trace: [ 9.804942][ T180] [ 9.804943][ T180] dump_stack_lvl+0x6f/0xa0 [ 9.804948][ T180] ? vprintk_emit+0x31b/0x3e0 [ 9.804950][ T180] __might_resched.cold+0x1fe/0x2c1 [ 9.804954][ T180] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.804957][ T180] ? __kmalloc_noprof+0xdb/0x760 [ 9.804963][ T180] __kmalloc_noprof+0x443/0x760 [ 9.804965][ T180] ? alloc_buf.isra.0+0x4b/0x260 [ 9.804972][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 9.804974][ T180] alloc_buf.isra.0+0x4b/0x260 [ 9.804978][ T180] put_chars+0x1e1/0x2f0 [ 9.804981][ T180] ? __send_to_port+0x420/0x420 [ 9.804985][ T180] ? validate_chain+0x38b/0xc20 [ 9.804991][ T180] hvc_console_print+0x292/0x780 [ 9.804999][ T180] ? hvc_write+0x3a0/0x3a0 [ 9.805002][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.805005][ T180] ? lock_acquire+0x13c/0x160 [ 9.805009][ T180] console_emit_next_record+0x252/0x4f0 [ 9.805013][ T180] ? devkmsg_read+0x4e0/0x4e0 [ 9.805017][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.805019][ T180] ? lock_acquire+0x13c/0x160 [ 9.805023][ T180] console_flush_one_record+0x46f/0x710 [ 9.805027][ T180] ? console_emit_next_record+0x4f0/0x4f0 [ 9.805028][ T180] ? __lock_acquire+0x518/0xc20 [ 9.805034][ T180] console_unlock+0xee/0x1f0 [ 9.805036][ T180] ? console_flush_one_record+0x710/0x710 [ 9.805037][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.805039][ T180] ? lock_acquire+0x60/0x160 [ 9.805043][ T180] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.805045][ T180] ? vprintk_emit+0x320/0x3e0 [ 9.805048][ T180] vprintk_emit+0x37c/0x3e0 [ 9.805052][ T180] ? wake_up_klogd_work_func+0x90/0x90 [ 9.805053][ T180] ? find_held_lock+0x2b/0x80 [ 9.805056][ T180] ? __lock_release.isra.0+0x69/0x1a0 [ 9.805058][ T180] ? fast_dput+0x316/0x540 [ 9.805063][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.805067][ T180] _printk+0xc7/0x100 [ 9.805071][ T180] ? snapshot_read.cold+0x21/0x21 [ 9.805073][ T180] ? __up_write+0x2e5/0x5f0 [ 9.805077][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.805080][ T180] ? configfs_register_subsystem+0x340/0x570 [ 9.805085][ T180] init_netconsole+0x4a8/0x1000 [netconsole] [ 9.805089][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.805096][ T180] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 9.805098][ T180] do_one_initcall+0x124/0x4f0 [ 9.805102][ T180] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.805106][ T180] ? do_init_module+0xae/0x8a0 [ 9.805109][ T180] ? kasan_unpoison+0x44/0x70 [ 9.805114][ T180] do_init_module+0x2ad/0x8a0 [ 9.805117][ T180] ? lockdep_hardirqs_on+0x91/0x130 [ 9.805122][ T180] ? free_module+0x470/0x470 [ 9.805124][ T180] ? kfree+0x123/0x590 [ 9.805129][ T180] load_module+0x1424/0x1bb0 [ 9.805136][ T180] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.805140][ T180] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.805143][ T180] ? find_held_lock+0x2b/0x80 [ 9.805146][ T180] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.805150][ T180] init_module_from_file+0x11f/0x1a0 [ 9.805152][ T180] ? __do_sys_init_module+0x220/0x220 [ 9.805160][ T180] ? __rwlock_init+0x150/0x150 [ 9.805164][ T180] ? do_raw_spin_unlock+0x59/0x250 [ 9.805166][ T180] idempotent_init_module+0x37b/0x7c0 [ 9.805169][ T180] ? init_module_from_file+0x1a0/0x1a0 [ 9.805175][ T180] ? rcu_is_watching+0x16/0xd0 [ 9.805177][ T180] ? cap_capable+0x1d7/0x3d0 [ 9.805183][ T180] __x64_sys_finit_module+0xdf/0x190 [ 9.805185][ T180] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.805189][ T180] do_syscall_64+0xff/0x530 [ 9.805190][ T180] ? exc_page_fault+0xee/0x100 [ 9.805193][ T180] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.805195][ T180] RIP: 0033:0x7f2d9ffaa37d [ 9.805199][ T180] 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.805200][ T180] RSP: 002b:00007fff797fd7d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.805203][ T180] RAX: ffffffffffffffda RBX: 000055e6f4525700 RCX: 00007f2d9ffaa37d [ 9.805204][ T180] RDX: 0000000000000000 RSI: 000055e6cd906ffd RDI: 0000000000000005 [ 9.805205][ T180] RBP: 00007fff797fd870 R08: 0000000000000000 R09: 0000000000000000 [ 9.805206][ T180] R10: 0000000000000000 R11: 0000000000000246 R12: 000055e6cd906ffd [ 9.805207][ T180] R13: 000055e6f4525810 R14: 0000000000040000 R15: 0000000000000000 [ 9.805214][ T180] [ 13.698790][ T168] netconsole selftest: netcons_cTugb [ 13.698819][ T168] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.698822][ T168] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 168, name: bash [ 13.698824][ T168] preempt_count: 1, expected: 0 [ 13.698825][ T168] RCU nest depth: 0, expected: 0 [ 13.698826][ T168] locks held by bash/168: 4, last CPU#1: [ 13.698829][ T168] #0: ffffffffaf399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.698842][ T168] #1: ffffffffaf399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.698846][ T168] #2: ffffffffaf289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.698850][ T168] #3: ffffffffaf289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.698854][ T168] irq event stamp: 128054 [ 13.698856][ T168] hardirqs last enabled at (128053): [] __down_trylock_console_sem+0x86/0xa0 [ 13.698860][ T168] hardirqs last disabled at (128054): [] console_emit_next_record+0x3f8/0x4f0 [ 13.698861][ T168] softirqs last enabled at (127852): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.698866][ T168] softirqs last disabled at (127850): [] restore_fpregs_from_user+0xc3/0x490 [ 13.698869][ T168] Preemption disabled at: [ 13.698870][ T168] [] vprintk_emit+0x31b/0x3e0 [ 13.698876][ T168] CPU: 1 UID: 0 PID: 168 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.698879][ T168] Tainted: [W]=WARN [ 13.698887][ T168] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.698890][ T168] Call Trace: [ 13.698891][ T168] [ 13.698893][ T168] dump_stack_lvl+0x6f/0xa0 [ 13.698898][ T168] ? vprintk_emit+0x31b/0x3e0 [ 13.698900][ T168] __might_resched.cold+0x1fe/0x2c1 [ 13.698905][ T168] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.698909][ T168] ? __kmalloc_noprof+0xdb/0x760 [ 13.698914][ T168] __kmalloc_noprof+0x443/0x760 [ 13.698917][ T168] ? alloc_buf.isra.0+0x4b/0x260 [ 13.698924][ T168] ? do_raw_spin_unlock+0x59/0x250 [ 13.698926][ T168] alloc_buf.isra.0+0x4b/0x260 [ 13.698930][ T168] put_chars+0x1e1/0x2f0 [ 13.698933][ T168] ? __send_to_port+0x420/0x420 [ 13.698935][ T168] ? printk_get_next_message+0x2fe/0x7d0 [ 13.698938][ T168] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.698942][ T168] ? validate_chain+0x38b/0xc20 [ 13.698947][ T168] hvc_console_print+0x292/0x780 [ 13.698951][ T168] ? __lock_acquire+0x518/0xc20 [ 13.698954][ T168] ? __lock_acquire+0x518/0xc20 [ 13.698958][ T168] ? hvc_write+0x3a0/0x3a0 [ 13.698962][ T168] ? rcu_is_watching+0x16/0xd0 [ 13.698965][ T168] ? lock_acquire+0x13c/0x160 [ 13.698969][ T168] console_emit_next_record+0x252/0x4f0 [ 13.698973][ T168] ? devkmsg_read+0x4e0/0x4e0 [ 13.698977][ T168] ? rcu_is_watching+0x16/0xd0 [ 13.698979][ T168] ? lock_acquire+0x13c/0x160 [ 13.698983][ T168] console_flush_one_record+0x46f/0x710 [ 13.698988][ T168] ? console_emit_next_record+0x4f0/0x4f0 [ 13.698989][ T168] ? __lock_acquire+0x518/0xc20 [ 13.698995][ T168] console_unlock+0xee/0x1f0 [ 13.698998][ T168] ? console_flush_one_record+0x710/0x710 [ 13.698999][ T168] ? rcu_is_watching+0x16/0xd0 [ 13.699001][ T168] ? lock_acquire+0x60/0x160 [ 13.699005][ T168] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.699007][ T168] ? vprintk_emit+0x320/0x3e0 [ 13.699010][ T168] vprintk_emit+0x37c/0x3e0 [ 13.699013][ T168] ? wake_up_klogd_work_func+0x90/0x90 [ 13.699016][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 13.699022][ T168] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.699026][ T168] ? vprintk_emit.cold+0x107/0x107 [ 13.699030][ T168] ? __kmalloc_noprof+0x302/0x760 [ 13.699032][ T168] ? idr_get_free+0x830/0x830 [ 13.699036][ T168] ? devkmsg_write+0xd1/0x2c0 [ 13.699039][ T168] ? _copy_from_iter+0x1bb/0x1810 [ 13.699041][ T168] devkmsg_write.cold+0x5a/0x8b [ 13.699044][ T168] ? vprintk_default+0x20/0x20 [ 13.699045][ T168] ? handle_pte_fault+0x448/0x710 [ 13.699050][ T168] ? do_numa_page.isra.0+0xa70/0xa70 [ 13.699053][ T168] ? vprintk_default+0x20/0x20 [ 13.699055][ T168] new_sync_write+0x33e/0x760 [ 13.699059][ T168] ? new_sync_read+0x750/0x750 [ 13.699061][ T168] ? lock_vma_under_rcu+0x159/0x410 [ 13.699070][ T168] vfs_write+0x6a2/0xbd0 [ 13.699075][ T168] ksys_write+0x116/0x250 [ 13.699078][ T168] ? __ia32_sys_read+0xc0/0xc0 [ 13.699080][ T168] ? rcu_is_watching+0x16/0xd0 [ 13.699082][ T168] ? rcu_is_watching+0x16/0xd0 [ 13.699085][ T168] do_syscall_64+0xff/0x530 [ 13.699087][ T168] ? exc_page_fault+0xee/0x100 [ 13.699090][ T168] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.699093][ T168] RIP: 0033:0x7fd50961c54e [ 13.699097][ T168] 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.699099][ T168] RSP: 002b:00007ffd3dd991a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.699102][ T168] RAX: ffffffffffffffda RBX: 00007fd50979d580 RCX: 00007fd50961c54e [ 13.699103][ T168] RDX: 0000000000000023 RSI: 000055685187c120 RDI: 0000000000000001 [ 13.699104][ T168] RBP: 00007ffd3dd991b0 R08: 0000000000000000 R09: 0000000000000000 [ 13.699105][ T168] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.699106][ T168] R13: 0000000000000023 R14: 000055685187c120 R15: 0000000000000000 [ 13.699113][ T168]