BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 in_atomic(): 1, irqs_disabled(): 1, pid: 32293, name: syz-executor.4 3 locks held by syz-executor.4/32293: #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284 #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write_lock drivers/tty/tty_io.c:885 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] do_tty_write drivers/tty/tty_io.c:908 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write+0x22d/0x740 drivers/tty/tty_io.c:1043 #2: (&(&gsm->tx_lock)->rlock){....}, at: [] gsmld_write+0x5e/0x120 drivers/tty/n_gsm.c:2545 irq event stamp: 68 hardirqs last enabled at (67): [] slab_alloc mm/slab.c:3383 [inline] hardirqs last enabled at (67): [] __do_kmalloc mm/slab.c:3718 [inline] hardirqs last enabled at (67): [] __kmalloc+0x2fb/0x400 mm/slab.c:3729 hardirqs last disabled at (68): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (68): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (0): [] copy_process.part.0+0x12d0/0x71c0 kernel/fork.c:1734 softirqs last disabled at (0): [< (null)>] (null) Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 32293 Comm: syz-executor.4 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 do_con_write+0xd0/0x19b0 drivers/tty/vt/vt.c:2245 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2822 gsmld_write+0xbb/0x120 drivers/tty/n_gsm.c:2548 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x410/0x740 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fdbe723d0c9 RSP: 002b:00007fdbe57af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fdbe735cf80 RCX: 00007fdbe723d0c9 RDX: 000000000000045c RSI: 0000000020001180 RDI: 0000000000000003 RBP: 00007fdbe7298ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1b56e7df R14: 00007fdbe57af300 R15: 0000000000022000 IPVS: set_ctl: invalid protocol: 92 172.20.20.65:20004 BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 in_atomic(): 1, irqs_disabled(): 1, pid: 425, name: syz-executor.4 3 locks held by syz-executor.4/425: #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284 #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write_lock drivers/tty/tty_io.c:885 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] do_tty_write drivers/tty/tty_io.c:908 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write+0x22d/0x740 drivers/tty/tty_io.c:1043 #2: (&(&gsm->tx_lock)->rlock){....}, at: [] gsmld_write+0x5e/0x120 drivers/tty/n_gsm.c:2545 irq event stamp: 120 hardirqs last enabled at (119): [] slab_alloc mm/slab.c:3383 [inline] hardirqs last enabled at (119): [] __do_kmalloc mm/slab.c:3718 [inline] hardirqs last enabled at (119): [] __kmalloc+0x2fb/0x400 mm/slab.c:3729 hardirqs last disabled at (120): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (120): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (0): [] copy_process.part.0+0x12d0/0x71c0 kernel/fork.c:1734 softirqs last disabled at (0): [< (null)>] (null) Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 425 Comm: syz-executor.4 Tainted: G W 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 do_con_write+0xd0/0x19b0 drivers/tty/vt/vt.c:2245 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2822 gsmld_write+0xbb/0x120 drivers/tty/n_gsm.c:2548 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x410/0x740 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fdbe723d0c9 RSP: 002b:00007fdbe57af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fdbe735cf80 RCX: 00007fdbe723d0c9 RDX: 000000000000045c RSI: 0000000020001180 RDI: 0000000000000003 RBP: 00007fdbe7298ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1b56e7df R14: 00007fdbe57af300 R15: 0000000000022000 IPVS: set_ctl: invalid protocol: 33 172.20.20.170:20002 IPVS: set_ctl: invalid protocol: 33 172.20.20.170:20002 IPVS: set_ctl: invalid protocol: 33 172.20.20.170:20002 IPVS: set_ctl: invalid protocol: 4 255.255.255.255:20001 IPVS: set_ctl: invalid protocol: 33 172.20.20.170:20002 IPVS: set_ctl: invalid protocol: 4 255.255.255.255:20001 IPVS: set_ctl: invalid protocol: 4 255.255.255.255:20001 IPVS: set_ctl: invalid protocol: 4 255.255.255.255:20001 IPVS: set_ctl: invalid protocol: 4 255.255.255.255:20001 BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 in_atomic(): 1, irqs_disabled(): 1, pid: 1822, name: syz-executor.0 3 locks held by syz-executor.0/1822: #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284 #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write_lock drivers/tty/tty_io.c:885 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] do_tty_write drivers/tty/tty_io.c:908 [inline] #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write+0x22d/0x740 drivers/tty/tty_io.c:1043 #2: (&(&gsm->tx_lock)->rlock){....}, at: [] gsmld_write+0x5e/0x120 drivers/tty/n_gsm.c:2545 irq event stamp: 196 hardirqs last enabled at (195): [] slab_alloc mm/slab.c:3383 [inline] hardirqs last enabled at (195): [] __do_kmalloc mm/slab.c:3718 [inline] hardirqs last enabled at (195): [] __kmalloc+0x2fb/0x400 mm/slab.c:3729 hardirqs last disabled at (196): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (196): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (116): [] __do_softirq+0x68b/0x9ff kernel/softirq.c:314 softirqs last disabled at (93): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (93): [] irq_exit+0x193/0x240 kernel/softirq.c:409 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 1822 Comm: syz-executor.0 Tainted: G W 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 do_con_write+0xd0/0x19b0 drivers/tty/vt/vt.c:2245 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2822 gsmld_write+0xbb/0x120 drivers/tty/n_gsm.c:2548 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x410/0x740 drivers/tty/tty_io.c:1043 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f1c64d9b0c9 RSP: 002b:00007f1c6330d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1c64ebaf80 RCX: 00007f1c64d9b0c9 RDX: 000000000000045c RSI: 0000000020001180 RDI: 0000000000000004 RBP: 00007f1c64df6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd432e78bf R14: 00007f1c6330d300 R15: 0000000000022000 IPVS: set_ctl: invalid protocol: 44 10.1.1.0:20003 IPVS: set_ctl: invalid protocol: 44 10.1.1.0:20003 IPVS: set_ctl: invalid protocol: 44 10.1.1.0:20003 IPVS: set_ctl: invalid protocol: 44 10.1.1.0:20003