Commit graph

39334 commits

Author SHA1 Message Date
Elliott Hughes
f4fcf84b50 Merge "Fix pthread#pthread_heap_allocated_stack for jemalloc." am: 1c1e1a6f04 am: 10aee681fa am: 2ae0dbe891
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2553382

Change-Id: Ic7438637ca155b4ecb34139431b032c3bc6ba872
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 00:20:25 +00:00
Elliott Hughes
2ae0dbe891 Merge "Fix pthread#pthread_heap_allocated_stack for jemalloc." am: 1c1e1a6f04 am: 10aee681fa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2553382

Change-Id: I8d3c3dbe995edb96bb9eb3ea4d7c8244b5812d34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 23:30:47 +00:00
Elliott Hughes
10aee681fa Merge "Fix pthread#pthread_heap_allocated_stack for jemalloc." am: 1c1e1a6f04
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2553382

Change-Id: I9841d23fb18b4dc0f86930c0cae1105d2f035a12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 22:49:09 +00:00
Elliott Hughes
1c1e1a6f04 Merge "Fix pthread#pthread_heap_allocated_stack for jemalloc." 2023-04-21 22:18:00 +00:00
Treehugger Robot
c266851c58 Merge "Nullability check for statvfs module." am: 417c3a197b am: 089555446c am: f5b07ae65a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552371

Change-Id: Ie6ac643c5b01f99208f419a99e838d6cb815640c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 21:31:10 +00:00
Treehugger Robot
f5b07ae65a Merge "Nullability check for statvfs module." am: 417c3a197b am: 089555446c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552371

Change-Id: Iaf0c47cdeb1e72bb4b25ef3143b0acf0db052417
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 19:01:55 +00:00
Treehugger Robot
089555446c Merge "Nullability check for statvfs module." am: 417c3a197b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2552371

Change-Id: Ib370458599b546988c5e786c83be87b14d7eb36c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 18:23:26 +00:00
Elliott Hughes
18e335b3da Fix pthread#pthread_heap_allocated_stack for jemalloc.
Since we need a page-aligned allocation for a thread stack, explicitly
ask for one. (Scudo happens to just give us one anyway for an allocation
this large, but 32-bit jemalloc does not.)

Bug: http://b/277598913
Test: treehugger
Change-Id: I41eeb6aadb6a22bf5d9619e768e5e0a76617f747
2023-04-21 11:18:40 -07:00
Treehugger Robot
417c3a197b Merge "Nullability check for statvfs module." 2023-04-21 17:33:55 +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
Treehugger Robot
10f5894571 Merge "Implement C23 printf 'w' length modifiers" am: 8ec9b81378 am: 87ca1746d9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2532359

Change-Id: Iab724b3f6e69868c120dbd6dda7e6d7b1d02969c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 00:29:12 +00:00
zijunzhao
21e1f2d324 Nullability check for statvfs module.
Bugs: b/245972273
Test: adb shell
Change-Id: I7e28a869e4dd66a05182abe71ff121da7cfc7283
2023-04-21 00:06:14 +00:00
Treehugger Robot
87ca1746d9 Merge "Implement C23 printf 'w' length modifiers" am: 8ec9b81378
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2532359

Change-Id: Ib03a0be66c5882708cfa75f8f5a032ed08ab6d98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 23:48:42 +00:00
Treehugger Robot
8ec9b81378 Merge "Implement C23 printf 'w' length modifiers" 2023-04-20 23:03:13 +00:00
Zijun Zhao
8e20546138 Merge "stdio_test: improve the %b/%B tests." am: e2c25fa87f am: b6fb4c313c am: 07928fd142
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548495

Change-Id: I7a7b33b6387e919f420d816a9f0f6406afe275d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 21:16:56 +00:00
Zijun Zhao
07928fd142 Merge "stdio_test: improve the %b/%B tests." am: e2c25fa87f am: b6fb4c313c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548495

Change-Id: Idbdf3bfae8ef826f7d5523456a2f672ddd482a70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 20:37:12 +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
b6fb4c313c Merge "stdio_test: improve the %b/%B tests." am: e2c25fa87f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548495

Change-Id: I957ad2e7c1e3b8d0ac252d38ab3bc46fbe3eabc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 19:54:59 +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
e2c25fa87f Merge "stdio_test: improve the %b/%B tests." 2023-04-20 18:59:59 +00:00
Zijun Zhao
df11a31153 Merge "Nullability check for select module." am: e2abfb3ddf am: ed3fc73ad1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2550050

Change-Id: I8166ba0054975173873a1acfd865b0bcd7a3edca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 18:48:54 +00:00
Zijun Zhao
ed3fc73ad1 Merge "Nullability check for select module." am: e2abfb3ddf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2550050

Change-Id: Ia67d4f8c5b32c59bcc3585a58b1858cf2c1fe3d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 18:08:42 +00:00
Zijun Zhao
e2abfb3ddf Merge "Nullability check for select module." 2023-04-20 17:33:46 +00:00
Elliott Hughes
85bcb38b12 Merge "Clarify dlfcn.dladdr_libc slightly." am: e393d48bc7 am: 6607207d5c am: 7ced97ace7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548970

Change-Id: I28769dcf2fe5a351fbcb0483fcff1fce16549432
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 17:25:59 +00:00
Elliott Hughes
7ced97ace7 Merge "Clarify dlfcn.dladdr_libc slightly." am: e393d48bc7 am: 6607207d5c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548970

Change-Id: I46ba0ed1a8db9eb2c02604f99a2139bccb9aca9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 16:29:50 +00:00
Elliott Hughes
6607207d5c Merge "Clarify dlfcn.dladdr_libc slightly." am: e393d48bc7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2548970

Change-Id: I173203d54609540c1016f477f5aa47f295190a25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 15:50:55 +00:00
Elliott Hughes
e393d48bc7 Merge "Clarify dlfcn.dladdr_libc slightly." 2023-04-20 15:06:48 +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
Treehugger Robot
1d23754ce7 Merge "Nullability check for wchar module." am: 182cebf612 am: bee044207b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2519858

Change-Id: Ie6c3661521b11c6baf6cf15c08fa517fe11abc04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 09:23:55 +00:00
Treehugger Robot
bee044207b Merge "Nullability check for wchar module." am: 182cebf612
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2519858

Change-Id: I64ff0e209c192667bdddd89aec59232bb79953cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 08:44:43 +00:00
Treehugger Robot
182cebf612 Merge "Nullability check for wchar module." 2023-04-20 08:05:44 +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
e50d9d2418 stdio_test: improve the %b/%B tests.
Test all the widths, and test the PRIb* macros too.

Test: treehugger
Change-Id: I86c222b4c6282ab557e6456a892c007f09cd53db
2023-04-19 16:41:37 -07: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
2aefec48a5 Merge "Make tmpfile() respect $TMPDIR." am: 17b2bae190 am: 4260d4d7eb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2545855

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

Change-Id: Ie3373b33cb8b73557aa566a647502657f7aaf026
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:00:43 +00:00
Elliott Hughes
4260d4d7eb Merge "Make tmpfile() respect $TMPDIR." am: 17b2bae190
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2545855

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

Change-Id: I72de04f491abb2d06e66be5d3c9f4f6d40c6979f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 21:20:57 +00:00
Elliott Hughes
17b2bae190 Merge "Make tmpfile() respect $TMPDIR." 2023-04-19 20:01:51 +00:00
Elliott Hughes
0cf311c53b Clarify dlfcn.dladdr_libc slightly.
This isn't a very helpful way to say "realpath() failed":
```
bionic/tests/dlfcn_test.cpp:(1006) Failure in test dlfcn.dladdr_libc
Value of: realpath("/system/lib64/" "hwasan/libc.so", libc_realpath) == libc_realpath
  Actual: false
Expected: true
```

Bug: http://b/278795547
Test: treehugger
Change-Id: I1078ab4a675b956327f2578086a1a5e7d8a2928b
2023-04-19 20:01:17 +00:00
Spandan Das
f00cccd12b Merge "Revert "Add versions property to libc_hwasan stubs"" 2023-04-19 19:48:49 +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
c67e4ff7fe Merge "Add versions property to libc_hwasan stubs" am: 4ae0e2f79f am: aab6a05edb
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2544370

Change-Id: I9c9ab09df82bb46be769f12a1a2f486acd250741
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 20:54:10 +00:00
Spandan Das
aab6a05edb Merge "Add versions property to libc_hwasan stubs" am: 4ae0e2f79f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2544370

Change-Id: I45319c63fb7a7ded0ff9017dc1d9514fbfe761db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 20:12:03 +00:00
Spandan Das
4ae0e2f79f Merge "Add versions property to libc_hwasan stubs" 2023-04-18 19:40:11 +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