OSDN Git Service

android-x86/bionic.git
7 years agoMerge "Fix greylist exception to account for linked namespaces" am: 6e528631d1 am...
Dimitry Ivanov [Tue, 28 Feb 2017 00:52:49 +0000 (00:52 +0000)]
Merge "Fix greylist exception to account for linked namespaces" am: 6e528631d1 am: ea7961b604
am: c1e6ec0d78

Change-Id: I3fe6a247ce8265c7ab087361e08b8ea3849d3b0a

7 years agoMerge "Fix greylist exception to account for linked namespaces" am: 6e528631d1
Dimitry Ivanov [Tue, 28 Feb 2017 00:50:19 +0000 (00:50 +0000)]
Merge "Fix greylist exception to account for linked namespaces" am: 6e528631d1
am: ea7961b604

Change-Id: I0ec9fffd7d332129c9dfb66c45ed29117a3ed02b

7 years agoMerge "Fix greylist exception to account for linked namespaces"
Dimitry Ivanov [Tue, 28 Feb 2017 00:47:49 +0000 (00:47 +0000)]
Merge "Fix greylist exception to account for linked namespaces"
am: 6e528631d1

Change-Id: I639c4ac215359a5c3caa6b19a2cd59ace1ff1ca4

7 years agoMerge "Fix greylist exception to account for linked namespaces"
Treehugger Robot [Tue, 28 Feb 2017 00:42:54 +0000 (00:42 +0000)]
Merge "Fix greylist exception to account for linked namespaces"

7 years agoMerge "Fix pre-L MB_CUR_MAX." am: ca1fda834f am: ce9b4eb5da
Dan Albert [Mon, 27 Feb 2017 22:33:40 +0000 (22:33 +0000)]
Merge "Fix pre-L MB_CUR_MAX." am: ca1fda834f am: ce9b4eb5da
am: 5ecf1b0885

Change-Id: I6c03e881dbaa9f67fe17e25145cb659c3f82b5e4

7 years agoMerge "Fix pre-L MB_CUR_MAX." am: ca1fda834f
Dan Albert [Mon, 27 Feb 2017 22:32:09 +0000 (22:32 +0000)]
Merge "Fix pre-L MB_CUR_MAX." am: ca1fda834f
am: ce9b4eb5da

Change-Id: Ie59c0de992e198d1f73886a7522fc04514d67956

7 years agoMerge "Fix pre-L MB_CUR_MAX."
Dan Albert [Mon, 27 Feb 2017 22:30:09 +0000 (22:30 +0000)]
Merge "Fix pre-L MB_CUR_MAX."
am: ca1fda834f

Change-Id: Ib6f2b309be4ce297577174fd0de8e624d37d37e2

7 years agoMerge "Fix pre-L MB_CUR_MAX."
Treehugger Robot [Mon, 27 Feb 2017 22:22:26 +0000 (22:22 +0000)]
Merge "Fix pre-L MB_CUR_MAX."

7 years agoFix greylist exception to account for linked namespaces
Dimitry Ivanov [Mon, 27 Feb 2017 20:17:47 +0000 (12:17 -0800)]
Fix greylist exception to account for linked namespaces

Do not load second copy of libraries that are supposed to
be provided by linked namespaces. Also do not print
error in the log if caller tries to open shared library
using absolute path for apps targeting N+.

Bug: http://b/35454141
Bug: http://b/26833548
Bug: http://b/35338922
Test: run bionic-unit-tests --gtest_filter=dl*
Change-Id: Icf3aeedff18d287d2ba0b3df3808b100f3ef5f7a

7 years agoMerge "Update to kernel headers v4.10." am: 5f41ce25c6 am: 8b2654c1ef
Christopher Ferris [Mon, 27 Feb 2017 20:27:40 +0000 (20:27 +0000)]
Merge "Update to kernel headers v4.10." am: 5f41ce25c6 am: 8b2654c1ef
am: d16d25742b

Change-Id: Ib353d4f389e4d105b62a068654b4095cc845b82c

7 years agoMerge "Update to kernel headers v4.10." am: 5f41ce25c6
Christopher Ferris [Mon, 27 Feb 2017 20:23:38 +0000 (20:23 +0000)]
Merge "Update to kernel headers v4.10." am: 5f41ce25c6
am: 8b2654c1ef

Change-Id: Iab74334b95fd44106351aad24b8044b11d11e9cb

7 years agoMerge "Update to kernel headers v4.10."
Christopher Ferris [Mon, 27 Feb 2017 20:16:53 +0000 (20:16 +0000)]
Merge "Update to kernel headers v4.10."
am: 5f41ce25c6

Change-Id: Ib466db6c56b442ac29b56878d19a4c926acf4911

7 years agoMerge "Update to kernel headers v4.10."
Christopher Ferris [Mon, 27 Feb 2017 20:09:54 +0000 (20:09 +0000)]
Merge "Update to kernel headers v4.10."

7 years agoMerge "Revert "Move seccomp policy to bionic"" am: c712aedb0c am: d2df74f5e0
Paul Lawrence [Mon, 27 Feb 2017 16:55:48 +0000 (16:55 +0000)]
Merge "Revert "Move seccomp policy to bionic"" am: c712aedb0c am: d2df74f5e0
am: 22aa2a8eed

Change-Id: Ifd3aac5982e5eafad763ba92fca97978912a881f

7 years agoMerge "Revert "Move seccomp policy to bionic"" am: c712aedb0c
Paul Lawrence [Mon, 27 Feb 2017 16:51:13 +0000 (16:51 +0000)]
Merge "Revert "Move seccomp policy to bionic"" am: c712aedb0c
am: d2df74f5e0

Change-Id: I0dbce39972aeea04f297bcd27cf7c14c263f4017

7 years agoMerge "Revert "Move seccomp policy to bionic""
Paul Lawrence [Mon, 27 Feb 2017 16:46:00 +0000 (16:46 +0000)]
Merge "Revert "Move seccomp policy to bionic""
am: c712aedb0c

Change-Id: I6e95b0579d749e898ef2933fe1fd92c81b28ad8c

7 years agoMerge "Revert "Move seccomp policy to bionic""
Paul Lawrence [Mon, 27 Feb 2017 16:39:11 +0000 (16:39 +0000)]
Merge "Revert "Move seccomp policy to bionic""

7 years agoRevert "Move seccomp policy to bionic"
Paul Lawrence [Mon, 27 Feb 2017 16:32:37 +0000 (16:32 +0000)]
Revert "Move seccomp policy to bionic"

This reverts commit 06a32206c5430321dd3fc02b70acbf99383786c1.

Reverting build-breaking change

Change-Id: Ib3698bca8f905033a9c7f22bc2fa9f7e7bf75873

7 years agoMerge "Move seccomp policy to bionic" am: d0ceac6441 am: b499944442
Paul Lawrence [Mon, 27 Feb 2017 16:27:01 +0000 (16:27 +0000)]
Merge "Move seccomp policy to bionic" am: d0ceac6441 am: b499944442
am: adee1cd46e

Change-Id: Ifc06fcda5e85b171cca52499c0e01394b1806707

7 years agoMerge "Move seccomp policy to bionic" am: d0ceac6441
Paul Lawrence [Mon, 27 Feb 2017 16:20:59 +0000 (16:20 +0000)]
Merge "Move seccomp policy to bionic" am: d0ceac6441
am: b499944442

Change-Id: I7650c6ff63e8a38da09d79dd724f22fc4307a251

7 years agoMerge "Move seccomp policy to bionic"
Paul Lawrence [Mon, 27 Feb 2017 16:14:30 +0000 (16:14 +0000)]
Merge "Move seccomp policy to bionic"
am: d0ceac6441

Change-Id: Ia0dfc453985313ae5a098bbe5512a1b1aad741a3

7 years agoMerge "Move seccomp policy to bionic"
Paul Lawrence [Mon, 27 Feb 2017 16:09:39 +0000 (16:09 +0000)]
Merge "Move seccomp policy to bionic"

7 years agoMerge "Add tests for <endian.h>." am: 78e6c4ec7c am: 383efd5f2e
Elliott Hughes [Sat, 25 Feb 2017 03:20:47 +0000 (03:20 +0000)]
Merge "Add tests for <endian.h>." am: 78e6c4ec7c am: 383efd5f2e
am: 801d127801

Change-Id: I3f6a248ac74aca214069bab6af7f850b40936663

7 years agoMerge "Add tests for <endian.h>." am: 78e6c4ec7c
Elliott Hughes [Sat, 25 Feb 2017 03:16:46 +0000 (03:16 +0000)]
Merge "Add tests for <endian.h>." am: 78e6c4ec7c
am: 383efd5f2e

Change-Id: Ic28697996933edfc2bd95f30a0d74765322e51fa

7 years agoMerge "Add tests for <endian.h>."
Elliott Hughes [Sat, 25 Feb 2017 03:14:15 +0000 (03:14 +0000)]
Merge "Add tests for <endian.h>."
am: 78e6c4ec7c

Change-Id: I3593c8f899707d5e45fad839733b0dcbcc945df0

7 years agoMerge "Add tests for <endian.h>."
Treehugger Robot [Sat, 25 Feb 2017 03:10:18 +0000 (03:10 +0000)]
Merge "Add tests for <endian.h>."

7 years agoMerge "loader: set PT_INTERP to itself" am: 0b87362f53 am: 566d200680
Dimitry Ivanov [Sat, 25 Feb 2017 02:36:43 +0000 (02:36 +0000)]
Merge "loader: set PT_INTERP to itself" am: 0b87362f53 am: 566d200680
am: 3635827a62

Change-Id: Ieea71a55072322111fbb9c0a4c7c66effc1995a9

7 years agoMerge "loader: set PT_INTERP to itself" am: 0b87362f53
Dimitry Ivanov [Sat, 25 Feb 2017 02:34:12 +0000 (02:34 +0000)]
Merge "loader: set PT_INTERP to itself" am: 0b87362f53
am: 566d200680

Change-Id: Iae4fd30f60d6b3124c36bd9398a79a0c56088f49

7 years agoMerge "loader: set PT_INTERP to itself"
Dimitry Ivanov [Sat, 25 Feb 2017 02:31:13 +0000 (02:31 +0000)]
Merge "loader: set PT_INTERP to itself"
am: 0b87362f53

Change-Id: I505616f5b4223dcd6cdad396db340c81b61a87b5

7 years agoMerge "loader: set PT_INTERP to itself"
Treehugger Robot [Sat, 25 Feb 2017 02:24:28 +0000 (02:24 +0000)]
Merge "loader: set PT_INTERP to itself"

7 years agoMerge "libc: __system_property_set uses writev to write atomically" am: 3246b9d8ae...
Dimitry Ivanov [Sat, 25 Feb 2017 02:19:12 +0000 (02:19 +0000)]
Merge "libc: __system_property_set uses writev to write atomically" am: 3246b9d8ae am: 2317d87e5f
am: ea234676ba

Change-Id: I6643a5032ffa63be09bf1abe1e8566bbda6863f6

7 years agoMerge "libc: __system_property_set uses writev to write atomically" am: 3246b9d8ae
Dimitry Ivanov [Sat, 25 Feb 2017 02:16:12 +0000 (02:16 +0000)]
Merge "libc: __system_property_set uses writev to write atomically" am: 3246b9d8ae
am: 2317d87e5f

Change-Id: I944564ebd4189c839cd62d1ef6987dcde457223d

7 years agoMerge "libc: __system_property_set uses writev to write atomically"
Dimitry Ivanov [Sat, 25 Feb 2017 02:13:42 +0000 (02:13 +0000)]
Merge "libc: __system_property_set uses writev to write atomically"
am: 3246b9d8ae

Change-Id: Ica033823bfed9851dfe693a4e079023bc41848a6

7 years agoMerge "Move __system_property_*_serial back to LIBC" am: bf04e3c00d am: c1231fbf0b
Dimitry Ivanov [Sat, 25 Feb 2017 02:13:42 +0000 (02:13 +0000)]
Merge "Move __system_property_*_serial back to LIBC" am: bf04e3c00d am: c1231fbf0b
am: 2e9586f14a

Change-Id: I6544107d81a900bc354830df7ac5847fa1346eec

7 years agoMerge "Move __system_property_*_serial back to LIBC" am: bf04e3c00d
Dimitry Ivanov [Sat, 25 Feb 2017 02:10:11 +0000 (02:10 +0000)]
Merge "Move __system_property_*_serial back to LIBC" am: bf04e3c00d
am: c1231fbf0b

Change-Id: I5406aeb7762b34455a2d6c4fa901fc626faa18e8

7 years agoMerge "Move __system_property_*_serial back to LIBC"
Dimitry Ivanov [Sat, 25 Feb 2017 02:07:13 +0000 (02:07 +0000)]
Merge "Move __system_property_*_serial back to LIBC"
am: bf04e3c00d

Change-Id: I7bd2ab0a5ee0fbcf2ed2d3f87c1658ca6ba42af6

7 years agoMerge "libc: __system_property_set uses writev to write atomically"
Treehugger Robot [Sat, 25 Feb 2017 02:06:19 +0000 (02:06 +0000)]
Merge "libc: __system_property_set uses writev to write atomically"

7 years agoMerge "Move __system_property_*_serial back to LIBC"
Treehugger Robot [Sat, 25 Feb 2017 02:02:02 +0000 (02:02 +0000)]
Merge "Move __system_property_*_serial back to LIBC"

7 years agoloader: set PT_INTERP to itself
Dimitry Ivanov [Thu, 23 Feb 2017 19:53:43 +0000 (11:53 -0800)]
loader: set PT_INTERP to itself

Some versions of kernel set AT_BASE to 0
if dynamic loader does not have PT_INTERP
set.

Bug: http://b/30739481
Test: run /system/bin/linker64 and /system/bin/linker
Change-Id: I1b67777166fe917d3ee1a97277045ca6f5db0084

7 years agoAdd tests for <endian.h>.
Elliott Hughes [Sat, 25 Feb 2017 00:19:53 +0000 (16:19 -0800)]
Add tests for <endian.h>.

Also, for the stuff that's also in <netinet/in.h> as real functions,
check that they're there too (and as functions rather than macros,
since that was historically not true).

Bug: http://b/28432448
Test: ran tests
Change-Id: I7e4ae926f7e02de3b6dd38d1953e5b3b43d44f74

7 years agoMove __system_property_*_serial back to LIBC
Dimitry Ivanov [Fri, 24 Feb 2017 23:36:17 +0000 (15:36 -0800)]
Move __system_property_*_serial back to LIBC

Bug: http://b/35764972
Bug: http://b/34114501
Test: make
Change-Id: Ibbda0107d07c432110a0633de03259e39480fde4

7 years agolibc: __system_property_set uses writev to write atomically
Dimitry Ivanov [Fri, 24 Feb 2017 01:57:14 +0000 (17:57 -0800)]
libc: __system_property_set uses writev to write atomically

__system_property_set sometimes produces broken_pipe error
when trying to write a property.

This change improves error messages and uses writev() instead
of sequence of send() calls.

Bug: http://b/35381074
Test: bionic-unit-tests --gtest_filter=prop*
Change-Id: I7a5b169c015db4e6b720370e58662de8206d1086

7 years agoMove seccomp policy to bionic
Paul Lawrence [Thu, 16 Feb 2017 17:24:39 +0000 (09:24 -0800)]
Move seccomp policy to bionic

Test: Built and checked booted

Change-Id: If777eed75d5280c7a390399261e97125c04767b2

7 years agoMerge "Hide internal __system_property_* functions" am: 5927b04ce7 am: 52c122cc7f
Dimitry Ivanov [Fri, 24 Feb 2017 19:21:43 +0000 (19:21 +0000)]
Merge "Hide internal __system_property_* functions" am: 5927b04ce7 am: 52c122cc7f
am: eacdbd0115

Change-Id: I766e9b0b9f728fde2b03fa66c9f2d9c141c053b8

7 years agoMerge "Hide internal __system_property_* functions" am: 5927b04ce7
Dimitry Ivanov [Fri, 24 Feb 2017 19:19:13 +0000 (19:19 +0000)]
Merge "Hide internal __system_property_* functions" am: 5927b04ce7
am: 52c122cc7f

Change-Id: I828ed7506483cc82df372ead46aa48ba7fc4fdb1

7 years agoMerge "Hide internal __system_property_* functions"
Dimitry Ivanov [Fri, 24 Feb 2017 19:16:12 +0000 (19:16 +0000)]
Merge "Hide internal __system_property_* functions"
am: 5927b04ce7

Change-Id: Ibcb9bd8b5df6d5e5815886b10482ea6fde6213bd

7 years agoMerge "Hide internal __system_property_* functions"
Dimitry Ivanov [Fri, 24 Feb 2017 19:11:12 +0000 (19:11 +0000)]
Merge "Hide internal __system_property_* functions"

7 years agoMerge "Replace cxa_guard fences with acquire loads" am: 5d0c1fcc8b am: 226d38c69e
Hans Boehm [Fri, 24 Feb 2017 19:02:41 +0000 (19:02 +0000)]
Merge "Replace cxa_guard fences with acquire loads" am: 5d0c1fcc8b am: 226d38c69e
am: 592657b4f3

Change-Id: Ib3a7a7a537b6c9700c3c7e9cd7d6474c0e0d6e5a

7 years agoMerge "Replace cxa_guard fences with acquire loads" am: 5d0c1fcc8b
Hans Boehm [Fri, 24 Feb 2017 19:00:40 +0000 (19:00 +0000)]
Merge "Replace cxa_guard fences with acquire loads" am: 5d0c1fcc8b
am: 226d38c69e

Change-Id: I590d828ad7c073f6beddbdcdb77c688b8f0b0327

7 years agoMerge "Replace cxa_guard fences with acquire loads"
Hans Boehm [Fri, 24 Feb 2017 18:58:11 +0000 (18:58 +0000)]
Merge "Replace cxa_guard fences with acquire loads"
am: 5d0c1fcc8b

Change-Id: I0fe209d4075b3afbff03938cfa4bf5690ba60c23

7 years agoMerge "Replace cxa_guard fences with acquire loads"
Hans Boehm [Fri, 24 Feb 2017 18:50:34 +0000 (18:50 +0000)]
Merge "Replace cxa_guard fences with acquire loads"

7 years agoMerge "Use <linux/eventpoll.h> to implement <sys/epoll.h>." am: 77463d81e6 am: 37ae2185c2
Elliott Hughes [Fri, 24 Feb 2017 17:03:34 +0000 (17:03 +0000)]
Merge "Use <linux/eventpoll.h> to implement <sys/epoll.h>." am: 77463d81e6 am: 37ae2185c2
am: 7f190f8ce6

Change-Id: Ifba9e56d2d3d140d790d89c29341664cfb1755f2

7 years agoMerge "Use <linux/eventpoll.h> to implement <sys/epoll.h>." am: 77463d81e6
Elliott Hughes [Fri, 24 Feb 2017 17:00:34 +0000 (17:00 +0000)]
Merge "Use <linux/eventpoll.h> to implement <sys/epoll.h>." am: 77463d81e6
am: 37ae2185c2

Change-Id: I910b9fbc8b3ccfb8db71bfd90b9cb22f51766d79

7 years agoMerge "Use <linux/eventpoll.h> to implement <sys/epoll.h>."
Elliott Hughes [Fri, 24 Feb 2017 16:59:03 +0000 (16:59 +0000)]
Merge "Use <linux/eventpoll.h> to implement <sys/epoll.h>."
am: 77463d81e6

Change-Id: I563a5c0723fd4e9b0fbcea1aec73614e92b6381d

7 years agoMerge "Use <linux/eventpoll.h> to implement <sys/epoll.h>."
Elliott Hughes [Fri, 24 Feb 2017 16:55:25 +0000 (16:55 +0000)]
Merge "Use <linux/eventpoll.h> to implement <sys/epoll.h>."

7 years agoMerge "Silence a compiler warning due to unused variable on mips" am: 3678078440...
Pavel Labath [Fri, 24 Feb 2017 10:32:40 +0000 (10:32 +0000)]
Merge "Silence a compiler warning due to unused variable on mips" am: 3678078440 am: 8c8ce57d77
am: dc4fde4916

Change-Id: I33fcce64a5cc1668911baba286d193693ea42478

7 years agoMerge "Silence a compiler warning due to unused variable on mips" am: 3678078440
Pavel Labath [Fri, 24 Feb 2017 10:30:10 +0000 (10:30 +0000)]
Merge "Silence a compiler warning due to unused variable on mips" am: 3678078440
am: 8c8ce57d77

Change-Id: If334cbb224b6a49d9dcf346d1345feb735195cca

7 years agoMerge "Silence a compiler warning due to unused variable on mips"
Pavel Labath [Fri, 24 Feb 2017 10:27:10 +0000 (10:27 +0000)]
Merge "Silence a compiler warning due to unused variable on mips"
am: 3678078440

Change-Id: I789328684c5a5253b515c42a9dbdc6714272b9c1

7 years agoMerge "Silence a compiler warning due to unused variable on mips"
Pavel Labath [Fri, 24 Feb 2017 10:22:40 +0000 (10:22 +0000)]
Merge "Silence a compiler warning due to unused variable on mips"

7 years agoSilence a compiler warning due to unused variable on mips
Pavel Labath [Fri, 24 Feb 2017 10:14:13 +0000 (10:14 +0000)]
Silence a compiler warning due to unused variable on mips

oops, I did it again.

Test: lunch mips && cd bionic && mma
Change-Id: I1fe2cb847d0698b34766869f9626398dbcf81960

7 years agoMerge "Add "imprecise" watchpoint ptrace test" am: a936199ce0 am: df6f95b8a0
Pavel Labath [Fri, 24 Feb 2017 09:26:37 +0000 (09:26 +0000)]
Merge "Add "imprecise" watchpoint ptrace test" am: a936199ce0 am: df6f95b8a0
am: eae23c22fb

Change-Id: I9b9a2dcc7f6fe1d5f88fda81c51aee73e87efd0f

7 years agoMerge "Add "imprecise" watchpoint ptrace test" am: a936199ce0
Pavel Labath [Fri, 24 Feb 2017 09:24:06 +0000 (09:24 +0000)]
Merge "Add "imprecise" watchpoint ptrace test" am: a936199ce0
am: df6f95b8a0

Change-Id: I51a72007cdd018d69497eeb6691f48ce81850445

7 years agoMerge "Add "imprecise" watchpoint ptrace test"
Pavel Labath [Fri, 24 Feb 2017 09:21:06 +0000 (09:21 +0000)]
Merge "Add "imprecise" watchpoint ptrace test"
am: a936199ce0

Change-Id: I4fbf4ce77868d3483d5ea34c51b3d6f51cfb1b4d

7 years agoMerge "Add "imprecise" watchpoint ptrace test"
Pavel Labath [Fri, 24 Feb 2017 09:16:19 +0000 (09:16 +0000)]
Merge "Add "imprecise" watchpoint ptrace test"

7 years agoAdd "imprecise" watchpoint ptrace test
Pavel Labath [Wed, 22 Feb 2017 18:22:46 +0000 (18:22 +0000)]
Add "imprecise" watchpoint ptrace test

This tests for the presence of a kernel bug that meant that the kernel
would sometimes fail to report the watchpoint hit if the hardware
reported a address which did not exactly match the address range being
watched (which it is allowed to do per ARM spec if the instruction
accesses a larger block of memory than the region being watched). This
bug was fixed in linux kernel 4.9, and has been backported to older
android kernels.

Bug: 30802222
Bug: 30919905
Test: bionic-unit-tests --gtest_filter="sys_ptrace.*"
Change-Id: I80c35b29eaf28e2dbacb9e8ee5317fdea653fc87

7 years agoUse <linux/eventpoll.h> to implement <sys/epoll.h>.
Elliott Hughes [Thu, 23 Feb 2017 07:22:51 +0000 (23:22 -0800)]
Use <linux/eventpoll.h> to implement <sys/epoll.h>.

Bug: https://github.com/android-ndk/ndk/issues/302
Test: builds
Change-Id: Ia3074326a128c38f2488e342c028cc030801cfd9

7 years agoMerge "Expand whitelist" am: 9eba112c3c am: fadce724ee
Paul Lawrence [Fri, 24 Feb 2017 00:03:31 +0000 (00:03 +0000)]
Merge "Expand whitelist" am: 9eba112c3c am: fadce724ee
am: 52cf5b59c3

Change-Id: I6ab40b34ab76a556572f69ce88e08018ed2db122

7 years agoMerge "Expand whitelist" am: 9eba112c3c
Paul Lawrence [Fri, 24 Feb 2017 00:01:01 +0000 (00:01 +0000)]
Merge "Expand whitelist" am: 9eba112c3c
am: fadce724ee

Change-Id: Ie297d79bf6996e9cee5ff34e8bec0a1835d469f2

7 years agoMerge "Expand whitelist"
Paul Lawrence [Thu, 23 Feb 2017 23:58:30 +0000 (23:58 +0000)]
Merge "Expand whitelist"
am: 9eba112c3c

Change-Id: I43b0344fef5e56ccb53a0147ea0aab2a82f3fcb6

7 years agoMerge "versioner: fix darwin build." am: 46c8a34a95 am: 9a445f64fe
Josh Gao [Thu, 23 Feb 2017 23:58:30 +0000 (23:58 +0000)]
Merge "versioner: fix darwin build." am: 46c8a34a95 am: 9a445f64fe
am: a716118167

Change-Id: Id24a5aa15162b3bb50734fe395179860641ca262

7 years agoMerge "versioner: fix darwin build." am: 46c8a34a95
Josh Gao [Thu, 23 Feb 2017 23:56:01 +0000 (23:56 +0000)]
Merge "versioner: fix darwin build." am: 46c8a34a95
am: 9a445f64fe

Change-Id: I5ebb6641d72dd68e58b1a03bb05f490af4bb8115

7 years agoMerge "Expand whitelist"
Treehugger Robot [Thu, 23 Feb 2017 23:54:34 +0000 (23:54 +0000)]
Merge "Expand whitelist"

7 years agoMerge "versioner: fix darwin build."
Josh Gao [Thu, 23 Feb 2017 23:53:31 +0000 (23:53 +0000)]
Merge "versioner: fix darwin build."
am: 46c8a34a95

Change-Id: I96bf649521d8fd2062aea7c859be2d76759ff09e

7 years agoMerge "versioner: fix darwin build."
Treehugger Robot [Thu, 23 Feb 2017 23:51:14 +0000 (23:51 +0000)]
Merge "versioner: fix darwin build."

7 years agoHide internal __system_property_* functions
Dimitry Ivanov [Thu, 16 Feb 2017 23:34:21 +0000 (15:34 -0800)]
Hide internal __system_property_* functions

Bug: http://b/34114501
Test: bionic-unit-tests --gtest_filter=prop*
Change-Id: I1fc57b4ced6aaf841aad64e12e7696d25c2e027b

7 years agoMerge "Add legacy inlines for more termios stuff." am: 9dbfd8ad7f am: 99f88aed64
Dan Albert [Thu, 23 Feb 2017 22:09:23 +0000 (22:09 +0000)]
Merge "Add legacy inlines for more termios stuff." am: 9dbfd8ad7f am: 99f88aed64
am: b6205bcae3

Change-Id: I6ddfba5ea11edc49ea6a121e067411b16915f646

7 years agoMerge "Add legacy inlines for more termios stuff." am: 9dbfd8ad7f
Dan Albert [Thu, 23 Feb 2017 22:06:53 +0000 (22:06 +0000)]
Merge "Add legacy inlines for more termios stuff." am: 9dbfd8ad7f
am: 99f88aed64

Change-Id: I3789c05a46c2ee16800fdc890bac07bd00a1adb2

7 years agoMerge "Add legacy inlines for more termios stuff."
Dan Albert [Thu, 23 Feb 2017 22:05:22 +0000 (22:05 +0000)]
Merge "Add legacy inlines for more termios stuff."
am: 9dbfd8ad7f

Change-Id: I3a493b5ad47ecac27e09f21fa1821851cac31083

7 years agoMerge "Add legacy inlines for more termios stuff."
Treehugger Robot [Thu, 23 Feb 2017 22:01:10 +0000 (22:01 +0000)]
Merge "Add legacy inlines for more termios stuff."

7 years agoversioner: fix darwin build.
Josh Gao [Thu, 23 Feb 2017 21:52:49 +0000 (13:52 -0800)]
versioner: fix darwin build.

Use struct stat::st_mtime instead of the underlying st_mtim, which is
called something different on Darwin.

Test: mma on linux, darwin
Change-Id: I2695a6c83ebb7d08ec56b1355e0f4bc0993a0acb

7 years agoMerge "Revert "Run the versioner as part of the build."" am: 7f24a4f556 am: cea81d0552
Dan Albert [Thu, 23 Feb 2017 21:49:41 +0000 (21:49 +0000)]
Merge "Revert "Run the versioner as part of the build."" am: 7f24a4f556 am: cea81d0552
am: 1de365eef3

Change-Id: I9fc92f4a14ef11b6bfec4c50dbfa3d2ae2dc3664

7 years agoMerge "Revert "Run the versioner as part of the build."" am: 7f24a4f556
Dan Albert [Thu, 23 Feb 2017 21:47:40 +0000 (21:47 +0000)]
Merge "Revert "Run the versioner as part of the build."" am: 7f24a4f556
am: cea81d0552

Change-Id: Ia5ac7fa62085f468248ab11976dca4a075f783cb

7 years agoMerge "Revert "Run the versioner as part of the build.""
Dan Albert [Thu, 23 Feb 2017 21:45:14 +0000 (21:45 +0000)]
Merge "Revert "Run the versioner as part of the build.""
am: 7f24a4f556

Change-Id: I46566a05914a13ad8492acebd6c76107df0b51a4

7 years agoMerge "Revert "Run the versioner as part of the build.""
Dan Albert [Thu, 23 Feb 2017 21:36:48 +0000 (21:36 +0000)]
Merge "Revert "Run the versioner as part of the build.""

7 years agoRevert "Run the versioner as part of the build."
Dan Albert [Thu, 23 Feb 2017 21:30:35 +0000 (21:30 +0000)]
Revert "Run the versioner as part of the build."

This reverts commit 45715b2a88c8daf5a721ce9b28391120f5507764.

Reason for revert: Darwin sucks

Change-Id: I004dd7fa5e14a43ffe04ace2f5a06341df61b8cd

7 years agoMerge "Run the versioner as part of the build." am: bd15a909b5 am: 21ea50673a
Dan Albert [Thu, 23 Feb 2017 21:16:13 +0000 (21:16 +0000)]
Merge "Run the versioner as part of the build." am: bd15a909b5 am: 21ea50673a
am: 584675baa8

Change-Id: I94ceb55f781825410a1655a470902dfa0b72672d

7 years agoMerge "Run the versioner as part of the build." am: bd15a909b5
Dan Albert [Thu, 23 Feb 2017 21:14:38 +0000 (21:14 +0000)]
Merge "Run the versioner as part of the build." am: bd15a909b5
am: 21ea50673a

Change-Id: Icf8fadceacade223720afe297dcdb1be0c1874fa

7 years agoMerge "Run the versioner as part of the build."
Dan Albert [Thu, 23 Feb 2017 21:11:22 +0000 (21:11 +0000)]
Merge "Run the versioner as part of the build."
am: bd15a909b5

Change-Id: I6fb0081b43f1287cc0ea82e156df9efb1faf2288

7 years agoMerge "Run the versioner as part of the build."
Dan Albert [Thu, 23 Feb 2017 21:06:47 +0000 (21:06 +0000)]
Merge "Run the versioner as part of the build."

7 years agoExpand whitelist
Paul Lawrence [Wed, 15 Feb 2017 21:40:22 +0000 (13:40 -0800)]
Expand whitelist

Bug: 35217603
Test: App no longer triggers seccomp exceptions when launched
Change-Id: I8ea904640a2f14c67a075e593067327407766220

7 years agoMerge "Autogenerate single policy from syscalls and whitelist" am: b2a74cda90 am...
Paul Lawrence [Thu, 23 Feb 2017 20:55:34 +0000 (20:55 +0000)]
Merge "Autogenerate single policy from syscalls and whitelist" am: b2a74cda90 am: aff297e3f7
am: 913ce11ecf

Change-Id: If470ca32ea2f5ae90c946b865726b90e006ce4c3

7 years agoMerge "Autogenerate single policy from syscalls and whitelist" am: b2a74cda90
Paul Lawrence [Thu, 23 Feb 2017 20:45:24 +0000 (20:45 +0000)]
Merge "Autogenerate single policy from syscalls and whitelist" am: b2a74cda90
am: aff297e3f7

Change-Id: I94af2348ce91e7a8cf214a44a02c332c001bf761

7 years agoMerge "Autogenerate single policy from syscalls and whitelist"
Paul Lawrence [Thu, 23 Feb 2017 20:40:21 +0000 (20:40 +0000)]
Merge "Autogenerate single policy from syscalls and whitelist"
am: b2a74cda90

Change-Id: Iaebc4930e1685570a7daee6bf62719115f909108

7 years agoMerge "Autogenerate single policy from syscalls and whitelist"
Treehugger Robot [Thu, 23 Feb 2017 20:27:45 +0000 (20:27 +0000)]
Merge "Autogenerate single policy from syscalls and whitelist"

7 years agoReplace cxa_guard fences with acquire loads
Hans Boehm [Wed, 22 Feb 2017 23:34:29 +0000 (15:34 -0800)]
Replace cxa_guard fences with acquire loads

This seemed to be the only place in bionic where a fence on a
performance-critical path could be easily replaced by a stronger
load/store order constraint. Do so.

On x86 this should generate the same code either way. Based on
microbenchmarks of the relevant ARM instructions, this is currently
performance-neutral in this kind of context. But in the future, the
newly generated acquire loads should give us a performance benefit.

Test: Booted AOSP
Change-Id: I7823e11d6ae4fd58e0425244c293262e2320fd81

7 years agoAdd legacy inlines for more termios stuff.
Dan Albert [Thu, 23 Feb 2017 19:09:32 +0000 (11:09 -0800)]
Add legacy inlines for more termios stuff.

Test: make checkbuild # with my versioner-in-build patches
Bug: https://github.com/android-ndk/ndk/issues/302
Change-Id: Ib00b5dadf23592d101486b4f2188285ec03c9e2a

7 years agoRun the versioner as part of the build.
Dan Albert [Thu, 16 Feb 2017 01:18:01 +0000 (17:18 -0800)]
Run the versioner as part of the build.

Running this periodically and checking in the results is not working
out, since the result is just that I'm having to spend a lot of time
cleaning up the headers every time I need to update them in the NDK.

Run the versioner as part of the build instead. This way bionic
header changes behave like the rest of the NDK headers and will
affect NDK builds in the platform *immediately*.

Remove the preupload hook for the versioner since it's part of the
normal build now.

The versioner's dependencies directory needs to be moved because
soong won't let us try to do things outside our module's directory
(in this case libc).

Unfortunately this means we need to build the versioner for Darwin,
because we now need it to perform a platform build.

Test: make checkbuild
Bug: None
Change-Id: Icdab8a962354d9e945072dc3f806baea376c8db4

7 years agoAutogenerate single policy from syscalls and whitelist
Paul Lawrence [Tue, 14 Feb 2017 21:32:23 +0000 (13:32 -0800)]
Autogenerate single policy from syscalls and whitelist

Bug: 35392119
Bug: 34465958
Test: Check boots and same syscalls are blocked as before

Change-Id: I9efa97032c59aebbbfd32e6f0d2d491f6254f0a2

7 years agoMerge "Add test for a greylisted library" am: 3f76dadf15 am: 6a1ce9cc3d
Dimitry Ivanov [Thu, 23 Feb 2017 17:17:34 +0000 (17:17 +0000)]
Merge "Add test for a greylisted library" am: 3f76dadf15 am: 6a1ce9cc3d
am: 11ec902e7c

Change-Id: Iec29f79f3eb13fda3d6ca677f24560ed5a67d721

7 years agoMerge "Add test for a greylisted library" am: 3f76dadf15
Dimitry Ivanov [Thu, 23 Feb 2017 17:15:35 +0000 (17:15 +0000)]
Merge "Add test for a greylisted library" am: 3f76dadf15
am: 6a1ce9cc3d

Change-Id: If56373cb37e5369490690b0966fd33d5103d9ee3