[ 59.222952][ T118] su (118) used greatest stack depth: 22992 bytes left [ 59.222972][ T118] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 59.222974][ T118] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 118, name: su [ 59.222976][ T118] preempt_count: 2, expected: 0 [ 59.222976][ T118] RCU nest depth: 0, expected: 0 [ 59.222977][ T118] locks held by su/118: 5, last CPU#1: [ 59.222979][ T118] #0: ffffffffba6167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 59.222990][ T118] #1: ffffffffba77ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 59.222995][ T118] #2: ffffffffba77de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 59.222999][ T118] #3: ffffffffba69d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 59.223003][ T118] #4: ffffffffba69d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 59.223007][ T118] irq event stamp: 183188 [ 59.223008][ T118] hardirqs last enabled at (183187): [] __down_trylock_console_sem+0x86/0xa0 [ 59.223011][ T118] hardirqs last disabled at (183188): [] console_emit_next_record+0x3d4/0x4c0 [ 59.223013][ T118] softirqs last enabled at (182784): [] handle_softirqs+0x67c/0x900 [ 59.223015][ T118] softirqs last disabled at (181429): [] __irq_exit_rcu+0x145/0x1c0 [ 59.223017][ T118] Preemption disabled at: [ 59.223018][ T118] [<0000000000000000>] 0x0 [ 59.223025][ T118] CPU: 1 UID: 0 PID: 118 Co