Commit graph

11246 commits

Author SHA1 Message Date
Paul Lawrence
78973da8ef Revert "Use proprety_socket_for_system if permissions allow"
This reverts commit 24839a681e.

These fixes for b/262208935 introduced a race condition. We believe the
race is fixed by ag/23879563, but at this point in the release feel that
reverting the fixes and refixing in main is the better solution

Test: Builds, boots
Bug: 283202477
Bug: 288991737
Ignore-AOSP-First: Reverting CL only in internal
Change-Id: If0736e504928641c85934eae4d298f14e711116c
2023-07-11 14:02:53 -07:00
Paul Lawrence
d1076eb728 Revert "Fix deadlock caused by two-threaded property controls"
This reverts commit aeddfc4aaf.

These fixes for b/262208935 introduced a race condition. We believe the
race is fixed by ag/23879563, but at this point in the release feel that
reverting the fixes and refixing in main is the better solution

Test: Builds, boots
Bug: 283202477
Bug: 288991737
Ignore-AOSP-First: Reverting CL only in internal
Change-Id: If7e9e5f99728c2f3a18b08346b4cf3449132f920
2023-07-11 14:01:57 -07:00
Florian Mayer
9908b1e3c8 Revert "Add debug logging for memtag level"
This reverts commit b3f3e86878.

Reason for revert: This created spam in tombstones.

This is a cherry-pick of dd44378da7a6912ce3b7ae171c70cc4eda53f2d

Bug: 280493417

Merged-In: Ia7b8285a6abd6f89d49859a981be1c9cfa104f81
Change-Id: Ia7b8285a6abd6f89d49859a981be1c9cfa104f81
2023-05-18 01:27:52 +00:00
Treehugger Robot
55c70807a6 Merge "Implement C23 printf 'w' length modifiers" am: 8ec9b81378 am: 87ca1746d9 am: 10f5894571
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2532359

Change-Id: Ied6a2458fdf732c722fe7fa62c1a2435de688422
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 01:11:35 +00:00
zijunzhao
3b846ea6e7 Implement C23 printf 'w' length modifiers
wN: Specifies that a following b, d, i, o, u, x, or X
conversion specifier applies to an integer argument with
a specific width where N is a positive decimal integer with
no leading zeros

Bug: b/271903607
Test: adb shell
Change-Id: I688f6cefeb2e5c8325b007a59935a46f4116ac29
2023-04-20 20:34:33 +00:00
Zijun Zhao
3ce75e1f66 Merge "Nullability check for select module." am: e2abfb3ddf am: ed3fc73ad1 am: df11a31153
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2550050

Change-Id: I2299c55735710aa4594f037e145bbc17ae81ae41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 19:53:36 +00:00
Zijun Zhao
e2abfb3ddf Merge "Nullability check for select module." 2023-04-20 17:33:46 +00:00
Treehugger Robot
224d6027d9 Merge "Nullability check for wchar module." am: 182cebf612 am: bee044207b am: 1d23754ce7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2519858

Change-Id: I209eaf3a67471f6add6eb81560db0fb3e76fcbdb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 10:06:58 +00:00
zijunzhao
7ce2f95e28 Nullability check for wchar module.
Bugs: b/245972273
Test: adb shell
Change-Id: I9898a1120c2364e5269633a67bf789a8bb943ba5
2023-04-20 01:41:49 +00:00
zijunzhao
271abebf58 Nullability check for select module.
Bugs: b/245972273
Test: adb shell
Change-Id: If847c46df7f1666e4d0d530b196ee3e2be6f0cb8
2023-04-20 01:19:03 +00:00
Elliott Hughes
0ea424a7ec Merge "Make tmpfile() respect $TMPDIR." am: 17b2bae190 am: 4260d4d7eb am: 2aefec48a5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2545855

Change-Id: Ic4ac021444440a0cfc5c029f0d5f4c5d211b748b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:46:42 +00:00
Spandan Das
01a90e0883 Merge "Revert "Add versions property to libc_hwasan stubs"" am: f00cccd12b am: ddbb7a5453 am: ce5122a330
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548050

Change-Id: I077ae8740af70976a36542923ea5b58cc15f43e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:44:43 +00:00
Elliott Hughes
17b2bae190 Merge "Make tmpfile() respect $TMPDIR." 2023-04-19 20:01:51 +00:00
Spandan Das
a43de5cbfe Revert "Add versions property to libc_hwasan stubs"
This reverts commit fe2907c133.

Reason for revert: Breaks bionic-unit-tests b/278795547. Since the original mixed build change is being reverted for now (aosp/2547450), fe2907c133 is not needed immediately

Change-Id: I2deb06a38322bf8296d4721c840f06f35b757177
2023-04-19 17:06:24 +00:00
Elliott Hughes
8b86c0bdeb Make tmpfile() respect $TMPDIR.
Contrary to the old comment, POSIX says nothing about whether or not
tmpfile() respects $TMPDIR, and it's significantly more useful on
Android if it does (because there's no shared /tmp that everyone can
write to).

Bug: https://issuetracker.google.com/36991167
Test: treehugger
Change-Id: I3cc45adff167420f100c8ed1c63cba1ea67e9f70
2023-04-18 17:11:06 -07:00
Spandan Das
ffcc50f8bd Merge "Add versions property to libc_hwasan stubs" am: 4ae0e2f79f am: aab6a05edb am: c67e4ff7fe
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2544370

Change-Id: I66cc9ef4a371b8bb4345f57a12e41ff3849bb979
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 21:33:35 +00:00
Spandan Das
fe2907c133 Add versions property to libc_hwasan stubs
bp2build will generate the stub targets only if versions is not empty.

Test: b query //bionic/libc:* | grep libc_hwasan_stub_libs-current

Change-Id: Iac905497ae4955a44b7b29e2d29a2c702c86da8e
2023-04-18 16:38:46 +00:00
Zijun Zhao
704e8a8984 Merge "Nullability check for mount module." am: 7b90c81b7c am: 63fa646854 am: 7906657b83
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539232

Change-Id: Iaacc1870f62043eb7cf462f45a762d6d809d9333
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:40:12 +00:00
Zijun Zhao
4b27260bfa Merge "Nullability check for inotify module." am: 8d3ae82c52 am: 98e303925c am: 4e5e01fc9d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539231

Change-Id: Ie7b16c09fdecc2c1b3ba4da97d8e399506e27eaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:39:58 +00:00
Treehugger Robot
9558e9485d Merge "Nullability check for wait module." am: e1df179f00 am: cea7551a27 am: 474b533f6a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539233

Change-Id: Ib2c21163172c795d5dace324d098772c3a23569d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:39:22 +00:00
Treehugger Robot
e6e3747a42 Merge "Nullability check for msg module." am: a1ff2e6159 am: 6f42b5a3ae am: 38333734ae
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539230

Change-Id: Ifde8e1888f7d0a8a4e20bfc9253773db622f3875
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:38:53 +00:00
Zijun Zhao
7b90c81b7c Merge "Nullability check for mount module." 2023-04-17 18:41:24 +00:00
Zijun Zhao
8d3ae82c52 Merge "Nullability check for inotify module." 2023-04-17 18:25:05 +00:00
Treehugger Robot
e1df179f00 Merge "Nullability check for wait module." 2023-04-17 18:13:09 +00:00
Treehugger Robot
a1ff2e6159 Merge "Nullability check for msg module." 2023-04-17 18:09:10 +00:00
Florian Mayer
24afd915f4 Merge "Fix build error on darwin_arm64" am: 4f6c061cee am: 41bdef98b1 am: 16b2cf1d54
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539036

Change-Id: I3451672fb2b6ea604567568c7c32e655f86b9678
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15 06:49:40 +00:00
zijunzhao
fa1936bd0b Nullability check for wait module.
Bugs: b/245972273
Test: adb shell
Change-Id: I407cc592522fc8feda1916d72525d147c9c58711
2023-04-15 01:17:54 +00:00
zijunzhao
ccc9d8dbf4 Nullability check for mount module.
Bugs: b/245972273
Test: adb shell
Change-Id: I86ccf6c68f8376e47cb59f05c737d4bbef58ef86
2023-04-15 01:16:51 +00:00
zijunzhao
f4141fbcfa Nullability check for inotify module.
Bugs: b/245972273
Test: adb shell
Change-Id: I213035a8a3cf1fada0092f97c42723739d49db61
2023-04-15 01:15:31 +00:00
zijunzhao
c76899fe5e Nullability check for msg module.
Bugs: b/245972273
Test: adb shell
Change-Id: Iefb2ae298240b91fcf5657aca0e6f8370095f50b
2023-04-15 01:13:26 +00:00
Florian Mayer
ff116eda61 Fix build error on darwin_arm64
Change-Id: Ie5bc9252de8349c3bfb8269919c0a173a9d9cc2d
2023-04-14 17:50:59 -07:00
Florian Mayer
7aa49ba9f7 Merge "Introduce hwasan mode for linker" am: 4967017c86 am: c6c98f0053 am: b541b2ea65
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2526420

Change-Id: I17ed450781febfe7cd4d5a8fd22d4cfda462bd21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15 00:42:08 +00:00
Florian Mayer
4967017c86 Merge "Introduce hwasan mode for linker" 2023-04-14 23:27:56 +00:00
Treehugger Robot
fe4f5ab19a Merge "Nullability check for capability module." am: fb63e485f1 am: 0cbffa18c4 am: 0a54daa02b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2537351

Change-Id: Ie90e879c31d3b1c5ab1ad0d36eadb1dd3a9283b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 23:03:54 +00:00
Treehugger Robot
fb63e485f1 Merge "Nullability check for capability module." 2023-04-14 21:35:58 +00:00
Treehugger Robot
7d9d659c28 Merge "Nullability check for ipc module." am: 3d59f2838a am: 8ce2187b33 am: 3b7c481df4
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2537352

Change-Id: I768b389647c7cb4fc6196cc40961f2753636d6f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 20:08:39 +00:00
Treehugger Robot
3d59f2838a Merge "Nullability check for ipc module." 2023-04-14 18:29:59 +00:00
Treehugger Robot
f821f3b4e5 Merge "Nullability check for sendfile module." am: ec50cc6f34 am: 09cb3ce36f am: 91d3e0ee96
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2537353

Change-Id: I415e177f1cf324b1b2af6c1918c664fa0b084a74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 16:16:59 +00:00
Treehugger Robot
9cf1604527 Merge "Nullability check for random module." am: 177b724cb4 am: 44e2f0dd3f am: f9ca60a8ef
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2537350

Change-Id: I06a3485dd3ccb4a9b9cec7013cb341b1285d4b11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 16:16:46 +00:00
Treehugger Robot
ec50cc6f34 Merge "Nullability check for sendfile module." 2023-04-14 15:19:41 +00:00
Treehugger Robot
177b724cb4 Merge "Nullability check for random module." 2023-04-14 14:41:12 +00:00
Florian Mayer
c10d064b5c Introduce hwasan mode for linker
This mode instructs the linker to search for libraries in hwasan
subdirectories of all library search paths. This is set up to contain a
hwasan-enabled copy of libc, which is needed for HWASan programs to
operate. There are two ways this mode can be enabled:

* for native binaries, by using the linker_hwasan64 symlink as its
  interpreter
* for apps: by setting the LD_HWASAN environment variable in wrap.sh

Bug: 276930343
Change-Id: I0f4117a50091616f26947fbe37a28ee573b97ad0
2023-04-14 01:33:30 -07:00
zijunzhao
e14f2f9f20 Nullability check for sendfile module.
Bugs: b/245972273
Test: adb shell
Change-Id: I47d116b1faf7d53ac51589e393a3df96874a4f37
2023-04-14 01:07:12 +00:00
zijunzhao
7f5c789f35 Nullability check for ipc module.
Bugs: b/245972273
Test: adb shell
Change-Id: Idb89b878e415a62399890dcd3b40e54c3e9c9ef6
2023-04-14 01:05:54 +00:00
zijunzhao
181c31653e Nullability check for capability module.
Bugs: b/245972273
Test: adb shell
Change-Id: I9df50d82e7b86576912ed42e93b1e98c6ded6551
2023-04-14 01:04:29 +00:00
zijunzhao
e43d55348f Nullability check for random module.
Bugs: b/245972273
Test: adb shell
Change-Id: Ie7e06bcf4fda1b177c8d8fcb6a813c1b4a50ea26
2023-04-14 01:01:37 +00:00
Treehugger Robot
96364f8bbb Merge "Nullability check for modules in include/android directory" am: be39cd5ebb am: 104d52f80e am: e568052c63
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2534959

Change-Id: Iaf82811ebd541666d4e1267764a8fc3c4b000639
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 21:15:49 +00:00
Treehugger Robot
be39cd5ebb Merge "Nullability check for modules in include/android directory" 2023-04-13 18:37:42 +00:00
Elliott Hughes
fc51cac4e3 Merge "riscv64: switch from x18 to gp for shadow call stack." am: 4aa40a5f77 am: 23a6dcc453 am: 38c4e72f19
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2526531

Change-Id: I44a16f02692a2a4fec8ef32674a141ebf4b86a0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 16:10:18 +00:00
Elliott Hughes
6aaf32dabb Merge "setjmp.h: add some historical detail about the _JBLEN values." am: 989c15197a am: 608bc534e2 am: 45b62285ae
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2533806

Change-Id: Icdaae6418a1ff785a6372e1d3f8414668359172b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 16:07:56 +00:00