Skip to content
Permalink
Tree: 2b42fdc898
Commits on Dec 30, 2018
  1. sys/linux: detail ifla_vf_policy/ifla_port_policy/ifla_xdp_policy

    dvyukov committed Dec 30, 2018
  2. sys/linux: add can routes

    dvyukov committed Dec 30, 2018
  3. sys/linux: add /dev/mISDNtimer

    dvyukov committed Dec 30, 2018
  4. sys/linux: open more of /dev/ files

    dvyukov committed Dec 30, 2018
    /dev/vfio/vfio
    /dev/btrfs-control
    /dev/ubi_ctrl
    /dev/cachefiles
  5. pkg/report: improve double fault parsing

    dvyukov committed Dec 30, 2018
    Ignore double faults as start of a second report.
    Double fault can happen during handling of paging faults
    if memory is badly corrupted. Also it usually happens
    synchronously, which means that maybe the report is not corrupted.
    But of course it can come from another CPU as well.
    
    Add more interesting test cases.
Commits on Dec 29, 2018
  1. executor: fix linux includes

    dvyukov committed Dec 29, 2018
    Builds in one distro, but another says:
    
    In file included from <stdin>:39:0:
    /usr/powerpc64le-linux-gnu/include/linux/if.h:143:8: error: redefinition of ‘struct ifmap’
    /usr/powerpc64le-linux-gnu/include/net/if.h:111:8: note: originally defined here
    
    Mess. Try to fix it.
    Not sure what's the right solution and it it even exists.
  2. sys/linux: add AF_ISDN descriptions

    dvyukov committed Dec 29, 2018
  3. sys/linux: misc assorted improvements

    dvyukov committed Dec 29, 2018
    Add new bpf consts/commands.
    Refine bluetooth descriptions.
    Remove removed crypto consts.
  4. dashboard/config: enable more linux net configs

    dvyukov committed Dec 29, 2018
    Enable some BT/RXRPC/MAC80211/ISDN configs.
  5. executor: use netlink instead of ip command to setup net devices

    dvyukov committed Dec 28, 2018
    ip command caused several problems:
    1. It is installed in different locations or
    not installed at all in different distros.
    2. It does not support latest kernel devices,
    e.g. setup of hsr currently fails because
    our ip does not understand its custom prose.
    3. ip command is slow, unbearably slow in emulator
    (full setup takes tens of seconds). This change
    reduces setup from ~2s to ~400ms.
    4. ip is not present in gvisor, but it will support netlink.
    
    Use netlink directly to solve all these problems.
  6. executor: log failure in write_file

    dvyukov committed Dec 29, 2018
    Almost all callers of write_file just log the failure.
    Log the failure in write_file directly to remove
    lots of "error handling" code.
  7. executor: Fix FreeBSD such all platforms use same number of entries

    tuexen authored and dvyukov committed Dec 29, 2018
    FreeBSD sets the kcov buffer as number of bytes instead of number
    of entries. This also fixes the mmap() call, which was failing
    due to inconsistent sizes. The failing was hidden due to wrong
    error handling.
  8. executor: fix error handling of mmap()

    tuexen authored and dvyukov committed Dec 29, 2018
    mmap() returns MAP_FAILED, which is (void *)(-1), in case
    of an error. This is different from NULL.
  9. executor: add a clarifying comment

    tuexen authored and dvyukov committed Dec 29, 2018
  10. sys/linux: refine few types in NETLINK_ROUTE

    dvyukov committed Dec 28, 2018
  11. tools/syz-trace2syz/proggen: append 0 to string buffers

    shankarapailoor authored and dvyukov committed Dec 28, 2018
    String buffers get the null byte added during generation.
    This means we need to add the null byte explicitly in trace2syz.
Commits on Dec 28, 2018
  1. tools/syz-trace2syz: only add null-byte for prog.BufferFilename

    shankarapailoor authored and dvyukov committed Dec 28, 2018
    trace2syz used to always add a null byte to strings.
    This isn't correct behavior since we may end up writing null bytes to files.
    The extra byte can affect system calls like ioctl FS_IOC_ENABLE_VERITY.
    We now only add the byte for filenames.
  2. tools/syz-trace2syz/parser: parse octal numbers

    shankarapailoor authored and dvyukov committed Dec 28, 2018
    We don't properly parse octal numbers which is an issue because that's how strace decodes file permissions even under -Xraw.
    We used to do so but we didn't have a test for it so as when we added support for negative numbers we broke how we parse octals.
    This commit fixes how we parse octals and includes a test to catch future regressions.
  3. executor: improve kcov compatibility with upcoming support

    tuexen authored and dvyukov committed Dec 28, 2018
    Get ioctl() definitions and usage in sync with the upcoming support
    reviewed in https://reviews.freebsd.org/D14599.
  4. executor: KIOENABLE accepts a mode argument on OpenBSD

    mptre authored and dvyukov committed Dec 27, 2018
Commits on Dec 27, 2018
  1. pkg/csource: split emitCall function

    dvyukov committed Dec 27, 2018
    gometalinter points that emitCall is too complex.
    Factor out call name emission.
  2. pkg/csource: use 0 for missing syscall args

    dvyukov committed Dec 27, 2018
    We don't specify trailing unused args for some syscalls
    (e.g. ioctl that does not use its arg).
    Executor always filled tailing unsed args with 0's
    but pkg/csource didn't. Some such syscalls actually
    check that the unsed arg is 0 and as the result failed with C repro.
    
    We could statically check and eliminate all such cases,
    but it turns out the warning fires in 1500+ cases:
    https://gist.githubusercontent.com/dvyukov/e59ba1d9a211ee32fa0ba94fab86a943/raw/a3ace5a63f7281f0298f51ea9842ead1e4713418/gistfile1.txt
    
    So instead fill such args with 0's in pkg/csource too.
  3. executor: include sys/kcov.h on OpenBSD

    mptre authored and dvyukov committed Dec 26, 2018
    Since we no longer cross-compile, there's no need to repeat the defines.
  4. pkg/ipc: clarify why we close inwp explicitly

    dvyukov committed Dec 27, 2018
    Fixes #897
Commits on Dec 26, 2018
  1. pkg/csource: fix PRINTF removal

    dvyukov committed Dec 26, 2018
    PRINTF now accepts arguments.
  2. executor: fix max number of syscall args

    dvyukov committed Dec 26, 2018
    De-hardcode max number (wrong) of syscall args.
  3. executor: create more net devices on linux

    dvyukov committed Dec 26, 2018
  4. syz-manager: factor out rpc serving part

    dvyukov committed Dec 25, 2018
    Update #605
Older
You can’t perform that action at this time.