syzbot


panic: runtime error: invalid memory address or nil pointer dereference

Status: fixed on 2018/08/19 04:32
Fix commit: f93bd2cbe668 Hold t.mu while calling t.FSContext().
First crash: 2349d, last: 2295d
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 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 (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=0x0 pc=0x6e242f]

goroutine 646 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*FSContext).RootDirectory(0x0, 0x0)
	pkg/sentry/kernel/fs_context.go:136 +0x2f
gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc.forEachMountSource(0xc4205ae400, 0xc4206cf4d0)
	pkg/sentry/fs/proc/mounts.go:33 +0x4a
gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc.(*mountInfoFile).ReadSeqFileData(0xc42061c098, 0xc72c00, 0xc4202c0d00, 0x0, 0x0, 0xc4206cf548, 0x5dc15e, 0xc4200f6550, 0x153c1ca083b656fc)
	pkg/sentry/fs/proc/mounts.go:77 +0x75
gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc/seqfile.(*SeqFile).updateSourceLocked(0xc4207e2c80, 0xc72c00, 0xc4202c0d00, 0x0)
	pkg/sentry/fs/proc/seqfile/seqfile.go:225 +0x97
gvisor.googlesource.com/gvisor/pkg/sentry/fs/proc/seqfile.(*SeqFile).DeprecatedPreadv(0xc4207e2c80, 0xc72c00, 0xc4202c0d00, 0xc71940, 0xc4208fac80, 0xc42071c000, 0x205, 0x0, 0x1000, 0x100, ...)
	pkg/sentry/fs/proc/seqfile/seqfile.go:158 +0x7c3
gvisor.googlesource.com/gvisor/pkg/sentry/fs/fsutil.(*Handle).Read(0xc42019a860, 0xc72c00, 0xc4202c0d00, 0xc42021e480, 0xc71940, 0xc4208fac80, 0xc42071c000, 0x205, 0x0, 0x1000, ...)
	pkg/sentry/fs/fsutil/handle.go:90 +0x8e
gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Preadv(0xc42021e480, 0xc72c00, 0xc4202c0d00, 0xc71940, 0xc4208fac80, 0xc42071c000, 0x205, 0x0, 0x1000, 0x100, ...)
	pkg/sentry/fs/file.go:248 +0x117
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.preadv(0xc4202c0d00, 0xc42021e480, 0xc71940, 0xc4208fac80, 0xc42071c000, 0x205, 0x0, 0x1000, 0x100, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_read.go:234 +0x9e
gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Preadv(0xc4202c0d00, 0x3, 0x200023c0, 0x1000000000000205, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/sys_read.go:185 +0x27b
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc4202c0d00, 0x127, 0x3, 0x200023c0, 0x1000000000000205, 0x0, 0x0, 0x0, 0xc4206cfca8, 0xbb3400, ...)
	pkg/sentry/kernel/task_syscall.go:162 +0x307
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc4202c0d00, 0x127, 0x3, 0x200023c0, 0x1000000000000205, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:278 +0x62
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc4202c0d00, 0x127, 0x3, 0x200023c0, 0x1000000000000205, 0x0, 0x0, 0x0, 0xc4204de800, 0xc4206cfe00)
	pkg/sentry/kernel/task_syscall.go:241 +0x91
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc4202c0d00, 0x2, 0xc4206e2000)
	pkg/sentry/kernel/task_syscall.go:216 +0x10c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc4202c0d00, 0xc65e20, 0x0)
	pkg/sentry/kernel/task_run.go:217 +0xed8
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc4202c0d00, 0x26)
	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 (20682):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/27 20:05 https://gvisor.googlesource.com/gvisor master c186e408cc61 43e60f7e .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/27 03:02 https://gvisor.googlesource.com/gvisor master dc33d71f8cf1 b0294c53 .config console log report syz C ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/26 22:59 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 089f1181 .config console log report syz C ci-gvisor-kvm-direct-sandbox
2018/06/25 18:12 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-ptrace-direct-overlay-host
2018/06/25 18:12 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-main
2018/06/25 10:12 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-ptrace-direct-overlay-host
2018/06/25 10:12 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-main
2018/06/24 03:48 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-kvm-direct-sandbox
2018/06/24 03:37 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-ptrace-direct-overlay-host
2018/06/24 03:37 https://gvisor.googlesource.com/gvisor master 9c0c4fd8d05c 2064fc5c .config console log report syz C ci-gvisor-main
2018/06/22 19:25 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 b9c7c319 .config console log report syz C ci-gvisor-main
2018/06/22 18:41 https://gvisor.googlesource.com/gvisor master 5d45f88f2c28 b9c7c319 .config console log report syz C ci-gvisor-main
2018/06/22 13:27 https://gvisor.googlesource.com/gvisor master 0e434b66a625 78c2562d console log report syz C ci-gvisor-main
2018/08/15 04:26 https://gvisor.googlesource.com/gvisor master dde836a91858 5084a625 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/15 03:59 https://gvisor.googlesource.com/gvisor master dde836a91858 5084a625 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/14 15:03 https://gvisor.googlesource.com/gvisor master dde836a91858 7a88b141 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/14 01:35 https://gvisor.googlesource.com/gvisor master a2ec391dfbc5 7a88b141 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/14 01:14 https://gvisor.googlesource.com/gvisor master a2ec391dfbc5 7a88b141 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/14 00:03 https://gvisor.googlesource.com/gvisor master a2ec391dfbc5 7a88b141 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/09 12:04 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/09 04:33 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-main
2018/08/09 03:37 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-main
2018/08/09 02:37 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-main
2018/08/09 00:23 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/09 00:01 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/08/08 23:05 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/08/08 22:07 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 21:26 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-direct-sandbox
2018/08/08 20:11 https://gvisor.googlesource.com/gvisor master cb23232c37c0 d46deef5 .config console log report ci-gvisor-kvm-proxy-overlay-sandbox
2018/06/22 12:03 https://gvisor.googlesource.com/gvisor master 0e434b66a625 e17d130f console log report ci-gvisor-main
2018/08/15 02:26 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/15 00:33 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 23:22 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 23:14 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 20:45 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 5084a625 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 12:24 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/14 03:18 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/13 16:58 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/13 15:55 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/13 15:37 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 7a88b141 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/09 08:13 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/09 00:45 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 19:06 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 18:48 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 17:35 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 16:22 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 15:08 https://github.com/dvyukov/gvisor.git race e4ce26c8b9b1 d46deef5 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 11:40 https://github.com/dvyukov/gvisor.git race 72627b310e89 14f8a76f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 10:08 https://github.com/dvyukov/gvisor.git race 72627b310e89 14f8a76f .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 08:38 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 07:33 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 07:29 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 06:29 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
2018/08/08 04:50 https://github.com/dvyukov/gvisor.git race 72627b310e89 1beb8136 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.