Skip to content
Permalink
Tree: 7fb690f39a
Commits on May 16, 2019
  1. sys/linux: improve binder descriptions

    dvyukov committed May 16, 2019
    Always pass 3 objects in a transaction.
    This allows to specify correct offsets for objects.
    Let's see if this improves coverage.
  2. dashboard/config: disable binder debug

    dvyukov committed May 16, 2019
    Binder is too noisy with debug output.
    Still noisy, but this at least removes part of constant output.
  3. sys/linux: use offsetof in ebtables

    dvyukov committed May 16, 2019
    Resolve 2 TODOs in ebtables using the new offsetof type.
  4. pkg/compiler: add offsetof type

    dvyukov committed May 16, 2019
    Similar to C offsetof gives offset of a field
    from the beginning of the parent struct.
    We have several TODOs in descriptions asking for this.
  5. Rebuild upstream-kmsan.config

    ramosian-glider authored and dvyukov committed May 16, 2019
    Turns out I was using a stale KASAN config which didn't include TOMOYO
    bits.
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
  2. util.sh: factor out util_add_extra_syzbot_configs

    ramosian-glider committed May 15, 2019
  3. Enable USB fuzzing in KMSAN configs.

    ramosian-glider committed May 14, 2019
    This moves the USB-related parts of generate-config-usb.sh to util.sh
    and reuses them in generate-config-kmsan-from-kasan.sh.
    
    It also updates upstream-kmsan.config
  4. pkg/compiler: work around 0-array-size errors due to missing consts

    dvyukov committed May 15, 2019
    A const can be used as array size. Then if the const is not present
    on all arches, compiler will produce an error about 0-sized-array.
    There is no easy way to work around this for a user.
    Use value of 1 for missing consts. It's just a bit safer.
  5. Makefile: switch to golangci-lint

    dvyukov committed May 15, 2019
    Finally!
    
    Fixes #977
    Fixes #1108
  6. .golangci.yml: add codeanalysis build tag

    dvyukov committed May 15, 2019
    Using a build tag to exclude files for golangci-lint
    reduces memory consumption (it does not parse them).
    The naive attempt with skip-dirs did not work.
    So add codeanalysis build tag and use it in auto-generated files.
    
    Update #977
Commits on May 14, 2019
  1. prog: fix crash in assignSize on optional pointer

    dvyukov committed May 14, 2019
  2. sys/linux: improve binder descriptions

    dvyukov committed May 14, 2019
    Add few new ioctl's. Add some typedefs for clarity.
  3. sys/linux: improve key and net_sch descriptions

    dvyukov committed May 14, 2019
    Use the len paths to resolve pending TODOs.
  4. pkg/compiler: allow to refer to syscall arguments in len paths

    dvyukov committed May 14, 2019
    This allows to use len[syscall:arg] expressions.
  5. pkg/compiler: refactor len target checking

    dvyukov committed May 14, 2019
    Create named const for "parent" and move some code into a helper function.
  6. sys/akaros: rename syscall argument

    dvyukov committed May 14, 2019
    In preparation for making syscall a reserved name.
  7. sys/linux: improve btf descriptions

    dvyukov committed May 14, 2019
    Now that we have the len path expressions we can fix the TODO
    in btf descriptions to properly specify offsets of btf sections.
    
    Also add proper descriptions for btf type section
    and few other minor things around.
  8. prog: implement complex len target support

    dvyukov committed May 14, 2019
    This actually implements support for complex len targets
    during program generation and mutation.
  9. pkg/compiler: generate complex len targets

    dvyukov committed May 13, 2019
    Change the generated format for len type to support multiple path elements.
  10. pkg/compiler: support complex len targets

    dvyukov committed May 10, 2019
    This change adds compiler support for complex path
    expressions in len targets. E.g. it allows to refer
    to a sibling field as len[parent_struct:field:another_field].
    See the docs change for details.
    
    This is just a compiler change.
    The feature is not yet supported by the prog package.
  11. pkg/ast: refactor COLON handling

    dvyukov committed May 10, 2019
    This prepared for handling of bytesize[parent:foo:bar] expressions
    by allowing multiple identifiers after colon.
    No functional changes for now, just preparation for storing more
    than one identifier after colon.
  12. dashboard: remove COMPILE_TEST from USB config

    xairy committed May 14, 2019
    It forces DEBUG_INFO to be disabled.
  13. Update README.md

    xairy committed May 14, 2019
  14. sys/openbsd: prevent changing mutability flags on files (#1174)

    mptre authored and blackgnezdo committed May 14, 2019
    This is especially problematic for file descriptors referring to tty/pty
    devices since it can cause the SSH connection to the VM to die.
    
    The ambition here is reduce the number of "lost connection/no output" failures
    at the cost of limiting the coverage of chflags(2).
  15. vm/bhyve: ensure the VM is destroyed after closing

    markjdb committed May 13, 2019
Commits on May 13, 2019
  1. dashboard: add scripts for generating USB kernel configs

    xairy committed May 10, 2019
    This is done via a custom Kconfiglib based script, that allows to merge
    in all USB configs from a provided one into the current. The script finds
    and enabled all USB configs and their dependencies.
  2. pkg/email: allow commands in subject

    dvyukov committed May 13, 2019
    Several users attempted this and there does not seem
    to be any reason to not allow this.
    So parse out command from subject as well.
  3. tools/syz-bisect: add usage docs

    dvyukov committed May 13, 2019
  4. sys/linux: switch ppc64le to little-endian

    dvyukov committed May 13, 2019
    make extract recently broke for powerpc on linux-next with:
    
    include/uapi/linux/byteorder/big_endian.h:6:2: error: #error "Unsupported endianness, check your toolchain"
     #error "Unsupported endianness, check your toolchain"
    
    Turns out we always built ppc64le headers as big-endian.
    First, kernel was configured as BE.
    Then, we used gcc to build an executable program for host
    and on x86 gcc does not define __LITTLE_ENDIAN__ so kernel
    thought that the toolchain is BE too.
    
    Configure kernel as LE and define __LITTLE_ENDIAN__.
    
    This actually changes values of some consts,
    but fortunately just few of them.
  5. dashboard/config: enable CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING

    dvyukov committed May 13, 2019
    This allows to enable and test TOMOYO without an external policy (which we don't have).
  6. 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 12, 2019
  1. docs/openbsd: update found_bugs.md (#1172)

    mptre authored and blackgnezdo committed May 12, 2019
Older
You can’t perform that action at this time.