syzbot


panic: running on goroutine 582 (task goroutine for kernel.Task ADDR is 400)

Status: fixed on 2021/02/24 10:28
Fix commit: 6e000d3424c0 Use async task context for async IO.
First crash: 1375d, last: 1375d

Sample crash report:
panic: running on goroutine 582 (task goroutine for kernel.Task 0xc0003c9500 is 400)

goroutine 582 [running]:
panic(0x17115a0, 0xc000424700)
	GOROOT/src/runtime/panic.go:1064 +0x545 fp=0xc00029bbb8 sp=0xc00029baf0 pc=0x439ae5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).assertTaskGoroutine(0xc0003c9500)
	pkg/sentry/kernel/task_run.go:389 +0x18f fp=0xc00029bc48 sp=0xc00029bbb8 pc=0xd530ef
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Value(0xc0003c9500, 0x170f7a0, 0x1a89a48, 0xc000130130, 0x0)
	pkg/sentry/kernel/task_context.go:56 +0x3d fp=0xc00029bc98 sp=0xc00029bc48 pc=0xd3b0bd
gvisor.dev/gvisor/pkg/sentry/vfs.RootFromContext(...)
	pkg/sentry/vfs/context.go:71
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.HandleIOErrorVFS2(0xc0003c9500, 0x1ad4c01, 0x1aa67a0, 0xc000130130, 0x0, 0x0, 0x18fac5f, 0x3, 0xc000286480, 0x0, ...)
	pkg/sentry/syscalls/linux/error.go:47 +0x193 fp=0xc00029bd78 sp=0xc00029bc98 pc=0xde4fb3
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getAIOCallback.func1(0x1ad4ca0, 0xc000010288)
	pkg/sentry/syscalls/linux/vfs2/aio.go:180 +0x47f fp=0xc00029bfa0 sp=0xc00029bd78 pc=0x134031f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO.func1(0xc000178070, 0x1ad4ca0, 0xc000010288, 0xc00016828c)
	pkg/sentry/kernel/aio.go:30 +0x48 fp=0xc00029bfc0 sp=0xc00029bfa0 pc=0xd8bea8
runtime.goexit()
	src/runtime/asm_amd64.s:1374 +0x1 fp=0xc00029bfc8 sp=0xc00029bfc0 pc=0x475221
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO
	pkg/sentry/kernel/aio.go:29 +0x11a

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/20 12:42 gvisor 93fc09248a2f 053a2b26 .config console log report syz C ci-gvisor-ptrace-3-race panic: running on goroutine 582 (task goroutine for kernel.Task ADDR is 400)
* Struck through repros no longer work on HEAD.