OSDN Git Service

android-x86/bionic.git
7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 years agoMerge "Shave another uninteresting stack frame off aborts." into oc-dr1-dev
TreeHugger Robot [Fri, 23 Jun 2017 20:28:29 +0000 (20:28 +0000)]
Merge "Shave another uninteresting stack frame off aborts." into oc-dr1-dev

7 years agoExpand Seccomp whitelist
Paul Lawrence [Fri, 23 Jun 2017 19:28:15 +0000 (19:28 +0000)]
Expand Seccomp whitelist
am: c0c56ec7ce

Change-Id: Ic29b7a227acae74444c1534ccc9366b1891ce3bf

7 years agoExpand Seccomp whitelist
Paul Lawrence [Fri, 23 Jun 2017 15:10:18 +0000 (08:10 -0700)]
Expand Seccomp whitelist

This seccomp failure is in the fault handler:

05-25 12:03:25.042 10201 27425 27425 F DEBUG   : backtrace:
05-25 12:03:25.042 10201 27425 27425 F DEBUG   :     #00 pc 00015380
/data/data/redacted/files/storage/lib/libcrashsdk.so

So whenever an app using this crash sdk crashes it looks like a seccomp
problem.  Fixing this won't stop the apps crashing, but will make the
crash reports accurate and useful.

So yes, the bug below is already fixed, but this issue has come back 2
or 3 times with different apps (b/62090571, b/62874867). This change
doesn't fix that crash either, but again it improves the reporting.

Bug: 62947697
Test: Device boots, app still fails but no longer with SECCOMP error
Change-Id: Ie0f8dc965001c8bc43f6a545b35bdcd38f006213

7 years agoShave another uninteresting stack frame off aborts.
Elliott Hughes [Tue, 20 Jun 2017 21:26:56 +0000 (14:26 -0700)]
Shave another uninteresting stack frame off aborts.

With this, stack frame 0 is the abort, not tgkill.

arm:

     #00 pc 0001a41c  /system/lib/libc.so (abort+63)

arm64:

     #00 pc 000000000001d75c  /system/lib64/libc.so (abort+120)

Also "include what you use" for <sys/syscall.h>.

(cherry picked from commit d7c52625f2da8322b4f0adb4c67674f0d66e619a)

Bug: 62810360
Test: ran `crasher abort` and `crasher64 abort`
Change-Id: I6517ac67b39b4133e890d52efc115071c812958b

7 years agoWhitelist __NR__newselect.
Josh Gao [Fri, 23 Jun 2017 06:16:37 +0000 (06:16 +0000)]
Whitelist __NR__newselect.
am: d87e5aa769

Change-Id: Ib15584b751ff4dd99060ba272a260b14eba6c1b8

7 years agoWhitelist __NR__newselect.
Josh Gao [Thu, 22 Jun 2017 23:46:19 +0000 (16:46 -0700)]
Whitelist __NR__newselect.

Bug: http://b/62779795
Test: treehugger
Merged-In: I3e0279385641d4f06fcdeb955819a01c12c5229e
Change-Id: I3e0279385641d4f06fcdeb955819a01c12c5229e
(cherry picked from commit c45b5881121f9c3af50af3f76113b09d0144f60d)

7 years agobionic: tests: only test falloc_punch on ext4 am: 47a52109a4
Matthias Hausner [Sat, 3 Jun 2017 21:24:40 +0000 (21:24 +0000)]
bionic: tests: only test falloc_punch on ext4 am: 47a52109a4
am: 7864cb7495

Change-Id: I3f4ea6bd21e81902c1ea7a7053599dc3314e709d

7 years agobionic: tests: only test falloc_punch on ext4
Matthias Hausner [Sat, 3 Jun 2017 21:20:40 +0000 (21:20 +0000)]
bionic: tests: only test falloc_punch on ext4
am: 47a52109a4

Change-Id: Ie12666653eaf324dc6d93f09d20000e3d8a87281

7 years agoMerge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac am: 734a59577e
Christopher Ferris [Fri, 2 Jun 2017 22:18:41 +0000 (22:18 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac am: 734a59577e
am: eda488216a

Change-Id: I0409a3cbef6fb0d159a5a92bc99949e288508f6b

7 years agoMerge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac
Christopher Ferris [Fri, 2 Jun 2017 22:16:11 +0000 (22:16 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac
am: 734a59577e

Change-Id: I67d5acc79f0ebc5a6568cb5918de058dbde13e54

7 years agoMerge "Use libdemangle for function names." am: 5c76fec282
Christopher Ferris [Fri, 2 Jun 2017 22:12:12 +0000 (22:12 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282
am: 0b65dc85ac

Change-Id: I78957fcc07495269d5d6ac924c7cde64f5edb8c8

7 years agoMerge "Use libdemangle for function names."
Christopher Ferris [Fri, 2 Jun 2017 22:09:10 +0000 (22:09 +0000)]
Merge "Use libdemangle for function names."
am: 5c76fec282

Change-Id: Iabe599c79e7662594a32431aad12d711f9c0e4dc

7 years agoMerge "Use libdemangle for function names."
Christopher Ferris [Fri, 2 Jun 2017 22:02:53 +0000 (22:02 +0000)]
Merge "Use libdemangle for function names."

7 years agobionic: tests: only test falloc_punch on ext4
Matthias Hausner [Fri, 2 Jun 2017 17:09:19 +0000 (10:09 -0700)]
bionic: tests: only test falloc_punch on ext4

Test fcntl#falloc_punch is wrong. It checks that fallocate() with mode
FALLOC_FL_PUNCH_HOLE fails on ext4 file system on older kernels. The
test fails to ensure that the file it creates is indeed on an ext4
partition. On an Angelfish device for example, the file is created on an
f2fs partition, which supports FALLOC_FL_PUNCH_HOLE, and thus the test
fails (wrongly).

Change-Id: I23c1ba4d0fcee81551531779e93ac3d5e19ba1d7
Fixes: 62220977
Test: run bionic-unit-tests as per bionic/README.md###Device tests
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
7 years agoUse libdemangle for function names.
Christopher Ferris [Thu, 1 Jun 2017 21:16:32 +0000 (14:16 -0700)]
Use libdemangle for function names.

Bug: 62141808

Test: Ran unit tests, ran malloc debug with leaks and verified functions
Test: are demangled.
Change-Id: I1900632e9a55bb818b1aabc798224ff3eebc1fca

7 years agoMerge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121 am: 0c124...
Elliott Hughes [Fri, 2 Jun 2017 00:02:11 +0000 (00:02 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121 am: 0c12408773
am: 6ab21db586

Change-Id: I143c3f9f120b0f1a90d630a8454fa7c64336dfe8

7 years agoMerge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121
Elliott Hughes [Thu, 1 Jun 2017 23:49:11 +0000 (23:49 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121
am: 0c12408773

Change-Id: Ic6f893ce4675e42935af9919be79988fe319a9ad

7 years agoMerge "Fix boost build with unified headers." am: 498b4de964
Elliott Hughes [Thu, 1 Jun 2017 23:41:09 +0000 (23:41 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964
am: 799a5c4121

Change-Id: I3e13ef7804daa5d15aa3f51ef9402fe48cccdec4

7 years agoMerge "Fix boost build with unified headers."
Elliott Hughes [Thu, 1 Jun 2017 23:37:39 +0000 (23:37 +0000)]
Merge "Fix boost build with unified headers."
am: 498b4de964

Change-Id: I5cd210231b3c254e272ad0db5d77f02dad5466b9

7 years agoMerge "Fix boost build with unified headers."
Treehugger Robot [Thu, 1 Jun 2017 23:30:56 +0000 (23:30 +0000)]
Merge "Fix boost build with unified headers."

7 years agoFix boost build with unified headers.
Elliott Hughes [Thu, 1 Jun 2017 21:08:58 +0000 (14:08 -0700)]
Fix boost build with unified headers.

boost (1.64.0 at least) assumes that if you have POSIX_MADV_NORMAL, you have
posix_madvise. With unified headers, this isn't true. Rather than make life
harder for projects that don't use configure, just make it so. We already
applied similar workarounds for epoll_create1 and inotify_init1.

Bug: https://github.com/android-ndk/ndk/issues/395
Test: built boost (long story!)
Change-Id: I5d2d8de7b30921dde913251d35dcd249a2876f94

7 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255 am: 85fb061c24
Goran Ferenc [Thu, 1 Jun 2017 18:04:46 +0000 (18:04 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255 am: 85fb061c24
am: 12678c583c

Change-Id: Icb5035f697c0575ab940c50d62db5c65f259eef4

7 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255
Goran Ferenc [Thu, 1 Jun 2017 17:59:47 +0000 (17:59 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255
am: 85fb061c24

Change-Id: Idc1b6422a1c3213d0c746e135f6c15b49fc5dbc8

7 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9
Goran Ferenc [Thu, 1 Jun 2017 17:56:43 +0000 (17:56 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9
am: d32465b255

Change-Id: I9679f0f032d463fbde8996a9174938476f10d276

7 years agoMerge "MIPS: 32/64-bit VDSO support"
Goran Ferenc [Thu, 1 Jun 2017 17:54:12 +0000 (17:54 +0000)]
Merge "MIPS: 32/64-bit VDSO support"
am: 72c8fce6c9

Change-Id: I51eb897eae07978233f49cc2dce292df98a5daf1

7 years agoMerge "MIPS: 32/64-bit VDSO support"
Treehugger Robot [Thu, 1 Jun 2017 17:44:40 +0000 (17:44 +0000)]
Merge "MIPS: 32/64-bit VDSO support"

7 years agoMove mallopt to correct section. am: 8d88abc6c6 -s ours
Christopher Ferris [Thu, 1 Jun 2017 15:58:35 +0000 (15:58 +0000)]
Move mallopt to correct section. am: 8d88abc6c6  -s ours
am: 025bd7a109

Change-Id: I178dff33ef924eee44f6deb43a42dd4e83b226a3

7 years agoMove mallopt to correct section.
Christopher Ferris [Thu, 1 Jun 2017 15:56:03 +0000 (15:56 +0000)]
Move mallopt to correct section.
am: 8d88abc6c6  -s ours

Change-Id: Ifca710e9b54519033f4beee5c5bcf92b1fdffbe1

7 years agoMIPS: 32/64-bit VDSO support
Goran Ferenc [Tue, 30 May 2017 14:00:41 +0000 (16:00 +0200)]
MIPS: 32/64-bit VDSO support

File libc/SYSCALLS.TXT is updated to generate bionic's system call wrappers
for clock_gettime() & gettimeofday() that will be called if kernel vdso
implementations fail to execute.
The system call wrappers are generated using a python script gensyscalls.py.

Since all architectures support vdso now, there is no more need for conditional
statements regarding supported architectures in libc/bionic/vdso.cpp &
libc/private/bionic_vdso.h files.

Test: builds
Change-Id: I7213f29c179a7929851499d78a72900638ae861a
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
7 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am...
Dimitry Ivanov [Thu, 1 Jun 2017 07:26:29 +0000 (07:26 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am: 1e55a0420e am: c27ac0df9b
am: c3c83d9f4b

Change-Id: I0db36c9b828fee348d25e312c970ced8a19b7e03

7 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am...
Dimitry Ivanov [Thu, 1 Jun 2017 07:24:29 +0000 (07:24 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am: 1e55a0420e
am: c27ac0df9b

Change-Id: Ida956645eaf002113587960e931acc570e44c7a3

7 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474
Dimitry Ivanov [Thu, 1 Jun 2017 07:22:28 +0000 (07:22 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474
am: 1e55a0420e

Change-Id: I80c1b5f9169c5d7ae7e139d52643fce981c2f7a3

7 years agoMerge "Make dl_iterate_phdr return correct name for first entry"
Dimitry Ivanov [Thu, 1 Jun 2017 07:20:27 +0000 (07:20 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"
am: 533cf06474

Change-Id: I80e365b464ca7326da3c3d3a0f0bdf3dac5921c7

7 years agoMerge "Make dl_iterate_phdr return correct name for first entry"
Treehugger Robot [Thu, 1 Jun 2017 07:16:11 +0000 (07:16 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"

7 years agoMake dl_iterate_phdr return correct name for first entry
Dimitry Ivanov [Wed, 31 May 2017 22:07:41 +0000 (15:07 -0700)]
Make dl_iterate_phdr return correct name for first entry

Test: bionic-unit-tests --gtest_filter=link*
Change-Id: Ib3f1e0fbc76fed9a5f27ffdd9bbf847a3e8d3665

7 years agoMove mallopt to correct section.
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.

Bug: 62202823

Test: Built and built unit tests.
(cherry picked from commit 488eb8b7d2fb7a51c90664ae0baea75b7280cddd)

Change-Id: Iae82f77ed84a42f3859d861b533fd7945e2d40d9

7 years agoMerge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2 am: fe4edf65dd
Christopher Ferris [Wed, 31 May 2017 20:42:01 +0000 (20:42 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2 am: fe4edf65dd
am: 8999d6f656

Change-Id: I9d2c734531b5fb12d97c9b4b90a22021d53f04cc

7 years agoMerge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2
Christopher Ferris [Wed, 31 May 2017 20:30:57 +0000 (20:30 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2
am: fe4edf65dd

Change-Id: Icbb7dd9bac9228693b1d547ab3e1c191ecc50fa1

7 years agoMerge "Move mallopt to correct section." am: 15eaaddef9
Christopher Ferris [Wed, 31 May 2017 20:25:57 +0000 (20:25 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9
am: c613ed2ab2

Change-Id: I36ed519b1a3d42d97f2960622195584f0273d024

7 years agoMerge "Move mallopt to correct section."
Christopher Ferris [Wed, 31 May 2017 20:20:58 +0000 (20:20 +0000)]
Merge "Move mallopt to correct section."
am: 15eaaddef9

Change-Id: I592a15ea6503f8753c9fdc512fa383d55f48525e

7 years agoMerge "Move mallopt to correct section."
Christopher Ferris [Wed, 31 May 2017 20:07:29 +0000 (20:07 +0000)]
Merge "Move mallopt to correct section."

7 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214...
Christopher Ferris [Wed, 31 May 2017 18:57:53 +0000 (18:57 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214 am: 5e465f7644
am: c39af283fe

Change-Id: I3e1bf1f0fc8abbbb58e52fa7afcbafa0bdbd5efb

7 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214
Christopher Ferris [Wed, 31 May 2017 18:36:20 +0000 (18:36 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214
am: 5e465f7644

Change-Id: I81ea1202bfbb8614c5662f7b72bded35716ab4ef

7 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0
Christopher Ferris [Wed, 31 May 2017 18:32:26 +0000 (18:32 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0
am: bf52fee214

Change-Id: I318f22e95f2ef59b240bf5b8bfc87eb0babb2d98

7 years agoMerge "Revert "Make mallopt available in the future.""
Christopher Ferris [Wed, 31 May 2017 18:28:21 +0000 (18:28 +0000)]
Merge "Revert "Make mallopt available in the future.""
am: 8f7a987cd0

Change-Id: I0db255e6778cd2cfb64206c3a2ec635e62a18e9a

7 years agoMerge "Revert "Make mallopt available in the future.""
Christopher Ferris [Wed, 31 May 2017 18:15:09 +0000 (18:15 +0000)]
Merge "Revert "Make mallopt available in the future.""

7 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b am...
Christopher Ferris [Wed, 31 May 2017 18:12:23 +0000 (18:12 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b am: be5bc2b8ad
am: 5a8aff819e

Change-Id: I242e211829bc57bdc17ac0a398c6f4ab13ee0c5f

7 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b
Christopher Ferris [Wed, 31 May 2017 18:02:49 +0000 (18:02 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b
am: be5bc2b8ad

Change-Id: I7776ada456afc4771af9ab04baf1d737750a226e

7 years agoMove mallopt to correct section.
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.

Bug: 62202823

Test: Built and built unit tests.
Change-Id: Icefc152eb756fd60ce8f51d694f22923a41a9cd1

7 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45
Christopher Ferris [Wed, 31 May 2017 17:54:06 +0000 (17:54 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45
am: 21d0a8c15b

Change-Id: Iad3d739123a5e8132d8c201a1032fbf95f1167ea

7 years agoMerge "Add mallopt to canonical list of exports."
Christopher Ferris [Wed, 31 May 2017 17:49:04 +0000 (17:49 +0000)]
Merge "Add mallopt to canonical list of exports."
am: 8f6f70db45

Change-Id: I3bd9320bf7c53c4f2f6586d55d5a3c0f3e8307e9

7 years agoMerge "Add mallopt to canonical list of exports."
Christopher Ferris [Wed, 31 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "Add mallopt to canonical list of exports."

7 years agoAdd mallopt to canonical list of exports.
Christopher Ferris [Wed, 31 May 2017 00:35:28 +0000 (17:35 -0700)]
Add mallopt to canonical list of exports.

Bug: 62202823

Test: Ran script and verified that none of the other map files are modified.
Change-Id: Ib890ce77c60b877434fbb65a5add8f6c4603d3d0

7 years agoRevert "Make mallopt available in the future."
Christopher Ferris [Wed, 31 May 2017 00:14:15 +0000 (00:14 +0000)]
Revert "Make mallopt available in the future."

This reverts commit 083923d96acb7cfe4e1a1c22100047fa87feb347.

Reason for revert: No longer correct, this will be in API 26.

Change-Id: Iaf82d797405135fcd30455fd750b23fc57e9623a

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev am: 41e0ceb5c9
Jiyong Park [Sat, 27 May 2017 01:54:27 +0000 (01:54 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev am: 41e0ceb5c9
am: 08d3f97e7f

Change-Id: I32c0e73d2080ae1f65e5855bce6ecca467f20e42

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev
Jiyong Park [Sat, 27 May 2017 01:50:49 +0000 (01:50 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev
am: 41e0ceb5c9

Change-Id: I6e9faedbb26d94aab7064c2c8620362c776143be

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev
TreeHugger Robot [Sat, 27 May 2017 01:45:31 +0000 (01:45 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev

7 years agolinker: disable ld.config.txt in ASAN mode
Jiyong Park [Fri, 26 May 2017 06:14:52 +0000 (15:14 +0900)]
linker: disable ld.config.txt in ASAN mode

Currently, multiple namespaces does not support ASAN mode where some
symbols should be intercepted via LD_PRELOAD; LD_PRELOADed libs are not
preloaded into the linked namespaces other than the default namespace.
Until we fix the problem, we temporarily disable ld.config.txt in ASAN
mode.

Bug: 38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/3.8/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

Change-Id: I091874dd36b36f56dff2ad899d76ff86931909ed

7 years agoExpand whitelist am: ec00401dff
Paul Lawrence [Fri, 26 May 2017 18:28:48 +0000 (18:28 +0000)]
Expand whitelist am: ec00401dff
am: 84ea200ef0

Change-Id: I91a8e2ee1a95627af10b1db8cb0cb5c56faca081

7 years agoExpand whitelist
Paul Lawrence [Fri, 26 May 2017 18:26:47 +0000 (18:26 +0000)]
Expand whitelist
am: ec00401dff

Change-Id: I71c7c4da0757e194405ee1f6f38117b21d927b8e

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c...
Elliott Hughes [Fri, 26 May 2017 18:14:19 +0000 (18:14 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c am: d165d458b6
am: e3892b870f

Change-Id: I8bd07e24d900a5f6fcc42277f2590b9c7740b0f6

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c
Elliott Hughes [Fri, 26 May 2017 18:12:46 +0000 (18:12 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c
am: d165d458b6

Change-Id: I536d4de1a970eb3b9f48f441c991c4ab923d03bd

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b
Elliott Hughes [Fri, 26 May 2017 18:10:47 +0000 (18:10 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b
am: d0b030eb9c

Change-Id: I90f87bfd05e8be59ad507f3466b8f78c0e885656

7 years agoMerge "Enable exporting the non-uapi scsi headers."
Elliott Hughes [Fri, 26 May 2017 18:08:21 +0000 (18:08 +0000)]
Merge "Enable exporting the non-uapi scsi headers."
am: 6be65c135b

Change-Id: Id8c535cf060b6cb9f38efc70dcda43031f2375fb

7 years agoMerge "Enable exporting the non-uapi scsi headers."
Elliott Hughes [Fri, 26 May 2017 18:04:26 +0000 (18:04 +0000)]
Merge "Enable exporting the non-uapi scsi headers."

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a am...
Christopher Ferris [Fri, 26 May 2017 17:09:17 +0000 (17:09 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a am: 1ac92e24b8
am: ae5faae606

Change-Id: Ic41d681631bf059bbbf82b49894ed83733ae15d8

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a
Christopher Ferris [Fri, 26 May 2017 17:07:11 +0000 (17:07 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a
am: 1ac92e24b8

Change-Id: I7aa9398a3eb181195183d56e0c97fc79652e5cef

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62
Christopher Ferris [Fri, 26 May 2017 17:05:11 +0000 (17:05 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62
am: c4d31c981a

Change-Id: Iab1201771f12ce3e59954a88d2a897ba68f74984

7 years agoMerge "Add offset to backtrace_string printing."
Christopher Ferris [Fri, 26 May 2017 17:03:11 +0000 (17:03 +0000)]
Merge "Add offset to backtrace_string printing."
am: f6a5afcb62

Change-Id: I06647308b9cf01405007b136dc5978c436cbcbb6

7 years agoMerge "Add offset to backtrace_string printing."
Christopher Ferris [Fri, 26 May 2017 16:57:58 +0000 (16:57 +0000)]
Merge "Add offset to backtrace_string printing."

7 years agoExpand whitelist
Paul Lawrence [Thu, 25 May 2017 21:15:23 +0000 (14:15 -0700)]
Expand whitelist

Bug: 37769298
Test: Boots. Cannot test app behavior without account
Change-Id: Iebb7616f100368bf2e702ec51f637df1f3727885

7 years agoEnable exporting the non-uapi scsi headers.
Elliott Hughes [Fri, 26 May 2017 00:13:32 +0000 (17:13 -0700)]
Enable exporting the non-uapi scsi headers.

Callers are supposed to #include <scsi/sg.h> but if we tell soong to add
bionic/libc/kernel/android/ to the include path, the uapi headers in there
would be (unintentionally) accessible as either <linux/name.h> or
<uapi/linux/name.h>.

Bug: N/A (hit while upgrading strace to 4.17)
Test: builds
Change-Id: I8d47dd51da688c38f747a255d401dfb2c209c805

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am...
Dimitry Ivanov [Fri, 26 May 2017 01:55:13 +0000 (01:55 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am: 82f4098497 am: e1c7a94d8b
am: 985bcf14a7

Change-Id: I5b70d7eb136f78f333a688462f7dfa9af0b43670

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am...
Dimitry Ivanov [Fri, 26 May 2017 01:43:12 +0000 (01:43 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am: 82f4098497
am: e1c7a94d8b

Change-Id: I000ec2526a8023651736920778a32ab156a60701

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a
Dimitry Ivanov [Fri, 26 May 2017 01:41:41 +0000 (01:41 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a
am: 82f4098497

Change-Id: I02cf9d73a15e93f109639edb13a4048bd91101d2

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
Dimitry Ivanov [Fri, 26 May 2017 01:39:41 +0000 (01:39 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
am: 232681160a

Change-Id: Ie2d150492163e59814a0557baed86a5bed9fa125

7 years agoAdd offset to backtrace_string printing.
Christopher Ferris [Fri, 26 May 2017 01:26:37 +0000 (18:26 -0700)]
Add offset to backtrace_string printing.

The libmemunreachable code uses backtrace_string to print out the backtrace
information. However, when the offset of the map that a frame is in is
non-zero, no information is printed. This means that when a frame comes from
a shared library loaded from an apk, it's impossible to tell which
shared library the frame is really coming from.

Add the offset display when it's non-zero. This means this can now be fed
to development/scripts/stack to decode the frame.

Bug: 37276041

Test: Ran dumpsys meminfo --unreachable on an app that leaks from a
Test: shared library and verified the offset output is present.
Change-Id: I61d34ae3f617622d354cc099eff520a64782b6e2

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
Treehugger Robot [Fri, 26 May 2017 01:30:01 +0000 (01:30 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"

7 years agoMerge "Expand whitelist" am: eca29cb508 am: 27752635e9 am: fcb452e602
Paul Lawrence [Fri, 26 May 2017 01:14:10 +0000 (01:14 +0000)]
Merge "Expand whitelist" am: eca29cb508 am: 27752635e9 am: fcb452e602
am: 4c18818524

Change-Id: Id5af566740f45748c71e58c915a43f402cd4e2e8

7 years agoMerge "Expand whitelist" am: eca29cb508 am: 27752635e9
Paul Lawrence [Fri, 26 May 2017 01:12:39 +0000 (01:12 +0000)]
Merge "Expand whitelist" am: eca29cb508 am: 27752635e9
am: fcb452e602

Change-Id: Ia2251c04295adfcb4f105abedc25aa19a2c20efc

7 years agoMerge "Expand whitelist" am: eca29cb508
Paul Lawrence [Fri, 26 May 2017 01:10:39 +0000 (01:10 +0000)]
Merge "Expand whitelist" am: eca29cb508
am: 27752635e9

Change-Id: I6669f8bb0820f7ba51157ac32a0eb4326b1c963e

7 years agoMerge "Expand whitelist"
Paul Lawrence [Fri, 26 May 2017 01:08:39 +0000 (01:08 +0000)]
Merge "Expand whitelist"
am: eca29cb508

Change-Id: Ic673b3fcaca1bb311da4aa23b8c8f2e24598d4f6

7 years agoMerge "Expand whitelist"
Treehugger Robot [Fri, 26 May 2017 01:01:54 +0000 (01:01 +0000)]
Merge "Expand whitelist"