[ 11.217024][ T234] cmsg_sender (234) used greatest stack depth: 24416 bytes left [ 11.217041][ T234] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.217043][ T234] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 234, name: cmsg_sender [ 11.217045][ T234] preempt_count: 2, expected: 0 [ 11.217045][ T234] RCU nest depth: 0, expected: 0 [ 11.217046][ T234] locks held by cmsg_sender/234: 5, last CPU#3: [ 11.217048][ T234] #0: ffffffffa42167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.217059][ T234] #1: ffffffffa437ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.217064][ T234] #2: ffffffffa437de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.217068][ T234] #3: ffffffffa429d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.217072][ T234] #4: ffffffffa429d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.217075][ T234] irq event stamp: 39872 [ 11.217076][ T234] hardirqs last enabled at (39871): [] __down_trylock_console_sem+0x86/0xa0 [ 11.217079][ T234] hardirqs last disabled at (39872): [] console_emit_next_record+0x3d4/0x4c0 [ 11.217081][ T234] softirqs last enabled at (39760): [] handle_softirqs+0x67c/0x900 [ 11.217084][ T234] softirqs last disabled at (38167): [] __irq_exit_rcu+0x145/0x1c0 [ 11.217086][ T234] Preemption disabled at: [ 11.217087][ T234] [<0000000000000000>] 0x0 [ 11.217094][ T234] CPU: 3 UID: 0 PID: 234 Comm: cmsg_sender Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.217097][ T234] Tainted: [W]=WARN [ 11.217098][ T234] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.217100][ T234] Call Trace: [ 11.217102][ T234] [ 11.217103][ T234] dump_stack_lvl+0x6f/0xa0 [ 11.217110][ T234] __might_resched.cold+0x1fe/0x2c1 [ 11.217114][ T234] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.217118][ T234] ? __kmalloc_noprof+0xdb/0x760 [ 11.217123][ T234] __kmalloc_noprof+0x443/0x760 [ 11.217125][ T234] ? alloc_buf.isra.0+0x4b/0x260 [ 11.217131][ T234] ? do_raw_spin_unlock+0x59/0x250 [ 11.217134][ T234] alloc_buf.isra.0+0x4b/0x260 [ 11.217138][ T234] put_chars+0x1e1/0x2f0 [ 11.217140][ T234] ? __send_to_port+0x420/0x420 [ 11.217141][ T234] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.217145][ T234] ? validate_chain+0x38b/0xc20 [ 11.217150][ T234] hvc_console_print+0x292/0x780 [ 11.217157][ T234] ? hvc_write+0x3a0/0x3a0 [ 11.217160][ T234] ? rcu_is_watching+0x16/0xd0 [ 11.217162][ T234] ? lock_acquire+0x13c/0x160 [ 11.217166][ T234] console_emit_next_record+0x22f/0x4c0 [ 11.217170][ T234] ? devkmsg_read+0x4b0/0x4b0 [ 11.217171][ T234] ? console_flush_one_record+0x106/0x710 [ 11.217175][ T234] ? rcu_is_watching+0x16/0xd0 [ 11.217176][ T234] ? lock_acquire+0x13c/0x160 [ 11.217180][ T234] console_flush_one_record+0x46f/0x710 [ 11.217184][ T234] ? console_emit_next_record+0x4c0/0x4c0 [ 11.217186][ T234] ? __lock_acquire+0x518/0xc20 [ 11.217191][ T234] console_unlock+0xee/0x1f0 [ 11.217194][ T234] ? console_flush_one_record+0x710/0x710 [ 11.217196][ T234] ? rcu_is_watching+0x16/0xd0 [ 11.217198][ T234] ? lock_acquire+0xe0/0x160 [ 11.217201][ T234] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.217203][ T234] ? vprintk_emit+0x320/0x3e0 [ 11.217205][ T234] vprintk_emit+0x37c/0x3e0 [ 11.217208][ T234] ? wake_up_klogd_work_func+0x90/0x90 [ 11.217211][ T234] ? __lock_acquire+0x518/0xc20 [ 11.217215][ T234] _printk+0xc7/0x100 [ 11.217218][ T234] ? snapshot_read.cold+0x21/0x21 [ 11.217221][ T234] ? do_raw_spin_lock+0x131/0x280 [ 11.217224][ T234] ? __rwlock_init+0x150/0x150 [ 11.217227][ T234] ? do_raw_spin_lock+0x131/0x280 [ 11.217230][ T234] do_exit.cold+0x82/0x9c [ 11.217234][ T234] ? exit_notify+0x890/0x890 [ 11.217235][ T234] ? __lock_release.isra.0+0x69/0x1a0 [ 11.217238][ T234] ? rcu_is_watching+0x16/0xd0 [ 11.217241][ T234] do_group_exit+0xb8/0x370 [ 11.217244][ T234] __x64_sys_exit_group+0x3c/0x50 [ 11.217246][ T234] x64_sys_call+0x1567/0x1570 [ 11.217248][ T234] do_syscall_64+0xff/0x530 [ 11.217252][ T234] ? exc_page_fault+0xee/0x100 [ 11.217255][ T234] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.217257][ T234] RIP: 0033:0x7f0556c601b8 [ 11.217259][ T234] Code: Unable to access opcode bytes at 0x7f0556c6018e. [ 11.217260][ T234] RSP: 002b:00007fff7ab20ae8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.217262][ T234] RAX: ffffffffffffffda RBX: 00007f0556d90f88 RCX: 00007f0556c601b8 [ 11.217264][ T234] RDX: 00007f0556b9da48 RSI: ffffffffffffffb0 RDI: 0000000000000001 [ 11.217265][ T234] RBP: 00007fff7ab20b40 R08: 0000000000000000 R09: 0000000000000020 [ 11.217265][ T234] R10: 00007fff7ab20980 R11: 0000000000000246 R12: 0000000000000001 [ 11.217266][ T234] R13: 0000000000000001 R14: 00007f0556d8f680 R15: 00007f0556d90fa0 [ 11.217273][ T234]