Skip to content
Permalink
Branch: master
Commits on May 20, 2019
  1. docs/openbsd: Record gcloud commands used for /syzkaller

    blackgnezdo authored and dvyukov committed May 20, 2019
Commits on May 15, 2019
  1. tools/create-openbsd: valid URIs must use a single slash (#1184)

    blackgnezdo committed May 15, 2019
    Triggered by OpenBSD ftp upgrade which isn't looking kindly
    at double slahses: https://marc.info/?t=155794126200001&r=1&w=2
Commits on May 13, 2019
  1. pkg/instance: break the line to appease linter (#1173)

    blackgnezdo committed May 13, 2019
    * pkg/instance: break the line to appease linter
    
    * fix up format
Commits on May 9, 2019
  1. tools/create-openbsd-vmm-worker.sh: set location to cd0 for consisten…

    blackgnezdo committed May 9, 2019
    …cy (and speed) (#1168)
  2. tools/create-openbsd-gce-ci.sh: explicitly specify sets location (#1167)

    blackgnezdo committed May 9, 2019
    The previous default must have changed resulting in apparent failure
    to install siteXX.tgz. The observable symptom was:
    `Package installation failed. Inspect install_log.`
Commits on Apr 14, 2019
  1. Revert "dashboard/config: enable POOL_DEBUG on OpenBSD (#1113)"

    blackgnezdo authored and dvyukov committed Apr 13, 2019
    This reverts commit 2fbd3aa.
Commits on Mar 5, 2019
  1. ci-openbsd-multicore: enable PF (#1033)

    blackgnezdo committed Mar 5, 2019
    * pkg/build/openbsd: copy overlay files from userspaceDir into image
    
    Fixes #1030
Commits on Mar 1, 2019
  1. tools/*openbsd*: switch to 6.5 now that it's in -beta

    blackgnezdo authored and dvyukov committed Mar 1, 2019
Commits on Feb 11, 2019
  1. pkb/build: extractRootCause for NetBSD too

    blackgnezdo authored and dvyukov committed Feb 11, 2019
    * pkg/build: share extractRootCause with openbsd
    
    This should get kernel build errors reported in syz-ci console.
    
    * Add a test
    
    * lint
    
    * pkb/build: extractRootCause for NetBSD too
  2. pkg/build: share extractRootCause with openbsd

    blackgnezdo authored and dvyukov committed Feb 11, 2019
    * pkg/build: share extractRootCause with openbsd
    
    This should get kernel build errors reported in syz-ci console.
    
    * Add a test
    
    * lint
Commits on Feb 9, 2019
  1. tools/openbsd: use fully resolved gcc package name (#988)

    blackgnezdo committed Feb 9, 2019
Commits on Jan 14, 2019
  1. sys/openbsd: avoid /dev/fd node creation

    blackgnezdo authored and dvyukov committed Jan 12, 2019
    Prevents corpus explosion with corrupted coverage data.
    
    The two parallel runs of:
    `doas ./syz-execprog -cover -coverfile /tmp/{fixed,unfixed} r.syz`
    show markedly different coverage pictures:
    
    unfixed:
    ```
    2019/01/12 13:55:38 parsed 1 programs
    2019/01/12 13:55:38 executed programs: 0
    2019/01/12 13:55:38 call #0: signal 821, coverage 2438
    2019/01/12 13:55:38 call #1: signal 243, coverage 1363
    2019/01/12 13:55:38 call #2: signal 502, coverage 1993
    2019/01/12 13:55:38 call #3: signal 15, coverage 44
    2019/01/12 13:55:38 call #4: signal 335, coverage 8196
    ```
    
    fixed:
    ```
    2019/01/12 13:51:57 parsed 1 programs
    2019/01/12 13:51:57 executed programs: 0
    2019/01/12 13:51:57 call #0: signal 837, coverage 2491
    2019/01/12 13:51:57 call #1: signal 241, coverage 1341
    2019/01/12 13:51:57 call #2: signal 27, coverage 61
    2019/01/12 13:51:57 call #3: signal 13, coverage 44
    2019/01/12 13:51:57 call #4: signal 39, coverage 299
    ```
    
    The contents of `r.syz` is
    ```
    mknod(&(0x7f0000000180)='./file0\x00', 0x2006, 0x10000016e8)
    r0 = open(&(0x7f0000000100)='./file0\x00', 0x0, 0x0)
    mmap(&(0x7f0000000000/0x3000)=nil, 0x3000, 0x2, 0x10, r0, 0x0, 0x0)
    writev(0xffffffffffffffff, &(0x7f0000002480)=[{&(0x7f0000001480)="<junk>", 0x573}], 0x1)
    lstat(&(0x7f0000000240)='./file0\x00', &(0x7f0000000000))
    ```
    
    So, it's the final lstat which was getting that extra coverage.  In
    particular, the end of unfixed.4 has some 4734 values
    0xffffffff00000000.
Commits on Dec 19, 2018
  1. tools/create-openbsd-gce-ci.sh: raise memory limit for openbsd

    blackgnezdo authored and dvyukov committed Dec 19, 2018
  2. pkg/build/openbsd: always make clean to manage config in tree

    blackgnezdo authored and dvyukov committed Dec 18, 2018
    clean build barely takes 3 minutes end-to-end on our CI machine.
    
    Undo debug options which caused prevented kernels from booting on GCE.
Commits on Dec 18, 2018
  1. dashboard/config: store kernel configs in tree

    blackgnezdo authored and dvyukov committed Dec 18, 2018
    * sus/openbsd: store kernel configs in tree
    
    They now include https://man.openbsd.org/witness per suggestion from
    @mptre
    
    * LOCKF_DIAGNOSTIC while we are at it.
    
    * Moved to a better place.
Commits on Dec 13, 2018
  1. docs/openbsd/setup.md: micro-simplification

    blackgnezdo authored and dvyukov committed Dec 13, 2018
    @mptre WDYT
  2. pkg/csource: support tun and setuid repros on {free,open}bsd

    blackgnezdo authored and dvyukov committed Dec 11, 2018
    * expose procid on BSD for tun, always declare loop()
    * deal with terrible bsd includes
    * replicate loop() declaration
Commits on Dec 11, 2018
  1. prog: detect invalid target.Syscalls in BuildChoiceTable

    blackgnezdo authored and dvyukov committed Dec 11, 2018
    Without this check programs may end up panicing in places far away
    from the real cause. E.g.
    
    worker# ./syz-fuzzer -executor=./syz-executor -name=vm-0 -arch=amd64 -manager=10.128.0.101:21386 -sandbox=setuid -procs=2 -v=0 -cover=true -debug=false -test=false
    2004/02/03 12:11:11 fuzzer started
    2004/02/03 12:11:11 dialing manager at 10.128.0.101:21386
    2004/02/03 12:11:12 syscalls: 1
    2004/02/03 12:11:12 code coverage: enabled
    2004/02/03 12:11:12 comparison tracing: support is not implemented in syzkaller
    2004/02/03 12:11:12 setuid sandbox: support is not implemented in syzkaller
    2004/02/03 12:11:12 namespace sandbox: support is not implemented in syzkaller
    2004/02/03 12:11:12 Android sandbox: support is not implemented in syzkaller
    2004/02/03 12:11:12 fault injection: support is not implemented in syzkaller
    2004/02/03 12:11:12 leak checking: support is not implemented in syzkaller
    2004/02/03 12:11:12 net packet injection: enabled
    2004/02/03 12:11:12 net device setup: support is not implemented in syzkaller
    panic: invalid argument to Intn
    
    goroutine 27 [running]:
    math/rand.(*Rand).Intn(0xc000dff530, 0x0, 0x40)
            /usr/local/go/src/math/rand/rand.go:169 +0x9c
    github.com/google/syzkaller/prog.(*ChoiceTable).Choose(0xc000d92ec0, 0xc000dff530, 0xffffffffffffffff, 0xc000dff650)
            /syzkaller/gopath/src/github.com/google/syzkaller/prog/prio.go:241 +0x1a0
    github.com/google/syzkaller/prog.(*randGen).generateCall(0xc000e145a0, 0xc000c2a200, 0xc000ce7f80, 0x2348f1940, 0xc000ce3440, 0xc000e6ee01)
            /syzkaller/gopath/src/github.com/google/syzkaller/prog/rand.go:451 +0x69
    github.com/google/syzkaller/prog.(*Target).Generate(0xc00007f1e0, 0x8f8680, 0xc000ce3440, 0x1e, 0xc000d92ec0, 0x0)
            /syzkaller/gopath/src/github.com/google/syzkaller/prog/generation.go:19 +0x2b2
    main.(*Proc).loop(0xc000d92f40)
            /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/proc.go:93 +0x2a1
    created by main.main
            /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/fuzzer.go:236 +0xfe2
  2. executor: reapply setuid sandbox for bsd

    blackgnezdo authored and dvyukov committed Dec 11, 2018
    * Revert "Revert "executor: add setuid sandbox for openbsd""
    
    The problem is the low file descriptor limit.
    
    This reverts commit 4093e33.
    
    * executor/executor make sure the file descriptor limit is sufficient
Commits on Dec 10, 2018
  1. Revert "executor: add setuid sandbox for openbsd"

    blackgnezdo authored and dvyukov committed Dec 10, 2018
    This reverts commit 6565f24.
  2. executor: add setuid sandbox for openbsd

    blackgnezdo authored and dvyukov committed Dec 10, 2018
    * executor/common_bsd: add setuid sandbox
    
    Fixes #833
    
    cc @mptre
    
    * Reduced duplications, resolved TODO.
Commits on Dec 7, 2018
  1. pkg/build/openbsd: require kernel config files as configuration data

    blackgnezdo authored and dvyukov committed Dec 6, 2018
    Previously the config was generated directly, but testing multiple
    configurations makes this cumbersome going forward. This makes
    kernel_config a mandatory parameter.
Commits on Dec 6, 2018
  1. tools/syz-trace2syz/proggen/return_cache.go: format string mismatch

    blackgnezdo authored and dvyukov committed Dec 6, 2018
Commits on Dec 4, 2018
  1. tools/create-openbsd-vmm-worker.sh: shut off pagination in ddb

    blackgnezdo authored and dvyukov committed Dec 4, 2018
Commits on Dec 2, 2018
  1. vm/gce: use openbsd console diagnostic code for both vmm and gce

    blackgnezdo authored and dvyukov committed Dec 2, 2018
    * openbsd: use console diagnostic code for both vmm and gce.
    
    * gometalinter wants less indentation and more stuff in scope
    
    * Comment no longer applies
  2. pkg/csource: use defines from sys/syscall.h on *bsd

    blackgnezdo authored and dvyukov committed Dec 2, 2018
    Fixes #841
  3. tools: set openbsd hostname to instance name for serviceability

    blackgnezdo authored and dvyukov committed Dec 2, 2018
    * openbsd images: set hostname to instance name for serviceability
    
    * openbsd startup scripts insist on EOL characters
Commits on Nov 30, 2018
  1. openbsd: repair pkg/csource_test

    blackgnezdo authored and dvyukov committed Nov 30, 2018
Commits on Nov 27, 2018
  1. prog: prevent sandbox escaping files from entering s.files

    blackgnezdo authored and dvyukov committed Nov 27, 2018
  2. openbsd: run on gce

    blackgnezdo authored and dvyukov committed Nov 27, 2018
    * build/openbsd: minor cleanup (use tuples instead of maps)
    
    * Grammar nits in comments.
    
    * Simplify openbsd.Create, will defer when there's more than one error exit.
    
    * pkg/build: Support copying kernel into GCE image
    
    * Simple test for openbsd image copy build.
    
    * Cleanup in case something failed before.
    
    * Support multi-processor VMs on GCE.
    
    * More debug
    
    * Reformat
    
    * OpenBSD gce image needs to be raw.
    
    * GC
    
    * Force format to GNU directly on Go 1.10 or newer.
    
    * Use vmType passed as a parameter inside openbsd.go
    
    * gofmt
    
    * more fmt
    
    * Can't use GENERIC.mp just yet.
    
    * capitalize
    
    * Copyright
Commits on Nov 17, 2018
  1. executor: OpenBSD network package injection

    blackgnezdo authored and dvyukov committed Nov 17, 2018
    Squash of:
    
    * Doc typo
    
    * Ported some tun related functions.
    
    * Copy vnet.txt from linux to openbsd.
    
    * Simplified syz_emit_ethernet and stubbed out vnet.txt.
    
    * Undo clang-format header sorting: headers are order sensitive.
    
    * Uniquify tap devices by pid.
    
    * clang-format off for includes
    
    * Happier clang-format.
    
    * Partially revert "Uniquify tap devices by pid."
    
    Just rely on procid magic instead of getting it from a flag.
Commits on Oct 29, 2018
  1. sys/openbsd: added minherit, extended/simplified mmap

    blackgnezdo authored and dvyukov committed Oct 29, 2018
    * sys/openbsd: added minherit, extended/simplified mmap.
    
    Added a script from anton_at_openbsd.org for regenerating syscalls.
    
    Generated by ksh ./sys/openbsd/extract-openbsd.sh
    
    * Undo whitespace change not passing on CI
    
    * No need for magic script.
Commits on Oct 28, 2018
  1. tools/create-openbsd*sh: use cdn.openbsd.org not cloudflare, install …

    blackgnezdo authored and dvyukov committed Oct 28, 2018
    …vmm-firmware
    
    * Use cdn.openbsd.org not cloudflare. Install vmm-firmware explicitly.
    
    * Use cdn.openbsd.org not cloudflare. Install vmm-firmware explicitly.
    
    * set hw.smt=1: the underlying hw on VM is unknown so don't waste SMT.
Commits on Oct 11, 2018
  1. tools/create-openbsd*: Support post-version flip snapshots.

    blackgnezdo authored and dvyukov committed Oct 11, 2018
      * Fixed pkg_add status checking
      * Switched to qcow2 test image
      * Minor GC
Commits on Oct 1, 2018
  1. doc: Not -> Note

    blackgnezdo authored and dvyukov committed Sep 29, 2018
Older
You can’t perform that action at this time.