Commit graph

39334 commits

Author SHA1 Message Date
Elliott Hughes
b22f1f2df0 Merge "riscv64: typedef struct ucontext {...} ucontext_t." am: 61d435c29a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2515775

Change-Id: I6d5291f251d99861a11913f1b61d5a17729fa681
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 15:53:01 +00:00
Elliott Hughes
61d435c29a Merge "riscv64: typedef struct ucontext {...} ucontext_t." 2023-04-03 15:23:31 +00:00
Elliott Hughes
b692ecb913 ELS TLS documentation: s/module/module_id/.
The field is actually called `module_id` in the code.

Test: N/A
Change-Id: I10f5ce07cb67f7f338036c49e0008c3dce2db0bd
2023-04-03 14:31:37 +00:00
Treehugger Robot
455a46627d Merge "Nullability check for dirent module" am: e744d81787 am: fafde23fc8 am: 21c93a72ef
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496357

Change-Id: I0ae6effd32e5996ef804b1f38eda000e2cbf07c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 06:13:39 +00:00
Treehugger Robot
21c93a72ef Merge "Nullability check for dirent module" am: e744d81787 am: fafde23fc8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496357

Change-Id: I3f2aa3b4817adf33262242a56341bc3639557ce2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 04:57:32 +00:00
Treehugger Robot
fafde23fc8 Merge "Nullability check for dirent module" am: e744d81787
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496357

Change-Id: I01ea38359fd0dd59107705c00803f4e94d8de517
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 04:18:49 +00:00
Treehugger Robot
e744d81787 Merge "Nullability check for dirent module" 2023-04-01 02:46:24 +00:00
Zijun Zhao
97a35e109d Merge "posix_spawn_file_actions_addopen(): crash early rather than late." am: 6ef483eb87 am: f658816d6b am: d7a95555c9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2515747

Change-Id: Ia6621ac5aeab2a043973903ddd30f7b5caea73b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 01:55:42 +00:00
Zijun Zhao
d7a95555c9 Merge "posix_spawn_file_actions_addopen(): crash early rather than late." am: 6ef483eb87 am: f658816d6b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2515747

Change-Id: Id3c4156cb875d0e004d7110652e363be9c60b35b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 01:23:31 +00:00
Zijun Zhao
f658816d6b Merge "posix_spawn_file_actions_addopen(): crash early rather than late." am: 6ef483eb87
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2515747

Change-Id: If5064907ea99bce42f2e73c50c5292cb61945031
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-01 00:41:00 +00:00
zijunzhao
8f23da612f Nullability check for spawn module
Bugs: b/245972273
Test: adb shell
Change-Id: Ibf99a24e2af8a317f513252391a30576f0c08e2e
2023-04-01 00:14:02 +00:00
Zijun Zhao
6ef483eb87 Merge "posix_spawn_file_actions_addopen(): crash early rather than late." 2023-03-31 23:59:02 +00:00
Elliott Hughes
53c90ebfdd riscv64: typedef struct ucontext {...} ucontext_t.
All the other architectures are already polluting the namespace with
`struct ucontext`, so make riscv64 match for source compatibility with
other Android code. (Code _should_ be using the POSIX `ucontext_t`, but
ART in particular had a lot of `struct ucontext`, and although I'll
clean that up separately, if there's some in our tree, there's probably
a lot more out there in the wild.)

Test: treehugger
Change-Id: Id0e4e97e660d7d60e792cd2462ddb9788d4772d7
2023-03-31 15:31:37 -07:00
Elliott Hughes
b8e4e469dc posix_spawn_file_actions_addopen(): crash early rather than late.
We're going to dereference a null pointer if you pass one instead of a
pointer to a path, but at the moment (because of implementation sharing
between the different file actions) we won't do it until the last
minute, in the child itself. Let's crash as soon as you make the mistake
instead, to make debugging a lot easier.

Test: treehugger
Change-Id: I987d2700ba05b9867a936ebe770224259376633f
2023-03-31 20:18:18 +00:00
zijunzhao
7d2df8be98 Nullability check for dirent module
Bugs: b/245972273
Test: adb shell
Change-Id: I70532170144a65f00dbccf56378f55daf2d362df
2023-03-31 18:54:31 +00:00
Treehugger Robot
006fc6992f Merge "Nullability check for fts module" am: 5ae243b7f9 am: 382db17248 am: 04cf200c89
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2490968

Change-Id: I8354944d4d89fa8b600db47387f86163ae4148b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 20:39:51 +00:00
Treehugger Robot
04cf200c89 Merge "Nullability check for fts module" am: 5ae243b7f9 am: 382db17248
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2490968

Change-Id: I9cf00d46a450e21a083eada763ce52964beef440
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 20:04:03 +00:00
Elliott Hughes
0f0c18f695 uapi headers: simplify the <linux/compiler.h> stuff.
We don't really need <linux/compiler.h> and <linux/compiler_types.h>. We
already have a mechanism to remove unused macros, so let's do that. We
don't currently have a way to remove unused #includes, so we still need
<linux/compiler.h> and <linux/compiler_types.h> files (but I've clarified
the comments in them).

I've kept the empty definitions of `__user` and `__force` for source
compatibility. (We had one security test at least that was assuming
a kernel struct definition will "just work".)

Bug: http://b/262917450
Test: treehugger
Change-Id: Iacbbbc1aeef9a4fac52dabd7811ab875cc267d4f
2023-03-30 12:47:08 -07:00
Treehugger Robot
817aff557a Merge "Nullability check for sched module." am: 0fec9c0e19 am: 73a9885ec8 am: 0966610ca7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496358

Change-Id: I115f6a9c4f413d63f6ca84ea790cb1595d6e91d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:18:02 +00:00
Elliott Hughes
83aa8dff1f Merge "scandir: clarity improvements." am: 9dfcaa64e8 am: 7168ca2986 am: 664ce27366
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2512139

Change-Id: I24a2f32d678d0a981f7312dec47b980003b6bc2c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:17:49 +00:00
Treehugger Robot
6ef4bc0692 Merge "Nullability correction for stdlib module." am: 9a3164145c am: 67dcba5c85 am: 655639bbbc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2510535

Change-Id: I8cdc7e3074ec818b6b1b6ac23471c6a24c6cf769
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:14:25 +00:00
Treehugger Robot
382db17248 Merge "Nullability check for fts module" am: 5ae243b7f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2490968

Change-Id: I263a6ca54ba17f3cae5f6b419413949e275f4d13
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:00:12 +00:00
Treehugger Robot
5ae243b7f9 Merge "Nullability check for fts module" 2023-03-30 18:20:48 +00:00
Treehugger Robot
0966610ca7 Merge "Nullability check for sched module." am: 0fec9c0e19 am: 73a9885ec8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496358

Change-Id: I602d506535d4af69b8ba69dc3706940212c30759
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:43:45 +00:00
Elliott Hughes
664ce27366 Merge "scandir: clarity improvements." am: 9dfcaa64e8 am: 7168ca2986
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2512139

Change-Id: I964f50cda07d6cc30e42197732f1d00592ac534c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:39:16 +00:00
Treehugger Robot
655639bbbc Merge "Nullability correction for stdlib module." am: 9a3164145c am: 67dcba5c85
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2510535

Change-Id: I1e2e0ff05207ab7c7230f1df45e88a6c18e435cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:33:54 +00:00
Treehugger Robot
73a9885ec8 Merge "Nullability check for sched module." am: 0fec9c0e19
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2496358

Change-Id: I624e72ad83ea7829cf66aec5e7710b73633bd8be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:19:12 +00:00
Elliott Hughes
7168ca2986 Merge "scandir: clarity improvements." am: 9dfcaa64e8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2512139

Change-Id: Iba7e4439d7ef251c69c7399698a3c74443ae2da3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:03:13 +00:00
Treehugger Robot
67dcba5c85 Merge "Nullability correction for stdlib module." am: 9a3164145c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2510535

Change-Id: I1f5c1fd3c474408a20115550442a15e57be1a797
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:00:05 +00:00
Treehugger Robot
0fec9c0e19 Merge "Nullability check for sched module." 2023-03-30 01:35:49 +00:00
zijunzhao
dec8efd72a Nullability check for fts module
Bugs: b/245972273
Test: adb shell
Change-Id: I56f796a3968484c69c3389fffafdbd960a99845f
2023-03-29 22:51:24 +00:00
zijunzhao
2146303272 Nullability check for sched module.
Bugs: b/245972273
Test: adb shell
Change-Id: Icb8028ec5864370c0ebfb300f9b6df01edf2742d
2023-03-29 21:46:57 +00:00
Elliott Hughes
9dfcaa64e8 Merge "scandir: clarity improvements." 2023-03-29 21:07:25 +00:00
Treehugger Robot
9a3164145c Merge "Nullability correction for stdlib module." 2023-03-29 18:54:34 +00:00
zijunzhao
99dd5b1e27 Nullability correction for stdlib module.
Bugs: b/245972273
Test: adb shell
Change-Id: I0a800ccfe3bae88d3e924dd621bad182cb186b27
2023-03-29 00:26:29 +00:00
Elliott Hughes
f6c25d6fd3 scandir: clarity improvements.
Move the "is there a comparator?" check into the sole caller, to match
the "is there a filter?" check. Remove the unnecessary (and unlikely)
pre-sort "is the array empty?" check.

Test: treehugger
Change-Id: I8bd461380420dce4a8bc05ef5fe3511b26347d7c
2023-03-28 22:35:24 +00:00
Paul Lawrence
aeddfc4aaf Fix deadlock caused by two-threaded property controls
Two threaded property controls were introduced in ag/21063815 to prevent
DOS for power controls. However, this causes deadlocks, so limit the
second thread to just sys.powerctl messages.

Bug: 273785601
Test: Boots, power messages work
Ignore-AOSP-First: Security fix
Change-Id: I6d2bd566781ed712b41eb711360471fc0d030e54
2023-03-28 14:12:57 +00:00
Mitch Phillips
c59d5cc5f1 [GWP-ASan] Remove system_default torture tests.
While these tests were running, other native processes would get torture GWP-ASan. This can lead to OOMs.

Bug: 273904016
Change-Id: Ia813a73bfc1c379633be022dbf4b7d567069c731
Test: atest bionic-unit-tests (in presubmit)
2023-03-27 14:34:40 +00:00
Christopher Ferris
0b2f05e9c9 Merge "Move M_PURGE to M_PURGE_ALL." am: 345f54666a am: 6206aca550 am: 1ab5a4ceb3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2504135

Change-Id: I55e90e3a548a034717bef898e05435fe1b44ea8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 20:58:55 +00:00
Christopher Ferris
1ab5a4ceb3 Merge "Move M_PURGE to M_PURGE_ALL." am: 345f54666a am: 6206aca550
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2504135

Change-Id: Ia2c9ab188eea34aaff60a37f55bf54d8282d4cc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 20:27:13 +00:00
Christopher Ferris
6206aca550 Merge "Move M_PURGE to M_PURGE_ALL." am: 345f54666a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2504135

Change-Id: I62115c19f3b09dc8ecec66411881384aaffc10b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 19:56:31 +00:00
Christopher Ferris
345f54666a Merge "Move M_PURGE to M_PURGE_ALL." 2023-03-24 19:29:51 +00:00
Treehugger Robot
4be28e73ed Merge "Time for SEO in <android/api-level.h>." am: 76210fba9e am: 98665f2190 am: 54c7fcd259
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2506958

Change-Id: I247770ffcccfaec3a36609db961e65bdf085002d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 17:41:42 +00:00
Treehugger Robot
54c7fcd259 Merge "Time for SEO in <android/api-level.h>." am: 76210fba9e am: 98665f2190
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2506958

Change-Id: I9fff7e5648bc6613de97042371951731946392eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 17:09:38 +00:00
Treehugger Robot
98665f2190 Merge "Time for SEO in <android/api-level.h>." am: 76210fba9e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2506958

Change-Id: Ibd50a1f1237aeebb383c056a7e00d062b2028b22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 16:39:58 +00:00
Treehugger Robot
76210fba9e Merge "Time for SEO in <android/api-level.h>." 2023-03-24 16:10:48 +00:00
Yi Kong
4d233147a0 Merge "Workaround boot loop by turning off stack protector check for noreturn calls" am: ab3a319746 am: 725df4c5de am: 801b77c7b2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2483436

Change-Id: I174a636e9e1c2ef660a331f51ab6cf87964106f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 14:43:13 +00:00
Yi Kong
801b77c7b2 Merge "Workaround boot loop by turning off stack protector check for noreturn calls" am: ab3a319746 am: 725df4c5de
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2483436

Change-Id: Ieaaff7e9a063abd1bb5db32ef30d080776de9cce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 14:11:51 +00:00
Yi Kong
725df4c5de Merge "Workaround boot loop by turning off stack protector check for noreturn calls" am: ab3a319746
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2483436

Change-Id: I045db07d4c154a49c8cd0288e93da5fc995e04ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 13:44:53 +00:00
Yi Kong
ab3a319746 Merge "Workaround boot loop by turning off stack protector check for noreturn calls" 2023-03-24 13:19:52 +00:00