wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2205 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 in_atomic(): 1, irqs_disabled(): 1, pid: 9969, name: syz-executor.4 3 locks held by syz-executor.4/9969: #0: 00000000321274be (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x2d/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){....}, at: spin_lock_irq include/linux/spinlock.h:335 [inline] #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper drivers/tty/tty_ioctl.c:914 [inline] #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0x18f/0x320 drivers/tty/tty_ioctl.c:894 #2: 00000000321274be (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1a/0x70 drivers/tty/tty_ldisc.c:284 irq event stamp: 720 hardirqs last enabled at (719): [] do_syscall_64+0x24/0x540 arch/x86/entry/common.c:277 hardirqs last disabled at (720): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (720): [] _raw_spin_lock_irq+0x3c/0x90 kernel/locking/spinlock.c:160 softirqs last enabled at (320): [] spin_unlock_bh include/linux/spinlock.h:355 [inline] softirqs last enabled at (320): [] peernet2id+0x8b/0xc0 net/core/net_namespace.c:265 softirqs last disabled at (318): [] spin_lock_bh include/linux/spinlock.h:315 [inline] softirqs last disabled at (318): [] peernet2id+0x6d/0xc0 net/core/net_namespace.c:263 Preemption disabled at: [] spin_lock_irq include/linux/spinlock.h:335 [inline] [] n_tty_ioctl_helper drivers/tty/tty_ioctl.c:914 [inline] [] n_tty_ioctl_helper+0x18f/0x320 drivers/tty/tty_ioctl.c:894 CPU: 1 PID: 9969 Comm: syz-executor.4 Not tainted 4.18.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x15a/0x20d lib/dump_stack.c:113 ___might_sleep.cold.16+0x1f1/0x265 kernel/sched/core.c:6187 __might_sleep+0x95/0x190 kernel/sched/core.c:6140 do_con_write.part.14+0xaf/0x19a0 drivers/tty/vt/vt.c:2205 do_con_write drivers/tty/vt/vt.c:2202 [inline] con_write+0x1f/0x80 drivers/tty/vt/vt.c:2784 n_hdlc_send_frames drivers/tty/n_hdlc.c:403 [inline] n_hdlc_send_frames+0x201/0x3d0 drivers/tty/n_hdlc.c:375 n_hdlc_tty_wakeup+0x7d/0x90 drivers/tty/n_hdlc.c:479 tty_wakeup+0xaf/0xe0 drivers/tty/tty_io.c:532 __start_tty.part.15+0xbf/0xe0 drivers/tty/tty_io.c:804 __start_tty+0x48/0x60 drivers/tty/tty_io.c:799 n_tty_ioctl_helper drivers/tty/tty_ioctl.c:917 [inline] n_tty_ioctl_helper+0x22f/0x320 drivers/tty/tty_ioctl.c:894 n_hdlc_tty_ioctl+0xc0/0x2d0 drivers/tty/n_hdlc.c:782 tty_ioctl+0x4d4/0x1280 drivers/tty/tty_io.c:2664 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x196/0x1050 fs/ioctl.c:684 ksys_ioctl+0x62/0x90 fs/ioctl.c:701 __do_sys_ioctl fs/ioctl.c:708 [inline] __se_sys_ioctl fs/ioctl.c:706 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:706 do_syscall_64+0xda/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fa73d3e2ae9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa73cb58188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa73d4f5f60 RCX: 00007fa73d3e2ae9 RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 RBP: 00007fa73d43cf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff7b9ce74f R14: 00007fa73cb58300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.4/9969/0x00000002 3 locks held by syz-executor.4/9969: #0: 00000000321274be (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x2d/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){+.+.}, at: spin_lock_irq include/linux/spinlock.h:335 [inline] #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){+.+.}, at: n_tty_ioctl_helper drivers/tty/tty_ioctl.c:914 [inline] #1: 000000001e953b79 (&(&tty->flow_lock)->rlock){+.+.}, at: n_tty_ioctl_helper+0x18f/0x320 drivers/tty/tty_ioctl.c:894 #2: 00000000321274be (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1a/0x70 drivers/tty/tty_ldisc.c:284 Modules linked in: Preemption disabled at: [] spin_lock_irq include/linux/spinlock.h:335 [inline] [] n_tty_ioctl_helper drivers/tty/tty_ioctl.c:914 [inline] [] n_tty_ioctl_helper+0x18f/0x320 drivers/tty/tty_ioctl.c:894