diff options
| author | Marco Vanotti <mvanotti@google.com> | 2020-05-19 17:56:58 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-28 20:12:33 +0200 |
| commit | d19ed305ae462d0bd5b11771f2180cab2d35a954 (patch) | |
| tree | b84975319e92f664c12e288f3c26500e80ed6c10 /pkg | |
| parent | 0d951763f51731ae44992058bdcbf0936dc98c79 (diff) | |
pkg/build/fuchsia: Enable KASAN by default.
This commit makes syzkaller build the kasan variant of fuchsia by
default.
Support for kernel address sanitizer has landed in fuchsia since commit
`54c5edfc37afe7294256552cefefca64c6ce7e94`[0].
[0]: https://fxrev.dev/383323
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/fuchsia.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/build/fuchsia.go b/pkg/build/fuchsia.go index a0d8d13ed..6b811c6f5 100644 --- a/pkg/build/fuchsia.go +++ b/pkg/build/fuchsia.go @@ -44,6 +44,7 @@ func (fu fuchsia) build(params *Params) error { "--args", fmt.Sprintf(`syzkaller_dir="%s"`, syzDir), "--with-base", "//bundles:tools", "--with-base", "//src/testing/fuzzing/syzkaller", + "--variant", "kasan", ); err != nil { return err } @@ -64,7 +65,7 @@ func (fu fuchsia) build(params *Params) error { for src, dst := range map[string]string{ "out/" + arch + "/obj/build/images/fvm.blk": "image", ".ssh/pkey": "key", - "out/" + arch + ".zircon/kernel-" + arch + "-clang/obj/kernel/zircon.elf": "obj/zircon.elf", + "out/" + arch + ".zircon/kernel-" + arch + "-kasan/obj/kernel/zircon.elf": "obj/zircon.elf", "out/" + arch + ".zircon/multiboot.bin": "kernel", "out/" + arch + "/fuchsia-ssh.zbi": "initrd", } { |
