Skip to content
Permalink
Branch: master
Commits on Dec 11, 2019
  1. Add vfs.Pathname{WithDeleted,ForGetcwd}.

    nixprime authored and gvisor-bot committed Dec 11, 2019
    The former is needed for vfs.FileDescription to implement
    memmap.MappingIdentity, and the latter is needed to implement getcwd(2).
    
    PiperOrigin-RevId: 285051855
  2. Add additional packages to go branch

    prattmic authored and gvisor-bot committed Dec 11, 2019
    We're missing several packages that runsc doesn't depend on. Most notable are
    several tcpip link packages.
    
    To find packages, I looked at a diff of directories on master vs go:
    
    $ bazel build //:gopath
    $ find bazel-bin/gopath/src/gvisor.dev/gvisor/ -type d > /tmp/gopath.txt
    $ find . -type d > /tmp/master.txt
    $ sed 's|bazel-bin/gopath/src/gvisor.dev/gvisor/||' < /tmp/gopath.txt > /tmp/gopath.trunc.txt
    $ sed 's|./||' < /tmp/master.txt > /tmp/master.trunc.txt
    $ vimdiff /tmp/gopath.trunc.txt /tmp/master.trunc.txt
    
    Testing packages are still left out because :gopath can't depend on testonly
    targets...
    
    PiperOrigin-RevId: 285049029
  3. Merge pull request #1248 from xiaobo55x:ptrace

    gvisor-bot committed Dec 11, 2019
    PiperOrigin-RevId: 285038987
  4. runsc/debug: add an option to list all processes

    avagin authored and gvisor-bot committed Dec 11, 2019
    runsc debug --ps list all processes with all threads. This option is added to
    the debug command but not to the ps command, because it is going to be used for
    debug purposes and we want to add any useful information without thinking about
    backward compatibility.
    
    This will help to investigate syzkaller issues.
    
    PiperOrigin-RevId: 285013668
  5. Finish incomplete comment.

    Dean Deng authored and gvisor-bot committed Dec 11, 2019
    PiperOrigin-RevId: 285012278
  6. Deduplicate and simplify control message processing for recvmsg and s…

    Dean Deng authored and gvisor-bot committed Dec 11, 2019
    …endmsg.
    
    Also, improve performance by calculating how much space is needed before making
    an allocation for sendmsg in hostinet.
    
    PiperOrigin-RevId: 284898581
  7. Add most VFS methods for syscalls.

    nixprime authored and gvisor-bot committed Dec 11, 2019
    PiperOrigin-RevId: 284892289
  8. Inform the integrator on receipt of an NDP Recursive DNS Server option

    ghanan94 authored and gvisor-bot committed Dec 11, 2019
    This change adds support to let an integrator know when it receives an NDP
    Router Advertisement message with the NDP Recursive DNS Server option with at
    least one DNS server's address. The stack will not maintain any state related to
    the DNS servers - the integrator is expected to maintain any required state and
    invalidate the servers after its valid lifetime expires, or refresh the lifetime
    when a new one is received for a known DNS server.
    
    Test: Unittest to make sure that an event is sent to the integrator when an NDP
    Recursive DNS Server option is received with at least one address.
    PiperOrigin-RevId: 284890502
Commits on Dec 10, 2019
  1. Remove pyenv calls but log the python 3 version in use.

    brb-g authored and gvisor-bot committed Dec 10, 2019
    Apparently our Kokoro VM images don't have pyenv -- I previously tested this on
    the Kokoro QA shared pool.
    
    PiperOrigin-RevId: 284855160
  2. Add Kokoro configs for publishing Kythe xrefs.

    brb-g authored and gvisor-bot committed Dec 10, 2019
    PiperOrigin-RevId: 284835614
  3. Format fd_set parameters in select(2)/pselect(2) for strace.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    I1202 14:55:06.835076    7991 x:0] [   1] select_test E
      select(0xa, 0x7fc6ce924c28 [0 1], null, null, 0x7fc6ce924c08 {sec=0 usec=0})
    I1202 14:55:06.835102    7991 x:0] [   1] select_test X
      select(0xa, 0x7fc6ce924c28 [0 1], null, null, 0x7fc6ce924c08 {sec=0 usec=0})
    
    PiperOrigin-RevId: 284831805
  4. Re-enable execveat test that was causing files in /bin to be deleted.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    Test now no longer deletes files incorrectly, due to a fix in fs utils
    used by TempPath (github.com//pull/1368).
    
    Fixes #1366
    
    PiperOrigin-RevId: 284814605
  5. Let socket.ControlMessages Release() the underlying transport.Control…

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    …Messages.
    
    PiperOrigin-RevId: 284804370
  6. Do not consider symlinks as directories in fs utils.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    IsDirectory() is used in RecursivelyDelete(), which should not follow symlinks.
    The only other use (syscalls/linux/rename.cc) is not affected by this change.
    
    Updates #1366.
    
    PiperOrigin-RevId: 284803968
  7. Add all upstream syscalls to tables

    prattmic authored and gvisor-bot committed Dec 10, 2019
    Package strace is missing some syscalls we actually implement (e.g.,
    getrandom). We also see newer syscalls sometimes (e.g., membarrier) that would
    be handy to have formatted.
    
    Let's go ahead and add all syscalls in the latest upstream release (v5.4), even
    though we only intend to implement v4.4. None of them are implemented, just
    included as placeholders.
    
    PiperOrigin-RevId: 284797577
  8. Make comments clearer for control message handling.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    PiperOrigin-RevId: 284791600
  9. Disable execveat test that is causing files in /bin to be deleted.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    Disable until gvisor.dev/issue/1366 is resolved.
    
    Updates #1366
    
    PiperOrigin-RevId: 284786895
  10. Add hostinet tests for sendmsg and recvmsg with TOS/TCLASS.

    Dean Deng authored and gvisor-bot committed Dec 10, 2019
    PiperOrigin-RevId: 284786069
  11. Add test for SO_BINDTODEVICE state bug.

    iangudger authored and gvisor-bot committed Dec 10, 2019
    This was accidentally dropped from the change which fixed the bug.
    
    Updates #1217
    
    PiperOrigin-RevId: 284689362
Commits on Dec 9, 2019
  1. Add UDP SO_REUSEADDR support to the port manager.

    iangudger authored and gvisor-bot committed Dec 9, 2019
    Next steps include adding support to the transport demuxer and the UDP endpoint.
    
    PiperOrigin-RevId: 284652151
  2. Include <netinet/tcp.h> for TCP enums in proc_net tests

    jayzhuang authored and gvisor-bot committed Dec 9, 2019
    These are currently duplicated in ip_socket_test_util, so tests including
    both netinet/tcp.h and ip_socket_test_util won't compile.
    
    PiperOrigin-RevId: 284623958
  3. Redirect TODOs to gvisor.dev

    fvoznika authored and gvisor-bot committed Dec 9, 2019
    PiperOrigin-RevId: 284606233
  4. Mark test as non flaky.

    hbhasker authored and gvisor-bot committed Dec 9, 2019
    PiperOrigin-RevId: 284606133
  5. Mark runner_test as manual.

    amscanne authored and gvisor-bot committed Dec 9, 2019
    Because it is local-only, it should also be marked manual.
    
    PiperOrigin-RevId: 284596186
  6. Add tests for rseq(2)

    prattmic authored and gvisor-bot committed Dec 9, 2019
    Add a decent set of syscall tests for rseq(2). These are a bit awkward because
    of issues with library integration. libc may register rseq on thread start
    (including before main on the initial thread), precluding much testing. Thus we
    run tests in a libc-free subprocess.
    
    Support for rseq(2) in gVisor will come in a later commit.
    
    PiperOrigin-RevId: 284595994
Commits on Dec 7, 2019
  1. Bump up Go 1.13 as minimum requirement

    fvoznika authored and gvisor-bot committed Dec 7, 2019
    PiperOrigin-RevId: 284320186
  2. Update Kokoro image to install Golang 1.13

    fvoznika authored and gvisor-bot committed Dec 7, 2019
    PiperOrigin-RevId: 284308422
  3. Merge pull request #1233 from xiaobo55x:compatLog

    gvisor-bot committed Dec 7, 2019
    PiperOrigin-RevId: 284305935
  4. Add TCP stats for connection close and keep-alive timeouts.

    iyermi authored and gvisor-bot committed Dec 7, 2019
    Fix bugs in updates to TCP CurrentEstablished stat.
    
    Fixes #1277
    
    PiperOrigin-RevId: 284292459
  5. Add runtime tracing.

    amscanne authored and gvisor-bot committed Dec 7, 2019
    This adds meaningful annotations to the trace generated by the runtime/trace
    package.
    
    PiperOrigin-RevId: 284290115
Commits on Dec 6, 2019
  1. Fix flakiness in tcp_test.

    hbhasker authored and gvisor-bot committed Dec 6, 2019
    This change marks the socket as ESTABLISHED and creates the receiver and sender
    the moment we send the final ACK in case of an active TCP handshake or when we
    receive the final ACK for a passive TCP handshake. Before this change there was
    a short window in which an ACK can be received and processed but the state on
    the socket is not yet ESTABLISHED.
    
    This can be seen in TestConnectBindToDevice which is flaky because sometimes
    the socket is in SYN-SENT and not ESTABLISHED even though the other side has
    already received the final ACK of the handshake.
    
    PiperOrigin-RevId: 284277713
  2. Build with C++17

    prattmic authored and gvisor-bot committed Dec 6, 2019
    This will require a reasonably modern toolchain. I've put minimum compiler
    versions in the README based on versions in
    https://en.cppreference.com/w/cpp/compiler_support that have mostly complete
    language and library support.
    
    The minimum Bazel version bump is unrelated, but 0.28 is definitely not
    supported anymore.
    
    Please report issues on gvisor.dev/issue/1349.
    
    Fixes #1349
    
    PiperOrigin-RevId: 284274250
  3. Do IPv6 Stateless Address Auto-Configuration (SLAAC)

    ghanan94 authored and gvisor-bot committed Dec 6, 2019
    This change allows the netstack to do SLAAC as outlined by RFC 4862 section 5.5.
    
    Note, this change will not break existing uses of netstack as the default
    configuration for the stack options is set in such a way that SLAAC
    will not be performed. See `stack.Options` and `stack.NDPConfigurations` for
    more details.
    
    This change reuses 1 option and introduces a new one that is required to take
    advantage of SLAAC, all available under NDPConfigurations:
    - HandleRAs: Whether or not NDP RAs are processes
    - AutoGenGlobalAddresses: Whether or not SLAAC is performed.
    
    Also note, this change does not deprecate SLAAC generated addresses after the
    preferred lifetime. That will come in a later change (b/143713887). Currently,
    only the valid lifetime is honoured.
    
    Tests: Unittest to make sure that SLAAC generates and adds addresses only when
    configured to do so. Tests also makes sure that conflicts with static addresses
    do not modify the static address.
    PiperOrigin-RevId: 284265317
  4. Implement TTY field in control.Processes().

    nlacasse authored and gvisor-bot committed Dec 6, 2019
    Threadgroups already know their TTY (if they have one), which now contains the
    TTY Index, and is returned in the Processes() call.
    
    PiperOrigin-RevId: 284263850
  5. Make annotations OCI compliant

    fvoznika authored and gvisor-bot committed Dec 6, 2019
    Changed annotation to follow the standard defined here:
    https://github.com/opencontainers/image-spec/blob/master/annotations.md
    
    PiperOrigin-RevId: 284254847
Older
You can’t perform that action at this time.