# https://syzkaller.appspot.com/bug?id=9abc0fdcdea0effb7b27984dbc1f336155cdad3f
# See https://goo.gl/kgGztJ for information about syzkaller reproducers.
#{"threaded":true,"collide":true,"repeat":true,"procs":1,"sandbox":"none","fault_call":-1,"tun":true,"netdev":true,"resetnet":true,"cgroups":true,"binfmt_misc":true,"close_fds":true,"devlinkpci":true,"tmpdir":true,"segv":true}
r0 = openat$ptmx(0xffffffffffffff9c, &(0x7f00000000c0)='/dev/ptmx\x00', 0x0, 0x0)
ioctl$TIOCSETD(r0, 0x5423, &(0x7f0000000040)=0xf)
ioctl$KDADDIO(r0, 0x400455c8, 0x2)
socketpair$unix(0x1, 0x5, 0x0, 0x0)
close(0xffffffffffffffff)
io_setup(0x4, 0x0)
io_submit(0x0, 0x0, 0x0)
syz_open_dev$media(0x0, 0x0, 0x1)
r1 = open(0x0, 0x0, 0x0)
getdents64(r1, 0x0, 0x0)
io_cancel(0x0, 0x0, 0x0)
ioctl$TIOCSETD(r0, 0x5412, &(0x7f0000000080)=0xffffffc0)
r2 = syz_open_dev$tty1(0xc, 0x4, 0x1)
ioctl$KDENABIO(r2, 0x4b36)
ioctl$TIOCGPKT(r2, 0x80045438, 0x0)
ioctl$TIOCSETD(r0, 0x5412, &(0x7f0000000100)=0xffffffdb)
ioctl$TIOCSETD(r0, 0x5412, &(0x7f0000000140))