Permalink
Commits on Feb 25, 2017
  1. Merge "Add tests for <endian.h>."

    Treehugger Robot committed with Gerrit Code Review Feb 25, 2017
  2. Merge "loader: set PT_INTERP to itself"

    Treehugger Robot committed with Gerrit Code Review Feb 25, 2017
  3. Merge "libc: __system_property_set uses writev to write atomically"

    Treehugger Robot committed with Gerrit Code Review Feb 25, 2017
  4. Merge "Move __system_property_*_serial back to LIBC"

    Treehugger Robot committed with Gerrit Code Review Feb 25, 2017
  5. loader: set PT_INTERP to itself

    Some versions of kernel set AT_BASE to 0
    if dynamic loader does not have PT_INTERP
    set.
    
    Bug: http://b/30739481
    Test: run /system/bin/linker64 and /system/bin/linker
    Change-Id: I1b67777166fe917d3ee1a97277045ca6f5db0084
    dimitry- committed Feb 23, 2017
  6. Add tests for <endian.h>.

    Also, for the stuff that's also in <netinet/in.h> as real functions,
    check that they're there too (and as functions rather than macros,
    since that was historically not true).
    
    Bug: http://b/28432448
    Test: ran tests
    Change-Id: I7e4ae926f7e02de3b6dd38d1953e5b3b43d44f74
    enh committed Feb 25, 2017
  7. Move __system_property_*_serial back to LIBC

    Bug: http://b/35764972
    Bug: http://b/34114501
    Test: make
    Change-Id: Ibbda0107d07c432110a0633de03259e39480fde4
    dimitry- committed Feb 24, 2017
Commits on Feb 24, 2017
  1. libc: __system_property_set uses writev to write atomically

    __system_property_set sometimes produces broken_pipe error
    when trying to write a property.
    
    This change improves error messages and uses writev() instead
    of sequence of send() calls.
    
    Bug: http://b/35381074
    Test: bionic-unit-tests --gtest_filter=prop*
    Change-Id: I7a5b169c015db4e6b720370e58662de8206d1086
    dimitry- committed Feb 24, 2017
  2. Merge "Hide internal __system_property_* functions"

    dimitry- committed with Gerrit Code Review Feb 24, 2017
  3. Merge "Replace cxa_guard fences with acquire loads"

    hboehm committed with Gerrit Code Review Feb 24, 2017
  4. Merge "Use <linux/eventpoll.h> to implement <sys/epoll.h>."

    enh committed with Gerrit Code Review Feb 24, 2017
  5. Merge "Silence a compiler warning due to unused variable on mips"

    plabath committed with Gerrit Code Review Feb 24, 2017
  6. Silence a compiler warning due to unused variable on mips

    oops, I did it again.
    
    Test: lunch mips && cd bionic && mma
    Change-Id: I1fe2cb847d0698b34766869f9626398dbcf81960
    plabath committed Feb 24, 2017
  7. Merge "Add "imprecise" watchpoint ptrace test"

    plabath committed with Gerrit Code Review Feb 24, 2017
  8. Add "imprecise" watchpoint ptrace test

    This tests for the presence of a kernel bug that meant that the kernel
    would sometimes fail to report the watchpoint hit if the hardware
    reported a address which did not exactly match the address range being
    watched (which it is allowed to do per ARM spec if the instruction
    accesses a larger block of memory than the region being watched). This
    bug was fixed in linux kernel 4.9, and has been backported to older
    android kernels.
    
    Bug: 30802222
    Bug: 30919905
    Test: bionic-unit-tests --gtest_filter="sys_ptrace.*"
    Change-Id: I80c35b29eaf28e2dbacb9e8ee5317fdea653fc87
    plabath committed Feb 22, 2017
  9. Use <linux/eventpoll.h> to implement <sys/epoll.h>.

    Bug: android-ndk/ndk#302
    Test: builds
    Change-Id: Ia3074326a128c38f2488e342c028cc030801cfd9
    enh committed Feb 23, 2017
Commits on Feb 23, 2017
  1. Merge "Expand whitelist"

    Treehugger Robot committed with Gerrit Code Review Feb 23, 2017
  2. Merge "versioner: fix darwin build."

    Treehugger Robot committed with Gerrit Code Review Feb 23, 2017
  3. Hide internal __system_property_* functions

    Bug: http://b/34114501
    Test: bionic-unit-tests --gtest_filter=prop*
    Change-Id: I1fc57b4ced6aaf841aad64e12e7696d25c2e027b
    dimitry- committed Feb 16, 2017
  4. Merge "Add legacy inlines for more termios stuff."

    Treehugger Robot committed with Gerrit Code Review Feb 23, 2017
  5. versioner: fix darwin build.

    Use struct stat::st_mtime instead of the underlying st_mtim, which is
    called something different on Darwin.
    
    Test: mma on linux, darwin
    Change-Id: I2695a6c83ebb7d08ec56b1355e0f4bc0993a0acb
    jmgao committed Feb 23, 2017
  6. Merge "Revert "Run the versioner as part of the build.""

    DanAlbert committed with Gerrit Code Review Feb 23, 2017
  7. Revert "Run the versioner as part of the build."

    This reverts commit 45715b2.
    
    Reason for revert: Darwin sucks
    
    Change-Id: I004dd7fa5e14a43ffe04ace2f5a06341df61b8cd
    DanAlbert committed Feb 23, 2017
  8. Merge "Run the versioner as part of the build."

    DanAlbert committed with Gerrit Code Review Feb 23, 2017
  9. Expand whitelist

    Bug: 35217603
    Test: App no longer triggers seccomp exceptions when launched
    Change-Id: I8ea904640a2f14c67a075e593067327407766220
    Paul Lawrence committed Feb 15, 2017
  10. Merge "Autogenerate single policy from syscalls and whitelist"

    Treehugger Robot committed with Gerrit Code Review Feb 23, 2017
  11. Replace cxa_guard fences with acquire loads

    This seemed to be the only place in bionic where a fence on a
    performance-critical path could be easily replaced by a stronger
    load/store order constraint. Do so.
    
    On x86 this should generate the same code either way. Based on
    microbenchmarks of the relevant ARM instructions, this is currently
    performance-neutral in this kind of context. But in the future, the
    newly generated acquire loads should give us a performance benefit.
    
    Test: Booted AOSP
    Change-Id: I7823e11d6ae4fd58e0425244c293262e2320fd81
    hboehm committed Feb 22, 2017
  12. Add legacy inlines for more termios stuff.

    Test: make checkbuild # with my versioner-in-build patches
    Bug: android-ndk/ndk#302
    Change-Id: Ib00b5dadf23592d101486b4f2188285ec03c9e2a
    DanAlbert committed Feb 23, 2017
  13. Run the versioner as part of the build.

    Running this periodically and checking in the results is not working
    out, since the result is just that I'm having to spend a lot of time
    cleaning up the headers every time I need to update them in the NDK.
    
    Run the versioner as part of the build instead. This way bionic
    header changes behave like the rest of the NDK headers and will
    affect NDK builds in the platform *immediately*.
    
    Remove the preupload hook for the versioner since it's part of the
    normal build now.
    
    The versioner's dependencies directory needs to be moved because
    soong won't let us try to do things outside our module's directory
    (in this case libc).
    
    Unfortunately this means we need to build the versioner for Darwin,
    because we now need it to perform a platform build.
    
    Test: make checkbuild
    Bug: None
    Change-Id: Icdab8a962354d9e945072dc3f806baea376c8db4
    DanAlbert committed Feb 16, 2017
  14. Autogenerate single policy from syscalls and whitelist

    Bug: 35392119
    Bug: 34465958
    Test: Check boots and same syscalls are blocked as before
    
    Change-Id: I9efa97032c59aebbbfd32e6f0d2d491f6254f0a2
    Paul Lawrence committed Feb 14, 2017
  15. Merge "Add test for a greylisted library"

    dimitry- committed with Gerrit Code Review Feb 23, 2017
  16. Add test for a greylisted library

    Test: bionic-unit-tests --gtest_filter=dlext.ns*
    Bug: http://b/35338922
    Change-Id: I2f4895cb1ec458c2f565a7e4d06f7a1f6200e7aa
    dimitry- committed Feb 21, 2017
  17. Merge "Cope with argv[0] being null in the dynamic linker."

    Treehugger Robot committed with Gerrit Code Review Feb 23, 2017
  18. Merge "Allocate thread local buffers in __init_tls."

    jmgao committed with Gerrit Code Review Feb 23, 2017
  19. Cope with argv[0] being null in the dynamic linker.

    Somewhat unsurprisingly, very few commands are happy to be run like this,
    in particular multiplexed commands like toybox. But that's no reason for
    the linker to get in the way too.
    
    Bug: http://b/33276926
    Test: new test
    Change-Id: I6dd71ea0183f4da83571039c2198ebb6ed38520e
    enh committed Feb 23, 2017