OSDN Git Service

android-x86/bionic.git
9 years agoam d2aeefed: am e70d7a78: Merge "Fix dt_runpath test."
Dmitriy Ivanov [Tue, 21 Jul 2015 02:53:28 +0000 (02:53 +0000)]
am d2aeefed: am e70d7a78: Merge "Fix dt_runpath test."

* commit 'd2aeefed8ea5b10355e15c62f3f75ab416e9e12d':
  Fix dt_runpath test.

9 years agoam e70d7a78: Merge "Fix dt_runpath test."
Dmitriy Ivanov [Mon, 20 Jul 2015 19:17:27 +0000 (19:17 +0000)]
am e70d7a78: Merge "Fix dt_runpath test."

* commit 'e70d7a78f0bfba8b09d37c145769cb8d1d7c5fb6':
  Fix dt_runpath test.

9 years agoam 2733ec03: am e5544ae1: Merge "<sys/time.h> should include [most of] <sys/select...
Elliott Hughes [Mon, 20 Jul 2015 19:12:36 +0000 (19:12 +0000)]
am 2733ec03: am e5544ae1: Merge "<sys/time.h> should include [most of] <sys/select.h>."

* commit '2733ec035d10dae938d5156c89bd0c8ca79ceba9':
  <sys/time.h> should include [most of] <sys/select.h>.

9 years agoam 039b290b: am 6c9ad82b: Merge "Revert "make vdso function pointers read-only at...
Elliott Hughes [Mon, 20 Jul 2015 19:12:35 +0000 (19:12 +0000)]
am 039b290b: am 6c9ad82b: Merge "Revert "make vdso function pointers read-only at runtime""

* commit '039b290b9d222cea6c7a0ea915d297ef96b2a400':
  Revert "make vdso function pointers read-only at runtime"

9 years agoam e5544ae1: Merge "<sys/time.h> should include [most of] <sys/select.h>."
Elliott Hughes [Mon, 20 Jul 2015 18:44:56 +0000 (18:44 +0000)]
am e5544ae1: Merge "<sys/time.h> should include [most of] <sys/select.h>."

* commit 'e5544ae1f8a23ae77908e822e83a73ebd4b656ec':
  <sys/time.h> should include [most of] <sys/select.h>.

9 years agoam 6c9ad82b: Merge "Revert "make vdso function pointers read-only at runtime""
Elliott Hughes [Mon, 20 Jul 2015 18:44:55 +0000 (18:44 +0000)]
am 6c9ad82b: Merge "Revert "make vdso function pointers read-only at runtime""

* commit '6c9ad82b1c0f26f5edb5d5ca246b88451c5ea238':
  Revert "make vdso function pointers read-only at runtime"

9 years agoMerge "Fix dt_runpath test."
Dmitriy Ivanov [Mon, 20 Jul 2015 18:31:07 +0000 (18:31 +0000)]
Merge "Fix dt_runpath test."

9 years agoFix dt_runpath test.
Dmitriy Ivanov [Mon, 20 Jul 2015 17:47:49 +0000 (10:47 -0700)]
Fix dt_runpath test.

Bfd linker produces DT_RPATH instead of DT_RUNPATH
unless --enable-new-dtags option is specified.

Bug: http://b/22560945
Change-Id: I71bdc5137b899ab736e55c5a9574cfbba8e1983b

9 years agoMerge "<sys/time.h> should include [most of] <sys/select.h>."
Elliott Hughes [Mon, 20 Jul 2015 17:36:52 +0000 (17:36 +0000)]
Merge "<sys/time.h> should include [most of] <sys/select.h>."

9 years agoMerge "Revert "make vdso function pointers read-only at runtime""
Elliott Hughes [Mon, 20 Jul 2015 17:30:49 +0000 (17:30 +0000)]
Merge "Revert "make vdso function pointers read-only at runtime""

9 years agoRevert "make vdso function pointers read-only at runtime"
Elliott Hughes [Mon, 20 Jul 2015 17:30:33 +0000 (17:30 +0000)]
Revert "make vdso function pointers read-only at runtime"

This reverts commit df1a3c6d21702e3e96cfcddadee4a50bfac82110.

This change prevented N9 from booting (http://b/22568628).

Change-Id: I071d6d6a0ae7881d65641839e665acdcf58462b4

9 years ago<sys/time.h> should include [most of] <sys/select.h>.
Elliott Hughes [Sat, 18 Jul 2015 02:10:24 +0000 (19:10 -0700)]
<sys/time.h> should include [most of] <sys/select.h>.

Found by trying to build c-ares with bionic.

Change-Id: I38684abcb806ef1e8806c68b4a6dd9200f48849e

9 years agoam af584b5e: am 4f2e1d3b: Merge "Add all the glibc one-line "synonym" header files."
Elliott Hughes [Fri, 17 Jul 2015 22:21:21 +0000 (22:21 +0000)]
am af584b5e: am 4f2e1d3b: Merge "Add all the glibc one-line "synonym" header files."

* commit 'af584b5e7b3692bab5805aa06b203d291c9d76a1':
  Add all the glibc one-line "synonym" header files.

9 years agoam 4f2e1d3b: Merge "Add all the glibc one-line "synonym" header files."
Elliott Hughes [Fri, 17 Jul 2015 22:04:59 +0000 (22:04 +0000)]
am 4f2e1d3b: Merge "Add all the glibc one-line "synonym" header files."

* commit '4f2e1d3b1e3b3729b551c22c5a0be8d07795adfd':
  Add all the glibc one-line "synonym" header files.

9 years agoMerge "Add all the glibc one-line "synonym" header files."
Elliott Hughes [Fri, 17 Jul 2015 21:42:03 +0000 (21:42 +0000)]
Merge "Add all the glibc one-line "synonym" header files."

9 years agoAdd all the glibc one-line "synonym" header files.
Elliott Hughes [Fri, 17 Jul 2015 20:59:36 +0000 (13:59 -0700)]
Add all the glibc one-line "synonym" header files.

Ported code keeps needing these one by one, so let's just add the whole
set...

Change-Id: I9662b256aeaa1b0ffb22354130e503f0c4aa472b

9 years agoam 87b64fb4: am ca7bc509: Merge "make vdso function pointers read-only at runtime"
Elliott Hughes [Fri, 17 Jul 2015 18:57:33 +0000 (18:57 +0000)]
am 87b64fb4: am ca7bc509: Merge "make vdso function pointers read-only at runtime"

* commit '87b64fb44743c0b7f46fb074656e418062428cd7':
  make vdso function pointers read-only at runtime

9 years agoam ca7bc509: Merge "make vdso function pointers read-only at runtime"
Elliott Hughes [Fri, 17 Jul 2015 18:39:31 +0000 (18:39 +0000)]
am ca7bc509: Merge "make vdso function pointers read-only at runtime"

* commit 'ca7bc509cf3b321b4721137df1e5407415fc7dd7':
  make vdso function pointers read-only at runtime

9 years agoam c6a87cc8: am a58d2498: Merge "Fix potential race condition on dlopen"
Dmitriy Ivanov [Fri, 17 Jul 2015 18:31:43 +0000 (18:31 +0000)]
am c6a87cc8: am a58d2498: Merge "Fix potential race condition on dlopen"

* commit 'c6a87cc8cbcacfe2dcb7aa0eaacc4feca17dcf19':
  Fix potential race condition on dlopen

9 years agoam a58d2498: Merge "Fix potential race condition on dlopen"
Dmitriy Ivanov [Fri, 17 Jul 2015 18:17:06 +0000 (18:17 +0000)]
am a58d2498: Merge "Fix potential race condition on dlopen"

* commit 'a58d24984045b474883ad14500a465ab331db47d':
  Fix potential race condition on dlopen

9 years agoMerge "make vdso function pointers read-only at runtime"
Elliott Hughes [Fri, 17 Jul 2015 18:13:31 +0000 (18:13 +0000)]
Merge "make vdso function pointers read-only at runtime"

9 years agomake vdso function pointers read-only at runtime
Daniel Micay [Fri, 17 Jul 2015 16:13:27 +0000 (12:13 -0400)]
make vdso function pointers read-only at runtime

Global, writable function pointers are low-hanging fruit for hijacking
control flow with an overflow from a global buffer or an arbitrary write
vulnerability. This moves the function pointer table into a dedicated
page and makes it read-only at runtime, similar to RELRO.

This increases the memory usage of the library by just under one page.
This could be avoided by having the linker load the vdso by replacing
weak symbols. It's not significant within the Zygote spawning model
though because it's read-only after early init.

Change-Id: Id7a49c96c1b15c2e1926528304b3c54a81e78caf

9 years agoMerge "Fix potential race condition on dlopen"
Dmitriy Ivanov [Fri, 17 Jul 2015 17:49:20 +0000 (17:49 +0000)]
Merge "Fix potential race condition on dlopen"

9 years agoFix potential race condition on dlopen
Dmitriy Ivanov [Fri, 17 Jul 2015 17:36:10 +0000 (10:36 -0700)]
Fix potential race condition on dlopen

  Call to find_containing_library should be guarded.

Change-Id: I985a903da48b83bcd35e957a979158eb9b80e70b

9 years agoam cca803af: am 60bc9090: Merge "Add timespec/timeval conversion helpers."
Bertrand SIMONNET [Thu, 16 Jul 2015 22:41:42 +0000 (22:41 +0000)]
am cca803af: am 60bc9090: Merge "Add timespec/timeval conversion helpers."

* commit 'cca803af0cb51b6710b23d466f8ac338e0e30d2c':
  Add timespec/timeval conversion helpers.

9 years agoam 60bc9090: Merge "Add timespec/timeval conversion helpers."
Bertrand SIMONNET [Thu, 16 Jul 2015 22:27:51 +0000 (22:27 +0000)]
am 60bc9090: Merge "Add timespec/timeval conversion helpers."

* commit '60bc90909a49121789bf86f5d14f63967e8000e0':
  Add timespec/timeval conversion helpers.

9 years agoMerge "Add timespec/timeval conversion helpers."
Bertrand SIMONNET [Thu, 16 Jul 2015 21:53:25 +0000 (21:53 +0000)]
Merge "Add timespec/timeval conversion helpers."

9 years agoAdd timespec/timeval conversion helpers.
Bertrand SIMONNET [Thu, 16 Jul 2015 18:50:39 +0000 (11:50 -0700)]
Add timespec/timeval conversion helpers.

TIMESPEC_TO_TIMEVAL and TIMEVAL_TO_TIMESPEC are usually provided by
sys/time.h.

BUG: 22532790

Change-Id: I8b9d7298e3250323faa20b1adf9a7514954c6096

9 years agoam 9bd373c4: am cd588f84: Merge "Add constant for zip separator"
Dmitriy Ivanov [Thu, 16 Jul 2015 19:20:09 +0000 (19:20 +0000)]
am 9bd373c4: am cd588f84: Merge "Add constant for zip separator"

* commit '9bd373c4fc33daf293ed6b0a473137517b6f13a9':
  Add constant for zip separator

9 years agoam cd588f84: Merge "Add constant for zip separator"
Dmitriy Ivanov [Thu, 16 Jul 2015 16:26:33 +0000 (16:26 +0000)]
am cd588f84: Merge "Add constant for zip separator"

* commit 'cd588f847f3f23a9c60e32ab1e37c170e9f5be57':
  Add constant for zip separator

9 years agoMerge "Add constant for zip separator"
Dmitriy Ivanov [Thu, 16 Jul 2015 15:59:15 +0000 (15:59 +0000)]
Merge "Add constant for zip separator"

9 years agoAdd constant for zip separator
Dmitriy Ivanov [Thu, 16 Jul 2015 11:52:06 +0000 (04:52 -0700)]
Add constant for zip separator

Change-Id: I1dcbb15ac612fc28e922eb3de8148fcaebbc0820

9 years agoam beaf565c: am b3140904: Merge "Replace spaces with tabs in a Makefile."
Evgenii Stepanov [Thu, 16 Jul 2015 00:14:15 +0000 (00:14 +0000)]
am beaf565c: am b3140904: Merge "Replace spaces with tabs in a Makefile."

* commit 'beaf565cd4f7d87a194b60fff0cd631526873e62':
  Replace spaces with tabs in a Makefile.

9 years agoam b3140904: Merge "Replace spaces with tabs in a Makefile."
Evgenii Stepanov [Wed, 15 Jul 2015 23:57:15 +0000 (23:57 +0000)]
am b3140904: Merge "Replace spaces with tabs in a Makefile."

* commit 'b31409040f1766d92e76e72bbdc1b346f4bb9d8e':
  Replace spaces with tabs in a Makefile.

9 years agoMerge "Replace spaces with tabs in a Makefile."
Evgenii Stepanov [Wed, 15 Jul 2015 23:22:38 +0000 (23:22 +0000)]
Merge "Replace spaces with tabs in a Makefile."

9 years agoReplace spaces with tabs in a Makefile.
Evgenii Stepanov [Wed, 15 Jul 2015 23:19:59 +0000 (16:19 -0700)]
Replace spaces with tabs in a Makefile.

Sorry, I undertested my previous change and these guys somehow sneaked in.
This only affects SANITIZE_TARGET builds.

Change-Id: Id6986d89fa3d4965339f7b6fe973e9db73b380da

9 years agoam 43a78371: am e9774a52: Merge "A special linker for ASan executables."
Evgenii Stepanov [Wed, 15 Jul 2015 18:08:24 +0000 (18:08 +0000)]
am 43a78371: am e9774a52: Merge "A special linker for ASan executables."

* commit '43a783714fcd5d20f7b6c207b0a02a3f4d39f4ae':
  A special linker for ASan executables.

9 years agoam e9774a52: Merge "A special linker for ASan executables."
Evgenii Stepanov [Wed, 15 Jul 2015 17:50:49 +0000 (17:50 +0000)]
am e9774a52: Merge "A special linker for ASan executables."

* commit 'e9774a5227749035dc55357ae3a34edaf545c3b3':
  A special linker for ASan executables.

9 years agoMerge "A special linker for ASan executables."
Evgenii Stepanov [Wed, 15 Jul 2015 17:24:19 +0000 (17:24 +0000)]
Merge "A special linker for ASan executables."

9 years agoA special linker for ASan executables.
Evgenii Stepanov [Sat, 11 Jul 2015 00:54:01 +0000 (17:54 -0700)]
A special linker for ASan executables.

Setup a /system/bin/linker_asan as a symlink to "linker".
Read the linker name from PT_INTERP, and if it is linker_asan,
switch default library lookup paths to the ASan set, which
starts with the path to the instrumented libraries
(/data/lib), followed by /system/lib as a fallback.

This ensures that ASan binaries prefer ASan libraries, when
available. This approach is way better then RPATH/RUNPATH and even
better than LD_LIBRARY_PATH:
- RUNPATH is per-DSO, while default paths are global.
- LD_LIBRARY_PATH is overwritten by android_update_LD_LIBRARY_PATH.
- neither RUNPATH nor LD_LIBRARY_PATH appear in
  android_get_LD_LIBRARY_PATH which is used to build java.lang.path.
  Having ASan libraries in java.lang.path is a good thing.

Bug: 22355945
Change-Id: I1d2791fbf5740618f18f71a3ae3d873714669d3f

9 years agoam 2f54a441: am 60a11dcb: Merge "Add test for an Android kernel bug about prctl."
Yabin Cui [Tue, 14 Jul 2015 20:42:39 +0000 (20:42 +0000)]
am 2f54a441: am 60a11dcb: Merge "Add test for an Android kernel bug about prctl."

* commit '2f54a44110f8230d71ab9b23692a2732b45f00e8':
  Add test for an Android kernel bug about prctl.

9 years agoam 3b9900d3: am a8d82f12: Merge "Update to v3.18.18 kernel headers."
Christopher Ferris [Tue, 14 Jul 2015 20:42:38 +0000 (20:42 +0000)]
am 3b9900d3: am a8d82f12: Merge "Update to v3.18.18 kernel headers."

* commit '3b9900d346802c2055f67f241e792ebde11b88f7':
  Update to v3.18.18 kernel headers.

9 years agoam 60a11dcb: Merge "Add test for an Android kernel bug about prctl."
Yabin Cui [Tue, 14 Jul 2015 20:27:23 +0000 (20:27 +0000)]
am 60a11dcb: Merge "Add test for an Android kernel bug about prctl."

* commit '60a11dcb44992f610e696fc246c70731012080dd':
  Add test for an Android kernel bug about prctl.

9 years agoam a8d82f12: Merge "Update to v3.18.18 kernel headers."
Christopher Ferris [Tue, 14 Jul 2015 20:27:06 +0000 (20:27 +0000)]
am a8d82f12: Merge "Update to v3.18.18 kernel headers."

* commit 'a8d82f126d1830ebee99e2622d08489a844e3e62':
  Update to v3.18.18 kernel headers.

9 years agoam 653f4b15: am 43d35c35: Merge "Do not hold hash table lock while backtracing."...
Christopher Ferris [Tue, 14 Jul 2015 18:46:36 +0000 (18:46 +0000)]
am 653f4b15: am 43d35c35: Merge "Do not hold hash table lock while backtracing." into mnc-dev

* commit '653f4b150436422d925847191fe0ab023de4460a':
  Do not hold hash table lock while backtracing.

9 years agoam 43d35c35: Merge "Do not hold hash table lock while backtracing." into mnc-dev
Christopher Ferris [Tue, 14 Jul 2015 17:15:51 +0000 (17:15 +0000)]
am 43d35c35: Merge "Do not hold hash table lock while backtracing." into mnc-dev

* commit '43d35c356e2fbe0b022cef52445e93053c4ddbfd':
  Do not hold hash table lock while backtracing.

9 years agoMerge "Add test for an Android kernel bug about prctl."
Yabin Cui [Tue, 14 Jul 2015 02:48:44 +0000 (02:48 +0000)]
Merge "Add test for an Android kernel bug about prctl."

9 years agoAdd test for an Android kernel bug about prctl.
Yabin Cui [Mon, 13 Jul 2015 23:54:29 +0000 (16:54 -0700)]
Add test for an Android kernel bug about prctl.

Bug: 20017123

Change-Id: I8c109a06999a8bffcc8e8298b04ee637bb67d878

9 years agoMerge "Update to v3.18.18 kernel headers."
Christopher Ferris [Tue, 14 Jul 2015 01:29:46 +0000 (01:29 +0000)]
Merge "Update to v3.18.18 kernel headers."

9 years agoUpdate to v3.18.18 kernel headers.
Christopher Ferris [Tue, 14 Jul 2015 00:21:18 +0000 (17:21 -0700)]
Update to v3.18.18 kernel headers.

Change-Id: I0a0f423bda89500ad8e13a80582f05ec8bc756ea

9 years agoam 287cf266: am 5e3dc45a: Merge "Do not hold hash table lock while backtracing."
Christopher Ferris [Mon, 13 Jul 2015 22:39:24 +0000 (22:39 +0000)]
am 287cf266: am 5e3dc45a: Merge "Do not hold hash table lock while backtracing."

* commit '287cf2664fbc9f1f43d7cabc9c1cc80501ef8282':
  Do not hold hash table lock while backtracing.

9 years agoam 5e3dc45a: Merge "Do not hold hash table lock while backtracing."
Christopher Ferris [Mon, 13 Jul 2015 20:53:02 +0000 (20:53 +0000)]
am 5e3dc45a: Merge "Do not hold hash table lock while backtracing."

* commit '5e3dc45a16c63b716bc4b7bed2f5752b41a5d5d5':
  Do not hold hash table lock while backtracing.

9 years agoMerge "Do not hold hash table lock while backtracing."
Christopher Ferris [Mon, 13 Jul 2015 20:27:37 +0000 (20:27 +0000)]
Merge "Do not hold hash table lock while backtracing."

9 years agoDo not hold hash table lock while backtracing.
Christopher Ferris [Sun, 12 Jul 2015 05:47:06 +0000 (22:47 -0700)]
Do not hold hash table lock while backtracing.

There is a deadlock if holding the hash table lock while trying to do
a backtrace. Change the code so that the hash table lock is only held
while actually modifying either g_hash_table, or while modifying an
entry from g_hash_table.

Bug: 22423683
(cherry picked from commit 9fee99b06013787054a312449b94115038e2ad7c)

Change-Id: I72173bfe6f824ceaceea625c24e7851b87467135

9 years agoMerge "Do not hold hash table lock while backtracing." into mnc-dev
Christopher Ferris [Mon, 13 Jul 2015 20:15:29 +0000 (20:15 +0000)]
Merge "Do not hold hash table lock while backtracing." into mnc-dev

9 years agoDo not hold hash table lock while backtracing.
Christopher Ferris [Sun, 12 Jul 2015 05:47:06 +0000 (22:47 -0700)]
Do not hold hash table lock while backtracing.

There is a deadlock if holding the hash table lock while trying to do
a backtrace. Change the code so that the hash table lock is only held
while actually modifying either g_hash_table, or while modifying an
entry from g_hash_table.

Bug: 22423683
Change-Id: I604ea56f940f22e99da41ea4dcdf97bedaac268d

9 years agoam acf2b7be: am 147a50d0: Merge "Prevent user-defined basename_r from breaking basena...
Elliott Hughes [Sat, 11 Jul 2015 07:37:27 +0000 (07:37 +0000)]
am acf2b7be: am 147a50d0: Merge "Prevent user-defined basename_r from breaking basename(3)."

* commit 'acf2b7bea618f02db222ae46682140138e66eb95':
  Prevent user-defined basename_r from breaking basename(3).

9 years agoam 147a50d0: Merge "Prevent user-defined basename_r from breaking basename(3)."
Elliott Hughes [Sat, 11 Jul 2015 07:23:37 +0000 (07:23 +0000)]
am 147a50d0: Merge "Prevent user-defined basename_r from breaking basename(3)."

* commit '147a50d06e1183e3f39f4f6d0fa28748b33d4aa9':
  Prevent user-defined basename_r from breaking basename(3).

9 years agoMerge "Prevent user-defined basename_r from breaking basename(3)."
Elliott Hughes [Sat, 11 Jul 2015 07:03:53 +0000 (07:03 +0000)]
Merge "Prevent user-defined basename_r from breaking basename(3)."

9 years agoPrevent user-defined basename_r from breaking basename(3).
Elliott Hughes [Sat, 11 Jul 2015 06:58:59 +0000 (23:58 -0700)]
Prevent user-defined basename_r from breaking basename(3).

LP64 is immune because basename_r is hidden there, but on LP32 a basename_r
defined in the executable breaks basename because its call to basename_r
will resolve to that one rather than the one in libc.

Bug: http://b/22415484
Change-Id: Ied3ca7ad3fb0e744eb705fc924743f893b4ad490

9 years agoam 533efc20: am 64c82544: Merge "Update timezone data to 2015e" into mnc-dev
Neil Fuller [Fri, 10 Jul 2015 10:47:10 +0000 (10:47 +0000)]
am 533efc20: am 64c82544: Merge "Update timezone data to 2015e" into mnc-dev

* commit '533efc20b757b024da5771c2821f112adc628113':
  Update timezone data to 2015e

9 years agoam 64c82544: Merge "Update timezone data to 2015e" into mnc-dev
Neil Fuller [Fri, 10 Jul 2015 10:35:23 +0000 (10:35 +0000)]
am 64c82544: Merge "Update timezone data to 2015e" into mnc-dev

* commit '64c825441637b379be56a04622089e8e9b4b0da4':
  Update timezone data to 2015e

9 years agoMerge "Update timezone data to 2015e" into mnc-dev
Neil Fuller [Fri, 10 Jul 2015 09:47:51 +0000 (09:47 +0000)]
Merge "Update timezone data to 2015e" into mnc-dev

9 years agoam 538a4d70: am a5bb841d: Fix memory-leak on soinfo_free()
Dmitriy Ivanov [Fri, 10 Jul 2015 01:24:57 +0000 (01:24 +0000)]
am 538a4d70: am a5bb841d: Fix memory-leak on soinfo_free()

* commit '538a4d70293dcf30f166a8fa3110ae5e3e24b82b':
  Fix memory-leak on soinfo_free()

9 years agoam a5bb841d: Fix memory-leak on soinfo_free()
Dmitriy Ivanov [Fri, 10 Jul 2015 00:59:25 +0000 (00:59 +0000)]
am a5bb841d: Fix memory-leak on soinfo_free()

* commit 'a5bb841df799e10e7d0ae3202b097da8a1c23507':
  Fix memory-leak on soinfo_free()

9 years agoam 9d4402a9: am 880a2933: Merge "Fix memory-leak on soinfo_free()"
Dmitriy Ivanov [Fri, 10 Jul 2015 00:09:31 +0000 (00:09 +0000)]
am 9d4402a9: am 880a2933: Merge "Fix memory-leak on soinfo_free()"

* commit '9d4402a95c4adef2516ca1610b72e82744d28162':
  Fix memory-leak on soinfo_free()

9 years agoFix memory-leak on soinfo_free()
Dmitriy Ivanov [Wed, 8 Jul 2015 22:26:46 +0000 (15:26 -0700)]
Fix memory-leak on soinfo_free()

Bug: http://b/22290728
Change-Id: I00747056db2cd3ff8b33936278464daed7236536
(cherry picked from commit 609f11b31ecedc4e9f2a1f6017b60b1f51b15c22)

9 years agoam 880a2933: Merge "Fix memory-leak on soinfo_free()"
Dmitriy Ivanov [Thu, 9 Jul 2015 23:54:12 +0000 (23:54 +0000)]
am 880a2933: Merge "Fix memory-leak on soinfo_free()"

* commit '880a293390b64da806a072f4ace2c2784b340876':
  Fix memory-leak on soinfo_free()

9 years agoMerge "Fix memory-leak on soinfo_free()"
Dmitriy Ivanov [Thu, 9 Jul 2015 23:32:18 +0000 (23:32 +0000)]
Merge "Fix memory-leak on soinfo_free()"

9 years agoam a13ece0d: am d1e10d7d: Merge "Use delete[] to de-allocate pointers from new[]"
Pirama Arumuga Nainar [Thu, 9 Jul 2015 23:18:12 +0000 (23:18 +0000)]
am a13ece0d: am d1e10d7d: Merge "Use delete[] to de-allocate pointers from new[]"

* commit 'a13ece0d6c001a268b428478b2f711d082d98294':
  Use delete[] to de-allocate pointers from new[]

9 years agoam d1e10d7d: Merge "Use delete[] to de-allocate pointers from new[]"
Pirama Arumuga Nainar [Thu, 9 Jul 2015 23:06:07 +0000 (23:06 +0000)]
am d1e10d7d: Merge "Use delete[] to de-allocate pointers from new[]"

* commit 'd1e10d7d168a8461d9eb47e48802ea11d8bd0640':
  Use delete[] to de-allocate pointers from new[]

9 years agoMerge "Use delete[] to de-allocate pointers from new[]"
Pirama Arumuga Nainar [Thu, 9 Jul 2015 22:40:50 +0000 (22:40 +0000)]
Merge "Use delete[] to de-allocate pointers from new[]"

9 years agoUse delete[] to de-allocate pointers from new[]
Pirama Arumuga Nainar [Thu, 9 Jul 2015 17:15:15 +0000 (10:15 -0700)]
Use delete[] to de-allocate pointers from new[]

Upstream clang has a new diagnostic, '-Wmismatched-new-delete' to
generate a warning (that becomes an error with -Werror) when delete is
used to deallocate pointers created with 'new[]'.  This patch fixes
'delete's that trigger this warning/error.

Change-Id: Id7b6f6c2df3e860e576de55e2f61f3d2be3a3986

9 years agoFix memory-leak on soinfo_free()
Dmitriy Ivanov [Wed, 8 Jul 2015 22:26:46 +0000 (15:26 -0700)]
Fix memory-leak on soinfo_free()

Bug: http://b/22290728
Change-Id: I00747056db2cd3ff8b33936278464daed7236536

9 years agoam 16d78688: am c6f25641: Merge "libc: Add sys/fcntl.h for compatibility."
Daniel Erat [Wed, 8 Jul 2015 21:55:14 +0000 (21:55 +0000)]
am 16d78688: am c6f25641: Merge "libc: Add sys/fcntl.h for compatibility."

* commit '16d78688b4105c593e95c769bffea5b88b834a51':
  libc: Add sys/fcntl.h for compatibility.

9 years agoam c6f25641: Merge "libc: Add sys/fcntl.h for compatibility."
Daniel Erat [Wed, 8 Jul 2015 21:44:59 +0000 (21:44 +0000)]
am c6f25641: Merge "libc: Add sys/fcntl.h for compatibility."

* commit 'c6f25641eb874cd15f92759beff1ad67cfd8228b':
  libc: Add sys/fcntl.h for compatibility.

9 years agoMerge "libc: Add sys/fcntl.h for compatibility."
Daniel Erat [Wed, 8 Jul 2015 21:15:22 +0000 (21:15 +0000)]
Merge "libc: Add sys/fcntl.h for compatibility."

9 years agolibc: Add sys/fcntl.h for compatibility.
Daniel Erat [Wed, 8 Jul 2015 21:01:50 +0000 (15:01 -0600)]
libc: Add sys/fcntl.h for compatibility.

Add a /usr/include/sys/fcntl.h file that includes <fcntl.h>.

Change-Id: Ie34bf7519607c5aae1fbea7c7dca249c9b7801cc

9 years agoam c9bd26e9: am 33ef6c20: Merge "Respect caller DT_RUNPATH in dlopen()."
Evgenii Stepanov [Wed, 8 Jul 2015 20:31:02 +0000 (20:31 +0000)]
am c9bd26e9: am 33ef6c20: Merge "Respect caller DT_RUNPATH in dlopen()."

* commit 'c9bd26e96b4c1bc8f4e855310991a709b52e2ccb':
  Respect caller DT_RUNPATH in dlopen().

9 years agoam 33ef6c20: Merge "Respect caller DT_RUNPATH in dlopen()."
Evgenii Stepanov [Wed, 8 Jul 2015 20:16:59 +0000 (20:16 +0000)]
am 33ef6c20: Merge "Respect caller DT_RUNPATH in dlopen()."

* commit '33ef6c20f2ddf19b29ed3a4e50139fa391b1a3d4':
  Respect caller DT_RUNPATH in dlopen().

9 years agoam a2e2c3d2: am 90de6820: Merge "Replace bx lr with update of pc from the stack."
Christopher Ferris [Wed, 8 Jul 2015 19:54:22 +0000 (19:54 +0000)]
am a2e2c3d2: am 90de6820: Merge "Replace bx lr with update of pc from the stack."

* commit 'a2e2c3d2aeaa61c0595e3819b963248941ff2e7d':
  Replace bx lr with update of pc from the stack.

9 years agoMerge "Respect caller DT_RUNPATH in dlopen()."
Evgenii Stepanov [Wed, 8 Jul 2015 19:50:02 +0000 (19:50 +0000)]
Merge "Respect caller DT_RUNPATH in dlopen()."

9 years agoam 90de6820: Merge "Replace bx lr with update of pc from the stack."
Christopher Ferris [Wed, 8 Jul 2015 19:40:38 +0000 (19:40 +0000)]
am 90de6820: Merge "Replace bx lr with update of pc from the stack."

* commit '90de6820f736de1239b218ea2b63d15c38505e93':
  Replace bx lr with update of pc from the stack.

9 years agoMerge "Replace bx lr with update of pc from the stack."
Christopher Ferris [Wed, 8 Jul 2015 19:15:37 +0000 (19:15 +0000)]
Merge "Replace bx lr with update of pc from the stack."

9 years agoReplace bx lr with update of pc from the stack.
Christopher Ferris [Mon, 6 Jul 2015 19:03:40 +0000 (12:03 -0700)]
Replace bx lr with update of pc from the stack.

When there is arm assembler of this format:

ldmxx sp!, {..., lr} or pop {..., lr}
bx lr

It can be replaced with:

ldmxx sp!, {..., pc} or pop {..., pc}

Change-Id: Ic27048c52f90ac4360ad525daf0361a830dc22a3

9 years agoRespect caller DT_RUNPATH in dlopen().
Evgenii Stepanov [Tue, 7 Jul 2015 00:56:31 +0000 (17:56 -0700)]
Respect caller DT_RUNPATH in dlopen().

When dlopen-ing a library, add the caller's DT_RUNPATH to the directory search
list. This fixes dlfcn.dt_runpath in bionic-unit-tests-glibc(32|64).

Bug: 21899363
Change-Id: Ife6a7e192939292cf4dc291b7e6b95945761cde3

9 years agoam 049a5ae0: am 7a9732d6: Merge "Add some glibc-like #defines for libchrome."
Elliott Hughes [Tue, 7 Jul 2015 17:39:53 +0000 (17:39 +0000)]
am 049a5ae0: am 7a9732d6: Merge "Add some glibc-like #defines for libchrome."

* commit '049a5ae00295ab08ea909ae3f67dbb55760111a2':
  Add some glibc-like #defines for libchrome.

9 years agoam 7a9732d6: Merge "Add some glibc-like #defines for libchrome."
Elliott Hughes [Tue, 7 Jul 2015 17:24:48 +0000 (17:24 +0000)]
am 7a9732d6: Merge "Add some glibc-like #defines for libchrome."

* commit '7a9732d663906bedd8734c9952e35728c2662767':
  Add some glibc-like #defines for libchrome.

9 years agoMerge "Add some glibc-like #defines for libchrome."
Elliott Hughes [Tue, 7 Jul 2015 16:56:52 +0000 (16:56 +0000)]
Merge "Add some glibc-like #defines for libchrome."

9 years agoAdd some glibc-like #defines for libchrome.
Elliott Hughes [Tue, 7 Jul 2015 16:22:32 +0000 (09:22 -0700)]
Add some glibc-like #defines for libchrome.

libchrome uses __USE_XOPEN2K8 to decide whether futimens is
available. That's perhaps not the best idea, but there are other
cases where we defined the same feature macros as glibc to aid
portability.

Change-Id: Ie6e04cb181d88698d618e7dbd26cd347a6bf076c

9 years agoam 805844ff: am 65dd8582: Fix alignment after variable-length data.
Elliott Hughes [Tue, 7 Jul 2015 00:33:35 +0000 (00:33 +0000)]
am 805844ff: am 65dd8582: Fix alignment after variable-length data.

* commit '805844ff0c292b38df3826ef11ee1a26a552712f':
  Fix alignment after variable-length data.

9 years agoam b6c2d3f3: am 89bbb846: Merge "Fix alignment after variable-length data."
Elliott Hughes [Tue, 7 Jul 2015 00:33:04 +0000 (00:33 +0000)]
am b6c2d3f3: am 89bbb846: Merge "Fix alignment after variable-length data."

* commit 'b6c2d3f30b8db82ae0a70afd6a1501aae95c22f0':
  Fix alignment after variable-length data.

9 years agoam 6a31a37c: am f542b309: Merge "Name the thread stack and signal stack guard pages."
Elliott Hughes [Tue, 7 Jul 2015 00:32:08 +0000 (00:32 +0000)]
am 6a31a37c: am f542b309: Merge "Name the thread stack and signal stack guard pages."

* commit '6a31a37cc14a53c4eaac1c026779779c00eaa435':
  Name the thread stack and signal stack guard pages.

9 years agoam 65dd8582: Fix alignment after variable-length data.
Elliott Hughes [Mon, 6 Jul 2015 23:29:41 +0000 (23:29 +0000)]
am 65dd8582: Fix alignment after variable-length data.

* commit '65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3':
  Fix alignment after variable-length data.

9 years agoam 89bbb846: Merge "Fix alignment after variable-length data."
Elliott Hughes [Mon, 6 Jul 2015 22:54:52 +0000 (22:54 +0000)]
am 89bbb846: Merge "Fix alignment after variable-length data."

* commit '89bbb846b9831f232b87d54a6eeb759ac603cc43':
  Fix alignment after variable-length data.

9 years agoMerge "Fix alignment after variable-length data."
Elliott Hughes [Mon, 6 Jul 2015 21:44:31 +0000 (21:44 +0000)]
Merge "Fix alignment after variable-length data."

9 years agoFix alignment after variable-length data.
Elliott Hughes [Mon, 6 Jul 2015 21:16:12 +0000 (14:16 -0700)]
Fix alignment after variable-length data.

In the serialized output from netd, the strings come first. Some code
assumes -- reasonably enough -- that it can do unaligned reads of pointers,
so we need to ensure alignment after all the strings.

(cherrypick of 65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3.)

Bug: http://b/21192318
Change-Id: I456639127db9a2583f7f738e6b8103375d9387fd

9 years agoFix alignment after variable-length data.
Elliott Hughes [Mon, 6 Jul 2015 21:16:12 +0000 (14:16 -0700)]
Fix alignment after variable-length data.

In the serialized output from netd, the strings come first. Some code
assumes -- reasonably enough -- that it can do unaligned reads of pointers,
so we need to ensure alignment after all the strings.

Bug: http://b/21192318
Change-Id: I456639127db9a2583f7f738e6b8103375d9387fd

9 years agoam f542b309: Merge "Name the thread stack and signal stack guard pages."
Elliott Hughes [Mon, 6 Jul 2015 20:22:48 +0000 (20:22 +0000)]
am f542b309: Merge "Name the thread stack and signal stack guard pages."

* commit 'f542b30970ae863caceea1f635115f1195461e31':
  Name the thread stack and signal stack guard pages.

9 years agoMerge "Name the thread stack and signal stack guard pages."
Elliott Hughes [Mon, 6 Jul 2015 19:59:42 +0000 (19:59 +0000)]
Merge "Name the thread stack and signal stack guard pages."