Commit graph

36033 commits

Author SHA1 Message Date
Mitch Phillips
b0a961ec00 Merge "Add GWP-ASan CTS to bionic TEST_MAPPING" am: 98b49a060f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2043303

Change-Id: Ibf3824aa177029632be8b9d3a870065bd1c0955d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 18:17:31 +00:00
Mitch Phillips
98b49a060f Merge "Add GWP-ASan CTS to bionic TEST_MAPPING" 2022-03-25 17:57:07 +00:00
Mitch Phillips
40d9622c12 Add GWP-ASan CTS to bionic TEST_MAPPING
Bug: N/A
Change-Id: Ia9aac40965ba77823cd3824b0508d4e48c07f43f
Test: presubmit should pick up the new test in TEST_MAPPING.
2022-03-25 00:08:32 +00:00
Treehugger Robot
e3893280a4 Merge "Avoid usage of LONG_BIT in signal headers." am: 2b64e4000d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2038949

Change-Id: I2077f3b2dfbf05ac26575d3f456bf1e9e0d81b81
Signed-off-by: Automerger Merge Worker
2022-03-24 21:24:45 +00:00
Treehugger Robot
2b64e4000d Merge "Avoid usage of LONG_BIT in signal headers." 2022-03-24 21:10:41 +00:00
Peter Collingbourne
08b968b282 Avoid usage of LONG_BIT in signal headers.
Clang has its own limits.h which is ahead of ours on the inclusion
path. This header uses include_next to include our header, but only
in hosted mode. This means that in freestanding mode we don't get our
limits.h macro definitions, including LONG_BIT. This ends up causing
our signal.h to produce errors when included in freestanding mode on
32-bit platforms.

Fix the errors by replacing usage of LONG_BIT with (8 * sizeof(long))
in the signal headers.

Change-Id: I18ec7b6876d5f862beae09f0c011128eef97c869
2022-03-24 11:11:11 -07:00
Christopher Ferris
ceed1d8ec0 Merge "Update to v5.17 kernel headers." am: 9263a823ea
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2037786

Change-Id: Ie3d253811d84ee1c87557bceb5ad8164e0576a2c
2022-03-23 18:52:13 +00:00
Christopher Ferris
9263a823ea Merge "Update to v5.17 kernel headers." 2022-03-23 18:30:54 +00:00
Christopher Ferris
1ed5534657 Update to v5.17 kernel headers.
Kernel headers coming from:

Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-5.17

Test: Boots on a flame and all bionic unit tests pass.
Change-Id: I7057d7308241f3acfa600597d287994c39ababbc
2022-03-22 16:48:40 -07:00
Treehugger Robot
3510d87bd7 Merge "Add DF_1_ORIGIN to SUPPORTED_DT_FLAGS_1." am: 8397fadb2e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2035563

Change-Id: I46ec11d3e87e5ef52de34b845674a6eb5df41ed6
2022-03-22 20:38:52 +00:00
Treehugger Robot
8397fadb2e Merge "Add DF_1_ORIGIN to SUPPORTED_DT_FLAGS_1." 2022-03-22 20:25:30 +00:00
Peter Collingbourne
7aa3abc781 Add DF_1_ORIGIN to SUPPORTED_DT_FLAGS_1.
This flag means "$ORIGIN processing required", and since we always
do that, we can claim support for it.

Change-Id: If60ef331963f6bc1e1818d7fa2ee57c1aa8fa343
2022-03-21 19:02:26 -07:00
Treehugger Robot
7923456b83 Merge "Suppress -Wformat warning" am: 8321ff1468
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2027237

Change-Id: If4822c76ccd467bb391bb35f9d0bc1bc0a8c01eb
2022-03-16 19:33:31 +00:00
Treehugger Robot
8321ff1468 Merge "Suppress -Wformat warning" 2022-03-16 18:55:05 +00:00
Yi Kong
f9b1313968 Suppress -Wformat warning
This is exactly what it is testing for.

Original warning:
  bionic/tests/stdio_test.cpp:370:47: error: '%n' specifier not supported on this platform [-Werror,-Wformat]
    EXPECT_DEATH(snprintf(buf, sizeof(buf), "a %n b", &i), "%n not allowed on Android");
                                               ~^

Test: presubmit
Bug: 219872355
Change-Id: I6e378722b2d681cf64f4cf31ef000bd28203b00d
2022-03-16 08:15:15 +00:00
Colin Cross
6b6d8f1ee6 Merge "Tweak linux_glibc properties for musl builds in bionic" am: 14e01ac5e2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2019615

Change-Id: If7c07e7581c2caebe5bf301bb69acc47bbf5933c
2022-03-15 04:16:05 +00:00
Colin Cross
14e01ac5e2 Merge "Tweak linux_glibc properties for musl builds in bionic" 2022-03-15 03:47:57 +00:00
Elliott Hughes
ba270227ed Merge "Revert "Disable pointer authentication in app processes."" am: 93f3017e03
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2021035

Change-Id: If6a9b14e64c60609fe3e81e9657ec4a98962eb09
2022-03-14 21:35:53 +00:00
Elliott Hughes
93f3017e03 Merge "Revert "Disable pointer authentication in app processes."" 2022-03-14 21:09:31 +00:00
Evgenii Stepanov
f5fabaed4b Merge "Fix mte tests to allow auto-upgrade." am: 17185eda89
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2019123

Change-Id: I4f48ba7bb4d72b53fdd28f09844ed72997afa618
2022-03-14 20:40:45 +00:00
Evgenii Stepanov
17185eda89 Merge "Fix mte tests to allow auto-upgrade." 2022-03-14 20:06:52 +00:00
Evgenii Stepanov
9705aac89a Fix mte tests to allow auto-upgrade.
The kernel MTE mode auto-upgrade feature (see mte_tcf_preferred) allows
silent auto-upgrade of Async MTE mode to Asymm or Sync depending on the
OS settings. Relax the tests to allow either Sync or Async faults when
requesting Async mode, and only Sync faults when requesting Sync.

Also tighten the MTENote test to check that both system allocator and
prctl are off when MTE is disabled.

Bug: 214622342
Test: bionic-unit-tests on fvp with all variations of
    /sys/devices/system/cpu/cpu*/mte_tcf_preferred=(async|asymm|sync)

Change-Id: I77a92789d6b330742d00b08c9f0fecc3a6c8fca6
2022-03-10 16:38:06 -08:00
Elliott Hughes
7309177235 Revert "Disable pointer authentication in app processes."
Revert submission 1954983-master-I3030c47be9d02a27505bd4775c1982a20755758c

Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
Reverted Changes:
I3030c47be:Disable pointer authentication in app processes.
I3030c47be:Disable pointer authentication in app processes.

Change-Id: I8761f08ddbd9077ff98b1a9a0c323de968792778
2022-03-10 18:01:04 +00:00
Colin Cross
da446cc5cc Tweak linux_glibc properties for musl builds in bionic
For convenience, builds against musl libc currently use the
linux_glibc properties because they are almost always linux-specific
and not glibc-specific.  In preparation for removing this hack,
tweak the linux_glibc properties by either moving them to host_linux,
which will apply to linux_glibc, linux_musl and linux_bionic, or
by setting appropriate musl or linux_musl properties.  Properties
that must not be repeated while musl uses linux_musl and also still
uses the linux_glibc properties are moved to glibc properties, which
don't apply to musl.  Whether these stay as glibc properties or get
moved back to linux_glibc later once the musl hack is removed is TBD.

Bug: 223257095
Test: m checkbuild
Test: m USE_HOST_MUSL=true host-native
Change-Id: I809bf1ba783dff02f6491d87fbdc9fa7fc0975b0
2022-03-08 15:07:57 -08:00
Colin Cross
c5264d793b Merge "Use single module for libclang_rt.builtins-exported" am: 471bef4d34
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1980486

Change-Id: Icdf287562298bce390cdd16ed94ff4756eb17541
2022-03-08 07:30:17 +00:00
Colin Cross
471bef4d34 Merge "Use single module for libclang_rt.builtins-exported" 2022-03-08 06:51:43 +00:00
Christopher Ferris
5fbda5b808 Merge "Update for LocalUnwinder object removal." am: 25de3ac3f1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2007331

Change-Id: I34b0502a05780af5b5d1068408de6c29e032e4eb
2022-03-04 23:19:56 +00:00
Christopher Ferris
25de3ac3f1 Merge "Update for LocalUnwinder object removal." 2022-03-04 22:56:57 +00:00
Christopher Ferris
459eecb28b Update for LocalUnwinder object removal.
Modify libfdtrack to use the normal Unwinder object. In addition,
update the libfdtrack so that it doesn't record frames in
libfdtrack.so rather than skipping frames it thinks will be in
the library.

Modify the malloc debug code to use the normal Unwinder object.

Bug: 120606663

Test: All unit tests pass.
Change-Id: I3c9612dd10e62389e6219e68045ee87f7b2625f5
2022-03-03 15:23:25 -08:00
Christopher Ferris
fd5fa7d82e Merge "Add documentation about Android 12 bug." am: 39837afad7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2004748

Change-Id: I441d0cf04f54c239c63bb18a9ad6678c3a2416a0
2022-03-03 01:35:32 +00:00
Christopher Ferris
39837afad7 Merge "Add documentation about Android 12 bug." 2022-03-03 01:06:25 +00:00
Christopher Ferris
02ba051a7c Merge "Remove dead subdirs directive." am: 8029112fab
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2004746

Change-Id: I2f5d601baad17a975b90abb6fe3e1d44eeab19ef
2022-03-02 23:35:56 +00:00
Christopher Ferris
8029112fab Merge "Remove dead subdirs directive." 2022-03-02 23:12:52 +00:00
Christopher Ferris
8cbba80e66 Add documentation about Android 12 bug.
The wrap.<APP> property was broken in Android 12, so provide documentation
about how to workaround it.

Test: NA
Change-Id: I98fdc5801997492442802e1295fb6969f9190e1c
2022-03-02 14:37:34 -08:00
Christopher Ferris
d9b8d13a3a Remove dead subdirs directive.
I removed the bionic/scudo directory a while ago, but I must have
missed removing the subdirs from the Android.bp file.

Test: Builds.
Change-Id: I3e2a1f42b91273a566e587e923c7c3889a71ed17
2022-03-02 21:16:37 +00:00
Colin Cross
335e27b740 Use single module for libclang_rt.builtins-exported
The clang prebuilts now provide a single module with per-architecture
variants instead of a module per architecture.

Bug: 220019988
Test: m checkbuild
Ignore-AOSP-First: topic contains vendor projects
Change-Id: I079f36f94b13e06d59a16cf665b65db76084021a
Merged-In: I079f36f94b13e06d59a16cf665b65db76084021a
2022-03-01 11:36:55 -08:00
Colin Cross
c33d1f9b41 Merge "Add bionic NOTICE file to musl sysroot" am: acd91c22e9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2000499

Change-Id: I464079ac2826d760db96f4b611b09e9c4e6ea129
2022-02-28 21:11:02 +00:00
Colin Cross
acd91c22e9 Merge "Add bionic NOTICE file to musl sysroot" 2022-02-28 20:26:13 +00:00
Colin Cross
ad33d02faa Add bionic NOTICE file to musl sysroot
Add the bionic NOTICE file to cover the headers included in the
musl sysroot.

Bug: 190084016
Test: examine libc_musl_sysroot.zip
Change-Id: I2b5e1b89e997ac370983e5959a83f09cdcc240e8
2022-02-25 18:27:04 -08:00
Treehugger Robot
0de0b574e2 Merge "Remove clang version check around diagnose_as_builtin" am: 4e5f094461
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1997372

Change-Id: I6338577d9c4b7f27a44cd4c9c42e0dd01a1ec8bf
2022-02-24 01:03:29 +00:00
Treehugger Robot
4e5f094461 Merge "Remove clang version check around diagnose_as_builtin" 2022-02-24 00:42:19 +00:00
Treehugger Robot
eea049dda1 Merge "Disable LTO for libBionicStandardTests" am: b01095f077
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1995972

Change-Id: Id5e8038f82af4ceec80b23fcd54a2b085b4eca97
2022-02-23 19:06:07 +00:00
Treehugger Robot
b01095f077 Merge "Disable LTO for libBionicStandardTests" 2022-02-23 18:40:22 +00:00
Pirama Arumuga Nainar
07cdd57d53 Remove clang version check around diagnose_as_builtin
Bug: http://b/197147102

versioner in aosp/1997532 is built with clang-r445002 and understands
the new attribute.

Test: mmma bionic
Change-Id: Ia3e3c3840e6013446d2679587b72011aff8c50eb
2022-02-23 17:51:55 +00:00
Pirama Arumuga Nainar
fef519b637 Disable LTO for libBionicStandardTests
Bug: http://b/218788252

IR verifier too strict for ifunc resolver that accept parameters.  This
is only exposed with Thin LTO.  The error is:

  IFunc resolver has incorrect type
  i32 ()* @_Z5hwcapv

Test: mmma GLOBAL_THINLTO=true bionic
Change-Id: Ifed4041ee8557ba1a5eb7a5a82f54b5ca5c79161
2022-02-22 15:01:27 -08:00
Elliott Hughes
ae1ccadfac Merge "posix_spawn: always clear O_CLOEXEC for dup'ed fds." am: 34da4b5842
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1989308

Change-Id: Ie65d441b5e280297ab1b1eb22d0a21df1275c5b1
2022-02-18 00:44:07 +00:00
Elliott Hughes
34da4b5842 Merge "posix_spawn: always clear O_CLOEXEC for dup'ed fds." 2022-02-18 00:24:12 +00:00
Treehugger Robot
7628c4797d Merge "Explain why we test ifunc variables." am: 5d3c384fa4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1990811

Change-Id: I2f395eb3ee1f34e5928fb280fd502155879dabfd
2022-02-17 22:56:39 +00:00
Treehugger Robot
5d3c384fa4 Merge "Explain why we test ifunc variables." 2022-02-17 22:04:08 +00:00
Pirama Arumuga Nainar
2b8b74a77f Merge "Cast ifunc resolver's return type" am: afc77a08b4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1990810

Change-Id: I90524724a73647363c5ad4a76d2af61715894cfc
2022-02-17 21:54:43 +00:00