Commit graph

34449 commits

Author SHA1 Message Date
Pete Bentley
557308c732 Ignore LD_LIBRARY_PATH when determining file type in ldd.
Otherwise if a 32bit copy of a library used by Toybox
exists on LD_LIBRARY_PATH then file(1) will fail.

Bug: 181666541
Test: Manually copied to device and verified correct behaviour
Change-Id: I7d729927b1b433ec953c266920489613fc096e03
2021-03-02 16:56:39 +00:00
Josh Gao
8059c94baf Merge "Add wrappers for pidfd_{open,getfd,send_signal}." am: 974721431d am: 2f12f61aaf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1601173

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie7c942a27351ca874d52f5cc1f015b5e84797c1c
2021-03-01 22:04:38 +00:00
Josh Gao
2f12f61aaf Merge "Add wrappers for pidfd_{open,getfd,send_signal}." am: 974721431d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1601173

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If04851be32a15fc086ced21e5601a88db135c54d
2021-03-01 21:48:02 +00:00
Josh Gao
974721431d Merge "Add wrappers for pidfd_{open,getfd,send_signal}." 2021-03-01 21:06:17 +00:00
Bram Bonné
f54f84e8e0 Merge "Add additional app to netlink appcompat allowlist." am: dddf75f990 am: a9fb3cc094
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1609253

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4c11d480ed87c090134608b9a8b08147c52842f5
2021-02-26 18:16:26 +00:00
Bram Bonné
a9fb3cc094 Merge "Add additional app to netlink appcompat allowlist." am: dddf75f990
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1609253

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f0f1e85b0118b1130825fa9b0b8325f4e64a665
2021-02-26 17:15:16 +00:00
Bram Bonné
dddf75f990 Merge "Add additional app to netlink appcompat allowlist." 2021-02-26 16:42:37 +00:00
Bram Bonné
82c3d89758 Add additional app to netlink appcompat allowlist.
Bug: 180726036
Test: Confirm app no longer errors at start
Change-Id: I9f1c99a13bbfb8dbdf977d52c67a64d400fd9821
2021-02-26 13:26:21 +00:00
Josh Gao
3de19151e5 Add wrappers for pidfd_{open,getfd,send_signal}.
Bug: http://b/172518739
Test: `/data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter="*pidfd*"` on blueline
Change-Id: Ibae32bbedbcf26535a80a5cbfb55ce180906b610
2021-02-25 13:55:12 -08:00
Christopher Parsons
d317bb613b Merge "Make libc genrules and its tool dep bp2build_available" am: 47b5c5d752 am: bc8f2f93b4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1603633

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe6f14e083dc2c393d59aeac7f8b18d0716e571a
2021-02-25 17:49:24 +00:00
Christopher Parsons
bc8f2f93b4 Merge "Make libc genrules and its tool dep bp2build_available" am: 47b5c5d752
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1603633

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic55421dc38b6b89910210838fe715a8f6cb8e228
2021-02-25 16:51:19 +00:00
Christopher Parsons
47b5c5d752 Merge "Make libc genrules and its tool dep bp2build_available" 2021-02-25 16:23:46 +00:00
Jingwen Chen
0c623690d9 Merge "bp2build: convert more cc_objects" am: 466b424deb am: 6eb9163fec
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1601253

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I51d9a8165cdc948c67f669e74341364e88b35d57
2021-02-25 15:22:19 +00:00
Jingwen Chen
6eb9163fec Merge "bp2build: convert more cc_objects" am: 466b424deb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1601253

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iebfecffe06baa15f0ed1e49577bc23078a1adfb7
2021-02-25 14:46:51 +00:00
Jingwen Chen
466b424deb Merge "bp2build: convert more cc_objects" 2021-02-25 14:09:08 +00:00
Chris Parsons
98b92e00c8 Make libc genrules and its tool dep bp2build_available
Test: lunch aosp_flame && USE_BAZEL_ANALYSIS=1 m libc
Test: lunch aosp_flame && USE_BAZEL_ANALYSIS=1 m crtbegin_so1
Change-Id: I12380ef9294f8b7c3b00ea700d804c1abde7ad04
2021-02-24 14:32:16 -05:00
Jingwen Chen
7e13cf2160 bp2build: convert more cc_objects
This is the last of remaining cc_objects in the libc package.

Test: go tests.

Test: build/bazel/scripts/milestone-2/demo.sh
Change-Id: Ib9c01be0faae10707305b81e72d3fac22bf96356
2021-02-24 01:21:01 -05:00
Treehugger Robot
2d81576ceb Merge "Make __libc_init_scudo() weak for native bridge." am: 6161970fa2 am: 79b45db894
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1603833

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic26a6def7b20fafd4e369d6479b6f976e0005f2c
2021-02-24 01:44:50 +00:00
Treehugger Robot
79b45db894 Merge "Make __libc_init_scudo() weak for native bridge." am: 6161970fa2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1603833

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I798977625e5f959e5b15dc535a311ffc4b752607
2021-02-24 01:14:36 +00:00
Treehugger Robot
6161970fa2 Merge "Make __libc_init_scudo() weak for native bridge." 2021-02-24 00:26:50 +00:00
Peter Collingbourne
bf917866f5 Make __libc_init_scudo() weak for native bridge.
__libc_init_scudo() calls directly into the allocator, bypassing the
normal guest to host transition in the native bridge. Therefore we
need to let the native bridge override it with a no-op.

Bug: 159352723
Change-Id: I642c7a058e483cc09335290f66b9c053150fca06
2021-02-23 13:18:03 -08:00
Treehugger Robot
b2248b1d80 Merge "bp2build: mark filegroups as bp2build_available." am: 14851abce9 am: f252ac79d4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1598174

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3a00dceb60a8a7bbf316b45eb4017bada2bb97c6
2021-02-22 20:15:01 +00:00
Treehugger Robot
f252ac79d4 Merge "bp2build: mark filegroups as bp2build_available." am: 14851abce9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1598174

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ice5f0fd7ec0c7a96909db37008188553ec6b8ebd
2021-02-22 19:01:59 +00:00
Elliott Hughes
4d88aaa9a1 Merge "Update gen_bench.py to propagate license information." am: 363a480602 am: 6ffaec1da2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596941

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8160fc983726fe04d1c9e66be2be02ecacb3205a
2021-02-22 18:45:47 +00:00
Treehugger Robot
14851abce9 Merge "bp2build: mark filegroups as bp2build_available." 2021-02-22 18:42:26 +00:00
Elliott Hughes
6ffaec1da2 Merge "Update gen_bench.py to propagate license information." am: 363a480602
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596941

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I25a3fcc74129f199429945095e0f4ed1c7e3caed
2021-02-22 17:53:23 +00:00
Elliott Hughes
363a480602 Merge "Update gen_bench.py to propagate license information." 2021-02-22 16:14:32 +00:00
Jingwen Chen
19787b9412 bp2build: mark filegroups as bp2build_available.
Test: build/bazel/scripts/milestone-2/demo.sh
Change-Id: Ife199b1860521c55baa96cadc42bd021556c62cd
2021-02-22 03:08:45 -05:00
Bob Badour
dcaaed933d Merge "Add LOCAL_LICENSE_KINDS to bionic" am: 8ae9d017f3 am: 4ee74f397b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I625b79ac751ea3e14404709ed74067c22f081789
2021-02-21 16:53:45 +00:00
Bob Badour
4ee74f397b Merge "Add LOCAL_LICENSE_KINDS to bionic" am: 8ae9d017f3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1596926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0e34b737394ec54c3d7238eae07bf34bda875e9b
2021-02-21 15:48:30 +00:00
Bob Badour
8ae9d017f3 Merge "Add LOCAL_LICENSE_KINDS to bionic" 2021-02-21 15:24:32 +00:00
Elliott Hughes
11642f3f28 Merge "Fix fdsan death tests." am: a0d3da5999 am: 77e0f5c60f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595218

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib5879971541828180b74f26238c906a7be2b06f6
2021-02-20 23:37:16 +00:00
Elliott Hughes
77e0f5c60f Merge "Fix fdsan death tests." am: a0d3da5999
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595218

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icb27ebe388873eb908a5e1b3c40ce658d9c70d7c
2021-02-20 22:50:50 +00:00
Elliott Hughes
a0d3da5999 Merge "Fix fdsan death tests." 2021-02-20 21:26:29 +00:00
Elliott Hughes
f5a97dc1e8 Update gen_bench.py to propagate license information.
Test: treehugger
Change-Id: Ia34fcb575575d7916632e0973d43b2bc0f510f15
2021-02-20 17:16:17 +00:00
Xin Li
69227f4c6d [automerger skipped] Mark ab/7061308 as merged in stage. am: d3d67eb4dc -s ours
am skip reason: Change-Id Id37766f4d0fbc4bb798ab11fb5e4013a33474232 with SHA-1 13f5ca0049 is in history

Original change: undetermined

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0b576ea29341c6ae55892c79c235ffaa4a3a259e
2021-02-20 09:33:10 +00:00
Xin Li
d3d67eb4dc Mark ab/7061308 as merged in stage.
Bug: 180401296
Merged-In: Id37766f4d0fbc4bb798ab11fb5e4013a33474232
Change-Id: I1d41ad9b0119b29517c63156613e4794b89d5da8
2021-02-20 00:24:00 -08:00
Jingwen Chen
407b94df86 Merge "bp2build: convert more cc_objects." am: 5e4a499e25 am: 0f04e81809
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595677

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0fcda0daf632dd71abba25f682971cf6c31e8adb
2021-02-20 05:35:42 +00:00
Jingwen Chen
0f04e81809 Merge "bp2build: convert more cc_objects." am: 5e4a499e25
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595677

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b4aaed6e2fa348f9a778274b703454cb2c96e9e
2021-02-20 05:17:20 +00:00
Jingwen Chen
5e4a499e25 Merge "bp2build: convert more cc_objects." 2021-02-20 04:53:19 +00:00
Elliott Hughes
37ee78a5c4 Merge "Don't dump backtraces while running fdtrack tests." am: 526a888d3f am: 5c60e9eda7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595217

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I160f4e9c11f7431831e401054e2e754c17802ebd
2021-02-20 00:46:23 +00:00
Elliott Hughes
5c60e9eda7 Merge "Don't dump backtraces while running fdtrack tests." am: 526a888d3f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595217

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0dac49c77715792c00a6aa7f44141fdbc399a0bc
2021-02-20 00:12:15 +00:00
Elliott Hughes
d76dd14ea7 Fix fdsan death tests.
Disable debuggerd for these expected failures.

Also use the usual naming pattern.

Bug: http://b/180605583
Test: check logs
Change-Id: I0254cb658d8a68e963ef59264106de4775e3fedd
2021-02-19 15:48:49 -08:00
Elliott Hughes
526a888d3f Merge "Don't dump backtraces while running fdtrack tests." 2021-02-19 23:40:07 +00:00
Bob Badour
aa7d835fdd Add LOCAL_LICENSE_KINDS to bionic
Added SPDX-license-identifier-Apache-2.0 to:
  apex/Android.bp
  libdl/Android.bp
  tools/Android.bp
  tools/versioner/Android.bp
  tools/versioner/src/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  benchmarks/Android.bp
  benchmarks/linker_relocation/gen/Android.bp
  libc/malloc_debug/Android.bp
  libc/system_properties/Android.bp
  tests/Android.bp
  tests/libs/Android.bp
  tests/libs/Android.build.dlext_testzip.mk
  tests/make_fortify_compile_test.mk

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-ISC SPDX-license-identifier-MIT
    legacy_notice legacy_unencumbered
to:
  libc/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT legacy_unencumbered
to:
  libm/Android.bp

Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered
to:
  libc/tools/Android.bp

Added SPDX-license-identifier-BSD
to:
  benchmarks/linker_relocation/Android.bp
  benchmarks/spawn/Android.bp
  libc/async_safe/Android.bp
  libc/malloc_hooks/Android.bp
  libfdtrack/Android.bp
  linker/Android.bp
  tests/headers/Android.bp
  tests/headers/posix/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ib05bcaa276b3aa71a7654ccbe8e67e1f16aec9f3
2021-02-19 23:38:28 +00:00
Christopher Ferris
162b8cfddd Merge "Update to v5.11 kernel headers." am: d29cac66b4 am: ead117faf8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1592775

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec13f58f31618e537fd00bfec1bedf2b2998e48b
2021-02-19 20:41:18 +00:00
Treehugger Robot
9fc71d6250 Merge "Move __libc_int0x80 to an assembly file" am: b69a0d4969 am: e9518c4259
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1592975

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6e9d70357c6e449c92b5db35feef58866a1f950a
2021-02-19 20:41:08 +00:00
Elliott Hughes
02725739e2 Merge "Fix some bionic death tests." am: 35e81bfc9f am: dbcc54caf8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595212

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I43233381585f97d8e93feb43d7ce674cb446f820
2021-02-19 20:41:03 +00:00
Elliott Hughes
c071ee2d42 Merge "Use death tests correctly." am: fabcc96a7c am: 47ecccf2ec
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595215

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I35887ed0316686a6954231f11a26e1cb43f3acfc
2021-02-19 20:40:59 +00:00
Treehugger Robot
1b9525c5c2 Merge "Switch BionicDeathTest to #pragma once." am: 3b7cc4ad89 am: b06e2d9bbb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595213

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ife4c22899d5643482ed4b8307d17b59e118deabe
2021-02-19 20:40:52 +00:00