]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, runtime: add comparison tracing for libFuzzer
authorMatthew Dempsky <mdempsky@google.com>
Mon, 28 Oct 2019 22:30:35 +0000 (15:30 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 5 Nov 2019 00:00:43 +0000 (00:00 +0000)
commitea0b4e7c7db8c5d376e77fd3e6741d94685073ac
tree8afdc5178caea495179b453a704b6207d3dc1ad0
parente341e93c519ef22ed4759fd0b4643a30321b9222
cmd/compile, runtime: add comparison tracing for libFuzzer

This CL extends cmd/compile's experimental libFuzzer support with
calls to __sanitizer_cov_trace_{,const_}cmp{1,2,4,8}. This allows much
more efficient fuzzing of comparisons.

Only supports amd64 and arm64 for now.

Updates #14565.

Change-Id: Ibf82a8d9658f2bc50d955bdb1ae26723a3f0584d
Reviewed-on: https://go-review.googlesource.com/c/go/+/203887
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/builtin.go
src/cmd/compile/internal/gc/builtin/runtime.go
src/cmd/compile/internal/gc/walk.go
src/runtime/libfuzzer.go [new file with mode: 0644]
src/runtime/libfuzzer_amd64.s [new file with mode: 0644]
src/runtime/libfuzzer_arm64.s [new file with mode: 0644]