syzbot


panic: invalid allocation length: 0x0

Status: fixed on 2018/12/12 09:36
Fix commit: 46603b569c3a Fix panic on creation of zero-len shm segments.
First crash: 2349d, last: 2181d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: invalid allocation length: 0x0 (3) syz 12 1764d 1764d 0/26 fixed on 2020/01/31 18:49
gvisor panic: invalid allocation length: 0x0 (4) C 4338 901d 903d 14/26 fixed on 2022/06/09 07:46
gvisor panic: invalid allocation length: 0x0 (2) C 4 2170d 2171d 0/26 fixed on 2018/12/19 10:45

Sample crash report:
panic: invalid allocation length: 0x0

goroutine 137 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).Allocate(0xc4200e5b00, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/platform/filemem/filemem.go:232 +0x66f
gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).newShm(0xc4200c9d40, 0xc74780, 0xc4204aa900, 0x9, 0x0, 0x0, 0x0, 0x0, 0xc3f11b70, 0xc42041dac8, ...)
	pkg/sentry/kernel/shm/shm.go:201 +0xc0
gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Registry).FindOrCreate(0xc4200c9d40, 0xc74780, 0xc4204aa900, 0x9, 0x0, 0x0, 0xc420000001, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/shm/shm.go:190 +0x227
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Shmget(0xc4204aa900, 0x0, 0x0, 0x0, 0x20b39000, 0x4002e0, 0x4002e0, 0x428854, 0xbdd358, 0xc42041dc08, ...)
	pkg/sentry/syscalls/linux/sys_shm.go:38 +0x103
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc4204aa900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x4002e0, 0x4002e0, 0xc4201d0380, 0xbb4e80, ...)
	pkg/sentry/kernel/task_syscall.go:162 +0x307
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc4204aa900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x4002e0, 0x4002e0, 0x4002e0, 0x4002e0)
	pkg/sentry/kernel/task_syscall.go:278 +0x62
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc4204aa900, 0x1d, 0x0, 0x0, 0x0, 0x20b39000, 0x4002e0, 0x4002e0, 0xc679a0, 0xc42041de00)
	pkg/sentry/kernel/task_syscall.go:241 +0x91
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc4204aa900, 0x2, 0xc4200e0000)
	pkg/sentry/kernel/task_syscall.go:216 +0x10c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc4204aa900, 0xc679a0, 0x0)
	pkg/sentry/kernel/task_run.go:217 +0xed8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc4204aa900, 0x9)
	pkg/sentry/kernel/task_run.go:95 +0x174
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:251 +0x100

Crashes (223):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/22 17:26 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 67ce8635 .config console log report syz C ci-gvisor-main
2018/06/22 12:47 https://gvisor.googlesource.com/gvisor master 0e434b66a625 78c2562d console log report syz C ci-gvisor-main
2018/12/06 20:43 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/29 11:22 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/18 04:47 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 d257b2d2 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/09/08 04:32 https://gvisor.googlesource.com/gvisor master ae648bafda2d 6b5120a4 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/09/06 13:25 https://gvisor.googlesource.com/gvisor master ae648bafda2d 873745f2 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/09/05 20:48 https://gvisor.googlesource.com/gvisor master 0a9a40abcda6 0b937a7e .config console log report ci-gvisor-kvm-direct-sandbox
2018/09/05 18:40 https://gvisor.googlesource.com/gvisor master 0a9a40abcda6 0b937a7e .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/31 11:53 https://gvisor.googlesource.com/gvisor master ae648bafda2d a4718693 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/19 13:11 https://gvisor.googlesource.com/gvisor master 11800311a537 2dc4378f .config console log report ci-gvisor-main
2018/08/19 07:34 https://gvisor.googlesource.com/gvisor master 11800311a537 2dc4378f .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/07/24 20:51 https://gvisor.googlesource.com/gvisor master da48c04d0df4 4969639c .config console log report ci-gvisor-main
2018/07/22 13:34 https://gvisor.googlesource.com/gvisor master f543ada15005 8cc079c3 .config console log report ci-gvisor-main
2018/07/20 22:59 https://gvisor.googlesource.com/gvisor master 5f134b3c0a08 af255b09 .config console log report ci-gvisor-main
2018/07/11 16:54 https://gvisor.googlesource.com/gvisor master 065d7cee9a55 2e0e3130 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/28 14:34 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 dba0b50e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/28 12:47 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 dba0b50e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/28 11:00 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 dba0b50e .config console log report ci-gvisor-main
2018/06/28 09:24 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 dba0b50e .config console log report ci-gvisor-main
2018/06/28 08:04 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/28 06:09 https://gvisor.googlesource.com/gvisor master 6b6852bceb12 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/28 01:33 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-main
2018/06/28 00:18 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/27 22:38 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/27 19:54 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/27 17:43 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/06/27 16:28 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-main
2018/06/27 15:53 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report ci-gvisor-main
2018/06/27 11:23 https://gvisor.googlesource.com/gvisor master dc33d71f8cf1 b0294c53 .config console log report ci-gvisor-main
2018/06/27 06:28 https://gvisor.googlesource.com/gvisor master dc33d71f8cf1 b0294c53 .config console log report ci-gvisor-main
2018/06/27 04:30 https://gvisor.googlesource.com/gvisor master dc33d71f8cf1 b0294c53 .config console log report ci-gvisor-main
2018/06/27 02:32 https://gvisor.googlesource.com/gvisor master dc33d71f8cf1 b0294c53 .config console log report ci-gvisor-main
2018/06/22 12:43 https://gvisor.googlesource.com/gvisor master 0e434b66a625 78c2562d console log report ci-gvisor-main
2018/08/20 06:13 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 2dc4378f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/19 14:11 https://github.com/dvyukov/gvisor.git race e9355e64d1a8 2dc4378f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 12:08 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb 5c7ca877 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 11:17 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb 5c7ca877 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 07:05 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/29 03:09 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 21:14 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 19:07 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 16:41 https://github.com/dvyukov/gvisor.git race 35a840ad3ceb dba0b50e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/28 05:07 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/06/27 14:28 https://github.com/dvyukov/gvisor.git race 53efb512bdf7 43e60f7e .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.