Commit graph

38403 commits

Author SHA1 Message Date
zijunzhao
37a136fc2c Nullability check for fenv module
Bugs: b/245972273
Test: adb shell
Change-Id: Id930d187169820cf15bc9e5b4907a0984ee277ca
2023-02-16 01:41:55 +00:00
zijunzhao
b0fba720ff Nullability check for swap module
Bugs: b/245972273
Test: adb shell
Change-Id: I75e7e50d9ca08b82551851f877af8b2d309137b4
2023-02-16 01:40:05 +00:00
zijunzhao
c0d5b4718e Nullability check for wctype module
Bugs: b/245972273
Test: adb shell
Change-Id: Ic60a1b77e3f16bc9c3808ab4f772d6f174116a75
2023-02-15 23:24:40 +00:00
zijunzhao
557d9a553c Nullability check for vfs module
Bugs: b/245972273
Test: adb shell
Change-Id: Icaaa69641f72a58326afbd6691c8df8f4e774363
2023-02-15 23:22:10 +00:00
Zijun Zhao
d1d2cad249 Merge "Nullability check for string module" am: 99c7a93cca
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2430574

Change-Id: I1608e9dfbeb80f37b088f4929f6ee2e7daaff4d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 18:47:07 +00:00
Zijun Zhao
99c7a93cca Merge "Nullability check for string module" 2023-02-15 17:40:43 +00:00
zijunzhao
02c4ef4d78 Nullability check for string module
Bugs: b/245972273
Test: adb shell
Change-Id: I4c71bca1ff72553b27805722c3076ed105612a21
2023-02-14 20:47:10 +00:00
Zijun Zhao
0ed1c15ecf Merge "Nullability check for epoll module" am: 06c7a8c2cb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2433936

Change-Id: I48879d0fd53ce708aafa0d5a38de13dc2e136e2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 17:58:07 +00:00
Zijun Zhao
06c7a8c2cb Merge "Nullability check for epoll module" 2023-02-14 17:24:17 +00:00
zijunzhao
d555a333c8 Nullability check for epoll module
Bugs: b/245972273
Test: adb shell
Change-Id: Ic09eb9c503992178b5f271f80208ea159ee040be
2023-02-14 02:27:20 +00:00
Treehugger Robot
b11f32276c Merge "librust_baremetal: No HAVE_ASSEMBLER___MEMCPY_CHK" am: f81027468c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2373932

Change-Id: Ibbe38be2043eb16a1dafd4857cebc82a54b5453e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 01:54:32 +00:00
Treehugger Robot
f81027468c Merge "librust_baremetal: No HAVE_ASSEMBLER___MEMCPY_CHK" 2023-02-14 00:57:52 +00:00
Elliott Hughes
91bc848df1 Merge "libm: admit we use SSE4.1 in x86's libm." am: 83b661802d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2430852

Change-Id: I71f035ee5acc27c1a10d3da50b00010c5c8eb13c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 21:32:09 +00:00
Elliott Hughes
83b661802d Merge "libm: admit we use SSE4.1 in x86's libm." 2023-02-10 20:55:10 +00:00
Zijun Zhao
3e816166d2 Merge "Nullability check for signal module." am: b080a0c8f7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2427897

Change-Id: Ib9a0c591a869af3ce63cfcec34670cc21f3fa1d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 18:00:48 +00:00
Zijun Zhao
b080a0c8f7 Merge "Nullability check for signal module." 2023-02-10 17:34:27 +00:00
Elliott Hughes
079f6fd857 libm: admit we use SSE4.1 in x86's libm.
Although the NDK ABI for x86 doesn't include SSE4.1, it's needed for
roundss/roundsd, and we've used that (via hand-written assembler) in the
x86 libm since Android M. We've recently switched to using compiler
builtins to generate the assembler instead, and without allowing the
compiler to use SSE4.1, it can't (resulting in infinite recursion as
these functions defer to themselves for an answer).

Given that the x86 libm.so has required SSE4.1 for 8 years at this
point without anyone noticing, let alone caring, let's just retain the
status quo rather.

(Despite the fact that this caused boot failures for cf_x86, I didn't
notice when testing the 32-bit libm.so from a cf_x86_64 build because our
x86-64 ABI *does* include SSE4.1, and the BoardConfig.mk for cf_x86_64
explicitly chooses "silvermont" as the 32-bit cpu variant, implicitly
enabling SSE4.1.)

Test: llvm-objdump -d on a cf_x86 build
Change-Id: I9392d3699057fcca96677de52f8d36d377b1719a
2023-02-10 16:42:50 +00:00
Pierre-Clément Tosi
b57a3b913a Merge "libc_fortify: Fix typo" am: 885f894553
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2428876

Change-Id: I97ad66b96b937f2d358e0fb46584d3685ec1627e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 15:35:39 +00:00
Pierre-Clément Tosi
885f894553 Merge "libc_fortify: Fix typo" 2023-02-10 15:14:25 +00:00
zijunzhao
38c5344446 Nullability check for signal module.
Bugs: b/245972273
Test: None
Change-Id: I958e7fd7836afd1e6ff9f2c808171faa602022c7
2023-02-10 02:16:41 +00:00
Elliott Hughes
95eabae357 Merge "Fix floor()/floorl() on armv7 arm32 devices." am: 44e8fa7b1b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2427432

Change-Id: Ic554b165bae22dfd4d292923576252376bf396c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 16:17:13 +00:00
Elliott Hughes
44e8fa7b1b Merge "Fix floor()/floorl() on armv7 arm32 devices." 2023-02-09 15:29:12 +00:00
Pierre-Clément Tosi
467e58e9ea libc_fortify: Fix typo
Test: -
Change-Id: I7ad5def655d0dbfe6b0138d322ca0c25c32c4635
2023-02-09 12:14:17 +00:00
Treehugger Robot
baa80c4e29 Merge "Nullability check for math module" am: b7086f3062
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2425734

Change-Id: Ic358989776c4ce98e458be07f760b2361b5af06c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 09:57:56 +00:00
Treehugger Robot
b7086f3062 Merge "Nullability check for math module" 2023-02-09 09:14:58 +00:00
Elliott Hughes
37d72a31ab Fix floor()/floorl() on armv7 arm32 devices.
armv8 arm32 has a single instruction for the floor() family, but armv7
arm32 doesn't. Play stupid preprocessor and namespace tricks to get
the best of both worlds (using __ARM_ARCH in code is less awkward than
trying to do similar with armv7_a and armv7_a_neon in the build system).

Bug: http://b/268267713
Test: llvm-objdump -d
Change-Id: I2a4bef6e6caa49092810f53eb7bf6ea46237743f
2023-02-09 06:54:18 +00:00
zijunzhao
195b90b83f Nullability check for math module
Bugs: b/245972273
Test: adb shell
Change-Id: I46bf02e1ed3d6e6143c780e30f95fa3af2745216
2023-02-09 00:25:29 +00:00
Elliott Hughes
a8f02b3222 Merge "Move the copysign() family over to builtins all the time." am: 769bebe4fa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2425419

Change-Id: Iacbff8d8c9aaa16f3d857ee0c3032506f00c50a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 16:32:23 +00:00
Elliott Hughes
769bebe4fa Merge "Move the copysign() family over to builtins all the time." 2023-02-08 15:58:13 +00:00
Elliott Hughes
0d2c71d882 Move the copysign() family over to builtins all the time.
Test: llvm-objdump -d
Change-Id: Ic65250652362fd69bda31605b215d1a587cb5bce
2023-02-08 01:26:43 +00:00
Treehugger Robot
660aac653b Merge "Nullability check for eventfd module" am: bc516bf20a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2425416

Change-Id: Iab9c24214adfe374db87277c78328cee3ab43bb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 23:53:29 +00:00
Treehugger Robot
bc516bf20a Merge "Nullability check for eventfd module" 2023-02-07 22:50:56 +00:00
Christopher Ferris
5c0b2c5e8e Merge "Skip zeroed malloc tests on hwasan." am: 304ca86948
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2423508

Change-Id: I3c49675506d5f1c29a2ec337bad039197e13bea6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 22:24:33 +00:00
Christopher Ferris
304ca86948 Merge "Skip zeroed malloc tests on hwasan." 2023-02-07 21:47:36 +00:00
Christopher Ferris
8ab38e2b9a Skip zeroed malloc tests on hwasan.
The gwp_asan_integration.malloc_tests_under_torture test fails
when trying to run the malloc.zeroed* tests. So skip these
tests in that config.

Bug: 267386540

Test: All tests pass in hwasan and normal config.
Change-Id: I8edce28ee21eeecbcc9afb7db4ffdb6371a914b0
2023-02-07 13:11:05 -08:00
zijunzhao
9729c193cb Nullability check for eventfd module
Bugs: b/245972273
Test: None
Change-Id: I5a74318850f3e49dd9d78180476e2a9d76853606
2023-02-07 20:47:11 +00:00
Treehugger Robot
b61d14e59f Merge "Nullability check for klog module" am: f82ee4a37a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2419522

Change-Id: Ic8b356741d8cb51ddf589ab4c77831ff9ce7bfb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 17:12:06 +00:00
Elliott Hughes
68021faf9f Merge "Let clang generate most of our assembler for x86/x86-64 too." am: d7cf151304
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2423649

Change-Id: I87afd5f5bfdf224dfd46996d954c48ef0013e0de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 17:09:58 +00:00
Treehugger Robot
f82ee4a37a Merge "Nullability check for klog module" 2023-02-07 16:35:27 +00:00
Elliott Hughes
d7cf151304 Merge "Let clang generate most of our assembler for x86/x86-64 too." 2023-02-07 16:30:12 +00:00
Treehugger Robot
776599e8d5 Merge "Nullability check for stat module" am: f9445fee15
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2419521

Change-Id: If2b572f0fe56558b9e03be3d4e75dae061270cf4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 07:44:20 +00:00
Treehugger Robot
f9445fee15 Merge "Nullability check for stat module" 2023-02-07 06:59:37 +00:00
zijunzhao
1cda74daba Nullability check for stat module
Bugs: b/245972273
Test: None
Change-Id: I8611c7d7c22e2fb6b0cec4b5101dbcb3174ae706
2023-02-07 06:58:39 +00:00
Elliott Hughes
2f1a7b9852 Let clang generate most of our assembler for x86/x86-64 too.
It looks like the only functions current clang can't do are the lrint
family. Everything else looks good, and the fact that clang has builtins
means we shouldn't normally see calls to any of these functions anyway.

Test: llvm-objdump
Change-Id: I65b4da96b6c9b10f01cb54a7ebd1de5934ba4488
2023-02-07 01:22:29 +00:00
Elliott Hughes
36b3dee650 Merge "Fix setfsgid()/setfsuid() for LP32." am: 475275b3ec
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2421452

Change-Id: I4200b792a430d25d2a6717a4f0f3cfefcda22758
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 21:51:34 +00:00
Elliott Hughes
42cf312c77 Merge "libm: remove hand-written assembler for arm32 too." am: 4587c15368
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2414405

Change-Id: If8bfbcef80590f94978df88fd9e0d13c6f4c40e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 21:42:58 +00:00
Elliott Hughes
475275b3ec Merge "Fix setfsgid()/setfsuid() for LP32." 2023-02-06 21:22:36 +00:00
Elliott Hughes
4587c15368 Merge "libm: remove hand-written assembler for arm32 too." 2023-02-06 21:09:10 +00:00
Treehugger Robot
0bf4782fd6 Merge "Nullability check for quota module" am: a3357c28f5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2419523

Change-Id: I2d90f8ed084a4b580a41ce99c245100724ab5c96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 04:36:52 +00:00
Treehugger Robot
a3357c28f5 Merge "Nullability check for quota module" 2023-02-04 04:12:16 +00:00