[ 8.363758][ T126] modprobe (126) used greatest stack depth: 24480 bytes left [ 8.363774][ T126] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.363776][ T126] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 126, name: modprobe [ 8.363778][ T126] preempt_count: 2, expected: 0 [ 8.363779][ T126] RCU nest depth: 0, expected: 0 [ 8.363780][ T126] locks held by modprobe/126: 5, last CPU#2: [ 8.363782][ T126] #0: ffffffffa0c027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.363794][ T126] #1: ffffffffa0d69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.363799][ T126] #2: ffffffffa0d69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.363803][ T126] #3: ffffffffa0c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.363806][ T126] #4: ffffffffa0c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.363809][ T126] irq event stamp: 18518 [ 8.363810][ T126] hardirqs last enabled at (18517): [] __down_trylock_console_sem+0x86/0xa0 [ 8.363814][ T126] hardirqs last disabled at (18518): [] console_emit_next_record+0x3d4/0x4c0 [ 8.363815][ T126] softirqs last enabled at (18010): [] handle_softirqs+0x67c/0x900 [ 8.363817][ T126] softirqs last disabled at (18005): [] __irq_exit_rcu+0x145/0x1c0 [ 8.363820][ T126] Preemption disabled at: [ 8.363821][ T126] [<0000000000000000>] 0x0 [ 8.363827][ T126] CPU: 2 UID: 0 PID: 126 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.363830][ T126] Tainted: [W]=WARN [ 8.363831][ T126] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.363833][ T126] Call Trace: [ 8.363835][ T126] [ 8.363836][ T126] dump_stack_lvl+0x6f/0xa0 [ 8.363842][ T126] __might_resched.cold+0x1fe/0x2c1 [ 8.363846][ T126] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.363849][ T126] ? __kmalloc_noprof+0xdb/0x760 [ 8.363855][ T126] __kmalloc_noprof+0x443/0x760 [ 8.363857][ T126] ? alloc_buf.isra.0+0x4b/0x260 [ 8.363864][ T126] ? do_raw_spin_unlock+0x59/0x250 [ 8.363867][ T126] alloc_buf.isra.0+0x4b/0x260 [ 8.363870][ T126] put_chars+0x1e1/0x2f0 [ 8.363873][ T126] ? __send_to_port+0x420/0x420 [ 8.363875][ T126] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.363879][ T126] ? validate_chain+0x38b/0xc20 [ 8.363885][ T126] hvc_console_print+0x292/0x780 [ 8.363891][ T126] ? hvc_write+0x3a0/0x3a0 [ 8.363894][ T126] ? rcu_is_watching+0x16/0xd0 [ 8.363896][ T126] ? lock_acquire+0x13c/0x160 [ 8.363900][ T126] console_emit_next_record+0x22f/0x4c0 [ 8.363904][ T126] ? devkmsg_read+0x4b0/0x4b0 [ 8.363905][ T126] ? console_flush_one_record+0x106/0x710 [ 8.363907][ T126] ? rcu_is_watching+0x16/0xd0 [ 8.363909][ T126] ? lock_acquire+0x13c/0x160 [ 8.363913][ T126] console_flush_one_record+0x46f/0x710 [ 8.363917][ T126] ? console_emit_next_record+0x4c0/0x4c0 [ 8.363918][ T126] ? __lock_acquire+0x518/0xc20 [ 8.363924][ T126] console_unlock+0xee/0x1f0 [ 8.363926][ T126] ? console_flush_one_record+0x710/0x710 [ 8.363927][ T126] ? rcu_is_watching+0x16/0xd0 [ 8.363929][ T126] ? lock_acquire+0x60/0x160 [ 8.363933][ T126] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.363935][ T126] ? vprintk_emit+0x320/0x3e0 [ 8.363938][ T126] vprintk_emit+0x37c/0x3e0 [ 8.363941][ T126] ? wake_up_klogd_work_func+0x90/0x90 [ 8.363944][ T126] ? __lock_acquire+0x518/0xc20 [ 8.363948][ T126] _printk+0xc7/0x100 [ 8.363952][ T126] ? snapshot_read.cold+0x21/0x21 [ 8.363955][ T126] ? do_raw_spin_lock+0x131/0x280 [ 8.363957][ T126] ? __rwlock_init+0x150/0x150 [ 8.363961][ T126] ? do_raw_spin_lock+0x131/0x280 [ 8.363964][ T126] do_exit.cold+0x82/0x9c [ 8.363968][ T126] ? exit_notify+0x890/0x890 [ 8.363970][ T126] ? __lock_release.isra.0+0x69/0x1a0 [ 8.363972][ T126] ? rcu_is_watching+0x16/0xd0 [ 8.363976][ T126] do_group_exit+0xb8/0x370 [ 8.363979][ T126] __x64_sys_exit_group+0x3c/0x50 [ 8.363981][ T126] x64_sys_call+0x1567/0x1570 [ 8.363984][ T126] do_syscall_64+0xff/0x530 [ 8.363988][ T126] ? exc_page_fault+0xee/0x100 [ 8.363991][ T126] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.363993][ T126] RIP: 0033:0x7f43146e51b8 [ 8.363996][ T126] Code: Unable to access opcode bytes at 0x7f43146e518e. [ 8.363997][ T126] RSP: 002b:00007ffee1ce1538 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.363999][ T126] RAX: ffffffffffffffda RBX: 00007f4314815f88 RCX: 00007f43146e51b8 [ 8.364001][ T126] RDX: 00007f4314620a88 RSI: ffffffffffffffa8 RDI: 0000000000000001 [ 8.364001][ T126] RBP: 00007ffee1ce1590 R08: 0000000000000000 R09: 00000000000000a0 [ 8.364002][ T126] R10: 00007ffee1ce1390 R11: 0000000000000246 R12: 0000000000000001 [ 8.364003][ T126] R13: 0000000000000001 R14: 00007f4314814680 R15: 00007f4314815fa0 [ 8.364010][ T126]