panic: runtime error: index out of range goroutine 153424 [running]: unicode/utf8.EncodeRune(0xc0023f6554, 0x1, 0x4, 0xb2, 0xb2) GOROOT/src/unicode/utf8/utf8.go:346 +0x148 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*inputQueueTransformer).transform(0x1460610, 0xc000df8420, 0xc000df8430, 0xc000878006, 0x42, 0x46, 0x8) pkg/sentry/fs/tty/line_discipline.go:403 +0x3f5 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBufLocked(0xc000df8430, 0xc000df8420, 0xc000df8430) pkg/sentry/fs/tty/queue.go:227 +0xa2 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBuf(0xc000df8430, 0xc000df8420, 0x0) pkg/sentry/fs/tty/queue.go:212 +0x78 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*lineDiscipline).setTermios(0xc000df8420, 0xdf4000, 0xc002252000, 0xdf3040, 0xc002500d80, 0x4, 0x5402, 0x20000180, 0x0, 0x0, ...) pkg/sentry/fs/tty/line_discipline.go:143 +0x215 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*masterFileOperations).Ioctl(0xc0006a2320, 0xdf4000, 0xc002252000, 0xdf3040, 0xc002500d80, 0x4, 0x5402, 0x20000180, 0x0, 0x0, ...) DIAGNOSIS: I0404 02:08:30.735620 38414 x:0] *************************** I0404 02:08:30.735678 38414 x:0] Args: [/syzkaller/managers/kvm-direct-sandbox/current/image -root /syzkaller/managers/kvm-direct-sandbox/workdir/gvisor_root -watchdog-action=panic -network=none -debug -platform=kvm -file-access=exclusive -network=sandbox debug -stacks ci-gvisor-kvm-direct-sandbox-1] I0404 02:08:30.735704 38414 x:0] Version release-20190304.1-70-g1df3fa699774 I0404 02:08:30.735709 38414 x:0] PID: 38414 I0404 02:08:30.735715 38414 x:0] UID: 0, GID: 0 I0404 02:08:30.735718 38414 x:0] Configuration: I0404 02:08:30.735721 38414 x:0] RootDir: /syzkaller/managers/kvm-direct-sandbox/workdir/gvisor_root I0404 02:08:30.735724 38414 x:0] Platform: kvm I0404 02:08:30.735746 38414 x:0] FileAccess: exclusive, overlay: false I0404 02:08:30.735754 38414 x:0] Network: sandbox, logging: false I0404 02:08:30.735763 38414 x:0] Strace: false, max size: 1024, syscalls: [] I0404 02:08:30.735771 38414 x:0] *************************** D0404 02:08:30.735794 38414 x:0] Load container "/syzkaller/managers/kvm-direct-sandbox/workdir/gvisor_root" "ci-gvisor-kvm-direct-sandbox-1" D0404 02:08:30.737151 38414 x:0] Signal container "ci-gvisor-kvm-direct-sandbox-1": signal 0 D0404 02:08:30.737171 38414 x:0] Signal sandbox "ci-gvisor-kvm-direct-sandbox-1" D0404 02:08:30.737176 38414 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-sandbox-1" D0404 02:08:30.737422 38414 x:0] urpc: successfully marshalled 110 bytes. I0404 02:08:31.077994 38414 x:0] Found sandbox "ci-gvisor-kvm-direct-sandbox-1", PID: 61422 I0404 02:08:31.078016 38414 x:0] Retrieving sandbox stacks D0404 02:08:31.078021 38414 x:0] Stacks sandbox "ci-gvisor-kvm-direct-sandbox-1" D0404 02:08:31.078026 38414 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-sandbox-1" D0404 02:08:31.078077 38414 x:0] urpc: successfully marshalled 36 bytes. W0404 02:08:31.151731 38414 x:0] FATAL ERROR: retrieving stacks: getting sandbox "ci-gvisor-kvm-direct-sandbox-1" stacks: urpc method "debug.Stacks" failed: connection reset by peer retrieving stacks: getting sandbox "ci-gvisor-kvm-direct-sandbox-1" stacks: urpc method "debug.Stacks" failed: connection reset by peer