1. 22 Jan, 2013 15 commits
  2. 19 Jan, 2013 2 commits
    • Kito Cheng's avatar
      Add const for first argument of sigismember for fit POSIX spec · f373b11f
      Kito Cheng authored
      Change-Id: Icbc67375282f2a22dce02e4bacab15ddae846057
      f373b11f
    • Elliott Hughes's avatar
      Fix the duplication in the debugging code. · 1e980b6b
      Elliott Hughes authored
      We had two copies of the backtrace code, and two copies of the
      libcorkscrew /proc/pid/maps code. This patch gets us down to one.
      
      We also had hacks so we could log in the malloc debugging code.
      This patch pulls the non-allocating "printf" code out of the
      dynamic linker so everyone can share.
      
      This patch also makes the leak diagnostics easier to read, and
      makes it possible to paste them directly into the 'stack' tool (by
      using relative PCs).
      
      This patch also fixes the stdio standard stream leak that was
      causing a leak warning every time tf_daemon ran.
      
      Bug: 7291287
      Change-Id: I66e4083ac2c5606c8d2737cb45c8ac8a32c7cfe8
      1e980b6b
  3. 18 Jan, 2013 2 commits
  4. 17 Jan, 2013 5 commits
  5. 16 Jan, 2013 8 commits
    • Nick Kralevich's avatar
      linker: add -Wl,--exclude-libs,ALL to LDFLAGS · d89ce40d
      Nick Kralevich authored
      The linker is essentially a shared library, and incorporates
      it's own copy of libc. Even though it's unnecessary, currently
      /system/bin/linker is exporting various libc symbols (only to
      apps which explicitly dlopen /system/bin/linker)
      
      Add --exclude-libs,ALL, which tells the static linker to mark
      all of the imported libc symbols as hidden. This reduces the
      size of /system/bin/linker from 92K to 67K with no obvious
      loss in functionality.
      
        $ adb shell ls -l /system/bin/linker
        -rwxrwxrwx root     root        92260 2013-01-16 16:52 linker
      
        $ adb shell ls -l /system/bin/linker
        -rwxrwxrwx root     root        67660 2013-01-16 16:49 linker
      
      Documentation on exclude-libs can be found at
      http://sourceware.org/binutils/docs-2.21/ld/Options.html
      
      Change-Id: I4508287770e4b7a845def2e6b4af969f9c866c6a
      d89ce40d
    • Nick Kralevich's avatar
      1271cdc1
    • Nick Kralevich's avatar
      Revert "stack protector: use AT_RANDOM" · 36bd371e
      Nick Kralevich authored
      The AT_RANDOM changes broke setuid / setgid executables
      such as "ping". When the linker executes a setuid program,
      it cleans the environment, removing any invalid environment
      entries, and adding "NULL"s to the end of the environment
      array for each removed variable. Later on, we try to determine
      the location of the aux environment variable, and get tripped
      up by these extra NULLs.
      
      Reverting this patch will get setuid executables working again,
      but getauxval() is still broken for setuid programs because of
      this bug.
      
      This reverts commit e3a49a86.
      
      Change-Id: I05c58a896b1fe32cfb5d95d43b096045cda0aa4a
      36bd371e
    • Nick Kralevich's avatar
      Merge "stack protector: use AT_RANDOM" · ba117e41
      Nick Kralevich authored
      ba117e41
    • Nick Kralevich's avatar
      Merge "Filter ANDROID_PROPERTY_WORKSPACE" · 1b34228b
      Nick Kralevich authored
      1b34228b
    • Nick Kralevich's avatar
      stack protector: use AT_RANDOM · e3a49a86
      Nick Kralevich authored
      Populate the stack canaries from the kernel supplied
      AT_RANDOM value, which doesn't involve any system calls.
      This is slightly faster (6 fewer syscalls) and avoids
      unnecessarily reading /dev/urandom, which depletes entropy.
      
      Bug: 7959813
      
      Change-Id: If2b43100a2a9929666df3de56b6139fed969e0f1
      e3a49a86
    • Elliott Hughes's avatar
      Merge "Fix signalfd for MIPS." · 14e1975e
      Elliott Hughes authored
      14e1975e
    • Elliott Hughes's avatar
      Fix signalfd for MIPS. · f193b9fc
      Elliott Hughes authored
      Also mark signalfd's sigset_t* argument as non-nullable.
      
      Change-Id: I466e09cdf3fb92480744c496da92274a97f99dd1
      f193b9fc
  6. 15 Jan, 2013 5 commits
  7. 14 Jan, 2013 3 commits