Skip to content
Snippets Groups Projects
  1. May 11, 2018
  2. May 10, 2018
  3. May 09, 2018
    • Tricia Landers's avatar
      [ramdisk] Update transaction counts before calling completion. · 0726b8c3
      Tricia Landers authored
      To avoid a race condition where a transaction is completed but the
      correct counts are not reflected for the client, update all counts
      before calling complete.
      
      ZX-2078 #done
      
      Change-Id: I57a9f23ca3b61b7c26f2c2e21fa7b5df6b9c4331
      0726b8c3
    • Adam Barth's avatar
      [fidl] Add a trivial process-launcher binary · a11f50a8
      Adam Barth authored
      This CL contains the build integration for the process-launcher binary.
      
      Change-Id: I6550f80fbfe3e5a3fb035bf53e14f97e80d4220e
      a11f50a8
    • Jocelyn Dang's avatar
      [dev][xdc] Initial write and read implementation. · e8f5ba35
      Jocelyn Dang authored
      Currently only handling small transfers and no multiplexing.
      
      Change-Id: I62ce2a5d57f7fbdfa69682ad3760577bba352272
      e8f5ba35
    • Nick Maniscalco's avatar
      [kernel] Change some test EXPECTs to ASSERTs · 75ef8ace
      Nick Maniscalco authored
      .. where subsequent assertions trigger a panic.
      
      ZX-2130
      
      Change-Id: I83b107c53336a1a86e711f2b8cb52abd40687356
      75ef8ace
    • Nick Maniscalco's avatar
      [kernel] Fix heap accounting when growing heap · f19625d8
      Nick Maniscalco authored
      Tested by allocating 50MB in 1KB chunks, freeing it all, and checking
      heap size via "k heap info".
      
      ZX-2134 #done
      
      Change-Id: Id3260ad3bc8173e523e1a09cb726b72cbf7073e7
      f19625d8
    • Gary Miguel's avatar
      [runtests] More C to C++. · a7648ae2
      Gary Miguel authored
      Main changes:
      * CamelCase instead of snake_case names, in accordance with our C++
        style guide.
      * Use fbl::Vector instead of list_node.
      * Use fbl::MakeAutoCall and objects that clean themselves up on
        destruction instead of "goto fail".
      * Potential bug fix: check if get_info() return val != ZX_OK, rather
        than previously checking if it was negative.
      * Behavior improvement: insert a TestRun into the tests vector for all
        failure modes. Previously we would only do this if we got to
        launchpad_go(). There's no reason for the result to not be saved if
        the failure comes earlier than that.
      
      Bug: IN-223
      Change-Id: Ib6cce2682c1ed5b2d15c13d5c193558eae2f8e88
      a7648ae2
    • Travis Geiselbrecht's avatar
      [kernel][arm64] a cleaner fix for the percpu accessors in -O0 case · 51e92dbb
      Travis Geiselbrecht authored
      Change-Id: I57e2a2bf647476166217eca3953abb9b697f781b
      51e92dbb
    • Arve Hjønnevåg's avatar
      [kernel][arm64] Override memory base not just size · 051c7607
      Arve Hjønnevåg authored
      If the device tree has a memory base and size, the old code would
      use the size from the device tree even if the base is different than
      the entry than this size will overwrite. Save and use the base address
      as well. Overriding a non-zero base address with zero is not currently
      supported.
      
      Change-Id: Id1a301b84702a98abb0d41f2da44efedefaca53c
      051c7607
    • Travis Geiselbrecht's avatar
      [scripts][fixup] reduce the max stride size in the fixup gen · 964e98aa
      Travis Geiselbrecht authored
      ARM64 post-indexed ldr/str instructions only have a 9 bit signed reach,
      unlike the regular non indexed which has a 12 bit reach. Reduce the max
      stride to <256 to fix a too-long stride problem that showed up with -O0
      builds.
      
      Doesn't seem to hurt x86 builds since pretty much all strides were
      calculating to <64 in all cases anyway.
      
      Change-Id: I26158ce22e91e7c45c627b6ce1d55385136e1dea
      964e98aa
    • Mark Seaborn's avatar
      [cleanup] Fix a spelling nit: "an zx_*" -> "a zx_*" · 88b630d4
      Mark Seaborn authored
      These are mostly left over from the mx->zx renaming.
      
      Change-Id: Iad6c38e83106b007fa2cbf76aa54806ae15bedae
      88b630d4
    • Nick Kralevich's avatar
      [kernel][syscalls] sanitize ZX_PROP_NAME · f750ca02
      Nick Kralevich authored
      Modify the setter functions for ZX_PROP_NAME to disregard data from
      userspace which occurs after the trailing NUL character. Additional data
      beyond NUL is garbage from userspace and shouldn't be stored in the
      kernel.
      
      Modify the getter functions to completely sanitize passed in memory
      before returning it to userspace or other parts of the kernel.
      
      Add additional tests to exercise this code and prevent regressions.
      Fixup unittests (added in commit 22efc1d7) which asserts that the
      buffers aren't cleared.
      
      Fixes ZX-2048, which appears to have been introduced in commit
      22efc1d7.
      
      Change-Id: Ifd29767bb4ab7b1866ad90503fab8fd1f36ca543
      f750ca02
    • Mark Seaborn's avatar
      [cleanup] Fix reference to zx_thread_state_general_regs_t that used an old name · 4531a526
      Mark Seaborn authored
      Change-Id: I7469a32240d780ac1099af2d1bb2139c2703688c
      4531a526
Loading