[ 8.297128][ T127] modprobe (127) used greatest stack depth: 24808 bytes left [ 8.297143][ T127] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.297145][ T127] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 127, name: modprobe [ 8.297147][ T127] preempt_count: 2, expected: 0 [ 8.297148][ T127] RCU nest depth: 0, expected: 0 [ 8.297149][ T127] locks held by modprobe/127: 5, last CPU#0: [ 8.297151][ T127] #0: ffffffffa8c027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.297163][ T127] #1: ffffffffa8d69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.297168][ T127] #2: ffffffffa8d69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.297171][ T127] #3: ffffffffa8c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.297174][ T127] #4: ffffffffa8c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.297178][ T127] irq event stamp: 21326 [ 8.297178][ T127] hardirqs last enabled at (21325): [] __down_trylock_console_sem+0x86/0xa0 [ 8.297182][ T127] hardirqs last disabled at (21326): [] console_emit_next_record+0x3d4/0x4c0 [ 8.297183][ T127] softirqs last enabled at (19706): [] handle_softirqs+0x67c/0x900 [ 8.297185][ T127] softirqs last disabled at (19701): [] __irq_exit_rcu+0x145/0x1c0 [ 8.297187][ T127] Preemption disabled at: [ 8.297188][ T127] [<0000000000000000>] 0x0 [ 8.297195][ T127] CPU: 0 UID: 0 PID: 127 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.297198][ T127] Tainted: [W]=WARN [ 8.297199][ T127] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.297200][ T127] Call Trace: [ 8.297202][ T127] [ 8.297204][ T127] dump_stack_lvl+0x6f/0xa0 [ 8.297209][ T127] __might_resched.cold+0x1fe/0x2c1 [ 8.297213][ T127] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.297216][ T127] ? __kmalloc_noprof+0xdb/0x760 [ 8.297221][ T127] __kmalloc_noprof+0x443/0x760 [ 8.297223][ T127] ? alloc_buf.isra.0+0x4b/0x260 [ 8.297230][ T127] ? do_raw_spin_unlock+0x59/0x250 [ 8.297232][ T127] alloc_buf.isra.0+0x4b/0x260 [ 8.297235][ T127] put_chars+0x1e1/0x2f0 [ 8.297238][ T127] ? __send_to_port+0x420/0x420 [ 8.297240][ T127] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.297244][ T127] ? validate_chain+0x38b/0xc20 [ 8.297249][ T127] hvc_console_print+0x292/0x780 [ 8.297256][ T127] ? hvc_write+0x3a0/0x3a0 [ 8.297258][ T127] ? rcu_is_watching+0x16/0xd0 [ 8.297260][ T127] ? lock_acquire+0x13c/0x160 [ 8.297264][ T127] console_emit_next_record+0x22f/0x4c0 [ 8.297267][ T127] ? devkmsg_read+0x4b0/0x4b0 [ 8.297268][ T127] ? console_flush_one_record+0x106/0x710 [ 8.297271][ T127] ? rcu_is_watching+0x16/0xd0 [ 8.297273][ T127] ? lock_acquire+0x13c/0x160 [ 8.297276][ T127] console_flush_one_record+0x46f/0x710 [ 8.297280][ T127] ? console_emit_next_record+0x4c0/0x4c0 [ 8.297281][ T127] ? __lock_acquire+0x518/0xc20 [ 8.297286][ T127] console_unlock+0xee/0x1f0 [ 8.297288][ T127] ? console_flush_one_record+0x710/0x710 [ 8.297290][ T127] ? rcu_is_watching+0x16/0xd0 [ 8.297291][ T127] ? lock_acquire+0x60/0x160 [ 8.297295][ T127] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.297297][ T127] ? vprintk_emit+0x320/0x3e0 [ 8.297300][ T127] vprintk_emit+0x37c/0x3e0 [ 8.297303][ T127] ? wake_up_klogd_work_func+0x90/0x90 [ 8.297305][ T127] ? __lock_acquire+0x518/0xc20 [ 8.297309][ T127] _printk+0xc7/0x100 [ 8.297313][ T127] ? snapshot_read.cold+0x21/0x21 [ 8.297316][ T127] ? do_raw_spin_lock+0x131/0x280 [ 8.297318][ T127] ? __rwlock_init+0x150/0x150 [ 8.297322][ T127] ? do_raw_spin_lock+0x131/0x280 [ 8.297325][ T127] do_exit.cold+0x82/0x9c [ 8.297328][ T127] ? exit_notify+0x890/0x890 [ 8.297329][ T127] ? __lock_release.isra.0+0x69/0x1a0 [ 8.297332][ T127] ? rcu_is_watching+0x16/0xd0 [ 8.297336][ T127] do_group_exit+0xb8/0x370 [ 8.297339][ T127] __x64_sys_exit_group+0x3c/0x50 [ 8.297341][ T127] x64_sys_call+0x1567/0x1570 [ 8.297343][ T127] do_syscall_64+0xff/0x530 [ 8.297347][ T127] ? exc_page_fault+0xee/0x100 [ 8.297350][ T127] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.297352][ T127] RIP: 0033:0x7f50ef7b31b8 [ 8.297354][ T127] Code: Unable to access opcode bytes at 0x7f50ef7b318e. [ 8.297355][ T127] RSP: 002b:00007fff27bb66c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.297357][ T127] RAX: ffffffffffffffda RBX: 00007f50ef8e3f88 RCX: 00007f50ef7b31b8 [ 8.297359][ T127] RDX: 00007f50ef6eea88 RSI: ffffffffffffffa8 RDI: 0000000000000001 [ 8.297359][ T127] RBP: 00007fff27bb6720 R08: 0000000000000000 R09: 00000000000000a0 [ 8.297360][ T127] R10: 00007fff27bb6520 R11: 0000000000000246 R12: 0000000000000001 [ 8.297361][ T127] R13: 0000000000000001 R14: 00007f50ef8e2680 R15: 00007f50ef8e3fa0 [ 8.297368][ T127]