OSDN Git Service
Elliott Hughes [Thu, 8 Dec 2016 21:27:19 +0000 (21:27 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f am:
f277bb86c6 am:
389e3e92e2 am:
0ffd7a5fb1 am:
0bf10a656b am:
2646bfc213
am:
9eea4e2864
Change-Id: I410415128a6b6f2d1c818d7b639d4cc45dc3ecd0
Elliott Hughes [Thu, 8 Dec 2016 21:22:17 +0000 (21:22 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f am:
f277bb86c6 am:
389e3e92e2 am:
0ffd7a5fb1 am:
0bf10a656b
am:
2646bfc213
Change-Id: I539d424a1176d294e1c1201367f4fe786b345726
Elliott Hughes [Thu, 8 Dec 2016 21:17:17 +0000 (21:17 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f am:
f277bb86c6 am:
389e3e92e2 am:
0ffd7a5fb1
am:
0bf10a656b
Change-Id: I22e9e28194f3599e0792ec9d7d1145cb954b3287
Elliott Hughes [Thu, 8 Dec 2016 21:12:16 +0000 (21:12 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f am:
f277bb86c6 am:
389e3e92e2
am:
0ffd7a5fb1
Change-Id: I286e1860addc1ae571273d2b4a4e1359e990b6aa
Elliott Hughes [Thu, 8 Dec 2016 21:07:17 +0000 (21:07 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f am:
f277bb86c6
am:
389e3e92e2
Change-Id: Ie935c8491aa18867a5087ca4cf707eec318b85f6
Elliott Hughes [Thu, 8 Dec 2016 21:02:16 +0000 (21:02 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1 am:
dc0492ac4f
am:
f277bb86c6
Change-Id: I93c52807f84160dee04c93a0cdeee0ddf758db1b
Elliott Hughes [Thu, 8 Dec 2016 20:57:15 +0000 (20:57 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am:
87c0dba7b1
am:
dc0492ac4f
Change-Id: I949b993b8490d27ec180257fcca06d8984940f0f
Elliott Hughes [Thu, 8 Dec 2016 20:52:15 +0000 (20:52 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am:
87c0dba7b1
Change-Id: I3a09f86362797881b4e7cc0ee807d28addf7b342
Bill Napier [Thu, 8 Dec 2016 20:17:44 +0000 (20:17 +0000)]
Merge "Fix linker_asan64 symlink" am:
f517fcbbb6
am:
26a04f3549
Change-Id: If6f3afa151f40076f57727c7624df790694daf77
Bill Napier [Thu, 8 Dec 2016 20:12:44 +0000 (20:12 +0000)]
Merge "Fix linker_asan64 symlink"
am:
f517fcbbb6
Change-Id: I1f293db44a303817da91c4536e1e9fc0654c064b
Bill Napier [Thu, 8 Dec 2016 20:04:25 +0000 (20:04 +0000)]
Merge "Fix linker_asan64 symlink"
Colin Cross [Thu, 8 Dec 2016 17:57:35 +0000 (09:57 -0800)]
Fix linker_asan64 symlink
Soong now appends the suffix to the symlink, so the multilib-specific
symlink is no longer necessary.
Test: m -j out/target/product/angler/system/bin/linker_asan64
Test: Examine LOCAL_MODULE_SYMLINKS in out/soong/Android-aosp_angler.mk
Change-Id: I913a318bb31de3e630eebd2d68041a55ce3eccaf
Greg Hackmann [Wed, 7 Dec 2016 16:26:07 +0000 (16:26 +0000)]
Merge "Add test for ambient caps" am:
51366e9b16
am:
a505507056
Change-Id: I37bba965ae49f97708df4ddc6eb3041883449124
Greg Hackmann [Wed, 7 Dec 2016 16:22:07 +0000 (16:22 +0000)]
Merge "Add test for ambient caps"
am:
51366e9b16
Change-Id: I268cc82e531eeb6f2df9514add9fff9aeefc2e01
Treehugger Robot [Wed, 7 Dec 2016 16:15:54 +0000 (16:15 +0000)]
Merge "Add test for ambient caps"
Bill Yi [Tue, 6 Dec 2016 23:45:49 +0000 (23:45 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am:
a15c4b3d40
am:
5df8d25038
Change-Id: I9089249363b9f1be1ec0077982ebe4a66601aa52
Dimitry Ivanov [Tue, 6 Dec 2016 23:45:38 +0000 (23:45 +0000)]
Merge "loader: stop linking libdl/c/m into the loader" am:
660affdf61
am:
60e7557c1c
Change-Id: I6dce1eb383738af733e7d84f44bdf5f4d21066c4
Dimitry Ivanov [Tue, 6 Dec 2016 23:45:28 +0000 (23:45 +0000)]
loader: stop linking libdl/c/m into the loader am:
fc0d48078a
am:
d2d51ff304
Change-Id: I643976459a6d2326882cde5a7fd1955e6bbaa6de
Bill Yi [Tue, 6 Dec 2016 23:41:20 +0000 (23:41 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am:
a15c4b3d40
Change-Id: I70e0e16ea41e65b7843a55715df1d7c664bf9f77
Dimitry Ivanov [Tue, 6 Dec 2016 23:41:00 +0000 (23:41 +0000)]
Merge "loader: stop linking libdl/c/m into the loader"
am:
660affdf61
Change-Id: Id6e0a01140182ca3fe25b9d439d435a5f03e7811
Dimitry Ivanov [Tue, 6 Dec 2016 23:40:59 +0000 (23:40 +0000)]
loader: stop linking libdl/c/m into the loader
am:
fc0d48078a
Change-Id: I05ef4a14296e2b73de29510062916853a426a114
Greg Hackmann [Tue, 6 Dec 2016 23:17:59 +0000 (15:17 -0800)]
Add test for ambient caps
PR_CAP_AMBIENT landed in 4.3 and has been backported to earlier kernels
in kernel/common.
Test: bionic-unit-test --gtest_filter=sys_prctl.pr_cap_ambient
Change-Id: I632f6316ef1a4eb636d2bf7e07d541e400567ef4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Bill Yi [Tue, 6 Dec 2016 22:30:02 +0000 (14:30 -0800)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Treehugger Robot [Tue, 6 Dec 2016 22:09:18 +0000 (22:09 +0000)]
Merge "loader: stop linking libdl/c/m into the loader"
Dimitry Ivanov [Tue, 6 Dec 2016 19:10:09 +0000 (11:10 -0800)]
loader: stop linking libdl/c/m into the loader
This is to prevent situations when libgcc.a calls into incorrect
implementation of dl_iterate_phdr.
Bug: http://b/
27106625
Test: build && run bionic-unit-tests --getst_filter=dl*:Dl*
Change-Id: I4cba8c4a156f91f17ba3d95c39cb80f9b70c9d8f
Dimitry Ivanov [Tue, 6 Dec 2016 16:50:19 +0000 (16:50 +0000)]
Merge "loader: asan path translation now works for symlinks" am:
53cad4beda
am:
21d77b95b8
Change-Id: I8d0e5fa61bbcec1219dd4b299c6856c81a37f4b0
Dimitry Ivanov [Tue, 6 Dec 2016 16:46:49 +0000 (16:46 +0000)]
Merge "loader: asan path translation now works for symlinks"
am:
53cad4beda
Change-Id: I6c8a67728d4af7a63a545ab76f6eb5148fe4c275
Dimitry Ivanov [Tue, 6 Dec 2016 16:42:49 +0000 (16:42 +0000)]
Merge "loader: asan path translation now works for symlinks"
Andreas Gampe [Tue, 6 Dec 2016 03:58:16 +0000 (03:58 +0000)]
Merge "Revert "Bionic loader is no longer hijacking libdl.so"" am:
b1481bf347
am:
1785fc1777
Change-Id: I4b9fdc5417c2622b77c9b0aab40c0898bd9902d7
Andreas Gampe [Tue, 6 Dec 2016 03:54:47 +0000 (03:54 +0000)]
Merge "Revert "Bionic loader is no longer hijacking libdl.so""
am:
b1481bf347
Change-Id: I4c6302cb17125b67835b6b8b2657c8a472b620ec
Treehugger Robot [Tue, 6 Dec 2016 03:48:18 +0000 (03:48 +0000)]
Merge "Revert "Bionic loader is no longer hijacking libdl.so""
Andreas Gampe [Tue, 6 Dec 2016 02:10:13 +0000 (02:10 +0000)]
Revert "Bionic loader is no longer hijacking libdl.so"
This reverts commit
c12acef96bd80c419654e159e1dc24a69513a86d.
Breaks the Mips build.
Bug:
27106625
Change-Id: I27edb7114065c36e1b618e387530d58189cdb184
Elliott Hughes [Mon, 5 Dec 2016 23:28:16 +0000 (23:28 +0000)]
Merge "Document how to run CTS in the public documentation too." am:
c28c8abc3e
am:
2db064866d
Change-Id: Ibf807d47e69e9350934495800a4d19c250e328d7
Elliott Hughes [Mon, 5 Dec 2016 23:24:47 +0000 (23:24 +0000)]
Merge "Document how to run CTS in the public documentation too."
am:
c28c8abc3e
Change-Id: Idf04c1d3e3cf0aec857a81d491675cbe07bdee2e
Treehugger Robot [Mon, 5 Dec 2016 23:19:45 +0000 (23:19 +0000)]
Merge "Document how to run CTS in the public documentation too."
Elliott Hughes [Fri, 2 Dec 2016 21:22:21 +0000 (13:22 -0800)]
Document how to run CTS in the public documentation too.
Bug: N/A
Test: N/A
Change-Id: Ib9f46d09b56795d5202ec7167328042381cdc667
Dimitry Ivanov [Mon, 5 Dec 2016 21:35:47 +0000 (13:35 -0800)]
loader: asan path translation now works for symlinks
Bionic Loader now resolves real path for a library before running
asan path-translation. This fixes situations for bundled loading
libraries which are effectively symlinks to system library;
for example:
$ adb shell ls -l /system/app/NfcNci/lib/arm64/libnfc_nci_jni.so
/system/app/NfcNci/lib/arm64/libnfc_nci_jni.so -> /system/lib64/libnfc_nci_jni.so
Bug: http://b/
33278445
Test: make and boot
Change-Id: If14a12087c92f8ca628504556332ba0cb67c9118
Dimitry Ivanov [Mon, 5 Dec 2016 21:39:20 +0000 (21:39 +0000)]
Merge "Bionic loader is no longer hijacking libdl.so" am:
3ccb2bfd7d
am:
1203c11806
Change-Id: I4a8620601683f8e2e9ada6e54c5c5c110417902d
Dimitry Ivanov [Mon, 5 Dec 2016 21:36:19 +0000 (21:36 +0000)]
Merge "Bionic loader is no longer hijacking libdl.so"
am:
3ccb2bfd7d
Change-Id: Iff274f82731b5072b56924ce8b2a58284e86550b
Treehugger Robot [Mon, 5 Dec 2016 21:31:49 +0000 (21:31 +0000)]
Merge "Bionic loader is no longer hijacking libdl.so"
Erik Kline [Mon, 5 Dec 2016 21:23:38 +0000 (21:23 +0000)]
Merge "Remove all system properties references" am:
dbdc1709c2
am:
78593dc35d
Change-Id: I940478f0386ae58922bf6b47bdf87fd35bc09e90
Erik Kline [Mon, 5 Dec 2016 21:20:08 +0000 (21:20 +0000)]
Merge "Remove all system properties references"
am:
dbdc1709c2
Change-Id: I1012e4843373097c5246e347ed48bd430d19afab
Treehugger Robot [Mon, 5 Dec 2016 21:12:41 +0000 (21:12 +0000)]
Merge "Remove all system properties references"
Dimitry Ivanov [Wed, 23 Nov 2016 00:55:25 +0000 (16:55 -0800)]
Bionic loader is no longer hijacking libdl.so
Do not hijack libdl.so methods but make libdl proxy calls to
loader instead. This will be replaces by calls to libc.so
once loader functionality is migrated.
Also add a lock to dl_unwind_find_exidx function call.
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Bug: http://b/
27106625
Change-Id: I9e666e771e4bbca52151cfa7fc4c8677e1480818
Erik Kline [Mon, 5 Dec 2016 01:42:12 +0000 (10:42 +0900)]
Remove all system properties references
Test: as follows
- build
- flash
- runtest -x system/netd/tests/netd_integration_test.cpp
Bug:
33308258
Change-Id: I59526cb91e91b35a63ba6b413d444712568463e4
Elliott Hughes [Mon, 5 Dec 2016 00:09:25 +0000 (00:09 +0000)]
Merge "Remove obsolete #include and comment." am:
f8b4ff4aa1
am:
77d575ba4d
Change-Id: I8f8fae9cc155b475d4f3374eed71980ad7173ec6
Elliott Hughes [Mon, 5 Dec 2016 00:05:55 +0000 (00:05 +0000)]
Merge "Remove obsolete #include and comment."
am:
f8b4ff4aa1
Change-Id: Id77faf4883b894c1d693d3007410da219041bb2e
Treehugger Robot [Mon, 5 Dec 2016 00:01:34 +0000 (00:01 +0000)]
Merge "Remove obsolete #include and comment."
Elliott Hughes [Sat, 3 Dec 2016 01:43:34 +0000 (17:43 -0800)]
Remove obsolete #include and comment.
Bug: http://b/
33308258
Test: builds
Change-Id: Id6bbdae536a12134899fa57ea799f488d018db00
Erik Kline [Sat, 3 Dec 2016 00:01:01 +0000 (00:01 +0000)]
Merge "Don't flush the per-netid cache when adding nameservers." am:
14998554dd
am:
1cda2fe9af
Change-Id: I516f46a9e834666ef3d31aadc3b2ff7048200b74
Erik Kline [Fri, 2 Dec 2016 23:59:00 +0000 (23:59 +0000)]
Merge "Don't flush the per-netid cache when adding nameservers."
am:
14998554dd
Change-Id: I774ce5fb46fccec29b047ac58b587ccb295d373e
Treehugger Robot [Fri, 2 Dec 2016 23:55:54 +0000 (23:55 +0000)]
Merge "Don't flush the per-netid cache when adding nameservers."
Dan Albert [Fri, 2 Dec 2016 23:10:25 +0000 (23:10 +0000)]
Merge "Fix wcsto* where strings begin with whitespace." am:
297ad4cbb8
am:
0ee1546794
Change-Id: I6065211b18b3a041347067a881936720434b2135
Dan Albert [Fri, 2 Dec 2016 23:09:24 +0000 (23:09 +0000)]
Merge "Fix wcsto* where strings begin with whitespace."
am:
297ad4cbb8
Change-Id: Id431f98b267059daae5d2c8a7293205176f82be5
Treehugger Robot [Fri, 2 Dec 2016 23:04:04 +0000 (23:04 +0000)]
Merge "Fix wcsto* where strings begin with whitespace."
Dan Albert [Fri, 2 Dec 2016 20:02:03 +0000 (12:02 -0800)]
Fix wcsto* where strings begin with whitespace.
The libc++ tests caught this.
Test: adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests
Bug: None
Change-Id: I14864e006f6cf9de3f96acac6aa3eb235894f2b1
Elliott Hughes [Fri, 2 Dec 2016 03:16:16 +0000 (03:16 +0000)]
Merge "Fix unistd.execvpe_ENOEXEC and unistd.execvpe_failure." am:
b2d36b4ec7
am:
f3d49a3bae
Change-Id: I07132a8746a8a3b1f78e75886b37ab28350d4e35
Elliott Hughes [Fri, 2 Dec 2016 03:10:15 +0000 (03:10 +0000)]
Merge "Fix unistd.execvpe_ENOEXEC and unistd.execvpe_failure."
am:
b2d36b4ec7
Change-Id: I7d0051a13e5e2097e256afdfbbc580f6733fc523
Treehugger Robot [Fri, 2 Dec 2016 02:59:33 +0000 (02:59 +0000)]
Merge "Fix unistd.execvpe_ENOEXEC and unistd.execvpe_failure."
Elliott Hughes [Fri, 2 Dec 2016 01:12:49 +0000 (17:12 -0800)]
Fix unistd.execvpe_ENOEXEC and unistd.execvpe_failure.
These passed when run directly (as root) but failed in CTS' more restricted
environment.
Bug: http://b/
33270012
Test: ran CTS tests
Change-Id: Iccb407769fe356c30d52a0a99fff11862134a250
Erik Kline [Tue, 8 Nov 2016 09:06:57 +0000 (18:06 +0900)]
Don't flush the per-netid cache when adding nameservers.
This wasn't really necessary in the >= Lollipop architecture.
Test: netd_integration_test fails (fixing separately)
Bug:
32517984
Change-Id: I8115bfe913ae6609f64b55161a1c8e28ce2619cf
Stephen Hines [Thu, 1 Dec 2016 16:40:05 +0000 (16:40 +0000)]
Merge "Disable coverage sanitizer when address sanitizer is disabled on libm." am:
4511a59ab4
am:
bca0aaf244
Change-Id: I14a55f12367ea70de1ad92b137c5ac27db08e8a1
Stephen Hines [Thu, 1 Dec 2016 16:34:36 +0000 (16:34 +0000)]
Merge "Disable coverage sanitizer when address sanitizer is disabled on libm."
am:
4511a59ab4
Change-Id: Ic79bbc59dab5de2dcbf345de49be18b95de319b0
Treehugger Robot [Thu, 1 Dec 2016 16:18:28 +0000 (16:18 +0000)]
Merge "Disable coverage sanitizer when address sanitizer is disabled on libm."
Stephen Hines [Thu, 1 Dec 2016 10:23:13 +0000 (02:23 -0800)]
Disable coverage sanitizer when address sanitizer is disabled on libm.
Test: Built bullhead with SANITIZE_TARGET="address coverage".
Change-Id: I9a8f9f42b3b8fdff6c5ff41ddd42a60c04f85a27
Elliott Hughes [Thu, 1 Dec 2016 03:22:46 +0000 (03:22 +0000)]
Merge "Clean up <sys/limits.h> a bit." am:
cf922ff804
am:
3c8b27c385
Change-Id: I48626be90ed67e89ccab9454c468adbd46ce3dc2
Elliott Hughes [Thu, 1 Dec 2016 03:17:47 +0000 (03:17 +0000)]
Merge "Clean up <sys/limits.h> a bit."
am:
cf922ff804
Change-Id: Ib0b097bcb1a5b731b3070e0ceb0a4bddc94cd355
Elliott Hughes [Thu, 1 Dec 2016 03:08:44 +0000 (03:08 +0000)]
Merge "Clean up <sys/limits.h> a bit."
Elliott Hughes [Wed, 30 Nov 2016 23:27:32 +0000 (23:27 +0000)]
Merge "Abort harder." am:
68ddf5cad3
am:
e435bb9051
Change-Id: I3a935e19822c3336ba1ac02cace4149989bd1011
Elliott Hughes [Wed, 30 Nov 2016 23:22:31 +0000 (23:22 +0000)]
Merge "Abort harder."
am:
68ddf5cad3
Change-Id: I7eee73e41bf2c64efe2a840f4770808782629dee
Elliott Hughes [Wed, 30 Nov 2016 23:06:26 +0000 (23:06 +0000)]
Merge "Abort harder."
Evgenii Stepanov [Wed, 30 Nov 2016 21:55:36 +0000 (21:55 +0000)]
Merge changes Iade6a185,Iab3050bd am:
f347046f2d
am:
f851123f7f
Change-Id: I1f6133ac753b312986241ec1fb106148de51a4c0
Evgenii Stepanov [Wed, 30 Nov 2016 21:55:31 +0000 (21:55 +0000)]
Cleanup: replace sanitize:never with address:false. am:
bc232b9f34
am:
ffde7a4df2
Change-Id: I6623df12ae366e1b31b69e91d4d11beaeef0d6f8
Josh Gao [Wed, 30 Nov 2016 21:55:26 +0000 (21:55 +0000)]
Add __libc_arc4random_unlimited_entropy. am:
585fc3e554
am:
c640d75c77
Change-Id: I639854171f23a26ec8d5d39afc678c5dfc8ebd83
Evgenii Stepanov [Wed, 30 Nov 2016 21:50:33 +0000 (21:50 +0000)]
Merge changes Iade6a185,Iab3050bd
am:
f347046f2d
Change-Id: I804f5f0eca2baa6fd4135f6fdfa8def543751a5a
Evgenii Stepanov [Wed, 30 Nov 2016 21:50:31 +0000 (21:50 +0000)]
Cleanup: replace sanitize:never with address:false.
am:
bc232b9f34
Change-Id: I1e1ed64c25672646d7a3a465e7edf3356d3163eb
Josh Gao [Wed, 30 Nov 2016 21:50:26 +0000 (21:50 +0000)]
Add __libc_arc4random_unlimited_entropy.
am:
585fc3e554
Change-Id: Ie14370e99ced180f5031c7a9bb1ac938184fc094
Evgenii Stepanov [Wed, 30 Nov 2016 21:34:04 +0000 (21:34 +0000)]
Merge changes Iade6a185,Iab3050bd
* changes:
Cleanup: replace sanitize:never with address:false.
Add __libc_arc4random_unlimited_entropy.
Dan Albert [Wed, 30 Nov 2016 20:00:42 +0000 (20:00 +0000)]
Merge "Ship all the UAPI bits." am:
f563ae89be
am:
ed7a9c1c6b
Change-Id: I57dd468de9134f509b42d4a585a788e20eae1180
Dan Albert [Wed, 30 Nov 2016 19:55:45 +0000 (19:55 +0000)]
Merge "Ship all the UAPI bits."
am:
f563ae89be
Change-Id: I1465164f5a9498c8962dca5bae89cea977c1dea0
Treehugger Robot [Wed, 30 Nov 2016 19:43:29 +0000 (19:43 +0000)]
Merge "Ship all the UAPI bits."
Josh Gao [Wed, 30 Nov 2016 19:38:47 +0000 (19:38 +0000)]
Merge "Correct the return types of readv and writev." am:
04a3b24d7e
am:
6d9daae2e0
Change-Id: Ibee67d43fce2815fed14ef7b03d712f1efd30935
Josh Gao [Wed, 30 Nov 2016 19:34:17 +0000 (19:34 +0000)]
Merge "Correct the return types of readv and writev."
am:
04a3b24d7e
Change-Id: Ifb0bab889ecb0847cf7b5af97bf706bd00eb3f99
Treehugger Robot [Wed, 30 Nov 2016 19:26:05 +0000 (19:26 +0000)]
Merge "Correct the return types of readv and writev."
Elliott Hughes [Wed, 30 Nov 2016 02:06:34 +0000 (18:06 -0800)]
Clean up <sys/limits.h> a bit.
<sys/limits.h> shouldn't even exist, but leave it in for backwards
compatibility.
Everything that seems legit moves to <limits.h>, though it still seems
like a lot of that ought to come from the compiler instead (there's even
an angry rant in the clang header to that effect).
Unfortunately, we've long exposed [a copy and paste of] the contents
of <float.h> from <limits.h> and <sys/limits.h>. This patch preserves
that for backwards compatibility, but at least switches us over to
using the real <float.h> instead.
Bug: http://b/
32776472
Test: builds
Change-Id: I2d5b3b5237b3a0442195e99bb967c076ce484f35
Neil Fuller [Wed, 30 Nov 2016 11:30:51 +0000 (11:30 +0000)]
Merge "Update timezone data to 2016j" am:
fa1a85d003
am:
845df9e2d2
Change-Id: If551a995f0fe72758ac9eb03fcb7573b2ac65de7
Neil Fuller [Wed, 30 Nov 2016 11:25:22 +0000 (11:25 +0000)]
Merge "Update timezone data to 2016j"
am:
fa1a85d003
Change-Id: Icd6dd33712ee1ba21d2c6fcc7cd9b69232f6d140
Neil Fuller [Wed, 30 Nov 2016 11:16:38 +0000 (11:16 +0000)]
Merge "Update timezone data to 2016j"
Elliott Hughes [Wed, 30 Nov 2016 00:59:26 +0000 (16:59 -0800)]
Abort harder.
Some PoS internal system can't cope with more than 4 stack frames,
so the fact that our abort(3) implementation takes 4 frames by itself
makes it useless.
Re-reading POSIX, it only says "behaves as if", so the previous
implementation chain wasn't mandatory and we can just go straight to
calling tgkill...
Before:
#00 pc
0000000000069be4 /system/lib64/libc.so (tgkill+8)
#01 pc
0000000000066d50 /system/lib64/libc.so (pthread_kill+64)
#02 pc
0000000000028110 /system/lib64/libc.so (raise+24)
#03 pc
000000000001d4ec /system/lib64/libc.so (abort+52)
After:
#00 pc
0000000000069bc8 /system/lib64/libc.so (tgkill+8)
#01 pc
000000000001d4c8 /system/lib64/libc.so (abort+80)
#02 pc
0000000000001494 /system/xbin/crasher64 (_ZL9do_actionPKc+872)
#03 pc
00000000000010e0 /system/xbin/crasher64 (main+88)
This is less useful on 32-bit ARM because there there's an extra trampoline
from an assembler abort(3) implementation, so you'll still only get one
meaningful stack frame. But every other architecture will now get two!
But wait!
It turns out that the assembler hack isn't needed any more. Here we are
unwinding just fine all the way through the 32-bit ARM crasher:
Before (with direct call to tgkill but still using the assembler):
#00 pc
00049e7c /system/lib/libc.so (tgkill+12)
#01 pc
00019c6f /system/lib/libc.so (__libc_android_abort+50)
#02 pc
000181f8 /system/lib/libc.so (abort+4)
#03 pc
00001025 /system/xbin/crasher (_ZL9do_actionPKc+656)
#04 pc
00017721 /system/lib/libc.so (__libc_init+48)
#05 pc
00000b38 /system/xbin/crasher (_start+96)
After:
#00 pc
00049e6c /system/lib/libc.so (tgkill+12)
#01 pc
00019c5f /system/lib/libc.so (abort+50)
#02 pc
00001025 /system/xbin/crasher (_ZL9do_actionPKc+656)
#03 pc
00017721 /system/lib/libc.so (__libc_init+48)
#04 pc
00000b38 /system/xbin/crasher (_start+96)
(As you can see, the fact that we see __libc_init rather than main was true
with the assembler stub too, so that's not a regression even if it does seem
odd...)
Bug: N/A
Test: ran crasher64
Change-Id: I9dd5b214c495604c8b502c7ec0de3631080d8c29
Elliott Hughes [Wed, 30 Nov 2016 06:00:10 +0000 (06:00 +0000)]
Merge "Fix getpriority/setpriority types." am:
609880c12f
am:
f3b691ad1c
Change-Id: Id9e0aaa22ec4e3a1d99f398b6bd726f2cd2f604f
Elliott Hughes [Wed, 30 Nov 2016 05:59:58 +0000 (05:59 +0000)]
Merge "Fix return type of sync(2)." am:
3b6b2f7c2d
am:
558f6f9ff3
Change-Id: I541635ba2a30a8822923b3d9841ad56d625b39e7
Elliott Hughes [Wed, 30 Nov 2016 05:54:41 +0000 (05:54 +0000)]
Merge "Fix getpriority/setpriority types."
am:
609880c12f
Change-Id: I33de9bd9710164a4b56c30491fd51b20ac5c34f8
Elliott Hughes [Wed, 30 Nov 2016 05:54:28 +0000 (05:54 +0000)]
Merge "Fix return type of sync(2)."
am:
3b6b2f7c2d
Change-Id: I56f6dc1e6a9a454f6691d71ea6f03b0fd6a034e2
Treehugger Robot [Wed, 30 Nov 2016 05:49:03 +0000 (05:49 +0000)]
Merge "Fix getpriority/setpriority types."
Dan Willemsen [Wed, 30 Nov 2016 05:43:27 +0000 (05:43 +0000)]
Merge "Enable libc/libdl/libm/linker for host bionic" am:
b99b6762b4
am:
d528de0d58
Change-Id: Idfdb0b3636f710048c84d3c9e504a1c017be96bb
Treehugger Robot [Wed, 30 Nov 2016 05:42:53 +0000 (05:42 +0000)]
Merge "Fix return type of sync(2)."
Dan Willemsen [Wed, 30 Nov 2016 05:37:56 +0000 (05:37 +0000)]
Merge "Enable libc/libdl/libm/linker for host bionic"
am:
b99b6762b4
Change-Id: I5484525abac921f00ce6e01d0aef4c3a4c9a656a
Dan Willemsen [Wed, 30 Nov 2016 05:32:06 +0000 (05:32 +0000)]
Merge "Enable libc/libdl/libm/linker for host bionic"
Evgenii Stepanov [Wed, 23 Nov 2016 01:36:25 +0000 (17:36 -0800)]
Cleanup: replace sanitize:never with address:false.
Bug:
33091541
Test: NFC
Change-Id: Iade6a1852e7b1f34e06c26ccadcc17bac5d81c14
Josh Gao [Fri, 11 Nov 2016 00:26:44 +0000 (16:26 -0800)]
Add __libc_arc4random_unlimited_entropy.
Let the caller know when libc has an entropy source and arc4random is safe.
This is useful for the callers that want entropy, but don't absolutely need it.
Bug: http://b/
27729263
Test: booted angler-userdebug w/ safestack
Change-Id: Iab3050bd19f23518e1676629573eebc656ba1090