Skip to content
Permalink
Tree: b6709220e0
Commits on Dec 6, 2018
  1. pkg/build/openbsd: require kernel config files as configuration data

    blackgnezdo committed Dec 6, 2018
    Previously the config was generated directly, but testing multiple
    configurations makes this cumbersome going forward.
  2. prog: add Prog.Finalize

    dvyukov committed Dec 6, 2018
    Prog.Finalize combines assignSizesCall, SanitizeCall and validate.
    Intended for users who build own programs,
    so that we don't need to expose all individual methods.
  3. prog: export Type.DefaultArg

    dvyukov committed Dec 6, 2018
    It's effectively exported anyway.
    So export it the proper way.
  4. tools/syz-trace2syz: skip 2 more syscalls

    dvyukov committed Dec 6, 2018
    These set_robust_list and set_tid_address are issued by glibc
    for every process/thread start.
    Normal programs don't use them and it's unlikely we build
    something interesting with them (e.g. we won't get real robust list in memory).
    Skip them.
  5. tools/syz-trace2syz: tidy up code

    dvyukov committed Dec 6, 2018
    Lots of assorted changes mainly converting code to idiomatic Go
    and replacing code with equivalent, but shorter code.
  6. pkg/db: provide helper function for database creation

    dvyukov committed Dec 6, 2018
    This is needed for both tools/syz-db and tools/syz-trace2syz.
    Also, remove code to resolve SHA1 collisions.
    Also, don't set db version as we actually want to minimize
    and smash these programs like anything else
    (not minimizing nor smashing them is only useful during tool testing).
  7. tools/syz-trace2syz: merge config package into proggen

    dvyukov committed Dec 6, 2018
    Since we now have only single variable there,
    it does not seem to deserve a separate package.
  8. tools/syz-trace2syz: add tool to convert strace output to programs

    shankarapailoor authored and dvyukov committed Dec 6, 2018
    * fixing weird merge error
    
    * fixing presubmit
    
    * fixing presubmit
    
    * removing parsing code because of -Xraw option
    
    * fix presubmit
    
    * update
    
    * deleting vma_call_handlers as we are currently skipping most vma calls. This simplifies memory_tracker as we don't need to keep track of vma allocations
    
    * removing custom handling of bpf_instruction union
    
    * removing ifconf parsing
    
    * update
    
    * removed all expression types and replaced them with constant types. removing ipv6_addr parsing while -Xraw is getting fixed. Removing constants.go
    
    * removing ipv6 parsing
    
    * presubmit
    
    * moving direction check from ipv4_addr out to genUnion
    
    * removing code that parses kcov
    
    * removing redundant test
    
    * removing custom code in generate unions to fill ipv4_addr
    
    * proggen: changing order of imports to make external packages import first
    
    fixing presubmit
    
    * changing log messages to lower case to be consistent with other packages.
    
    * removing pointer type and simplifying memory_tracker
    
    removing comment
    
    * moving context and return_cache to seaparate files
    
    * deleting default argument generation when we should probably throw an error
  9. Update syzbot.md

    dvyukov committed Dec 6, 2018
    add newer clang compiler
  10. Update found_bugs.md

    dvyukov committed Dec 6, 2018
Commits on Dec 5, 2018
  1. pkg/csource: exclude linux/arm64 tests

    dvyukov committed Dec 5, 2018
    I think I misinterpreted the error that episodically happens on ci:
    
    collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
    compiler invocation: aarch64-linux-gnu-gcc [-Wall -Werror -O1 -g -o /tmp/syz-executor570589071 -pthread -DGOOS_linux=1 -DGOARCH_arm64=1 -x c - -static]
    
    as OOM, but they all involve aarch64-linux-gnu-gcc:
    
    https://travis-ci.org/google/syzkaller/jobs/461827347
    https://travis-ci.org/google/syzkaller/jobs/460226110
    https://travis-ci.org/google/syzkaller/jobs/463564291
    
    So I guess the problem can be with the arm64 toolchain that just crashes randomly.
  2. sys/freebsd: remove linux specific include files for ICMP

    tuexen authored and dvyukov committed Dec 5, 2018
  3. sys/freebsd: improve TCP tests

    tuexen authored and dvyukov committed Dec 5, 2018
    * sys/freebsd: improve TCP tests
    
    Add missing TCP socket options for FreeBSD.
    
    * sys/freebsd: improve TCP tests
    
    Add socket option description for TCP_FASTOPEN.
Commits on Dec 4, 2018
  1. sys/freebsd: improve udp tests

    tuexen authored and dvyukov committed Dec 4, 2018
    Add support for the UDP_ENCAP. Add required includes and
    remove the Linux specific ones.
  2. sys: remove socketpair for AF_INET and AF_INET6

    tuexen authored and dvyukov committed Dec 4, 2018
    * OpebBSD: remove socketpair() for AF_INET and AF_INET6.
    
    socketpair() is only supported on AF_UNIX.
    
    * NetBSD: remove socketpair() for AF_INET and AF_INET6.
    
    socketpair() is only supported for AF_UNIX.
    
    * FreeBSD: remove socketpair() for AF_INET and AF_INET6.
    
    socketpair() only supports AF_UNIX.
    
    * Linux: remove socketpair for AF_INET and AF_INET6.
    
    socketpair only supports AF_UNIX.
    
    * Autogenerated files.
    
    These are manually generated for all platforms you are not
    running on. FreeBSD in this case.
    
    * executor: rebase.
    
    * sys/freebsd: rebase.
    
    * sys/linux: use AF_UNIX based socketpair for nbd.
    
    This was suggested by Dmitry.
    
    Fixes #845
  3. tools/create-openbsd-vmm-worker.sh: shut off pagination in ddb

    blackgnezdo authored and dvyukov committed Dec 4, 2018
Commits on Dec 3, 2018
  1. sys/freebsd: add UDP-Lite descriptions

    tuexen authored and dvyukov committed Dec 3, 2018
  2. pkg/csource: reduce short tests

    dvyukov committed Dec 3, 2018
    pkg/csource test gets OOM-killed on travis:
    https://travis-ci.org/google/syzkaller/jobs/461827347
    https://travis-ci.org/google/syzkaller/jobs/460226110
    
    Add several measures:
     - set GOMAXPROCS=1 to restrict parallel processes
     - remove -g from compiler invocation
     - reduce set of tests run in short mode to compensate for GOMAXPROCS=1
     - also reduce set of tests in full mode as they timeout now
  3. Makefile: constrain gometalinter memory usage

    dvyukov committed Dec 3, 2018
    gometalinter gets OOM-killed on travis:
    https://travis-ci.org/google/syzkaller/jobs/462546388
    
    I've run 4 experiments locally and this combination
    seems to make memory usage slightly better:
    
    GOGC=50 GOMAXPROCS=1 TIME="%e %M" time gometalinter.v2 ./...
    114.35 8274556
    122.54 8293580
    117.85 8349960
    
    GOGC=50 GOMAXPROCS=1 TIME="%e %M" time gometalinter.v2 ./...
    147.45 7512512
    150.13 6820408
    149.26 7909636
    
    GOGC=100 GOMAXPROCS=2 TIME="%e %M" time gometalinter.v2 ./...
    109.73 8332476
    114.91 8563776
    114.54 8478368
    
    GOGC=50 GOMAXPROCS=2 TIME="%e %M" time gometalinter.v2 ./...
    145.43 6726144
    147.40 8247952
    155.56 7815656
  4. docs: update contributing.md

    dvyukov committed Dec 3, 2018
    Clarify commit description guidelines.
  5. sys/targets: use g++ as preprocessor on freebsd

    dvyukov committed Dec 3, 2018
Commits on Dec 2, 2018
  1. vm/gce: close old consolew in Run

    dvyukov committed Dec 2, 2018
    Run can be executed several times on a VM.
  2. 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
  3. docs/openbsd: update found_bugs.md

    mptre authored and dvyukov committed Nov 20, 2018
  4. pkg/csource: use defines from sys/syscall.h on *bsd

    blackgnezdo authored and dvyukov committed Dec 2, 2018
    Fixes #841
  5. 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 Dec 1, 2018
  1. executor: add support for tap interfaces on FreeBSD

    tuexen authored and dvyukov committed Dec 1, 2018
Commits on Nov 30, 2018
  1. openbsd: repair pkg/csource_test

    blackgnezdo authored and dvyukov committed Nov 30, 2018
  2. pkg/report: suppress another gvisor OOM

    dvyukov committed Nov 30, 2018
  3. vm/qemu: improve debug output

    tuexen authored and dvyukov committed Nov 30, 2018
    * vm/qemu: Improve debug output.
    
    When running in debug mode, the number of VMs is reduced to 1.
    State this in the debug output.
    
    * vm/qemu: Don't start debug output with a capital letter.
    
    As requested by Dimitry.
    
    * vm: Provide debug message when reduing number of VMs.
    
    Apply this change to all affected platforms for consistency.
    Suggested by Dmitry.
    
    * Add myself to AUTHORS/CONTRIBUTORS files.
    
    * vm: Fix compilation issues missed in earlier commit.
    
    * vm: Use logging to write debug message.
  4. removing trace2syz constants and moving rand_addr as the first ipv4_a…

    shankarapailoor authored and dvyukov committed Nov 27, 2018
    …ddr option
  5. FreeBSD: Fix make extract

    tuexen authored and dvyukov committed Nov 30, 2018
    * FreeBSD: Fix make extract.
    
    A header was missing...
    
    * FreeBSD: Fix make extract
    
    Changes in generated files.
Older
You can’t perform that action at this time.