syzbot


panic: interface conversion: context.Context is kernel.taskAsyncContext, not *kernel.Task

Status: fixed on 2020/04/12 11:32
Fix commit: c9195349c9ac Replace type assertion with TaskFromContext.
First crash: 1705d, last: 1689d

Sample crash report:
panic: interface conversion: context.Context is kernel.taskAsyncContext, not *kernel.Task

goroutine 532 [running]:
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Write(0xc000bea000, 0xf705a0, 0xc0005acd40, 0xc000be6370, 0xf6ab80, 0xc000a74000, 0x0, 0x1, 0x0, 0x9, ...)
	pkg/sentry/socket/netstack/netstack.go:538 +0x419
gvisor.dev/gvisor/pkg/sentry/fs.(*File).Pwritev(0xc000be6370, 0xf705a0, 0xc0005acd40, 0xf6ab80, 0xc000a74000, 0x0, 0x1, 0x0, 0x9, 0x0, ...)
	pkg/sentry/fs/file.go:374 +0x1c6
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.performCallback(0xc000806a80, 0xc000be6370, 0x20000000, 0xc0007cc000, 0xf6ab80, 0xc000a74000, 0x0, 0x1, 0x0, 0x9, ...)
	pkg/sentry/syscalls/linux/sys_aio.go:265 +0x2bd
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.submitCallback.func1()
	pkg/sentry/syscalls/linux/sys_aio.go:351 +0xc1
gvisor.dev/gvisor/pkg/sentry/fs.Async.func1(0xc000bdc2a0)
	pkg/sentry/fs/fs.go:86 +0x51
created by gvisor.dev/gvisor/pkg/sentry/fs.Async
	pkg/sentry/fs/fs.go:84 +0x55

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/12 05:15 gvisor 7928aa345e33 a8c6a3f8 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/04/12 05:03 gvisor 7928aa345e33 a8c6a3f8 .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/27 14:35 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/27 14:26 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-main
2020/03/27 14:15 gvisor 137f3614009b 7d95711b .config console log report syz ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/27 14:05 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/27 13:56 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-main
2020/03/27 13:45 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/27 13:45 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-kvm-direct-sandbox
2020/03/27 13:36 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-main
2020/03/27 13:18 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-main
2020/03/27 13:16 gvisor 76a7ace751bf 7d95711b .config console log report syz ci-gvisor-ptrace-proxy-sandbox-race
2020/03/27 14:03 gvisor 137f3614009b 7d95711b .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2020/03/27 13:31 gvisor 76a7ace751bf 7d95711b .config console log report ci-gvisor-kvm-direct-sandbox
2020/03/27 13:07 gvisor 76a7ace751bf 7d95711b .config console log report ci-gvisor-main
2020/03/27 13:05 gvisor 76a7ace751bf 7d95711b .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.