syzbot


panic: runtime error: floating point error

Status: fixed on 2023/02/24 13:50
Subsystems: kernel
[Documentation on labels]
Fix commit: 59f5ede3bc0f x86/fpu: Prevent FPU state corruption
First crash: 747d, last: 469d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 panic: runtime error: floating point error syz 5 36d 485d 0/2 upstream: reported syz repro on 2023/01/26 18:24
android-5-10 panic: runtime error: floating point error 1 642d 642d 0/2 auto-obsoleted due to no activity on 2022/11/21 00:58
upstream panic: runtime error: floating point error (2) syz error 13 21d 306d 0/26 upstream: reported syz repro on 2023/07/25 08:02
android-5-15 panic: runtime error: floating point error 3 495d 542d 0/2 auto-obsoleted due to no activity on 2023/04/24 18:55
android-5-10 panic: runtime error: floating point error (2) syz error error 8 44d 495d 0/2 premoderation: reported syz repro on 2023/01/17 08:13
android-6-1 panic: runtime error: floating point error (2) origin:lts missing-backport syz 9 9d04h 150d 0/2 premoderation: reported syz repro on 2023/12/27 20:43
android-6-1 panic: runtime error: floating point error 1 281d 281d 0/2 auto-obsoleted due to no activity on 2023/11/17 15:39

Sample crash report:
bpf$BPF_RAW_TRACEPOINT_OPEN(0x11, &(0x7f0000000200)={&(0x7f0000000140)='mm_page_alloc\x00', r0}, 0x10) (async)
r1 = bpf$LINK_GET_FD_BY_ID(0x1e, &(0x7f0000000000), 0x4)
r2 = bpf$ITER_CREATE(0xb, &(0x7f0000000040)={r1}, 0xffffffffffffff66)
write$cgroup_int(r2, &(0x7f00000001c0), 0xfffffdef)
panic: runtime error: floating point error
[signal SIGFPE: floating-point exception code=0x80 addr=0x0 pc=0x46649c]

goroutine 13 [running]:
math/rand.(*Rand).Perm(0x20, 0x4e8a)
	/usr/local/go/src/math/rand/rand.go:218 +0x31
github.com/google/syzkaller/prog.(*randGen).resourceCentric(0xc00ea76a60, 0xc00e955b80, 0x120d660, 0x80)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:890 +0x58
github.com/google/syzkaller/prog.(*ResourceType).generate(0x120d660, 0xc00ea76a60, 0x40ce34, 0x8)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:706 +0xd4
github.com/google/syzkaller/prog.(*randGen).generateArgImpl(0xc00ea76a60, 0xc00e955b80, {0xcf4d30, 0x120d660}, 0x0, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:694 +0x6b5
github.com/google/syzkaller/prog.(*randGen).generateArg(...)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:644
github.com/google/syzkaller/prog.(*randGen).generateArgs(0x19c8fe0, 0x0, {0x1ade3c0, 0x5, 0x5}, 0x0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:632 +0x150
github.com/google/syzkaller/prog.(*randGen).generateParticularCall(0xc00ea76a60, 0xc00e955b80, 0x19c8fe0)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:584 +0x85
github.com/google/syzkaller/prog.(*randGen).generateCall(0xc00ea76a60, 0xc00e955b80, 0xc00eb545c0, 0x100000000000038)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:573 +0xb6
github.com/google/syzkaller/prog.(*mutator).insertCall(0xc002887d60)
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:152 +0xd0
github.com/google/syzkaller/prog.(*Prog).Mutate(0xc00eb545c0, {0xcde390, 0xc00f0cf680}, 0x1e, 0xc0116a8000, 0xc00007cf60, {0xc013700000, 0x4e8a, 0x6000})
	/syzkaller/gopath/src/github.com/google/syzkaller/prog/mutation.go:49 +0x2c5
main.(*Proc).smashInput(0xc0116a82c0, 0xc00f54e5e0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:219 +0x16b
main.(*Proc).loop(0xc0116a82c0)
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:78 +0x125
created by main.main
	/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:310 +0x15e5

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/12 06:50 bpf-next ab86cf337a5b 93e26d60 .config console log report info ci-upstream-bpf-next-kasan-gce panic: runtime error: floating point error
2022/05/09 20:28 net-next-old 6da3c47264b2 8b277b8e .config console log report info ci-upstream-net-kasan-gce panic: runtime error: floating point error
* Struck through repros no longer work on HEAD.