OSDN Git Service

android-x86/bionic.git
6 years agorelease-request-cff6d9b6-a564-4d17-99cb-c2d0bb282758-for-git_oc-mr1-release-4293817...
android-build-team Robot [Wed, 23 Aug 2017 07:28:27 +0000 (07:28 +0000)]
release-request-cff6d9b6-a564-4d17-99cb-c2d0bb282758-for-git_oc-mr1-release-4293817 snap-temp-L12800000095933585

Change-Id: I172f9fbd5cd13fc72216afee6152022582dca7be

6 years agolibc: Add support to allow library calls to find appropriate shell executable for...
Sandeep Patil [Mon, 21 Aug 2017 19:17:19 +0000 (12:17 -0700)]
libc: Add support to allow library calls to find appropriate shell executable for a process

Library calls like system() and popen() invoke the shell executable
pointed to by '_PATH_BSHELL' in order to run the command passed into the
function. The _PATH_BSHELL points to /system/bin/sh by default and thus
breaks any vendor process trying to use system() / popen(), as they are
denied access to system shell by selinux.

This CL make necessary changes, so the implmentations of system() and popen()
can use the appropriate shell (e.g. /vendor/bin/sh for processes running
out of /vendor partition). Also, changes the implementation of system()
and popen().

Bug: 64832610
Test: Manual, Using a test program running from /system/bin and
      /vendor/bin to ensure correct shell is being used.

Change-Id: Ie7168d69decb1ae98284446ae7db34dec930dc33
Signed-off-by: Sandeep Patil <sspatil@google.com>
6 years agorelease-request-369362fc-cc6c-4cb1-95c0-90b5ac7c52cb-for-git_oc-mr1-release-4288633...
android-build-team Robot [Sun, 20 Aug 2017 07:29:53 +0000 (07:29 +0000)]
release-request-369362fc-cc6c-4cb1-95c0-90b5ac7c52cb-for-git_oc-mr1-release-4288633 snap-temp-L81700000095141745

Change-Id: Ice5606c92e51cd72ab0fb6ff77f4e18b428bc511

6 years agoMerge "Make default namespace handle the 'visible' flag." into oc-mr1-dev
TreeHugger Robot [Fri, 18 Aug 2017 06:18:00 +0000 (06:18 +0000)]
Merge "Make default namespace handle the 'visible' flag." into oc-mr1-dev

6 years agoRevert "Revert "arm64: expand CFI shadow to cover 48-bit virtual addresses""
Evgenii Stepanov [Thu, 3 Aug 2017 01:16:50 +0000 (18:16 -0700)]
Revert "Revert "arm64: expand CFI shadow to cover 48-bit virtual addresses""

This reverts commit ea3df0c52b6ebe5e24f2d36259d97fd06f8e8a1a, and
increases the address limit on non-aarch64 64-bit platforms as well.

RLIMIT_AS problem fixed in a different commit.

Bug: 6314143464293803
Test: device boots

(cherry picked from commit abb163f5f0e3fcba4fd8f75aa0a00e4cf36f7d53)

Change-Id: I53ee7cb50bbc0b535923bee8a8c0e2e416a81d41

6 years ago[cfi] Export __cfi_shadow_size.
Evgenii Stepanov [Wed, 2 Aug 2017 23:34:44 +0000 (16:34 -0700)]
[cfi] Export __cfi_shadow_size.

__cfi_shadow_size returns the size of the CFI shadow mapping, or 0 if
CFI is not (yet) used in this process. This can be used to adjust
RLIMIT_AS setting.

Test: device bionic tests
Bug: 64293803

(cherry picked from commit 97c16f8dca0694abfcdda34f8e01f5e1e989120f)

Change-Id: Ia82152f568e3a80deb902d02fa400e88e3f556bc

6 years agoMake default namespace handle the 'visible' flag.
Justin Yun [Fri, 7 Jul 2017 07:21:53 +0000 (16:21 +0900)]
Make default namespace handle the 'visible' flag.

'visible' flag was interpreted only the namespaces other than 'default'.
The flag has to be handled without exception once it is set.

Bug: 63411330
Test: Build and boot without errors.
Test: Add `namespace.default.visible = true` to [vendor] process in
      'ld.config.txt' and reboot the device.

Merged-In: Ia363dfadf0200317b875e26bb4b2fae849af1384
Change-Id: Ia363dfadf0200317b875e26bb4b2fae849af1384
(cherry picked from commit 90de9f081e098ef019457d6529ef6d7fb3c09873)

6 years agorelease-request-68cc9b2a-98ae-4fbf-8b56-3e535855f399-for-git_oc-mr1-release-4269864...
android-build-team Robot [Sun, 13 Aug 2017 07:27:21 +0000 (07:27 +0000)]
release-request-68cc9b2a-98ae-4fbf-8b56-3e535855f399-for-git_oc-mr1-release-4269864 snap-temp-L25700000092502312

Change-Id: I80913fc21bc7ae6e1fb4af57f2c1b7002b15fcc4

6 years agoFix the sysconf _SC_2_VERSION test.
Elliott Hughes [Fri, 28 Jul 2017 23:53:32 +0000 (16:53 -0700)]
Fix the sysconf _SC_2_VERSION test.

Not sure how this ended up broken. Too many branches!

Bug: http://b/64565873
Test: ran tests

(cherry picked from commit 6c135f4c41c0fafcf270aea5202adc6e68e04b76)

Change-Id: Ie7078541d2a75fb2fbcf03e78a49707307b674c0

6 years agorelease-request-c8b8af6b-4899-402a-9ff7-72255ba5300b-for-git_oc-mr1-release-4253898...
android-build-team Robot [Tue, 8 Aug 2017 07:26:13 +0000 (07:26 +0000)]
release-request-c8b8af6b-4899-402a-9ff7-72255ba5300b-for-git_oc-mr1-release-4253898 snap-temp-L09600000090287887

Change-Id: Iec7c2366abed8d0ede884a6fbe243541877f2eb1

6 years agoAdd O MR1 define
John Reck [Mon, 7 Aug 2017 18:19:17 +0000 (11:19 -0700)]
Add O MR1 define

Bug: 64394076
Test: none
Change-Id: Ice3991c626dd2cce93c9a571ba529fa5b0129492

6 years agorelease-request-d642586e-3e25-49f4-8b4c-acad0e3f63d8-for-git_oc-mr1-release-4249777...
android-build-team Robot [Sun, 6 Aug 2017 07:32:45 +0000 (07:32 +0000)]
release-request-d642586e-3e25-49f4-8b4c-acad0e3f63d8-for-git_oc-mr1-release-4249777 snap-temp-L81500000089724408

Change-Id: I9c2f8d694796fe34be56dec4590fcd807bab25d5

6 years agoRemove a check for AIDs in the OEM range. am: c2c36b661c
Tom Cherry [Fri, 4 Aug 2017 21:31:58 +0000 (21:31 +0000)]
Remove a check for AIDs in the OEM range. am: c2c36b661c
am: fe1dc33b28

Change-Id: Ic2107c9550f368db0ada5cc3f680bf289734a812

6 years agoRemove a check for AIDs in the OEM range.
Tom Cherry [Fri, 4 Aug 2017 21:25:57 +0000 (21:25 +0000)]
Remove a check for AIDs in the OEM range.
am: c2c36b661c

Change-Id: Ic99c543a3cf5eaad251fc07957262f144c5f7b97

6 years agoRemove a check for AIDs in the OEM range.
Tom Cherry [Fri, 4 Aug 2017 18:07:19 +0000 (11:07 -0700)]
Remove a check for AIDs in the OEM range.

Remove the check that AIDs in the OEM range are not defind in
android_filesystem_config, as we do not yet have a good solution for
OEMs to define custom AIDs and what OEMs are currently doing isn't
hurting anything.

Bug: b/64137613
Test: pwd.getpwent_iterate / grp.getgrent_iterate
Change-Id: If98ad4443fe9e827e3f17b3df92eca82763e6290
(cherry picked from commit a14485addeacc23587743dad307184c00224b823)

6 years agoRevert "linker: disable ld.config.txt in ASAN mode"
Jiyong Park [Fri, 4 Aug 2017 01:25:46 +0000 (10:25 +0900)]
Revert "linker: disable ld.config.txt in ASAN mode"

This reverts commit 81b175747d2c7831c010e7e94a6f2572d6dfe437.

Reason: 02586a2a34e6acfccf359b94db840f422b6c0231 fixed the bug that
prevented us from using LD_PRELOAD with multiple namespaces.

Bug: 38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

Merged-In: I25a05927ffbb28b9fa72303652893f43918ccec6
Change-Id: Ib7568d65c2524fd2307d01eb3d50fc308feced9c
(cherry picked from commit 6ab40bbf537d45b171f4830cfa6d82949d4cb258)

6 years agolinker: the global group is added to all built-in namespaces
Jiyong Park [Fri, 19 May 2017 16:01:24 +0000 (01:01 +0900)]
linker: the global group is added to all built-in namespaces

With ld.config.txt, we now have multiple built-in namespaces other than
the default namespace. Libs (and their dependents) listed in LD_PRELOAD
must be visible to those additional namespaces as well.

This also adds a debugging only feature: path to the linker config file
can be customized via LD_CONFIG_FILE environment variable. This works
only for debuggable builds.

Bug: 38114603
Bug: 62815515
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

Merged-In: I9a03591053f4a9caea82f0dcb23e7a3d324bb9bd
Change-Id: I9a03591053f4a9caea82f0dcb23e7a3d324bb9bd
(cherry picked from commit 02586a2a34e6acfccf359b94db840f422b6c0231)

6 years agorelease-request-ca4ad653-1655-436a-b65c-2527b02ae5f2-for-git_oc-mr1-release-4241196...
android-build-team Robot [Thu, 3 Aug 2017 07:38:57 +0000 (07:38 +0000)]
release-request-ca4ad653-1655-436a-b65c-2527b02ae5f2-for-git_oc-mr1-release-4241196 snap-temp-L48200000088705722

Change-Id: I10ee03d8a1013644c1fb79c9f73c1971303c044d

6 years agoMerge "Fix asan path translation loading a library twice." into oc-mr1-dev
Evgenii Stepanov [Wed, 2 Aug 2017 18:11:47 +0000 (18:11 +0000)]
Merge "Fix asan path translation loading a library twice." into oc-mr1-dev

6 years agoFix asan path translation loading a library twice.
Evgenii Stepanov [Thu, 27 Jul 2017 21:55:44 +0000 (14:55 -0700)]
Fix asan path translation loading a library twice.

An ASan binary may load a non-ASan library from /system if /data is not mounted yet.
A dlopen() call for the same library later, when /data/ is available, will translate the path and attempt to load
an ASan copy of the library from /data/asan/system. This way we may end up loading both ASan and non-ASan copies of
the library in the same process, which is a very bad thing.

This change adds a check for a loaded library with the non-translated real path before applying path translation.

Bug: 63622872
Test: hide/rename a library in /data/asan; dlopen; restore the library; dlopen; check that the library from /data/asan is NOT loaded.
Change-Id: I17060837f08dc3c665cab803dd89979d88f0a019

6 years agorelease-request-08461da0-a262-4ebb-8c32-784b60a151df-for-git_oc-mr1-release-4216972...
android-build-team Robot [Wed, 26 Jul 2017 07:27:31 +0000 (07:27 +0000)]
release-request-08461da0-a262-4ebb-8c32-784b60a151df-for-git_oc-mr1-release-4216972 snap-temp-L74000000086000437

Change-Id: Ie015f25a29434c5803ea35033c356713bedbe682

6 years agoMake xfail passes not failures. am: b09c4fc957
Elliott Hughes [Tue, 25 Jul 2017 19:23:40 +0000 (19:23 +0000)]
Make xfail passes not failures. am: b09c4fc957
am: 9a1df36a07

Change-Id: I3b7b93492eab22e901ada3161771b132181a580b

6 years agoMake xfail passes not failures.
Elliott Hughes [Tue, 25 Jul 2017 19:20:10 +0000 (19:20 +0000)]
Make xfail passes not failures.
am: b09c4fc957

Change-Id: Ie5b2746ac6be0a140c1f15679038a95b33505d08

6 years agoMake xfail passes not failures.
Elliott Hughes [Sat, 22 Jul 2017 01:51:06 +0000 (18:51 -0700)]
Make xfail passes not failures.

Bug: http://b/63703384
Test: ran tests

(cherry picked from commit 93a89f84e4616070bccfc1c9c898b5e88f1c21d6)

Change-Id: I63dff7748cbc4b3c1822a16c8bb9c839d148695b

6 years agorelease-request-bd6aa7dd-7b02-4794-942c-14599bf61208-for-git_oc-mr1-release-4193791...
android-build-team Robot [Wed, 19 Jul 2017 07:25:08 +0000 (07:25 +0000)]
release-request-bd6aa7dd-7b02-4794-942c-14599bf61208-for-git_oc-mr1-release-4193791 snap-temp-L98700000083613807

Change-Id: I409acdff19b7a04084bb6f1bab69b9f1b69fb537

6 years agoMerge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4 am: b2870803ba am: 0747ffb7a3
Dan Albert [Wed, 19 Jul 2017 05:52:48 +0000 (05:52 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4 am: b2870803ba am: 0747ffb7a3
am: 6f6c1cf73c

Change-Id: Ie3ad8afc7d12ffcdedcefb7573dbcd988ca1e01d

6 years agoMerge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4 am: b2870803ba
Dan Albert [Wed, 19 Jul 2017 05:49:48 +0000 (05:49 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4 am: b2870803ba
am: 0747ffb7a3

Change-Id: Ib2696d246a59cdb6b16c02b62109b570bd246d3c

6 years agoMerge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4
Dan Albert [Wed, 19 Jul 2017 05:47:18 +0000 (05:47 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am: 0d6485eca4
am: b2870803ba

Change-Id: I7ff86b0bcb562d8aa50b330a66283f91dd181732

6 years agoMerge "Add __RENAME_IF_FILE_OFFSET64."
Dan Albert [Wed, 19 Jul 2017 05:44:25 +0000 (05:44 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64."
am: 0d6485eca4

Change-Id: If9a663b7f780dc9b6c6031740940ab432d492f29

6 years agoMerge "Add __RENAME_IF_FILE_OFFSET64."
Treehugger Robot [Wed, 19 Jul 2017 05:37:13 +0000 (05:37 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64."

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 23:00:21 +0000 (23:00 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4 am: ac62e82856 am: 1001ee78ba
am: eba2e77eb6

Change-Id: I39233540d7e5d22552231a0050664d3d9f479e27

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 23:00:05 +0000 (23:00 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4 am: ac62e82856 am: e3c809f863
am: 6c960cde6d

Change-Id: I7489adebbee754ebb4c25a89aab69bb1bac14f78

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:45:43 +0000 (22:45 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4 am: ac62e82856
am: 1001ee78ba

Change-Id: I83bab5c56d0319ed64aef16db86f44fceaac9fc3

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:43:58 +0000 (22:43 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4 am: ac62e82856
am: e3c809f863

Change-Id: Ia52ceaf0609d026cfd9fa8459f159c9e2c82583a

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:41:11 +0000 (22:41 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4
am: ac62e82856

Change-Id: I85aa7c0068125a60238629fdb31b325e0eca49a3

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:39:52 +0000 (22:39 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67 am: 43475fdae4
am: ac62e82856

Change-Id: Ia52482412ae2c2a428c90f30c734ebdb2cad8a54

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:37:42 +0000 (22:37 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d am: 46dfffdc67
am: 43475fdae4

Change-Id: Ia526ffd192f8830efcc5768c62d0758df2109da4

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:30:40 +0000 (22:30 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44 am: ee7deb734d
am: 46dfffdc67

Change-Id: I3a1e3dfa091c3e43c1e73700db6d6c9c686b54ef

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:27:52 +0000 (22:27 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31 am: 2542cfdb44
am: ee7deb734d

Change-Id: If8881fa07f5f050dc0c15af7177d003801dd0269

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:24:09 +0000 (22:24 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971 am: 9bc88caa31
am: 2542cfdb44

Change-Id: Ie9bce8dfd0722e50026a0aa5d1d81c70725fcd28

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:22:09 +0000 (22:22 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62 am: 8666246971
am: 9bc88caa31

Change-Id: I89d5e919ef7bc13df36df63baaeaff7517c0b962

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:20:10 +0000 (22:20 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa am: 781c67bd62
am: 8666246971

Change-Id: Id6f8e6908119ba309f555501b6bab6181cf16bec

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:18:14 +0000 (22:18 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326 am: 6cb0d4b2aa
am: 781c67bd62

Change-Id: I2da0ca80ec42389add7b786a66e9a8d4fdc83254

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:15:17 +0000 (22:15 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours am: 3c77ef5326
am: 6cb0d4b2aa

Change-Id: I5a2b6fcb300b86ab15c2d8fe8cf253e5f2ce03b2

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b2586...
dimitry [Tue, 18 Jul 2017 22:11:40 +0000 (22:11 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0 am: a5f74a4a80  -s ours
am: 3c77ef5326

Change-Id: I812f929ce4704bd374e9267aeecca957e1d92d5c

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0
dimitry [Tue, 18 Jul 2017 22:05:09 +0000 (22:05 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am: d6b25861d0
am: a5f74a4a80  -s ours

Change-Id: Ic277a838f4c2c974aa37514bbd073413c117f8e5

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670
dimitry [Tue, 18 Jul 2017 21:48:06 +0000 (21:48 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670
am: d6b25861d0

Change-Id: If9f751cf09c6551aababec28b6100fd77c3b510d

6 years agoMerge "Remove weaker _POSIX_THREAD_PROCESS_SHARED test."
TreeHugger Robot [Tue, 18 Jul 2017 19:55:09 +0000 (19:55 +0000)]
Merge "Remove weaker _POSIX_THREAD_PROCESS_SHARED test."

6 years agoMerge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748...
Elliott Hughes [Tue, 18 Jul 2017 18:36:12 +0000 (18:36 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748 am: 1498e806c9 am: 86c1846e23
am: c022475d4f

Change-Id: Id2b92a2ff66c3122f0473666cdc8cf528548a5c2

6 years agoMerge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748...
Elliott Hughes [Tue, 18 Jul 2017 18:30:32 +0000 (18:30 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748 am: 1498e806c9
am: 86c1846e23

Change-Id: I50d6f2cf31dcbe0e7bce925ce7de71d148b24418

6 years agoMerge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748
Elliott Hughes [Tue, 18 Jul 2017 18:26:00 +0000 (18:26 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am: a571e9e748
am: 1498e806c9

Change-Id: I1c1e5df9917b56e9942858e76246bf8aa2e644d9

6 years agoMerge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."
Elliott Hughes [Tue, 18 Jul 2017 18:20:11 +0000 (18:20 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."
am: a571e9e748

Change-Id: I6f646e36ae2de0a50dac703fcac385fb116035e3

6 years agoMerge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."
Elliott Hughes [Tue, 18 Jul 2017 18:04:25 +0000 (18:04 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."

6 years agorelease-request-e04bb055-13fc-41a1-8a9f-7fb10894ec3d-for-git_oc-mr1-release-4189380...
android-build-team Robot [Tue, 18 Jul 2017 07:36:53 +0000 (07:36 +0000)]
release-request-e04bb055-13fc-41a1-8a9f-7fb10894ec3d-for-git_oc-mr1-release-4189380 snap-temp-L90600000083186678

Change-Id: I86bb57e68e2603278ac0ac96a937125fe5d5905b

6 years agoRemove weaker _POSIX_THREAD_PROCESS_SHARED test.
Elliott Hughes [Tue, 18 Jul 2017 00:14:02 +0000 (17:14 -0700)]
Remove weaker _POSIX_THREAD_PROCESS_SHARED test.

This branch (master, which will be o-mr1) already has a stronger test
than this one (which was added for o-dr, which doesn't have its own API
level).

Bug: http://b/62424597
Test: ran tests
Change-Id: Icfb7b50fa3c5b6d256d378add12c854a899a1c92

6 years agoMerge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: e69278094a" into...
Elliott Hughes [Mon, 17 Jul 2017 22:37:03 +0000 (22:37 +0000)]
Merge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: e69278094a" into oc-dr1-dev-plus-aosp
am: 43bf301553

Change-Id: Ia7bb6ea599bcce05fa7116fbd64fd1ff5e45cd4a

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: f58c401672
Elliott Hughes [Mon, 17 Jul 2017 22:36:49 +0000 (22:36 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: f58c401672
am: a3abe4b3ac

Change-Id: I602285464d04fce37d50a8ae6cba20278caecc87

6 years agoMerge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: e69278094a" into...
Android Build Merger (Role) [Mon, 17 Jul 2017 22:34:39 +0000 (22:34 +0000)]
Merge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5 am: e69278094a" into oc-dr1-dev-plus-aosp

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5
Elliott Hughes [Mon, 17 Jul 2017 22:34:30 +0000 (22:34 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5
am: e69278094a

Change-Id: Ie69c304454c7fd31b8d69bcf316cd9f4cf8988bd

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5
Elliott Hughes [Mon, 17 Jul 2017 22:34:16 +0000 (22:34 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am: 7b41aaf3d5
am: f58c401672

Change-Id: I82012d0143b4548144d37926acb58ba89680fb6b

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test.
Elliott Hughes [Mon, 17 Jul 2017 22:31:46 +0000 (22:31 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
am: 7b41aaf3d5

Change-Id: Ieb17d253ea1e421219c04ffdb804c2e8460d997e

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test.
Elliott Hughes [Mon, 17 Jul 2017 22:31:46 +0000 (22:31 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
am: 7b41aaf3d5

Change-Id: I7f8920c2dfa00dfe7de504c41caefa9d1c8dc727

6 years agoMerge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6...
Elliott Hughes [Mon, 17 Jul 2017 22:02:14 +0000 (22:02 +0000)]
Merge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6e am: b00d0984fd am: 9ef11a7fc4
am: 4f383811e5

Change-Id: Ide2a3d9211b2046d6ceb6fc295413c5497cb6ba1

6 years agoDocument the intricacies of `_FILE_OFFSET_BITS=32` for LP32.
Elliott Hughes [Wed, 12 Jul 2017 22:02:20 +0000 (15:02 -0700)]
Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32.

Bug: https://github.com/android-ndk/ndk/issues/453
Test: N/A
Change-Id: I5c00e63c861b19071229d2eae737dfbeb550e7e8

6 years agoMerge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6...
Elliott Hughes [Mon, 17 Jul 2017 21:59:44 +0000 (21:59 +0000)]
Merge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6e am: b00d0984fd
am: 9ef11a7fc4

Change-Id: I5a9b6b4cd09c5ff48bad3461780a5964c649d162

6 years agoMerge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6e
Elliott Hughes [Mon, 17 Jul 2017 21:57:14 +0000 (21:57 +0000)]
Merge "Make _scan_nan a bit less visible for libandroid_support users." am: fbd8762e6e
am: b00d0984fd

Change-Id: Ibedfe6af4148d1d06db5845304ff2b9102f6d150

6 years agoMerge "Make _scan_nan a bit less visible for libandroid_support users."
Elliott Hughes [Mon, 17 Jul 2017 21:54:43 +0000 (21:54 +0000)]
Merge "Make _scan_nan a bit less visible for libandroid_support users."
am: fbd8762e6e

Change-Id: I6e8ad0611f54790d76663ebc427866d5737ae6b5

6 years agoMerge "Make _scan_nan a bit less visible for libandroid_support users."
Elliott Hughes [Mon, 17 Jul 2017 21:45:46 +0000 (21:45 +0000)]
Merge "Make _scan_nan a bit less visible for libandroid_support users."

6 years agoAdd __RENAME_IF_FILE_OFFSET64.
Dan Albert [Mon, 17 Jul 2017 21:05:44 +0000 (14:05 -0700)]
Add __RENAME_IF_FILE_OFFSET64.

Convenience macro for __RENAME if __USE_FILE_OFFSET64 mode. Lets us
avoid duplicating all the doxygen comments in frameworks headers.

Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/459
Change-Id: Ica44f22b2f1596e484694006c0926d94d16187b5

6 years agoMake _scan_nan a bit less visible for libandroid_support users.
Elliott Hughes [Mon, 17 Jul 2017 18:23:02 +0000 (11:23 -0700)]
Make _scan_nan a bit less visible for libandroid_support users.

Bug: N/A
Test: readelf
Change-Id: Ibb5fbf09f6ae589a3e789107a641013fc6bc375b

6 years agoloader: fix dlopen performance regression caused by fix for CVE-2017-0670
dimitry [Mon, 17 Jul 2017 09:24:54 +0000 (11:24 +0200)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670

Fix for CVE-2017-0670 in lmp-mr1 branch caused significant slowdowns
on dlopens for libraries with large dependency trees. Modified
is_recursive check led to unecessary check of already linked libraries.

This change excludes already loaded and linked libraries from this check
since it is redundant - linker already did it while loading these
libraries.

Bug: 63658102
Test: run bionic-unit-tests --gtest_filter=dl*:Dl*
Test: manually check load times for libraries with large dependency trees.
Change-Id: Idf25376f4889c4430442ff16a16e1d79ccb77b27

6 years agorelease-request-05263112-375a-4b1f-a657-a14bb2a5c5a3-for-git_oc-mr1-release-4185249...
android-build-team Robot [Sun, 16 Jul 2017 07:29:08 +0000 (07:29 +0000)]
release-request-05263112-375a-4b1f-a657-a14bb2a5c5a3-for-git_oc-mr1-release-4185249 snap-temp-L63000000082739046

Change-Id: I341d4b5740436a4ce6a54432fdf6cd610ad29cad

6 years agoMerge "Hide various mbstate implementation details." am: dcdd0e3760 am: 452c185a0b...
Elliott Hughes [Sat, 15 Jul 2017 03:33:16 +0000 (03:33 +0000)]
Merge "Hide various mbstate implementation details." am: dcdd0e3760 am: 452c185a0b am: 7267c89021
am: 65cad047d5

Change-Id: I9120ec32e519e6a98acd01e5d27f7d3cc06ef9bc

6 years agoMerge "Hide various mbstate implementation details." am: dcdd0e3760 am: 452c185a0b
Elliott Hughes [Sat, 15 Jul 2017 03:28:17 +0000 (03:28 +0000)]
Merge "Hide various mbstate implementation details." am: dcdd0e3760 am: 452c185a0b
am: 7267c89021

Change-Id: I9f2527098d402a44e5b8027ad1f205d4802d4566

6 years agoMerge "Hide various mbstate implementation details." am: dcdd0e3760
Elliott Hughes [Sat, 15 Jul 2017 03:23:47 +0000 (03:23 +0000)]
Merge "Hide various mbstate implementation details." am: dcdd0e3760
am: 452c185a0b

Change-Id: Ic0e08363041365345232755d678d9caf2a2c4541

6 years agoMerge "Hide various mbstate implementation details."
Elliott Hughes [Sat, 15 Jul 2017 03:19:16 +0000 (03:19 +0000)]
Merge "Hide various mbstate implementation details."
am: dcdd0e3760

Change-Id: I4f2941939f40c04344f3f9dcfd5debe7780d9275

6 years agoMerge "Hide various mbstate implementation details."
Treehugger Robot [Sat, 15 Jul 2017 03:12:36 +0000 (03:12 +0000)]
Merge "Hide various mbstate implementation details."

6 years agoMerge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804 am: 18f0ad8b86...
Elliott Hughes [Sat, 15 Jul 2017 01:24:19 +0000 (01:24 +0000)]
Merge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804 am: 18f0ad8b86 am: 9be4255829
am: 7b97ed787f

Change-Id: I0be3409298d0d284dad02d1b697ec944df7d10d3

6 years agoMerge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804 am: 18f0ad8b86
Elliott Hughes [Sat, 15 Jul 2017 01:20:52 +0000 (01:20 +0000)]
Merge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804 am: 18f0ad8b86
am: 9be4255829

Change-Id: Ia9b2eda7cd3a196112a8d1f9d160963c3defb376

6 years agoMerge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804
Elliott Hughes [Sat, 15 Jul 2017 01:16:38 +0000 (01:16 +0000)]
Merge "Allow passing filenames to generate-NOTICE.py." am: 65cebf0804
am: 18f0ad8b86

Change-Id: I254d4fbb8fb2efffec04288c3b313e3a7285988b

6 years agoMerge "Allow passing filenames to generate-NOTICE.py."
Elliott Hughes [Sat, 15 Jul 2017 01:12:39 +0000 (01:12 +0000)]
Merge "Allow passing filenames to generate-NOTICE.py."
am: 65cebf0804

Change-Id: Iaa397d7a3065ae6514e26c2c4d5e69eb0ca04ede

6 years agoMerge "Allow passing filenames to generate-NOTICE.py."
Treehugger Robot [Sat, 15 Jul 2017 01:07:39 +0000 (01:07 +0000)]
Merge "Allow passing filenames to generate-NOTICE.py."

6 years agoHide various mbstate implementation details.
Elliott Hughes [Sat, 15 Jul 2017 00:00:05 +0000 (17:00 -0700)]
Hide various mbstate implementation details.

...by inlining them.

Also fix a couple of harmless bugs in passing. I've added tests, but in
both cases I don't think it was actually possible to hit the bad behavior:
we'd hit another test and fail immediately after in an externally
indistinguishable way.

Bug: N/A
Test: readelf
Change-Id: I8466050b0bfe2b7b94c76b383cf10c1d9d28debd

6 years agoAllow passing filenames to generate-NOTICE.py.
Elliott Hughes [Fri, 14 Jul 2017 17:00:32 +0000 (10:00 -0700)]
Allow passing filenames to generate-NOTICE.py.

For the libandroid_support NOTICE file, we need to combine all the files
in that directory, plus the specific files pulled from bionic.

Also cleaned up some of the Python style.

Bug: N/A
Test: used for libandroid_support
Change-Id: If433e3a0f0478f06d99a9b3556e99dde06a7e5e1

6 years agoMerge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89...
Jiyong Park [Fri, 14 Jul 2017 22:27:14 +0000 (22:27 +0000)]
Merge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89 am: 510d9236dd am: 89db25a0a0
am: 6542e1b906

Change-Id: I45e51291b51661d37e7ee26f43742ce23a05876d

6 years agoMerge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89...
Jiyong Park [Fri, 14 Jul 2017 22:23:17 +0000 (22:23 +0000)]
Merge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89 am: 510d9236dd
am: 89db25a0a0

Change-Id: Id2d0206490dca5ed0b971bd11adc146a1fffe86b

6 years agoMerge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89
Jiyong Park [Fri, 14 Jul 2017 22:19:14 +0000 (22:19 +0000)]
Merge "__cfi_slowpath[_diag] are available to NDK and VNDK clients" am: b1c3da1d89
am: 510d9236dd

Change-Id: I31c4f6a26932e9f6564704a82016a629483a3d5b

6 years agoMerge "__cfi_slowpath[_diag] are available to NDK and VNDK clients"
Jiyong Park [Fri, 14 Jul 2017 22:15:53 +0000 (22:15 +0000)]
Merge "__cfi_slowpath[_diag] are available to NDK and VNDK clients"
am: b1c3da1d89

Change-Id: Ib34c688064d470a5f7fe546013bae0a83985d66a

6 years agoMerge "__cfi_slowpath[_diag] are available to NDK and VNDK clients"
Treehugger Robot [Fri, 14 Jul 2017 22:09:50 +0000 (22:09 +0000)]
Merge "__cfi_slowpath[_diag] are available to NDK and VNDK clients"

6 years agoMerge "libm symbol cleanup." am: 4ebed99e25 am: 8d21ab4fda am: 3cefa966ef
Elliott Hughes [Fri, 14 Jul 2017 19:06:15 +0000 (19:06 +0000)]
Merge "libm symbol cleanup." am: 4ebed99e25 am: 8d21ab4fda am: 3cefa966ef
am: 6c031d1c12

Change-Id: I412a3ea79fd362c922e7ba0507dee87a0abdef6b

6 years agoMerge "libm symbol cleanup." am: 4ebed99e25 am: 8d21ab4fda
Elliott Hughes [Fri, 14 Jul 2017 19:02:42 +0000 (19:02 +0000)]
Merge "libm symbol cleanup." am: 4ebed99e25 am: 8d21ab4fda
am: 3cefa966ef

Change-Id: I8f408ca57cabc94da60296e131c99cb78fa3de2d

6 years agoMerge "libm symbol cleanup." am: 4ebed99e25
Elliott Hughes [Fri, 14 Jul 2017 18:59:11 +0000 (18:59 +0000)]
Merge "libm symbol cleanup." am: 4ebed99e25
am: 8d21ab4fda

Change-Id: I8b7d3451e165e7d696cbaa9a3f314f909c3d6b0f

6 years agoMerge "libm symbol cleanup."
Elliott Hughes [Fri, 14 Jul 2017 18:55:42 +0000 (18:55 +0000)]
Merge "libm symbol cleanup."
am: 4ebed99e25

Change-Id: I1019918ae9598c91300749619a90fddb74796b64

6 years agoMerge "libm symbol cleanup."
Treehugger Robot [Fri, 14 Jul 2017 18:51:03 +0000 (18:51 +0000)]
Merge "libm symbol cleanup."

6 years agolibm symbol cleanup.
Elliott Hughes [Fri, 14 Jul 2017 00:30:06 +0000 (17:30 -0700)]
libm symbol cleanup.

Some of this code is used in the NDK libandroid_support now, as a static
library, so just being HIDDEN in the ELF sense isn't sufficient.

Rename digittoint to __libm_digittoint so we don't trample anyone's toes.

Also remove imprecise_powl and imprecise_tgammal. It turns out (to my
surprise) that we don't even have ld128 implementations of powl and tgammal,
so even LP64 was just using the "fake_long_double.c" hack in effect. Since
that's the case, let's *actually* do that because then we're not polluting
with the internal names in addition to the aliases.

Bug: N/A
Test: readelf
Change-Id: I273cc8fdc7ce53f9b8dfd4ef7796e358fe901837

6 years agoLoosen _POSIX_THREAD_PROCESS_SHARED test.
Elliott Hughes [Thu, 13 Jul 2017 17:28:21 +0000 (10:28 -0700)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.

Bug: http://b/62424597
Test: bionic unistd.sysconf test
Change-Id: I4adb6d227f761360e9d3fe084a45c386bc6944da

6 years agoMerge "Fix unistd._POSIX_macros_smoke test." am: 03e9c498d4 am: 5a99bd4ea7 am: 1e4853a6df
Elliott Hughes [Thu, 13 Jul 2017 19:44:55 +0000 (19:44 +0000)]
Merge "Fix unistd._POSIX_macros_smoke test." am: 03e9c498d4 am: 5a99bd4ea7 am: 1e4853a6df
am: accad92a3b

Change-Id: Id2a430753c0980d124fb9b7618b85261f3defded

6 years agoMerge "Move wchar _l functions out of wchar.cpp." am: 78c8b306ee am: 021d7ca543 am...
Dan Albert [Thu, 13 Jul 2017 19:44:43 +0000 (19:44 +0000)]
Merge "Move wchar _l functions out of wchar.cpp." am: 78c8b306ee am: 021d7ca543 am: aa47998465
am: cc44261d4e

Change-Id: If1b050fe01495397b9f7eb241bd85b0fe310a06f

6 years agoMerge "Fix unistd._POSIX_macros_smoke test." am: 03e9c498d4 am: 5a99bd4ea7
Elliott Hughes [Thu, 13 Jul 2017 19:39:57 +0000 (19:39 +0000)]
Merge "Fix unistd._POSIX_macros_smoke test." am: 03e9c498d4 am: 5a99bd4ea7
am: 1e4853a6df

Change-Id: I0cbe6646ff90d037e5af482acd5666a9c37a9564

6 years agoMerge "Move wchar _l functions out of wchar.cpp." am: 78c8b306ee am: 021d7ca543
Dan Albert [Thu, 13 Jul 2017 19:39:44 +0000 (19:39 +0000)]
Merge "Move wchar _l functions out of wchar.cpp." am: 78c8b306ee am: 021d7ca543
am: aa47998465

Change-Id: Ib946f3cf772a7cd51dda1462ee92fd9959fe7b1d