Commit graph

7918 commits

Author SHA1 Message Date
Elliott Hughes
dcaa56e695 Merge "Revert "Stop checking the global thread list in several trivial cases."" am: f201c704d6
am: b82f472c66

Change-Id: Ib0054aceacf20ee9b0c586bdb2c6441254f157a7
2017-02-07 21:18:41 +00:00
Elliott Hughes
f201c704d6 Merge "Revert "Stop checking the global thread list in several trivial cases."" 2017-02-07 21:12:23 +00:00
Elliott Hughes
bcb152903a Revert "Stop checking the global thread list in several trivial cases."
This reverts commit f5a4992b71.

Breaks OMX_ImgEnc in cameraserver (http://b/35088254).

Change-Id: I6dcf12706a184b0b8b72451584567a42dfa1bb4f
2017-02-07 21:05:30 +00:00
Elliott Hughes
6244abf143 Merge "Improve a comment." am: a1fa522927
am: 7272909a9e

Change-Id: Ib941aa88d74a8f8bea23a149df57dd8ce981795a
2017-02-07 17:05:55 +00:00
Elliott Hughes
a1fa522927 Merge "Improve a comment." 2017-02-07 17:01:16 +00:00
Elliott Hughes
ffb2bddcb9 Merge "Stop checking the global thread list in several trivial cases." am: 4708f435f5
am: 56209f0dd4

Change-Id: If798296ea508f4f72d202948357e2816581e3977
2017-02-07 00:38:58 +00:00
Elliott Hughes
f5a4992b71 Stop checking the global thread list in several trivial cases.
Since removing the global thread is hard, let's take the different
groups of functions individually.

The existing code was racy anyway, because the thread might still be
on the list but have exited (leaving tid == 0).

Bug: http://b/19636317
Test: ran tests
Change-Id: Icc0986ff124d5f9b8a653edf718c549d1563973b
2017-02-06 14:09:53 -08:00
Elliott Hughes
5e6cf05aab Improve a comment.
Bug: http://b/23675822
Test: builds
Change-Id: Ia58ffabf38012035076e4c682faa4c93f3690e24
2017-02-06 10:26:20 -08:00
Paul Lawrence
28d7378390 Merge "Create seccomp policy without TRAP for further processing" am: 4a47d2c436
am: b62e0a316f

Change-Id: Ibcd4a63aa3175bd94eef7d0cd5197d1fa2b9807d
2017-02-03 20:21:50 +00:00
Paul Lawrence
be8a2af2aa Create seccomp policy without TRAP for further processing
Bug: 34946764
Test: Make sure boots, seccomp still blocks, and is faster
Change-Id: Ib4abf4307ae545ee69a3fb9328f62c760a1b40f7
2017-02-03 09:36:45 -08:00
Elliott Hughes
a5e949b4b6 Merge "isnan and isinf aren't functions." am: 33ae5a97f2
am: 9184128819

Change-Id: I2a80969ecfcbab1c5cb8ec03ba4cd8028d9160b6
2017-02-03 00:43:06 +00:00
Elliott Hughes
33ae5a97f2 Merge "isnan and isinf aren't functions." 2017-02-03 00:32:01 +00:00
Elliott Hughes
e76ee993ff isnan and isinf aren't functions.
isnan was a function in POSIX in 1997, but changed to a macro only in 2004
to align with the C standard. isinf wasn't in POSIX until 2004, where it
appeared as a macro only (but other C libraries already had it as a
function).

Now the C++ standard has added ::isnan and ::isinf functions with different
signatures from the historical ones, so we need to move our historical cruft
out of the way.

We'll keep the implementations for backwards compatibility.

Bug: http://b/34724220
Test: ran tests
Change-Id: Id665f0344af6fe6ed245106e60231f4ef2027f41
2017-02-02 14:02:49 -08:00
David James
91fbf754fc Merge "Revert "Remove the global thread list."" am: a187a6f12e
am: 5124a0e635

Change-Id: Id8be9184e92bb7e6a06d9da9fc1efcf06ed927b9
2017-02-02 02:52:38 +00:00
David James
a187a6f12e Merge "Revert "Remove the global thread list."" 2017-02-02 02:46:40 +00:00
Elliott Hughes
7484c21c4c Revert "Remove the global thread list."
This reverts commit b0e8c565a6.

Breaks swiftshader (http:/b/34883464).

Change-Id: I7b21193ba8a78f07d7ac65e41d0fe8516940a83b
2017-02-02 02:41:38 +00:00
Elliott Hughes
7922c13fb6 Merge "Remove the global thread list." am: 9b9d4ebc8b
am: 959ef64b41

Change-Id: I84d9a72adaac8baee9e241062c2c974d7dacc61b
2017-02-01 16:21:58 +00:00
Elliott Hughes
9b9d4ebc8b Merge "Remove the global thread list." 2017-02-01 16:16:41 +00:00
Greg Hackmann
7a9c8515d7 Merge "bionic: move ADF uapi header out of bionic" am: b88112dcfc
am: 04951b227c

Change-Id: Idd9987f6cf8c1454064d021d3699eaea73170038
2017-02-01 04:45:27 +00:00
Treehugger Robot
b88112dcfc Merge "bionic: move ADF uapi header out of bionic" 2017-02-01 04:38:15 +00:00
Elliott Hughes
f25a113f53 Merge "s/NULL/nullptr/ in system properties code." am: eb35144e58
am: 5f7024d846

Change-Id: I78324168525b0bd4fb676fa794139abc4806624d
2017-01-31 18:29:28 +00:00
Elliott Hughes
8e7396c9d7 s/NULL/nullptr/ in system properties code.
gerrit still hasn't sent out the mail asking for this in an earlier code
review...

Bug: http://b/33926793
Test: builds and boots.
Change-Id: I080de633e50e47f9a052211d47da96b971b16424
2017-01-31 08:24:43 -08:00
Elliott Hughes
fcd192e64f Merge "clang-format system_properties.cpp." am: 44bea80d31
am: 7048f79b2a

Change-Id: Ic7955005e1b60440338d24eef23f197fb4e19f01
2017-01-31 15:24:54 +00:00
Elliott Hughes
9160ed9bb7 clang-format system_properties.cpp.
Asked for on a previous code review.

Bug: http://b/33926793
Test: builds and boots.
Change-Id: Idf34804896149db5edbddf4ed88396a5df7f708a
2017-01-30 17:54:57 -08:00
Elliott Hughes
2420f394bb Merge "glibc ipc64_perm __key compatibility." am: 5dc75c6c4d
am: d0e08b37b1

Change-Id: I4f0bb0d2e335664024f94b43955b588a3fd4230e
2017-01-30 23:05:54 +00:00
Treehugger Robot
5dc75c6c4d Merge "glibc ipc64_perm __key compatibility." 2017-01-30 23:01:01 +00:00
Sandeep Patil
336caa97c6 property_contexts: split into platform and non-platform components am: 34f0cfa3a8
am: dbac5f634c

Change-Id: I493473a003a55b439b2350aec16489841c3dba6c
2017-01-30 19:25:03 +00:00
Sandeep Patil
dbac5f634c property_contexts: split into platform and non-platform components
am: 34f0cfa3a8

Change-Id: Ia1bcc896d3901217323a3d1299aada8223eceff5
2017-01-30 19:21:22 +00:00
Sandeep Patil
93e272d00a Merge "property_contexts: split into platform and non-platform components" 2017-01-30 19:16:17 +00:00
Elliott Hughes
7827cf6cf2 Merge "Remove backwards compatibility for old system properties." am: 0c6f806b1d
am: 0f265255a6

Change-Id: Ia66376e579c4eaa92e177394fb5d442abb465e7f
2017-01-28 16:51:00 +00:00
Elliott Hughes
a29821bb45 glibc ipc64_perm __key compatibility.
glibc gives the `struct ipc64_perm` fields `key` and `seq` double-underscore
names. strace refers to the fields by those names, and there's no obvious
reason not to go along with this.

Bug: N/A
Test: built strace 4.15 with a hacked NDK
Change-Id: I8b2b0f75363349d99edaecda50fe897ee0fa0c65
2017-01-27 19:12:32 -08:00
Elliott Hughes
f8562c5f8f Remove backwards compatibility for old system properties.
No-one is directly upgrading from pre-K to O...

Also move more implementation details out of the header file.

Bug: http://b/33926793
Test: boots
Change-Id: I7a0936acbb1cea8a3b2cd6797ec53ba7e4a050f3
2017-01-27 16:19:59 -08:00
Christopher Ferris
fcbe1b780f Merge "Update to kernel headers v4.9.6." am: 6a9e0c8f15
am: 553293dd96

Change-Id: Id0c472fe933d57418539f5ac091bf2d9e88cc0cd
2017-01-27 21:17:10 +00:00
Sandeep Patil
34f0cfa3a8 property_contexts: split into platform and non-platform components
Bug: 33746484
Bug: 34370523
Test: Successfully boot with original service and property contexts.
Test: Successfully boot with split serivce and property contexts.
Test: Incremental build works on sailfish (reported in b/34370523)
Test: adb sideload works with aosp updater (reported in b/34370523)

Change-Id: Idf24856193032a8bc89ec384a72451e578a9d5ac
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-01-27 13:12:32 -08:00
Greg Hackmann
7518109063 bionic: move ADF uapi header out of bionic
ADF isn't a candidate for upstreaming and isn't (directly) usable from
unprivileged NDK code, so it makes more sense to keep video/adf.h as a
private header inside libadf, where it'll still be usable by HWC
implementations without shipping in the NDK.

libadf exports its entire include/ directory, so this shouldn't have any
impact on HWC implementations that already link against libadf.

Test: mmm system/core/adf/libadf
Test: /data/nativetest64/adf-unit-tests/adf-unit-tests (on Nexus 9)
Change-Id: I6573f539cfd7fc65433237d0b115b8b7b2728133
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2017-01-27 13:01:51 -08:00
Christopher Ferris
351a796d2d Update to kernel headers v4.9.6.
Test: Built arm/arm64/x86/x86_64 targets.
Change-Id: Id4d2711aaa96fe537f3726a0a89f2959e9cca34a
2017-01-27 10:49:48 -08:00
Christopher Ferris
edcde622eb Merge "Update to kernel headers v4.9.3." am: 00e388df4e
am: 16875896ac

Change-Id: I154ea1d11d0235270bd4dec2f6eebe0307fdff40
2017-01-27 17:56:59 +00:00
Christopher Ferris
00e388df4e Merge "Update to kernel headers v4.9.3." 2017-01-27 17:50:46 +00:00
Dimitry Ivanov
5e1dc58db9 Merge "Remove dependency on libc.a from the linker" am: 2ca556bb6e
am: 6fcea73028

Change-Id: I09fc09bfb149fd7b169bbc5cab1276b1aa7c8b76
2017-01-27 03:12:51 +00:00
Dimitry Ivanov
451909da31 Remove dependency on libc.a from the linker
Provide stub for unused but needed symbol __find_icu_symbol
which is not included to libc_nomalloc.a.

Test: mm and boot
Change-Id: I57ca09c990556d1d401e2f4a75bc49b61b4cd85d
2017-01-26 17:08:01 -08:00
Max Spector
4624ed5039 Merge "Adding kuser_helper on note to all arm32 binaries." am: 577a944200
am: 36c6ce26a2

Change-Id: I6af912a1f7e52574be15e64ec099459592dd1beb
2017-01-26 18:50:48 +00:00
Max Spector
577a944200 Merge "Adding kuser_helper on note to all arm32 binaries." 2017-01-26 18:43:40 +00:00
Stephen Hines
fbb7c0e765 Merge "Don't mark __res_params or android_net_context as packed." am: 0c45c7dc5e
am: 6776efa346

Change-Id: I6b83f36d0e344c9174f7fcdd210ceecbafdd3027
2017-01-26 07:24:57 +00:00
Treehugger Robot
0c45c7dc5e Merge "Don't mark __res_params or android_net_context as packed." 2017-01-26 07:13:21 +00:00
mspector
2e3d6a1d67 Adding kuser_helper on note to all arm32 binaries.
A kernel change is going in for 64bit arm to disable kuser_helper vector
pages for 32bit processes.  This change adds a special elf note to
all arm32 binaries built with bionic.  This note tells the kernel to
load the kuser_helper vector page for the process.

Bug: 33689037
Test: Manual - Phone boots, 32bit binaries have the notes, 64bit
binaries do not.
Change-Id: Ib8366e2a0810092b71381d57dee4bdaa56369a24
2017-01-25 17:33:05 -08:00
Christopher Ferris
6a9755d20a Update to kernel headers v4.9.3.
Test: Built arm, arm64, x86, x86_64 targets.
Test: Booted on angler, and ran bionic unit tests (32 bit and 64 bit).

Change-Id: I14a8dcbea11b41f83431eabed6590cd25af07b1d
2017-01-25 16:23:56 -08:00
Paul Lawrence
fe55c3ac41 Merge "Use trap not kill in seccomp filter" am: 6418f95ca2
am: b5a151a12d

Change-Id: Icae95f9dfd6f7b4ab7e5422ee8e1b103e9c62b61
2017-01-25 22:52:56 +00:00
Paul Lawrence
6418f95ca2 Merge "Use trap not kill in seccomp filter" 2017-01-25 22:46:06 +00:00
Stephen Hines
9935e0fcee Don't mark __res_params or android_net_context as packed.
Bug: http://b/31532493

These internal API structures are never actually used anywhere that
would change behavior because it is "packed", so it is safe to remove.

Test: Builds correctly with the latest toolchain.
Change-Id: I5431992d840777605be75ab91dc21158d6d22c26
2017-01-25 00:42:45 -08:00
Dimitry Ivanov
8dba8acd6e Do not send 0 byte string content. am: cafd355375
am: 6fd88344a5

Change-Id: If8fd7fac36d145cf6f611cc562ab5b5b345e33d9
2017-01-25 03:58:50 +00:00