syzbot


panic: runtime error: invalid memory address or nil pointer dereference (16)

Status: fixed on 2023/08/02 12:57
Fix commit: ef95be6e1c10 kernel: check that a task has a network namespace
First crash: 490d, last: 483d
Similar bugs (25)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: runtime error: invalid memory address or nil pointer dereference (18) 4 444d 445d 26/26 fixed on 2023/09/13 00:17
gvisor panic: runtime error: invalid memory address or nil pointer dereference (9) C 262 1025d 1021d 14/26 fixed on 2022/02/10 01:56
gvisor panic: runtime error: invalid memory address or nil pointer dereference (7) C 45305 1126d 1155d 14/26 fixed on 2021/10/27 00:49
gvisor panic: runtime error: invalid memory address or nil pointer dereference (3) C 20051 1547d 2083d 0/26 fixed on 2020/09/09 05:34
gvisor panic: runtime error: invalid memory address or nil pointer dereference (23) C 4239 252d 257d 26/26 fixed on 2024/03/19 11:42
gvisor panic: runtime error: invalid memory address or nil pointer dereference (22) 1 362d 362d 26/26 fixed on 2023/12/01 06:13
gvisor panic: runtime error: invalid memory address or nil pointer dereference (10) C 11 977d 983d 14/26 fixed on 2022/03/25 11:21
gvisor panic: runtime error: invalid memory address or nil pointer dereference (12) C 31 676d 738d 18/26 fixed on 2023/01/23 05:20
gvisor panic: runtime error: invalid memory address or nil pointer dereference (26) C 7905 4d12h 13d 26/26 fixed on 2024/11/22 02:29
gvisor panic: runtime error: invalid memory address or nil pointer dereference (21) 1 377d 377d 26/26 fixed on 2023/11/17 08:30
gvisor panic: runtime error: invalid memory address or nil pointer dereference (14) C 753 637d 638d 18/26 fixed on 2023/02/28 09:05
gvisor panic: runtime error: invalid memory address or nil pointer dereference C 20682 2295d 2348d 0/26 fixed on 2018/08/19 04:32
gvisor panic: runtime error: invalid memory address or nil pointer dereference (25) 1 114d 114d 26/26 fixed on 2024/08/06 09:03
gvisor panic: runtime error: invalid memory address or nil pointer dereference (27) C 1117 3d02h 4d11h 26/26 fixed on 2024/11/23 14:37
gvisor panic: runtime error: invalid memory address or nil pointer dereference (24) 92 245d 246d 0/26 closed as invalid on 2024/03/26 13:32
gvisor panic: runtime error: invalid memory address or nil pointer dereference (13) C 2752 638d 641d 18/26 fixed on 2023/02/27 08:23
gvisor panic: runtime error: invalid memory address or nil pointer dereference (8) C 214 1028d 1053d 14/26 fixed on 2022/02/01 22:27
gvisor panic: runtime error: invalid memory address or nil pointer dereference (2) C 4493 2271d 2291d 0/26 fixed on 2018/10/15 18:31
gvisor panic: runtime error: invalid memory address or nil pointer dereference (17) 2 480d 480d 26/26 fixed on 2023/08/04 01:52
gvisor panic: runtime error: invalid memory address or nil pointer dereference (5) syz 62 1421d 1465d 14/26 fixed on 2021/01/06 10:11
gvisor panic: runtime error: invalid memory address or nil pointer dereference (11) C 2733 746d 840d 14/26 fixed on 2022/11/11 17:56
gvisor panic: runtime error: invalid memory address or nil pointer dereference (19) C 79 419d 433d 26/26 fixed on 2023/10/05 23:05
gvisor panic: runtime error: invalid memory address or nil pointer dereference (20) C 8 390d 397d 26/26 fixed on 2023/11/02 02:06
gvisor panic: runtime error: invalid memory address or nil pointer dereference (15) 1 530d 530d 26/26 fixed on 2023/07/12 19:22
gvisor panic: runtime error: invalid memory address or nil pointer dereference (4) C 4 1481d 1500d 0/26 fixed on 2020/11/13 09:22

Sample crash report:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1f2b6c6]

goroutine 1364 [running]:
panic({0x322fc0, 0x28ac300})
	GOROOT/src/runtime/panic.go:987 +0x3bb fp=0xc000b20330 sp=0xc000b20270 pc=0x127993b
runtime.panicmem(...)
	GOROOT/src/runtime/panic.go:260
runtime.sigpanic()
	GOROOT/src/runtime/signal_unix.go:837 +0x37d fp=0xc000b20390 sp=0xc000b20330 pc=0x129281d
gvisor.dev/gvisor/pkg/sentry/inet.(*Namespace).Stack(...)
	pkg/sentry/inet/namespace.go:108
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*filesystem).newTaskNetDir(0xc00028b360, {0x786da0, 0xc001269500}, 0xc0013e8a80)
	pkg/sentry/fsimpl/proc/task_net.go:46 +0x166 fp=0xc000b205d0 sp=0xc000b20390 pc=0x1f2b6c6
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*filesystem).newTaskInode(0xc00028b360, {0x786da0, 0xc001269500}, 0xc0013e8a80, 0xc0002841c0, 0x1, 0x0)
	pkg/sentry/fsimpl/proc/task.go:73 +0x136d fp=0xc000b20960 sp=0xc000b205d0 pc=0x1f16ced
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*tasksInode).Lookup(0xc001053400, {0x786da0, 0xc001269500}, {0xc000ac6e10, 0x2})
	pkg/sentry/fsimpl/proc/tasks.go:130 +0x3e5 fp=0xc000b20a10 sp=0xc000b20960 pc=0x1f34165
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).revalidateChildLocked(0x313680?, {0x786da0, 0xc001269500}, 0x2?, 0xc000b68ab0, {0xc000ac6e10, 0x2}, 0x0)
	pkg/sentry/fsimpl/kernfs/filesystem.go:131 +0x289 fp=0xc000b20ab8 sp=0xc000b20a10 pc=0x18d8c69
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).stepExistingLocked(0xc0013fb200?, {0x786da0, 0xc001269500}, 0xc0013fb200, 0xc000b68ab0)
	pkg/sentry/fsimpl/kernfs/filesystem.go:75 +0x525 fp=0xc000b20c08 sp=0xc000b20ab8 pc=0x18d84c5
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).walkExistingLocked(0xc00028b3b0?, {0x786da0, 0xc001269500}, 0xc0013fb200)
	pkg/sentry/fsimpl/kernfs/filesystem.go:163 +0x11b fp=0xc000b20c70 sp=0xc000b20c08 pc=0x18d8ffb
gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).OpenAt(0xc00028b360, {0x786da0, 0xc001269500}, 0xc0013fb200, {0x8002, 0x0, 0x0})
	pkg/sentry/fsimpl/kernfs/filesystem.go:486 +0x18d fp=0xc000b20f88 sp=0xc000b20c70 pc=0x18dda6d
gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*filesystem).OpenAt(0xc00028b360, {0x786da0, 0xc001269500}, 0xc0013fb200?, {0x39c3480?, 0x0?, 0x0?})
	<autogenerated>:1 +0x85 fp=0xc000b20fe8 sp=0xc000b20f88 pc=0x1f59005
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).OpenAt(0xc00074cd40?, {0x786da0, 0xc001269500}, 0xc0006bf200?, 0xc000b21428, 0xc000b212f8)
	pkg/sentry/vfs/vfs.go:460 +0x6bc fp=0xc000b21250 sp=0xc000b20fe8 pc=0x18260dc
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.openat(0xc001269500, 0x28c81c4?, 0x1?, 0x2, 0x0)
	pkg/sentry/syscalls/linux/sys_file.go:112 +0x365 fp=0xc000b214d8 sp=0xc000b21250 pc=0x1de0705
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Openat(0x0?, 0xc000b215d0?, {{0xffffff9c}, {0x7f28c6421bd0}, {0x2}, {0x0}, {0x12}, {0x7f28c6421906}})
	pkg/sentry/syscalls/linux/sys_file.go:91 +0xcb fp=0xc000b21550 sp=0xc000b214d8 pc=0x1de022b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001269500, 0x101, {{0xffffff9c}, {0x7f28c6421bd0}, {0x2}, {0x0}, {0x12}, {0x7f28c6421906}})
	pkg/sentry/kernel/task_syscall.go:142 +0xabf fp=0xc000b21968 sp=0xc000b21550 pc=0x1bc661f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001269500, 0x1?, {{0xffffff9c}, {0x7f28c6421bd0}, {0x2}, {0x0}, {0x12}, {0x7f28c6421906}})
	pkg/sentry/kernel/task_syscall.go:322 +0x8e fp=0xc000b21a08 sp=0xc000b21968 pc=0x1bc872e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000022870?, 0xc000b21b37?, {{0xffffff9c}, {0x7f28c6421bd0}, {0x2}, {0x0}, {0x12}, {0x7f28c6421906}})
	pkg/sentry/kernel/task_syscall.go:282 +0xc5 fp=0xc000b21a80 sp=0xc000b21a08 pc=0x1bc8025
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001269500)
	pkg/sentry/kernel/task_syscall.go:257 +0x53b fp=0xc000b21ba8 sp=0xc000b21a80 pc=0x1bc7b3b
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001269500?, 0xc001269500)
	pkg/sentry/kernel/task_run.go:269 +0x22b4 fp=0xc000b21e68 sp=0xc000b21ba8 pc=0x1bb0534
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001269500, 0x30)
	pkg/sentry/kernel/task_run.go:98 +0x35b fp=0xc000b21fb0 sp=0xc000b21e68 pc=0x1bad81b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:389 +0x48 fp=0xc000b21fe0 sp=0xc000b21fb0 pc=0x1bc3d08
runtime.goexit()
	src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000b21fe8 sp=0xc000b21fe0 pc=0x12b28c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:389 +0x1da

Crashes (48):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/25 14:44 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-3-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:41 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-2-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:41 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-1-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:36 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-systrap-1-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:34 gvisor 9926c0f464b0 3b91ad04 console log report syz C ci-gvisor-ptrace-3 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:33 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:33 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-2-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:33 gvisor 9926c0f464b0 3b91ad04 console log report syz C ci-gvisor-kvm panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:32 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-systrap-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 console log report syz C ci-gvisor-ptrace-1 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-2-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:29 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-ptrace-3-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:54 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-arm64-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 console log report syz C ci-gvisor-arm64-systrap-1 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:27 gvisor 9926c0f464b0 3b91ad04 console log report syz C ci-gvisor-arm64-ptrace-1 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:14 gvisor 9926c0f464b0 3b91ad04 .config console log report syz C ci-gvisor-arm64-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 19:35 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-systrap-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 19:05 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-2-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 18:59 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-3-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 18:07 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-1-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 18:00 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-2-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 18:00 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 17:52 gvisor 3924579214c2 92476829 .config console log report syz ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:32 gvisor 9926c0f464b0 3b91ad04 .config console log report syz ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 14:31 gvisor 9926c0f464b0 3b91ad04 console log report syz ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2023/08/01 09:27 gvisor 3275e9086cb8 2a0d0f29 .config console log report info ci-gvisor-systrap-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/08/01 05:00 gvisor 3275e9086cb8 2a0d0f29 .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
2023/08/01 01:14 gvisor 3275e9086cb8 2a0d0f29 console log report info ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/31 13:07 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/31 07:19 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/30 13:33 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/29 15:37 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/29 01:05 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/29 00:57 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 12:56 gvisor 3924579214c2 92476829 console log report info ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/28 09:07 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
2023/07/27 16:10 gvisor 9926c0f464b0 92476829 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/27 02:00 gvisor 9926c0f464b0 41fe1bae .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/26 04:20 gvisor 9926c0f464b0 3b91ad04 console log report info ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 18:23 gvisor 9926c0f464b0 3b91ad04 .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/31 20:47 gvisor 3924579214c2 2a0d0f29 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/30 02:37 gvisor 3924579214c2 92476829 .config console log report info ci-gvisor-arm64-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 13:06 gvisor 9926c0f464b0 3b91ad04 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 13:03 gvisor 9926c0f464b0 3b91ad04 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/07/25 11:32 gvisor 9926c0f464b0 3b91ad04 .config console log report info ci-gvisor-arm64-systrap-1-cover panic: runtime error: invalid memory address or nil pointer dereference
* Struck through repros no longer work on HEAD.