[ 10.387438][ T170] modprobe (170) used greatest stack depth: 24368 bytes left [ 10.387459][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.387462][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 10.387465][ T170] preempt_count: 2, expected: 0 [ 10.387466][ T170] RCU nest depth: 0, expected: 0 [ 10.387467][ T170] locks held by modprobe/170: 5, last CPU#2: [ 10.387470][ T170] #0: ffffffffb1802f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 10.387485][ T170] #1: ffffffffb196a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.387492][ T170] #2: ffffffffb196a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.387497][ T170] #3: ffffffffb1889de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.387503][ T170] #4: ffffffffb1889ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.387509][ T170] irq event stamp: 55644 [ 10.387510][ T170] hardirqs last enabled at (55643): [] __down_trylock_console_sem+0x86/0xa0 [ 10.387515][ T170] hardirqs last disabled at (55644): [] console_emit_next_record+0x3d4/0x4c0 [ 10.387517][ T170] softirqs last enabled at (55636): [] handle_softirqs+0x67c/0x900 [ 10.387521][ T170] softirqs last disabled at (54265): [] __irq_exit_rcu+0x145/0x1c0 [ 10.387524][ T170] Preemption disabled at: [ 10.387525][ T170] [<0000000000000000>] 0x0 [ 10.387534][ T170] CPU: 2 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.387539][ T170] Tainted: [W]=WARN [ 10.387541][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.387543][ T170] Call Trace: [ 10.387545][ T170] [ 10.387547][ T170] dump_stack_lvl+0x6f/0xa0 [ 10.387556][ T170] __might_resched.cold+0x1fe/0x2c1 [ 10.387563][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.387569][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 10.387577][ T170] __kmalloc_noprof+0x443/0x760 [ 10.387581][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 10.387592][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.387596][ T170] alloc_buf.isra.0+0x4b/0x260 [ 10.387603][ T170] put_chars+0x1e1/0x2f0 [ 10.387608][ T170] ? __send_to_port+0x420/0x420 [ 10.387623][ T170] hvc_console_print+0x292/0x780 [ 10.387636][ T170] ? hvc_write+0x3a0/0x3a0 [ 10.387642][ T170] ? lock_acquire+0x13c/0x160 [ 10.387651][ T170] console_emit_next_record+0x22f/0x4c0 [ 10.387657][ T170] ? devkmsg_read+0x4b0/0x4b0 [ 10.387660][ T170] ? console_flush_one_record+0x106/0x710 [ 10.387665][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.387671][ T170] ? lock_acquire+0x13c/0x160 [ 10.387678][ T170] console_flush_one_record+0x46f/0x710 [ 10.387687][ T170] ? console_emit_next_record+0x4c0/0x4c0 [ 10.387689][ T170] ? __lock_acquire+0x518/0xc20 [ 10.387702][ T170] console_unlock+0xee/0x1f0 [ 10.387706][ T170] ? console_flush_one_record+0x710/0x710 [ 10.387709][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.387713][ T170] ? lock_acquire+0x60/0x160 [ 10.387721][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.387724][ T170] ? vprintk_emit+0x320/0x3e0 [ 10.387730][ T170] vprintk_emit+0x37c/0x3e0 [ 10.387737][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 10.387744][ T170] ? __lock_acquire+0x518/0xc20 [ 10.387753][ T170] _printk+0xc7/0x100 [ 10.387759][ T170] ? snapshot_read.cold+0x21/0x21 [ 10.387765][ T170] ? do_raw_spin_lock+0x131/0x280 [ 10.387770][ T170] ? __rwlock_init+0x150/0x150 [ 10.387779][ T170] ? do_raw_spin_lock+0x131/0x280 [ 10.387784][ T170] do_exit.cold+0x82/0x9c [ 10.387791][ T170] ? exit_notify+0x890/0x890 [ 10.387793][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 10.387799][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.387807][ T170] do_group_exit+0xb8/0x370 [ 10.387813][ T170] __x64_sys_exit_group+0x3c/0x50 [ 10.387817][ T170] x64_sys_call+0x1567/0x1570 [ 10.387821][ T170] do_syscall_64+0x10e/0x570 [ 10.387826][ T170] ? exc_page_fault+0xee/0x100 [ 10.387832][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.387835][ T170] RIP: 0033:0x7f181bc2c1b8 [ 10.387839][ T170] Code: Unable to access opcode bytes at 0x7f181bc2c18e. [ 10.387841][ T170] RSP: 002b:00007ffca19ccd38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.387844][ T170] RAX: ffffffffffffffda RBX: 00007f181bd5cf88 RCX: 00007f181bc2c1b8 [ 10.387846][ T170] RDX: 00007f181bb67a88 RSI: ffffffffffffffa8 RDI: 0000000000000000 [ 10.387847][ T170] RBP: 00007ffca19ccd90 R08: 0000000000000000 R09: 0000000000000050 [ 10.387849][ T170] R10: 00007ffca19ccb90 R11: 0000000000000246 R12: 0000000000000001 [ 10.387851][ T170] R13: 0000000000000000 R14: 00007f181bd5b680 R15: 00007f181bd5cfa0 [ 10.387868][ T170]