Commit graph

34320 commits

Author SHA1 Message Date
Elliott Hughes
b82f5cfeb2 Improve <sys/xattr.h> coverage.
Also fix a comment copy & paste mistake and some formatting.

Test: treehugger
Change-Id: I0af3ab2eb4f180f86b0ab7d2af260f0f30692fdd
2021-03-08 14:09:43 -08:00
Treehugger Robot
1ef8d418be Merge "Remove unused (and empty) file." 2021-03-04 01:07:24 +00:00
Elliott Hughes
f443817ab6 Remove unused (and empty) file.
Spotted while looking at our shiny new coverage numbers. Though how the
change that removed the code from this file without removing the file
made it through code review... Clearly I wasn't paying attention that
day!

Test: treehugger
Change-Id: Id61bb48bae60660d2e5ba9b26f00a68e51157c6d
2021-03-03 14:31:35 -08:00
Treehugger Robot
d407d2f329 Merge "Ignore LD_LIBRARY_PATH when determining file type in ldd." am: 2d24fe21ba
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1613125

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I869f3a92d2200960339361c80f4cb8c381fb738b
2021-03-02 19:03:46 +00:00
Treehugger Robot
2d24fe21ba Merge "Ignore LD_LIBRARY_PATH when determining file type in ldd." 2021-03-02 18:13:11 +00:00
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
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é
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
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
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
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
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
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
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
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
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
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
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
ead117faf8 Merge "Update to v5.11 kernel headers." am: d29cac66b4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1592775

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I05ebd7606b6b6db263d9fa86ebfd4d437f45b355
2021-02-19 19:51:45 +00:00
Treehugger Robot
e9518c4259 Merge "Move __libc_int0x80 to an assembly file" am: b69a0d4969
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1592975

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia113bc06f522b69abfa1ebe18562e7c3f76b5fca
2021-02-19 19:51:28 +00:00
Elliott Hughes
dbcc54caf8 Merge "Fix some bionic death tests." am: 35e81bfc9f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595212

MUST ONLY BE SUBMITTED BY AUTOMERGER

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie7835e50dd2be9905b10ecf1872c19732748236c
2021-02-19 19:51:08 +00:00
Elliott Hughes
dcb2d54b36 Merge "Inline the raise(SIGABRT) for x86-64 too." am: a0a2654e2e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595871

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6dedf3e10eeeb5e5c06b2491564e1a77dcfec64a
2021-02-19 19:51:01 +00:00
Elliott Hughes
3171a11639 Merge "Use BionicDeathTest for an assert(3) test." am: 7f7efa92df
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595214

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I17f7e29e399c72e45d1e30cd9ec8c4183d5628e5
2021-02-19 19:50:55 +00:00
Treehugger Robot
afefbd4a82 Merge "iconv(3): ignore src_bytes_left if src_bytes is null." am: 6fe4daaa16
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595034

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I53edc482a7951418a0b8ae25cf85ba50bd39cc89
2021-02-19 19:50:39 +00:00
Christopher Ferris
d29cac66b4 Merge "Update to v5.11 kernel headers." 2021-02-19 19:47:44 +00:00
Treehugger Robot
b69a0d4969 Merge "Move __libc_int0x80 to an assembly file" 2021-02-19 19:27:48 +00:00
Treehugger Robot
030df1d7cd Merge "Increase leniancy in an inherently flaky test." am: 18dd0731f6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1595035

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5606fb335163d458e175e9864b4930cbe9421387
2021-02-19 19:15:50 +00:00
Elliott Hughes
35e81bfc9f Merge "Fix some bionic death tests." 2021-02-19 19:02:24 +00:00