panic: Task goroutine switching from state 2 (expected 1) to 3 goroutine 519 [running]: gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).accountTaskGoroutineEnter(0xc000e22a80, 0x3) pkg/sentry/kernel/task_sched.go:121 +0x26e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).SleepStart(0xc000e22a80, 0xc000986540) pkg/sentry/kernel/task_block.go:162 +0x40 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).block(0xc000e22a80, 0xc000986540, 0x0, 0xf23440, 0xc000e22a80) pkg/sentry/kernel/task_block.go:124 +0x65 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Block(...) pkg/sentry/kernel/task_block.go:110 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Write(0xc0009fe3c0, 0x10b02a0, 0xc0009380d0, 0xc000a94bb0, 0x10a9660, 0xc000c86000, 0x0, 0x1, 0x0, 0x9, ...) pkg/sentry/socket/netstack/netstack.go:545 +0x296 gvisor.dev/gvisor/pkg/sentry/fs.(*File).Pwritev(0xc000a94bb0, 0x10b02a0, 0xc0009380d0, 0x10a9660, 0xc000c86000, 0x0, 0x1, 0x0, 0x9, 0x0, ...) pkg/sentry/fs/file.go:374 +0x1c6 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.performCallback(0xc000e22a80, 0xc000a94bb0, 0x20000000, 0xc00072fbc0, 0x10a9660, 0xc000c86000, 0x0, 0x1, 0x0, 0x9, ...) pkg/sentry/syscalls/linux/sys_aio.go:283 +0x2cc gvisor.dev/gvisor/pkg/sentry/syscalls/linux.submitCallback.func1() pkg/sentry/syscalls/linux/sys_aio.go:369 +0xc1 gvisor.dev/gvisor/pkg/sentry/fs.Async.func1(0xc0009aac40) pkg/sentry/fs/fs.go:86 +0x51 created by gvisor.dev/gvisor/pkg/sentry/fs.Async pkg/sentry/fs/fs.go:84 +0x55