OSDN Git Service

android-x86/bionic.git
8 years agoMerge "Fix tsan abort for lake of __libc_auxv initialization." am: 79f8d64632 am...
Yabin Cui [Thu, 24 Dec 2015 02:17:17 +0000 (18:17 -0800)]
Merge "Fix tsan abort for lake of __libc_auxv initialization." am: 79f8d64632 am: b690cae8dd
am: bc47b95f25

* commit 'bc47b95f25dfedbbc7cdf7cc309cdb969f4e5c8d':

8 years agoMerge "Update libc/Android.bp to match libc/Android.mk" am: 9c6157c81d am: 75ba57de43
Colin Cross [Thu, 24 Dec 2015 02:16:44 +0000 (18:16 -0800)]
Merge "Update libc/Android.bp to match libc/Android.mk" am: 9c6157c81d am: 75ba57de43
am: 48c2055b41

* commit '48c2055b4170be652b9153c12c67738a792125ba':

8 years agoMerge "Add /odm/lib to shared lib search path" am: 0ebe2f07c3 am: ce77e47b2f
Hung-ying Tyan [Thu, 24 Dec 2015 02:16:38 +0000 (18:16 -0800)]
Merge "Add /odm/lib to shared lib search path" am: 0ebe2f07c3 am: ce77e47b2f
am: 9055719c1b

* commit '9055719c1b49cce2d4d53b32c30eb54eb5371dbc':

8 years agoMerge "Do not depend on host bits to get the right size to write." am: 313632db57...
Junichi Uekawa [Thu, 24 Dec 2015 02:14:24 +0000 (18:14 -0800)]
Merge "Do not depend on host bits to get the right size to write." am: 313632db57 am: 1ab4088062
am: 7c19099bf9

* commit '7c19099bf9c127140bc80b1326a35468d71621b9':

8 years agoMerge "Implement pthread spin." am: 2c09e5de29 am: f091c1f2f1
Yabin Cui [Thu, 24 Dec 2015 02:13:42 +0000 (18:13 -0800)]
Merge "Implement pthread spin." am: 2c09e5de29 am: f091c1f2f1
am: 758d309069

* commit '758d309069c45f6ee9f5d8e6d6934ebf27a05a8b':

8 years agoMerge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
Yabin Cui [Thu, 24 Dec 2015 02:13:29 +0000 (18:13 -0800)]
Merge "Avoid tsan warning about pthread_mutex_destroy." am: ea5bb151af am: 9d4bd6f0ca
am: 3bd173874a

* commit '3bd173874a7209ea80d75873d56743efab28e506':

8 years agoMerge "Ignore target sdk version for the public namespace" am: 63f0e0db76 am: 3f539a1655
Dimitry Ivanov [Thu, 24 Dec 2015 02:09:56 +0000 (18:09 -0800)]
Merge "Ignore target sdk version for the public namespace" am: 63f0e0db76 am: 3f539a1655
am: 87ddb1b8aa

* commit '87ddb1b8aa37d786318bd62d2ea74b0bc86eec0c':

8 years agoMerge "Revert "Implement getifaddrs(3)/freeifaddrs(3)."" am: b62e633ff6
Yi Kong [Tue, 22 Dec 2015 17:52:46 +0000 (17:52 +0000)]
Merge "Revert "Implement getifaddrs(3)/freeifaddrs(3)."" am: b62e633ff6
am: fcd69c0d03

* commit 'fcd69c0d03d64d3281ea5710a12487dc461d5384':
  Revert "Implement getifaddrs(3)/freeifaddrs(3)."

8 years agoMerge "Revert "Implement getifaddrs(3)/freeifaddrs(3).""
Yi Kong [Tue, 22 Dec 2015 17:50:58 +0000 (09:50 -0800)]
Merge "Revert "Implement getifaddrs(3)/freeifaddrs(3).""
am: b62e633ff6

* commit 'b62e633ff679a65df97be55bd0ae6a02633ce472':
  Revert "Implement getifaddrs(3)/freeifaddrs(3)."

8 years agoMerge "Revert "Implement getifaddrs(3)/freeifaddrs(3).""
Yi Kong [Tue, 22 Dec 2015 17:48:21 +0000 (17:48 +0000)]
Merge "Revert "Implement getifaddrs(3)/freeifaddrs(3).""

8 years agoRevert "Implement getifaddrs(3)/freeifaddrs(3)."
Yi Kong [Tue, 22 Dec 2015 17:47:54 +0000 (17:47 +0000)]
Revert "Implement getifaddrs(3)/freeifaddrs(3)."

Werror build broken. Revert while working on a fix.

This reverts commit 0945ed5cc5921243724fed4465d20881f4891a8d.

Change-Id: I67edab7a7a3b9aa673ce9d14aa95380f947838a1

8 years agoMerge "Implement getifaddrs(3)/freeifaddrs(3)." am: 71417caa92
Yi Kong [Tue, 22 Dec 2015 17:16:53 +0000 (09:16 -0800)]
Merge "Implement getifaddrs(3)/freeifaddrs(3)." am: 71417caa92
am: 9766fc8f4e

* commit '9766fc8f4efb263c8304b111030b1381a3ef8462':
  Implement getifaddrs(3)/freeifaddrs(3).

8 years agoMerge "Implement getifaddrs(3)/freeifaddrs(3)."
Yi Kong [Tue, 22 Dec 2015 17:14:50 +0000 (09:14 -0800)]
Merge "Implement getifaddrs(3)/freeifaddrs(3)."
am: 71417caa92

* commit '71417caa927bb6720ae6cd759f335d8081f57895':
  Implement getifaddrs(3)/freeifaddrs(3).

8 years agoMerge "Implement getifaddrs(3)/freeifaddrs(3)."
Yi Kong [Tue, 22 Dec 2015 17:11:59 +0000 (17:11 +0000)]
Merge "Implement getifaddrs(3)/freeifaddrs(3)."

8 years agoMerge "linker: implement shared namespaces" am: be7c7fe218
Dimitry Ivanov [Tue, 22 Dec 2015 14:49:48 +0000 (06:49 -0800)]
Merge "linker: implement shared namespaces" am: be7c7fe218
am: 50edce2ecd

* commit '50edce2ecd3379d0b078f36bfcf5c76b90353def':
  linker: implement shared namespaces

8 years agoMerge "linker: implement shared namespaces"
Dimitry Ivanov [Mon, 21 Dec 2015 23:16:08 +0000 (23:16 +0000)]
Merge "linker: implement shared namespaces"
am: be7c7fe218

* commit 'be7c7fe218ca13b5763fbbcb650780aff4ed1dbd':
  linker: implement shared namespaces

8 years agoMerge "linker: implement shared namespaces"
Dimitry Ivanov [Mon, 21 Dec 2015 23:10:49 +0000 (23:10 +0000)]
Merge "linker: implement shared namespaces"

8 years agolinker: implement shared namespaces
Dimitry Ivanov [Mon, 14 Dec 2015 22:11:17 +0000 (14:11 -0800)]
linker: implement shared namespaces

Shared namespaces clone the list of loaded native
libraries from the caller namespace. This allows
classloaders for bundled apps to share already loaded
libraries with default namespace.

Bug: http://b/22548808
Bug: http://b/26165097
Change-Id: I8949d45937fdb38e1f586ff0679003adac0d9dad
(cherry picked from commit e78deef364d952dd1141a2f3067a12060aaf11e6)

8 years agoImplement getifaddrs(3)/freeifaddrs(3).
Elliott Hughes [Sat, 19 Dec 2015 22:39:10 +0000 (14:39 -0800)]
Implement getifaddrs(3)/freeifaddrs(3).

Time to dust off the old libcore implementation from gingerbread and add it
to bionic. Unlike the original, this actually looks at both RTM_NEWLINK and
RTM_NEWADDR.

Bug: http://b/26238832
Change-Id: I7bb4b432deb766065b66b9c9ff36ed68249aba82

8 years agoMerge "Improve the 32-bit ABI documentation." am: 4afd635be1
Elliott Hughes [Sat, 19 Dec 2015 21:52:30 +0000 (21:52 +0000)]
Merge "Improve the 32-bit ABI documentation." am: 4afd635be1
am: 0118535663

* commit '0118535663e6a3219694167d8970c4b31759d2df':
  Improve the 32-bit ABI documentation.

8 years agoMerge "Improve the 32-bit ABI documentation."
Elliott Hughes [Sat, 19 Dec 2015 21:50:30 +0000 (21:50 +0000)]
Merge "Improve the 32-bit ABI documentation."
am: 4afd635be1

* commit '4afd635be1b956c40f36758a482e6d83502fbb42':
  Improve the 32-bit ABI documentation.

8 years agoMerge "Improve the 32-bit ABI documentation."
Elliott Hughes [Sat, 19 Dec 2015 21:47:07 +0000 (21:47 +0000)]
Merge "Improve the 32-bit ABI documentation."

8 years agoImprove the 32-bit ABI documentation.
Elliott Hughes [Sat, 19 Dec 2015 17:36:16 +0000 (09:36 -0800)]
Improve the 32-bit ABI documentation.

Change-Id: Ie5bfc8d6f7f3946100f653de0e006072e56e18d6

8 years agoMerge "linker: implement shared namespaces"
Dimitry Ivanov [Sat, 19 Dec 2015 00:49:09 +0000 (00:49 +0000)]
Merge "linker: implement shared namespaces"

8 years agoMerge "Reset access to system properties on reinitialization" am: dd57119ced
Tom Cherry [Fri, 18 Dec 2015 01:49:00 +0000 (01:49 +0000)]
Merge "Reset access to system properties on reinitialization" am: dd57119ced
am: 71cf3d83ac

* commit '71cf3d83acb0ba64a0ca75edbd66498659ffd427':
  Reset access to system properties on reinitialization

8 years agoMerge "sem_timedwait with a null timeout doesn\'t mean "forever"." am: 7cb3c4af13
Elliott Hughes [Fri, 18 Dec 2015 00:16:25 +0000 (16:16 -0800)]
Merge "sem_timedwait with a null timeout doesn\'t mean "forever"." am: 7cb3c4af13
am: 9c18a263ed

* commit '9c18a263ed1211c08908c82e79b14387c4e55e58':
  sem_timedwait with a null timeout doesn't mean "forever".

8 years agolinker: implement shared namespaces
Dimitry Ivanov [Mon, 14 Dec 2015 22:11:17 +0000 (14:11 -0800)]
linker: implement shared namespaces

Shared namespaces clone the list of loaded native
libraries from the caller namespace. This allows
classloaders for bundled apps to share already loaded
libraries with default namespace.

Bug: http://b/22548808
Bug: http://b/26165097
Change-Id: I8949d45937fdb38e1f586ff0679003adac0d9dad

8 years agoMerge "Reset access to system properties on reinitialization"
Tom Cherry [Thu, 17 Dec 2015 18:06:08 +0000 (10:06 -0800)]
Merge "Reset access to system properties on reinitialization"
am: dd57119ced

* commit 'dd57119ced4670de2ea18fc84a59f20ccec353a7':
  Reset access to system properties on reinitialization

8 years agoMerge "linker: add dlvsym(3)" am: d4f86aed42
Dimitry Ivanov [Thu, 17 Dec 2015 17:56:20 +0000 (09:56 -0800)]
Merge "linker: add dlvsym(3)" am: d4f86aed42
am: d311207aeb

* commit 'd311207aeb7aecd657fb0e101c76f07cd3f4bf2f':
  linker: add dlvsym(3)

8 years agoMerge "Reset access to system properties on reinitialization"
Tom Cherry [Thu, 17 Dec 2015 17:54:05 +0000 (17:54 +0000)]
Merge "Reset access to system properties on reinitialization"

8 years agoMerge "sem_timedwait with a null timeout doesn\'t mean "forever"."
Elliott Hughes [Thu, 17 Dec 2015 01:20:26 +0000 (01:20 +0000)]
Merge "sem_timedwait with a null timeout doesn\'t mean "forever"."
am: 7cb3c4af13

* commit '7cb3c4af134cfa4308742c86086bccdd06463c0c':
  sem_timedwait with a null timeout doesn't mean "forever".

8 years agoMerge "sem_timedwait with a null timeout doesn't mean "forever"."
Elliott Hughes [Thu, 17 Dec 2015 01:15:15 +0000 (01:15 +0000)]
Merge "sem_timedwait with a null timeout doesn't mean "forever"."

8 years agoMerge "linker: add dlvsym(3)"
Dimitry Ivanov [Thu, 17 Dec 2015 00:55:04 +0000 (00:55 +0000)]
Merge "linker: add dlvsym(3)"
am: d4f86aed42

* commit 'd4f86aed42a97e1d7c502595b0fe1270f7989c7a':
  linker: add dlvsym(3)

8 years agoMerge "Fix missing parentheses." am: 27032a39dd
Christopher Ferris [Thu, 17 Dec 2015 00:48:30 +0000 (00:48 +0000)]
Merge "Fix missing parentheses." am: 27032a39dd
am: c5ba41662a

* commit 'c5ba41662a16a23e1e20f8c9955f28d3d2858f5b':
  Fix missing parentheses.

8 years agoMerge "Fix bug in dlmalloc\'s version of calloc." am: 9f20db1c94
Christopher Ferris [Thu, 17 Dec 2015 00:48:25 +0000 (00:48 +0000)]
Merge "Fix bug in dlmalloc\'s version of calloc." am: 9f20db1c94
am: b866c94484

* commit 'b866c94484916c0898cd1cc52c57c4924dddbb9e':
  Fix bug in dlmalloc's version of calloc.

8 years agoMerge "Fix missing parentheses."
Christopher Ferris [Thu, 17 Dec 2015 00:42:28 +0000 (00:42 +0000)]
Merge "Fix missing parentheses."
am: 27032a39dd

* commit '27032a39dd76de8e5cd637e4f9425300c4b46a37':
  Fix missing parentheses.

8 years agoMerge "linker: add dlvsym(3)"
Dimitry Ivanov [Thu, 17 Dec 2015 00:40:13 +0000 (00:40 +0000)]
Merge "linker: add dlvsym(3)"

8 years agoMerge "Fix missing parentheses."
Christopher Ferris [Thu, 17 Dec 2015 00:30:59 +0000 (00:30 +0000)]
Merge "Fix missing parentheses."

8 years agoMerge "Fix bug in dlmalloc\'s version of calloc."
Christopher Ferris [Thu, 17 Dec 2015 00:19:52 +0000 (00:19 +0000)]
Merge "Fix bug in dlmalloc\'s version of calloc."
am: 9f20db1c94

* commit '9f20db1c94446624238f452d5fc0200444d2ea05':
  Fix bug in dlmalloc's version of calloc.

8 years agoFix missing parentheses.
Christopher Ferris [Thu, 17 Dec 2015 00:11:04 +0000 (16:11 -0800)]
Fix missing parentheses.

The BIONIC_ROUND_UP_POWER_OF_2 macro did not have parentheses around
the whole expression. This lead to the wrong value being computed when
used as part of a mathematical expression such as this:

  value = BIONIC_ROUND_UP_POWER_OF_2(value) - 1;

This only happens on 64 bit abis.

Change-Id: I6f8afbdaf16fe64a88fa0246d074b3534c9159c1

8 years agoMerge "Fix bug in dlmalloc's version of calloc."
Christopher Ferris [Thu, 17 Dec 2015 00:06:03 +0000 (00:06 +0000)]
Merge "Fix bug in dlmalloc's version of calloc."

8 years agolinker: add dlvsym(3)
Dimitry Ivanov [Fri, 11 Dec 2015 22:22:24 +0000 (14:22 -0800)]
linker: add dlvsym(3)

This changes implements dlvsym - dlsym for versioned symbols.

Bug: http://b/22865643
Change-Id: Ic90a60d512104261a1416c43f9100f0d88e3b46f

8 years agosem_timedwait with a null timeout doesn't mean "forever".
Elliott Hughes [Wed, 16 Dec 2015 23:15:58 +0000 (15:15 -0800)]
sem_timedwait with a null timeout doesn't mean "forever".

It actually means "crash immediately". Well, it's an error. And callers are
much more likely to realize their mistake if we crash immediately rather
than return EINVAL. Historically, glibc has crashed and bionic -- before
the recent changes -- returned EINVAL, so this is a behavior change.

Change-Id: I0c2373a6703b20b8a97aacc1e66368a5885e8c51

8 years agoFix bug in dlmalloc's version of calloc.
Christopher Ferris [Wed, 16 Dec 2015 20:07:25 +0000 (12:07 -0800)]
Fix bug in dlmalloc's version of calloc.

Under some circumstances, doing a calloc will make sure that the memory
returned will be zero up to the size of the requested size. However, if
there is more usable size than the requested size, that extra part
of the allocation will not be zeroed. This change fixes it so that the
entire usable memory is always zeroed.

Change-Id: I8a66d6767c074023c4ba3568bf2705e1886740fc

8 years agoMerge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""" am: d3e5301a75
Dimitry Ivanov [Wed, 16 Dec 2015 19:18:03 +0000 (19:18 +0000)]
Merge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""" am: d3e5301a75
am: 696340ce71

* commit '696340ce7101b07a5af61351d462382a784b7085':
  Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""

8 years agoMerge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms"""
Dimitry Ivanov [Wed, 16 Dec 2015 19:14:02 +0000 (19:14 +0000)]
Merge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms"""
am: d3e5301a75

* commit 'd3e5301a75256171199b23f6ba2c6651d05ce5f1':
  Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""

8 years agoMerge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms"""
Dimitry Ivanov [Wed, 16 Dec 2015 19:06:09 +0000 (19:06 +0000)]
Merge "Revert "Revert "Remove remaining ndk_cruft from LP64 platforms"""

8 years agoRevert "Revert "Remove remaining ndk_cruft from LP64 platforms""
Dimitry Ivanov [Wed, 16 Dec 2015 19:02:04 +0000 (19:02 +0000)]
Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""

This reverts commit 23af25b747b5e7b0ca513a87b32f1f6a3cb99698.

Bug: http://b/26164862
Change-Id: I201bf49530f33f8ba6a1a35b79723afb9e84c7a5

8 years agoMerge "Add a few missing pthread tests." am: 4d57e669dc
Elliott Hughes [Tue, 15 Dec 2015 16:02:46 +0000 (16:02 +0000)]
Merge "Add a few missing pthread tests." am: 4d57e669dc
am: 3aada6768c

* commit '3aada6768c6c8120db1ab4b5a080f030de8979df':
  Add a few missing pthread tests.

8 years agoMerge "Add a few missing pthread tests."
Elliott Hughes [Tue, 15 Dec 2015 15:46:24 +0000 (15:46 +0000)]
Merge "Add a few missing pthread tests."
am: 4d57e669dc

* commit '4d57e669dc994a99ad8f1a81e3d94102390edc60':
  Add a few missing pthread tests.

8 years agoMerge "Revert "Remove remaining ndk_cruft from LP64 platforms"" am: 52a05f3ce7
Dimitry Ivanov [Tue, 15 Dec 2015 02:38:38 +0000 (18:38 -0800)]
Merge "Revert "Remove remaining ndk_cruft from LP64 platforms"" am: 52a05f3ce7
am: 3c9ce841fa

* commit '3c9ce841fac975c36855ec4ccd3a20861b61e07f':
  Revert "Remove remaining ndk_cruft from LP64 platforms"

8 years agoMerge "Revert "Remove remaining ndk_cruft from LP64 platforms""
Dimitry Ivanov [Tue, 15 Dec 2015 02:09:12 +0000 (18:09 -0800)]
Merge "Revert "Remove remaining ndk_cruft from LP64 platforms""
am: 52a05f3ce7

* commit '52a05f3ce74112560c3a203965774c5c9b7faf2b':
  Revert "Remove remaining ndk_cruft from LP64 platforms"

8 years agoMerge "Add a few missing pthread tests."
Elliott Hughes [Tue, 15 Dec 2015 01:38:24 +0000 (01:38 +0000)]
Merge "Add a few missing pthread tests."

8 years agoMerge "Revert "Remove remaining ndk_cruft from LP64 platforms""
Dimitry Ivanov [Tue, 15 Dec 2015 01:36:19 +0000 (01:36 +0000)]
Merge "Revert "Remove remaining ndk_cruft from LP64 platforms""

8 years agoAdd a few missing pthread tests.
Elliott Hughes [Tue, 15 Dec 2015 01:35:10 +0000 (17:35 -0800)]
Add a few missing pthread tests.

This seems to be all that's tested by system/extras/tests/bionic that isn't
already better tested here.

Change-Id: Id0aa985cefd4047a6007ba9804f541069d9e92ed

8 years agoRevert "Remove remaining ndk_cruft from LP64 platforms"
Dimitry Ivanov [Tue, 15 Dec 2015 01:34:14 +0000 (01:34 +0000)]
Revert "Remove remaining ndk_cruft from LP64 platforms"

This reverts commit b1d0a2ae7790f882d8f1ab24d7ef15e2b90c8ca2.

Change-Id: I1da06be0b78a4f2a4cad7e4a19a3ee755f55a813

8 years agoMerge "Remove remaining ndk_cruft from LP64 platforms" am: b34ae08cc6
Dimitry Ivanov [Tue, 15 Dec 2015 01:08:23 +0000 (01:08 +0000)]
Merge "Remove remaining ndk_cruft from LP64 platforms" am: b34ae08cc6
am: 21d1cb7ac6

* commit '21d1cb7ac6cfbe641b209eb067bc480d98e1a372':
  Remove remaining ndk_cruft from LP64 platforms

8 years agoMerge "Remove remaining ndk_cruft from LP64 platforms"
Dimitry Ivanov [Tue, 15 Dec 2015 00:25:42 +0000 (16:25 -0800)]
Merge "Remove remaining ndk_cruft from LP64 platforms"
am: b34ae08cc6

* commit 'b34ae08cc62506142c0f2407101f4914384a0d86':
  Remove remaining ndk_cruft from LP64 platforms

8 years agoMerge "Remove remaining ndk_cruft from LP64 platforms"
Dimitry Ivanov [Mon, 14 Dec 2015 23:55:55 +0000 (23:55 +0000)]
Merge "Remove remaining ndk_cruft from LP64 platforms"

8 years agoRemove remaining ndk_cruft from LP64 platforms
Dimitry Ivanov [Mon, 14 Dec 2015 23:49:28 +0000 (15:49 -0800)]
Remove remaining ndk_cruft from LP64 platforms

This change removes endpwent, dlmalloc_inspect_all, dlmalloc_trim
from lp64 libc.so. It also removed necessety of having brillo
version scripts for lp64 platforms.

Bug: http://b/26164862
Change-Id: I4e9b38907bb1dc410f0eb6d2f5d5944fe713da51

8 years agoMerge changes Iaee1b711,Ia3dd0761 am: 881673cb45
Dimitry Ivanov [Mon, 14 Dec 2015 23:43:10 +0000 (23:43 +0000)]
Merge changes Iaee1b711,Ia3dd0761 am: 881673cb45
am: 8215a6d64a

* commit '8215a6d64a1f05b0bd4fd6bd875016a42fb70200':
  Generate libc version-script for brillo
  Revert "Don't verify version scripts on 32-bit Brillo"

8 years agoMerge changes Iaee1b711,Ia3dd0761
Dimitry Ivanov [Mon, 14 Dec 2015 23:29:44 +0000 (23:29 +0000)]
Merge changes Iaee1b711,Ia3dd0761
am: 881673cb45

* commit '881673cb45449f9fbc9fa496cf1d777868ee9da8':
  Generate libc version-script for brillo
  Revert "Don't verify version scripts on 32-bit Brillo"

8 years agoMerge changes Iaee1b711,Ia3dd0761
Dimitry Ivanov [Mon, 14 Dec 2015 22:53:06 +0000 (22:53 +0000)]
Merge changes Iaee1b711,Ia3dd0761

* changes:
  Generate libc version-script for brillo
  Revert "Don't verify version scripts on 32-bit Brillo"

8 years agoGenerate libc version-script for brillo
Dimitry Ivanov [Mon, 14 Dec 2015 22:07:52 +0000 (14:07 -0800)]
Generate libc version-script for brillo

Brillo doesn't use the ndk cruft, so we need
separate set of version scripts. Added new "nobrillo"
tag to mark such symbols in *.map.txt files.

Bug: http://b/26164862
Change-Id: Iaee1b7119f75b68c2971679fc32817e6df29fd94

8 years agoRevert "Don't verify version scripts on 32-bit Brillo"
Dimitry Ivanov [Mon, 14 Dec 2015 22:18:55 +0000 (14:18 -0800)]
Revert "Don't verify version scripts on 32-bit Brillo"

This reverts commit 31951b7f0dc7ce577a21682e54362b0cf2913e11.

Bug: http://b/26164862

8 years agoMerge "Fix personality test for mips32r6" am: 162a8524ea
Elliott Hughes [Mon, 14 Dec 2015 16:09:39 +0000 (08:09 -0800)]
Merge "Fix personality test for mips32r6" am: 162a8524ea
am: a6286c0901

* commit 'a6286c090127655e8c9ec5f3d9c15fe65acf139f':
  Fix personality test for mips32r6

8 years agoMerge "Fix personality test for mips32r6"
Elliott Hughes [Mon, 14 Dec 2015 16:07:14 +0000 (08:07 -0800)]
Merge "Fix personality test for mips32r6"
am: 162a8524ea

* commit '162a8524ea79564b5c92e5effc86588cac07e23c':
  Fix personality test for mips32r6

8 years agoMerge "Fix personality test for mips32r6"
Elliott Hughes [Mon, 14 Dec 2015 15:59:29 +0000 (15:59 +0000)]
Merge "Fix personality test for mips32r6"

8 years agoFix personality test for mips32r6
Lazar Trsic [Fri, 11 Dec 2015 16:02:49 +0000 (17:02 +0100)]
Fix personality test for mips32r6

When personality syscall is executed on mips64, for a 32bit process,
sys_32_personality() is called, which converts PER_LINUX32 -> PER_LINUX.
Change expected value when mips32 is a second architecture.

For more information see:
https://www.linux-mips.org/archives/linux-mips/2015-08/msg00421.html
https://www.linux-mips.org/archives/linux-mips/2015-11/msg00093.html

Change-Id: I8c9062f536ad6e513f0ac585da3568d80e5fa1b4

8 years agoMerge "Don\'t verify version scripts on 32-bit Brillo" am: a7ff3964ab
Dan Willemsen [Sun, 13 Dec 2015 21:19:32 +0000 (13:19 -0800)]
Merge "Don\'t verify version scripts on 32-bit Brillo" am: a7ff3964ab
am: 66a0ec83d8

* commit '66a0ec83d8a47fa9cc1a840d24d8786f72854df2':
  Don't verify version scripts on 32-bit Brillo

8 years agoAdd CleanSpec for change bb16dcf28ee0f.
Narayan Kamath [Sat, 12 Dec 2015 13:09:45 +0000 (13:09 +0000)]
Add CleanSpec for change bb16dcf28ee0f.

bug: 26162337
Change-Id: I6f5e19183e131c27d077c4f16ee2b6a67dbb2d01

8 years agoMerge "Don\'t verify version scripts on 32-bit Brillo"
Dan Willemsen [Sat, 12 Dec 2015 02:35:02 +0000 (18:35 -0800)]
Merge "Don\'t verify version scripts on 32-bit Brillo"
am: a7ff3964ab

* commit 'a7ff3964abc860f70f242a1d2ee3f6e3e690d4df':
  Don't verify version scripts on 32-bit Brillo

8 years agoMerge "Don't verify version scripts on 32-bit Brillo"
Dan Willemsen [Sat, 12 Dec 2015 02:29:29 +0000 (02:29 +0000)]
Merge "Don't verify version scripts on 32-bit Brillo"

8 years agoDon't verify version scripts on 32-bit Brillo
Dan Willemsen [Sat, 12 Dec 2015 00:38:06 +0000 (16:38 -0800)]
Don't verify version scripts on 32-bit Brillo

Brillo doesn't use the ndk cruft, so the same version scripts do not
apply. Until we have brillo-specific version scripts, just disable the
version script check.

Bug: 26164862
Change-Id: I682860ec1c5b36014c7a6cf24da43df553e9dc9f

8 years agoMerge "Remove __bionic_libgcc_unwind_symbols from version script" am: 52e2db647c
Dimitry Ivanov [Fri, 11 Dec 2015 22:01:08 +0000 (14:01 -0800)]
Merge "Remove __bionic_libgcc_unwind_symbols from version script" am: 52e2db647c
am: bde6ae87c5

* commit 'bde6ae87c571aa3beacf0e23ffb07b80553122a3':
  Remove __bionic_libgcc_unwind_symbols from version script

8 years agoMerge "Remove __bionic_libgcc_unwind_symbols from version script"
Dimitry Ivanov [Fri, 11 Dec 2015 20:02:35 +0000 (12:02 -0800)]
Merge "Remove __bionic_libgcc_unwind_symbols from version script"
am: 52e2db647c

* commit '52e2db647cf2660512d1de3469906e909fa0cd92':
  Remove __bionic_libgcc_unwind_symbols from version script

8 years agoMerge "Remove __bionic_libgcc_unwind_symbols from version script"
Dimitry Ivanov [Fri, 11 Dec 2015 19:41:33 +0000 (19:41 +0000)]
Merge "Remove __bionic_libgcc_unwind_symbols from version script"

8 years agoRemove __bionic_libgcc_unwind_symbols from version script
Dimitry Ivanov [Fri, 11 Dec 2015 19:30:48 +0000 (11:30 -0800)]
Remove __bionic_libgcc_unwind_symbols from version script

Bug: http://b/26004476
Change-Id: Iaa468de4cbcc94e88badc5cde0f4421c710c1f38

8 years agoReset access to system properties on reinitialization
Tom Cherry [Wed, 9 Dec 2015 23:48:15 +0000 (15:48 -0800)]
Reset access to system properties on reinitialization

Treat subsequent calls to __system_properties_init() as a
reinitialization of system properties and revoke access to prop files
that have been previously mapped but that the process's current context
does not have access to.  Additionally reset the no_access_ flag in
case permissions have loosened and previously unaccessible files can now
be accessed.

This is meant to work around an issue that setcon() does not revoke
mmap() mappings, so we must manually revoke them after a successful
setcon() call.

Bug 26114086

Change-Id: I4d690abb6817283ca64ac26ea4c1dad398a98fbc

8 years agoMerge "Move dlsym and dladdr implementation to linker.cpp" am: 0bc3977537
Dimitry Ivanov [Fri, 11 Dec 2015 01:45:58 +0000 (17:45 -0800)]
Merge "Move dlsym and dladdr implementation to linker.cpp" am: 0bc3977537
am: 2db5936bc3

* commit '2db5936bc36801d266ab6f4c089b097d136fca4a':
  Move dlsym and dladdr implementation to linker.cpp

8 years agoMerge "Do not set properties in bionic_systrace" am: e46ded5ce1
Tom Cherry [Fri, 11 Dec 2015 01:44:03 +0000 (17:44 -0800)]
Merge "Do not set properties in bionic_systrace" am: e46ded5ce1
am: 2b268b38ad

* commit '2b268b38ade7434a866a1bd10ff7b38cbb232917':
  Do not set properties in bionic_systrace

8 years agoMerge "Revert "Add /odm/lib to shared lib search path"" am: cb025e55f7
Dimitry Ivanov [Fri, 11 Dec 2015 01:41:17 +0000 (17:41 -0800)]
Merge "Revert "Add /odm/lib to shared lib search path"" am: cb025e55f7
am: 8bad646e8d

* commit '8bad646e8dae16b47fa1c6ee1213f76df3046739':
  Revert "Add /odm/lib to shared lib search path"

8 years agoMerge "Move dlsym and dladdr implementation to linker.cpp"
Dimitry Ivanov [Fri, 11 Dec 2015 01:33:36 +0000 (17:33 -0800)]
Merge "Move dlsym and dladdr implementation to linker.cpp"
am: 0bc3977537

* commit '0bc397753775e4ccc5aaaa53fae11aa5165fea69':
  Move dlsym and dladdr implementation to linker.cpp

8 years agoMerge "Move dlsym and dladdr implementation to linker.cpp"
Dimitry Ivanov [Fri, 11 Dec 2015 01:26:17 +0000 (01:26 +0000)]
Merge "Move dlsym and dladdr implementation to linker.cpp"

8 years agoMove dlsym and dladdr implementation to linker.cpp
Dimitry Ivanov [Fri, 11 Dec 2015 00:08:14 +0000 (16:08 -0800)]
Move dlsym and dladdr implementation to linker.cpp

Bug: http://b/25716705
Bug: http://b/22865643
Change-Id: If22fc1eda219f676b5fcc06490f7901d21d1749c

8 years agoMerge "Do not set properties in bionic_systrace"
Tom Cherry [Thu, 10 Dec 2015 23:14:23 +0000 (15:14 -0800)]
Merge "Do not set properties in bionic_systrace"
am: e46ded5ce1

* commit 'e46ded5ce1582202cb809c907128e423e58ce7ed':
  Do not set properties in bionic_systrace

8 years agoMerge "Do not set properties in bionic_systrace"
Tom Cherry [Thu, 10 Dec 2015 23:05:15 +0000 (23:05 +0000)]
Merge "Do not set properties in bionic_systrace"

8 years agoDo not set properties in bionic_systrace
Tom Cherry [Thu, 10 Dec 2015 21:21:46 +0000 (13:21 -0800)]
Do not set properties in bionic_systrace

Currently, if the debug.atrace.tags.enableflags property is not found,
it is set to a safe value such that a pointer to this property can be
stored for later access.  This may result in selinux denials because not
all processes write permissions for this property or permission to
connect to the property write socket at all.

Change I6d953c0c281fd72ad3eba8a479fd258023579b5b writes this property to
a safe value upon boot, which greatly decreases the cases in which this
property will not be accessible and removes the need to write it here.
This commit removes this write.

Bug 26115803

Change-Id: Ief72c5f731d3a1231b5080eb531fa0a491a8b1d1

8 years agoMerge "Revert "Add /odm/lib to shared lib search path""
Dimitry Ivanov [Thu, 10 Dec 2015 20:23:34 +0000 (12:23 -0800)]
Merge "Revert "Add /odm/lib to shared lib search path""
am: cb025e55f7

* commit 'cb025e55f707216eb36b07f6fc36dcf604a45c07':
  Revert "Add /odm/lib to shared lib search path"

8 years agoMerge "Revert "Add /odm/lib to shared lib search path""
Dimitry Ivanov [Thu, 10 Dec 2015 20:17:02 +0000 (20:17 +0000)]
Merge "Revert "Add /odm/lib to shared lib search path""

8 years agoMerge "constexpr constructor for atfork_list_t" am: 9d8632e1a7
Dimitry Ivanov [Thu, 10 Dec 2015 17:49:42 +0000 (09:49 -0800)]
Merge "constexpr constructor for atfork_list_t" am: 9d8632e1a7
am: a13d5748a4

* commit 'a13d5748a4dc3ca35ad590844fa231b0f929f2c7':
  constexpr constructor for atfork_list_t

8 years agoMerge "constexpr constructor for atfork_list_t"
Dimitry Ivanov [Thu, 10 Dec 2015 17:45:49 +0000 (09:45 -0800)]
Merge "constexpr constructor for atfork_list_t"
am: 9d8632e1a7

* commit '9d8632e1a76de6bd6abc853c0fbd6a2c9dc32cdc':
  constexpr constructor for atfork_list_t

8 years agoMerge "constexpr constructor for atfork_list_t"
Dimitry Ivanov [Thu, 10 Dec 2015 17:39:48 +0000 (17:39 +0000)]
Merge "constexpr constructor for atfork_list_t"

8 years agoMerge "Add permitted_when_isolated_path to linker namespaces" am: 39801757c3
Dimitry Ivanov [Thu, 10 Dec 2015 04:41:29 +0000 (04:41 +0000)]
Merge "Add permitted_when_isolated_path to linker namespaces" am: 39801757c3
am: 6e161cc84e

* commit '6e161cc84efee24b884cf27538ee2980c48c5575':
  Add permitted_when_isolated_path to linker namespaces

8 years agoMerge "Add permitted_when_isolated_path to linker namespaces"
Dimitry Ivanov [Thu, 10 Dec 2015 04:39:11 +0000 (04:39 +0000)]
Merge "Add permitted_when_isolated_path to linker namespaces"
am: 39801757c3

* commit '39801757c3bf688bee28f636959757953b2bb695':
  Add permitted_when_isolated_path to linker namespaces

8 years agoMerge "Add permitted_when_isolated_path to linker namespaces"
Dimitry Ivanov [Thu, 10 Dec 2015 04:34:38 +0000 (04:34 +0000)]
Merge "Add permitted_when_isolated_path to linker namespaces"

8 years agoMerge "Fix -fstack-protector-strong for x86." am: 6500f51c0e
Elliott Hughes [Thu, 10 Dec 2015 02:40:50 +0000 (18:40 -0800)]
Merge "Fix -fstack-protector-strong for x86." am: 6500f51c0e
am: 7041f09c18

* commit '7041f09c18888f22e23c5f43d6222de6883eb689':
  Fix -fstack-protector-strong for x86.

8 years agoMerge "Revert "Ensure that readlink has access to /proc/self/fd"" am: 5a3ab3422d
Dimitry Ivanov [Thu, 10 Dec 2015 02:40:44 +0000 (18:40 -0800)]
Merge "Revert "Ensure that readlink has access to /proc/self/fd"" am: 5a3ab3422d
am: 55f22b3bb0

* commit '55f22b3bb0390fffac1bca368fed6b6534a6ba5e':
  Revert "Ensure that readlink has access to /proc/self/fd"

8 years agoMerge "Fix -fstack-protector-strong for x86."
Elliott Hughes [Thu, 10 Dec 2015 02:38:25 +0000 (18:38 -0800)]
Merge "Fix -fstack-protector-strong for x86."
am: 6500f51c0e

* commit '6500f51c0e3ef37dbda889dbd1125c03c787ae50':
  Fix -fstack-protector-strong for x86.

8 years agoMerge "Fix -fstack-protector-strong for x86."
Elliott Hughes [Thu, 10 Dec 2015 02:33:34 +0000 (02:33 +0000)]
Merge "Fix -fstack-protector-strong for x86."