Commit graph

36065 commits

Author SHA1 Message Date
Evgenii Stepanov
97ccc5b9e6 Merge "Fix mte tests to allow auto-upgrade." am: 17185eda89 am: f5fabaed4b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2019123

Change-Id: Icc1f8df19fd0e39d1e92404f40bce487c724846b
2022-03-14 21:11:19 +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
Colin Cross
e7de05c575 [automerger skipped] Merge "Use single module for libclang_rt.builtins-exported" am: 471bef4d34 am: c5264d793b -s ours
am skip reason: Merged-In I079f36f94b13e06d59a16cf665b65db76084021a with SHA-1 a765f193eb is already in history

Original change: https://android-review.googlesource.com/c/platform/bionic/+/1980486

Change-Id: If8fe832e8b9b6a5be336a33eb513e2ed27b1767e
2022-03-08 07:34:03 +00: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
ee56b9256e Merge "Update for LocalUnwinder object removal." am: 25de3ac3f1 am: 5fbda5b808
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2007331

Change-Id: Iebfc7addcfc8cd2d552568942dac105fbe315c77
2022-03-04 23:42:30 +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
64cde2d139 Merge "Add documentation about Android 12 bug." am: 39837afad7 am: fd5fa7d82e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2004748

Change-Id: Idd796993f611cfed239fb595cce6a78fc44fc408
2022-03-03 01:58:08 +00: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
732e03fc6a Merge "Remove dead subdirs directive." am: 8029112fab am: 02ba051a7c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2004746

Change-Id: I45e12ab24f4585af4218deee908cb9e8fa855d1c
2022-03-02 23:58:03 +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
b03f687e16 Merge "Use single module for libclang_rt.builtins-exported" into sc-v2-dev-plus-aosp 2022-03-01 00:55:38 +00:00
Colin Cross
af06b24f56 Merge "Add bionic NOTICE file to musl sysroot" am: acd91c22e9 am: c33d1f9b41
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2000499

Change-Id: Ifd8b552be4f0269683876e2b7caaacf98c4dd6e5
2022-02-28 22:06:14 +00:00
Colin Cross
8b31ec4dfc 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
(cherry picked from commit bb29ca79f6)
Merged-In: I079f36f94b13e06d59a16cf665b65db76084021a
Change-Id: I690e1f4225b873dc987ba8c0a20b490643c51afe
2022-02-28 21:29:33 +00: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
a765f193eb 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
(cherry picked from commit bb29ca79f6)
Merged-In:I079f36f94b13e06d59a16cf665b65db76084021a
2022-02-28 21:01:00 +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
7068fc56dc Merge "Remove clang version check around diagnose_as_builtin" am: 4e5f094461 am: 0de0b574e2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1997372

Change-Id: I36283f5eb95c72271b4a29c97ef3c7a3314f2492
2022-02-24 01:32:46 +00: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
0fc5854c75 Merge "Disable LTO for libBionicStandardTests" am: b01095f077 am: eea049dda1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1995972

Change-Id: Ica3690ccf4c2925aed563187497194f0e2639b86
2022-02-23 19:34:26 +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
fa16643b17 Merge "posix_spawn: always clear O_CLOEXEC for dup'ed fds." am: 34da4b5842 am: ae1ccadfac
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1989308

Change-Id: Ie9f0c9ae8fb003dc4794682a25ed7051121f15c4
2022-02-18 01:18:42 +00: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
54cdab30f6 Merge "Explain why we test ifunc variables." am: 5d3c384fa4 am: 7628c4797d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1990811

Change-Id: Ic025a944149820ecccc9e2202f78386cc07a0763
2022-02-17 23:19:01 +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
Pirama Arumuga Nainar
1b81de2fe5 Merge "Cast ifunc resolver's return type" am: afc77a08b4 am: 2b8b74a77f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1990810

Change-Id: I210c6203eeba15011d5a3e014e91ece9f190717a
2022-02-17 22:15:08 +00:00
Zijun Zhao
3507d417df Merge "Add %m and %#x support for async_safe logging" am: 99ed14b85b am: 1e58e27ef3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1965699

Change-Id: I1c104f3234d29b2613933cfc71d2be7681f4776e
2022-02-17 22:15:00 +00:00
Treehugger Robot
a6163639ef Merge "T is API level 33, not 32." am: df34c97361 am: 42242d58cc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1989309

Change-Id: Ibeb619481d35f2c2c3ca922cd56451ba254b71f0
2022-02-17 22:14:44 +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
Zijun Zhao
1e58e27ef3 Merge "Add %m and %#x support for async_safe logging" am: 99ed14b85b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/1965699

Change-Id: Ib8cbf2e4bfac6e110851b9223a713becc4c15f69
2022-02-17 21:54:25 +00:00
Pirama Arumuga Nainar
afc77a08b4 Merge "Cast ifunc resolver's return type" 2022-02-17 21:26:06 +00:00
Elliott Hughes
82c90724e3 Explain why we test ifunc variables.
Bug: http://b/218788252
Test: treehugger
Change-Id: I51825ab61adeaf6f1242df9a22f89cbd0671db48
2022-02-17 11:55:49 -08:00
Pirama Arumuga Nainar
9be2427895 Cast ifunc resolver's return type
Bug: http://b/218788252

Even though a resolver can return any pointer, LLVM IR verifier now
checks that the resolver returns a pointer to the ifunc's function type.

Test: m GLOBAL_THINLTO=true libtest_ifunc_variable_impl.so
Change-Id: I7d87ffcf50bab1d61b01328907e036c51feb6a0f
2022-02-17 11:36:04 -08:00
Zijun Zhao
99ed14b85b Merge "Add %m and %#x support for async_safe logging" 2022-02-17 17:23:32 +00:00