syzbot


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

Status: fixed on 2023/01/23 05:20
Fix commit: e08f204299df inet: each socket has to hold a reference to its network namespace
First crash: 738d, last: 676d
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 (26) C 7905 4d13h 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 4d12h 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 (16) C 48 483d 490d 26/26 fixed on 2023/08/02 12:57
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=0x30 pc=0x97582d]

goroutine 4332 [running]:
panic({0xf42e80, 0x1b9ebf0})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0006d3540 sp=0xc0006d3480 pc=0x435a77
runtime.panicmem(...)
	GOROOT/src/runtime/panic.go:220
runtime.sigpanic()
	GOROOT/src/runtime/signal_unix.go:818 +0x336 fp=0xc0006d3590 sp=0xc0006d3540 pc=0x44c536
gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CheckIORange(...)
	pkg/sentry/mm/io.go:71
gvisor.dev/gvisor/pkg/sentry/kernel.makeIovec({0x12c9078?, 0xc0023647a0?}, 0xc00366a000, 0xffffffffffffffff?, {0xc00366a944, 0xb0?, 0x90})
	pkg/sentry/kernel/task_usermem.go:270 +0xad fp=0xc0006d35c8 sp=0xc0006d3590 pc=0x97582d
gvisor.dev/gvisor/pkg/sentry/kernel.copyInIovecs({0x12c9078, 0xc0023647a0}, 0xc00366a000, 0x20000240, 0x3)
	pkg/sentry/kernel/task_usermem.go:231 +0x1ee fp=0xc0006d3668 sp=0xc0006d35c8 pc=0x97564e
gvisor.dev/gvisor/pkg/sentry/kernel.(*taskCopyContext).CopyInIovecs(...)
	pkg/sentry/kernel/task_usermem.go:411
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite.func1()
	pkg/sentry/syscalls/linux/sys_process_vm.go:104 +0xad fp=0xc0006d3768 sp=0xc0006d3668 pc=0xaa5ded
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.doProcessVMReadWrite(0xc000e46000, 0xc00366a000, 0x20000080, 0x20000240, 0x1, 0x3, 0x0)
	pkg/sentry/syscalls/linux/sys_process_vm.go:174 +0x1ae fp=0xc0006d37d8 sp=0xc0006d3768 pc=0xaa5cae
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.processVMRW(0x86215?, {{0x308}, {0x20000080}, {0x1}, {0x20000240}, {0x3}, {0x0}}, 0x1)
	pkg/sentry/syscalls/linux/sys_process_vm.go:84 +0x167 fp=0xc0006d3850 sp=0xc0006d37d8 pc=0xaa5a67
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.ProcessVMWritev(0x1?, {{0x308}, {0x20000080}, {0x1}, {0x20000240}, {0x3}, {0x0}})
	pkg/sentry/syscalls/linux/sys_process_vm.go:42 +0x3b fp=0xc0006d38a0 sp=0xc0006d3850 pc=0xaa58db
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000e46000, 0x137, {{0x308}, {0x20000080}, {0x1}, {0x20000240}, {0x3}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x755 fp=0xc0006d3c90 sp=0xc0006d38a0 pc=0x9724f5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000e46000, 0xc002f251b8?, {{0x308}, {0x20000080}, {0x1}, {0x20000240}, {0x3}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x4a fp=0xc0006d3cf0 sp=0xc0006d3c90 pc=0x97372a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0x0?, 0xc00036e000?, {{0x308}, {0x20000080}, {0x1}, {0x20000240}, {0x3}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x65 fp=0xc0006d3d50 sp=0xc0006d3cf0 pc=0x973405
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc002755860?)
	pkg/sentry/kernel/task_syscall.go:257 +0x2f0 fp=0xc0006d3e48 sp=0xc0006d3d50 pc=0x973170
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc002cb2a00?, 0xc000e46000)
	pkg/sentry/kernel/task_run.go:253 +0xdea fp=0xc0006d3f60 sp=0xc0006d3e48 pc=0x96770a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000e46000, 0x307)
	pkg/sentry/kernel/task_run.go:94 +0x1ac fp=0xc0006d3fc0 sp=0xc0006d3f60 pc=0x96630c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:378 +0x2a fp=0xc0006d3fe0 sp=0xc0006d3fc0 pc=0x970d4a
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0006d3fe8 sp=0xc0006d3fe0 pc=0x469781
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:378 +0xf9

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/21 15:42 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-3 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:41 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-1 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:40 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-3-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:39 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:39 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-kvm panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:37 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:37 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-ptrace-2-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:27 gvisor 38a0512f13fa f9a97739 .config console log report syz C ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 17:52 gvisor 38a0512f13fa f9a97739 .config console log report syz ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/01/19 18:30 gvisor 2a56495dfaef 62267f14 .config console log report info ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2023/01/11 18:31 gvisor 5bb418ecdb69 96166539 .config console log report info ci-gvisor-ptrace-1-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/12/28 21:58 gvisor ab1e49567ed2 44712fbc .config console log report info ci-gvisor-ptrace-2-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/29 05:53 gvisor 85a2ede1743f ca9683b8 .config console log report info ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/28 15:57 gvisor 5b7274a1fc08 950c3e02 .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/28 04:26 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/28 04:11 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/27 15:39 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/27 13:57 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/27 11:52 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-2-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/27 04:02 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-kvm panic: runtime error: invalid memory address or nil pointer dereference
2022/11/26 21:54 gvisor 5b7274a1fc08 f4470a7b .config console log report info ci-gvisor-ptrace-1-race-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/25 20:08 gvisor 5b7274a1fc08 0d68fcb4 .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/25 06:00 gvisor 5b7274a1fc08 74a66371 .config console log report info ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/24 21:15 gvisor 5b7274a1fc08 d6358a0d .config console log report info ci-gvisor-ptrace-1 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/24 10:05 gvisor 5b7274a1fc08 ff68ff8f .config console log report info ci-gvisor-ptrace-1-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/23 18:55 gvisor 5b7274a1fc08 3c2d90bc .config console log report info ci-gvisor-ptrace-1-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/23 04:48 gvisor 4fa2196b6ac7 75740b3f .config console log report info ci-gvisor-ptrace-2 panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 18:39 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-ptrace-3-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 15:14 gvisor 38a0512f13fa f9a97739 .config console log report info ci-gvisor-kvm-cover panic: runtime error: invalid memory address or nil pointer dereference
2022/11/21 00:55 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-2-race panic: runtime error: invalid memory address or nil pointer dereference
2022/11/19 10:57 gvisor 38a0512f13fa 5bb70014 .config console log report info ci-gvisor-ptrace-3-race panic: runtime error: invalid memory address or nil pointer dereference
* Struck through repros no longer work on HEAD.