syzbot


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

Status: fixed on 2021/09/28 00:40
Reported-by: syzbot+b69eae15f92f0f50575b@syzkaller.appspotmail.com
Fix commit: b1e2f063ae91 amd64 sendsig: fix context corruption
First crash: 498d, last: 496d
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
panic: runtime error: invalid memory address or nil pointer dereference [recovered] 4 496d 498d 0/2 closed as dup on 2021/09/27 17:33
panic: assignment to entry in nil map 2 496d 498d 0/2 closed as dup on 2021/09/27 17:33

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

goroutine 29 [running]:
github.com/google/syzkaller/prog.(*GroupArg).Type(0x0, 0xc00bf7fbc0, 0xd13d40)
	<autogenerated>:1 +0x2b
github.com/google/syzkaller/prog.calcChecksumsCall.func1(0xd13d00, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/checksum.go:34 +0x47
github.com/google/syzkaller/prog.foreachArgImpl(0xd13d00, 0xc000085ae0, 0xc009f7d180, 0xc00bf89848)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:129 +0x119
github.com/google/syzkaller/prog.foreachArgImpl(0xd13d40, 0xc00031da40, 0xc009f7d180, 0xc00d1ee848)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:156 +0x656
github.com/google/syzkaller/prog.ForeachArg(0xc0000ad5c0, 0xc00bf89848)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/analysis.go:122 +0xdd
github.com/google/syzkaller/prog.calcChecksumsCall(0xc0000ad5c0, 0xc0000ad540, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/checksum.go:33 +0xbe
github.com/google/syzkaller/prog.(*Prog).SerializeForExec(0xc0000ad500, 0x82c600000, 0x400000, 0x400000, 0xc00b7955f0, 0xc000102000, 0xc002d9c6c8)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/encodingexec.go:75 +0x14c
github.com/google/syzkaller/pkg/ipc.(*Env).Exec(0xc009fe86c0, 0xc0000a84e0, 0xc0000ad500, 0xc00002e000, 0xc00003fd50, 0x4ae762, 0x4ad96a, 0x3, 0x8, 0xc0000a2000)
	/syzkaller/gopath/src/github.com/google/syzkaller/pkg/ipc/ipc.go:255 +0x62
main.(*Proc).executeRaw(0xc009f7d080, 0xc0000a84e0, 0xc0000ad500, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:290 +0x214
main.(*Proc).execute(0xc009f7d080, 0xc0000a84e0, 0xc0000ad500, 0x7, 0x2, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:249 +0x6a
main.(*Proc).loop(0xc009f7d080)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:76 +0x143
created by main.main
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:289 +0x1481


FreeBSD/amd64 (ci-freebsd-main-6.c.syzkaller.internal) (ttyu0)

login: 

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-freebsd-main 2021/09/27 20:55 freebsd-src 74237127e340 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/27 19:19 freebsd-src 74237127e340 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/27 16:21 freebsd-src 74237127e340 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/27 08:48 freebsd-src 15d077995bd2 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/27 02:38 freebsd-src 15d077995bd2 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/26 19:06 freebsd-src fb640be4e944 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/26 15:46 freebsd-src fb640be4e944 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/26 15:01 freebsd-src fb640be4e944 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/26 12:58 freebsd-src fb640be4e944 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/25 23:00 freebsd-src f766826fe3b8 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-main 2021/09/25 18:35 freebsd-src f766826fe3b8 8cac236e console log report panic: runtime error: invalid memory address or nil pointer dereference
ci-freebsd-i386 2021/09/27 08:00 freebsd-src 15d077995bd2 78494d16 console log report panic: runtime error: invalid memory address or nil pointer dereference
* Struck through repros no longer work on HEAD.