[ 10.807300][ T267] modprobe (267) used greatest stack depth: 24144 bytes left [ 10.807316][ T267] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.807318][ T267] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 267, name: modprobe [ 10.807320][ T267] preempt_count: 2, expected: 0 [ 10.807321][ T267] RCU nest depth: 0, expected: 0 [ 10.807322][ T267] locks held by modprobe/267: 5, last CPU#2: [ 10.807325][ T267] #0: ffffffff9d6027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.807337][ T267] #1: ffffffff9d769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.807342][ T267] #2: ffffffff9d769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.807345][ T267] #3: ffffffff9d689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.807348][ T267] #4: ffffffff9d689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.807352][ T267] irq event stamp: 21854 [ 10.807353][ T267] hardirqs last enabled at (21853): [] __down_trylock_console_sem+0x86/0xa0 [ 10.807356][ T267] hardirqs last disabled at (21854): [] console_emit_next_record+0x3d4/0x4c0 [ 10.807357][ T267] softirqs last enabled at (20546): [] handle_softirqs+0x67c/0x900 [ 10.807360][ T267] softirqs last disabled at (19453): [] __irq_exit_rcu+0x145/0x1c0 [ 10.807362][ T267] Preemption disabled at: [ 10.807362][ T267] [<0000000000000000>] 0x0 [ 10.807368][ T267] CPU: 2 UID: 0 PID: 267 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.807372][ T267] Tainted: [W]=WARN [ 10.807373][ T267] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.807375][ T267] Call Trace: [ 10.807376][ T267] [ 10.807378][ T267] dump_stack_lvl+0x6f/0xa0 [ 10.807383][ T267] __might_resched.cold+0x1fe/0x2c1 [ 10.807388][ T267] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.807391][ T267] ? __kmalloc_noprof+0xdb/0x760 [ 10.807396][ T267] __kmalloc_noprof+0x443/0x760 [ 10.807399][ T267] ? alloc_buf.isra.0+0x4b/0x260 [ 10.807405][ T267] ? do_raw_spin_unlock+0x59/0x250 [ 10.807408][ T267] alloc_buf.isra.0+0x4b/0x260 [ 10.807411][ T267] put_chars+0x1e1/0x2f0 [ 10.807415][ T267] ? __send_to_port+0x420/0x420 [ 10.807416][ T267] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.807420][ T267] ? validate_chain+0x38b/0xc20 [ 10.807425][ T267] hvc_console_print+0x292/0x780 [ 10.807432][ T267] ? hvc_write+0x3a0/0x3a0 [ 10.807434][ T267] ? rcu_is_watching+0x16/0xd0 [ 10.807437][ T267] ? lock_acquire+0x13c/0x160 [ 10.807441][ T267] console_emit_next_record+0x22f/0x4c0 [ 10.807444][ T267] ? devkmsg_read+0x4b0/0x4b0 [ 10.807445][ T267] ? console_flush_one_record+0x106/0x710 [ 10.807448][ T267] ? rcu_is_watching+0x16/0xd0 [ 10.807450][ T267] ? lock_acquire+0x13c/0x160 [ 10.807454][ T267] console_flush_one_record+0x46f/0x710 [ 10.807458][ T267] ? console_emit_next_record+0x4c0/0x4c0 [ 10.807459][ T267] ? __lock_acquire+0x518/0xc20 [ 10.807464][ T267] console_unlock+0xee/0x1f0 [ 10.807466][ T267] ? console_flush_one_record+0x710/0x710 [ 10.807468][ T267] ? rcu_is_watching+0x16/0xd0 [ 10.807470][ T267] ? lock_acquire+0x60/0x160 [ 10.807473][ T267] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.807475][ T267] ? vprintk_emit+0x320/0x3e0 [ 10.807478][ T267] vprintk_emit+0x37c/0x3e0 [ 10.807481][ T267] ? wake_up_klogd_work_func+0x90/0x90 [ 10.807484][ T267] ? __lock_acquire+0x518/0xc20 [ 10.807488][ T267] _printk+0xc7/0x100 [ 10.807492][ T267] ? snapshot_read.cold+0x21/0x21 [ 10.807495][ T267] ? do_raw_spin_lock+0x131/0x280 [ 10.807498][ T267] ? __rwlock_init+0x150/0x150 [ 10.807501][ T267] ? do_raw_spin_lock+0x131/0x280 [ 10.807504][ T267] do_exit.cold+0x82/0x9c [ 10.807508][ T267] ? exit_notify+0x890/0x890 [ 10.807509][ T267] ? __lock_release.isra.0+0x69/0x1a0 [ 10.807512][ T267] ? rcu_is_watching+0x16/0xd0 [ 10.807516][ T267] do_group_exit+0xb8/0x370 [ 10.807519][ T267] __x64_sys_exit_group+0x3c/0x50 [ 10.807521][ T267] x64_sys_call+0x1567/0x1570 [ 10.807523][ T267] do_syscall_64+0xff/0x530 [ 10.807527][ T267] ? exc_page_fault+0xee/0x100 [ 10.807530][ T267] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.807532][ T267] RIP: 0033:0x7f1bfcba71b8 [ 10.807535][ T267] Code: Unable to access opcode bytes at 0x7f1bfcba718e. [ 10.807535][ T267] RSP: 002b:00007ffe574dd738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.807538][ T267] RAX: ffffffffffffffda RBX: 00007f1bfccd7f88 RCX: 00007f1bfcba71b8 [ 10.807539][ T267] RDX: 00007f1bfcae2a88 RSI: ffffffffffffffa8 RDI: 0000000000000001 [ 10.807540][ T267] RBP: 00007ffe574dd790 R08: 0000000000000000 R09: 00000000000000a0 [ 10.807541][ T267] R10: 00007ffe574dd590 R11: 0000000000000246 R12: 0000000000000001 [ 10.807542][ T267] R13: 0000000000000001 R14: 00007f1bfccd6680 R15: 00007f1bfccd7fa0 [ 10.807548][ T267]