Mao Han
d4e662edab
riscv64: fix return value when errorno is 4095
...
This issue was discovered by seccomp_seccomp_bpf_riscv_64 test.
Actual output:
[0]code=20 jt=00 jf=00 k=0000
[1]code=15 jt=00 jf=01 k=003F
[2]code=06 jt=00 jf=00 k=51000
[3]code=06 jt=00 jf=00 k=7FFF0000
ret=-4095, errno=0
Expected output:
[o]code=20 jt=00 jf=00 k=0000
[1]code=15 jt=00 jf=01 k=003F
[2]code=06 jt=00 jf=00 k=51000
[3]code=06 jt=00 jf=00 k=7FFF0000
ret=-1, errno=4095
Change-Id: Ieebf5f0d1e2f18e2887c463b58ef7ea05ea52898
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: haocheng.zy <zhangye@linux.alibaba.com>
2023-05-11 14:52:56 +08:00
Christopher Ferris
e75eed06cd
Merge "Update to v6.3 kernel headers." am: 983292a972
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2583751
Change-Id: I7d92fd5501b5c21a037825169741c83d518cf4d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-11 00:05:09 +00:00
Christopher Ferris
983292a972
Merge "Update to v6.3 kernel headers."
2023-05-10 23:28:53 +00:00
Treehugger Robot
b00d33659a
Merge "More printf unification: FLUSH()." am: d9fa32e99f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2583976
Change-Id: If471cefe88c21e757eb8832209b7207e0a25881c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-09 22:41:24 +00:00
Treehugger Robot
d9fa32e99f
Merge "More printf unification: FLUSH()."
2023-05-09 21:46:12 +00:00
Christopher Ferris
b7cef6d910
Update to v6.3 kernel headers.
...
Kernel headers coming from:
Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-6.3
Test: Bionic unit tests pass.
Change-Id: I5270ef291a77343e47ef3a5fbd02b8cacf218ec5
2023-05-09 19:04:15 +00:00
Elliott Hughes
26a0ebd24b
More printf unification: FLUSH().
...
wprintf doesn't need this (and already only has the iov stuff because
the non-wide printf implementation needs it), but we can further reduce
the diff between the two implementations by defining a no-op FLUSH() for
wide characters.
Test: treehugger
Change-Id: Ifefcb4b8474b086f995e2b0796f61558a19e2a42
2023-05-09 11:54:09 -07:00
Elliott Hughes
3c3f31df3b
Merge "Clean up stdio snprintf()/swprintf() tests." am: 44befb2286
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2583370
Change-Id: I4c8af67daf4a7d2b4563a2d401e3470a9150c7cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-09 18:44:31 +00:00
Elliott Hughes
44befb2286
Merge "Clean up stdio snprintf()/swprintf() tests."
2023-05-09 18:15:16 +00:00
Treehugger Robot
52a892139c
Merge "Make fork equivalent to vfork when HWASan or MTE stack tagging is enabled." am: 68904aee7b
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2507976
Change-Id: I628e01891a51a774c9cc0e834b74090086f88953
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-09 01:27:41 +00:00
Treehugger Robot
68904aee7b
Merge "Make fork equivalent to vfork when HWASan or MTE stack tagging is enabled."
2023-05-09 00:53:48 +00:00
Elliott Hughes
8fd4e96e2a
Clean up stdio snprintf()/swprintf() tests.
...
This reduces the amount of boilerplate for these tests, and ensures that
we have a corresponding swprintf() test for every snprintf() test
(except the handful where it doesn't make sense; we have no FORTIFY for
the wide-character routine, for example).
Test: treehugger
Change-Id: I14091683494bbb414f1a72bddc9835b86ff62526
2023-05-08 17:31:40 -07:00
Treehugger Robot
638474bf17
Merge "Explain the header tests better." am: e60b4c7c2f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2582154
Change-Id: Iec5ba284753d0ed36506f3987357c0a24de58dcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 22:45:15 +00:00
Peter Collingbourne
b6a592b25b
Make fork equivalent to vfork when HWASan or MTE stack tagging is enabled.
...
Bug: 274056091
Change-Id: Iac029ca6b0e26f57f20c0a54822b75e3cae67344
2023-05-08 15:26:00 -07:00
Treehugger Robot
e60b4c7c2f
Merge "Explain the header tests better."
2023-05-08 21:54:22 +00:00
Elliott Hughes
32c9572424
Explain the header tests better.
...
Bug: https://github.com/google/android-riscv64/issues/88
Test: N/A
Change-Id: Ia2a8673e96eb7aeb795fb7158f4814e5af9c8e94
2023-05-08 19:14:28 +00:00
Treehugger Robot
6538023aa2
Merge "doc: add desc for riscv together with other ARCHs" am: d16b682f0d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2581450
Change-Id: I1ae8a212cad942b2fcf5bca21b60549ad8637b71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 17:16:02 +00:00
Treehugger Robot
d16b682f0d
Merge "doc: add desc for riscv together with other ARCHs"
2023-05-08 16:48:18 +00:00
Wang Chen
a6a9d5757e
doc: add desc for riscv together with other ARCHs
...
Test: doc changes, no test required.
Change-Id: I30311d4edc12e623567b5622a65339fb61c9a5f3
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
2023-05-08 16:55:21 +08:00
Zijun Zhao
4ea499ad0d
Merge "Nullability check for uio module." am: aaaf468370
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2579253
Change-Id: Ib671061a2977073c2b06b5789fff734853bf115e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 21:27:12 +00:00
Zijun Zhao
aaaf468370
Merge "Nullability check for uio module."
2023-05-04 20:52:09 +00:00
Elliott Hughes
d0268a32bc
Merge "<time.h>: change the new C23 TIME_ constants." am: e023a02cce
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2576754
Change-Id: I7ba745dc71e6eaafc75ea8a52e573341fc132986
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 18:13:42 +00:00
Elliott Hughes
e023a02cce
Merge "<time.h>: change the new C23 TIME_ constants."
2023-05-04 17:35:17 +00:00
zijunzhao
d633600d1c
Nullability check for uio module.
...
Bugs: b/245972273
Test: adb shell
Change-Id: I132f618c50f7b7a3f9b9ef26c9ac1a87a97a1b78
2023-05-04 17:13:15 +00:00
Elliott Hughes
b6ce42afdd
Merge "syslog.h: implement LOG_PERROR." am: 1dff230f75
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2465131
Change-Id: Iae0304651de45bff683fbfc3f9b71a5b80016e7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 15:47:00 +00:00
Elliott Hughes
1dff230f75
Merge "syslog.h: implement LOG_PERROR."
2023-05-04 15:09:51 +00:00
Elliott Hughes
c17cc63ca8
Merge "Add an enum for the riscv64 <sys/ucontext.h> register constants." am: 9118450303
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2576815
Change-Id: I1f1c2685dc224110c71b9be15f72aef032787ce8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 00:06:29 +00:00
Elliott Hughes
7db0a6cc5f
<time.h>: change the new C23 TIME_ constants.
...
Jens Gustedt suggested a better implementation last year on the musl
mailing list: https://www.openwall.com/lists/musl/2022/11/19/1
It means the constants are sparse, but in return it means we can add
future constants and they'll be backward compatible. (Sadly you'll need
to be on API level 35 before you can use anything but TIME_UTC.)
I doubt this will ever matter, because everyone should just stick to
clock_gettime()/clock_getres() anyway, and anyone who does have a
legitimate use for timespec_get() and timespec_getres() probably needs
to support non-Linux and so can't use any clocks that aren't in ISO C
anyway. But given that we don't _have_ to paint ourselves into a corner
here, we may as well take the opportunity to not do so.
Test: strace
Change-Id: I293d32fcbcf7f6703564dac0978ae2a10192a482
2023-05-03 15:37:46 -07:00
Elliott Hughes
9118450303
Merge "Add an enum for the riscv64 <sys/ucontext.h> register constants."
2023-05-03 21:43:24 +00:00
Elliott Hughes
213d943a33
syslog.h: implement LOG_PERROR.
...
This is the one openlog() flag that toybox uses. We should probably try
to unify toybox's POSIX logger and Android-specific log at some point,
and this will help.
Also fix our behavior with an empty format string, noticed while adding
tests.
Test: treehugger
Test: adb shell logger -s foo
Change-Id: Ic027e78a460be3db83cc4c6f9946c9efa22be6e1
2023-05-03 14:19:40 -07:00
Elliott Hughes
7fc63f2c9a
Add an enum for the riscv64 <sys/ucontext.h> register constants.
...
That lets us have idempotent #defines to reduce namespace pollution.
Bug: http://b/279405445
Test: treehugger
Change-Id: I00312cc8911025696cf0eea2d70e3219ab361613
2023-05-03 17:45:41 +00:00
Treehugger Robot
3dd8f3a318
Merge "Nullability check for get_device_api_level_inlines module." am: e61cf18c3c
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2577270
Change-Id: I2814072cdc76a2425766ab68d9b13f1f6f933e1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 03:01:50 +00:00
Treehugger Robot
e61cf18c3c
Merge "Nullability check for get_device_api_level_inlines module."
2023-05-03 02:06:08 +00:00
Treehugger Robot
43a2cbac4b
Merge "Implement C23 printf 'wf' length modifiers" am: ebd654640a
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2562770
Change-Id: I98c7c8fefcec2e0b846bcbea86c1eff40a1ee7d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 00:33:24 +00:00
Treehugger Robot
ebd654640a
Merge "Implement C23 printf 'wf' length modifiers"
2023-05-02 23:44:37 +00:00
zijunzhao
136e28fa8b
Nullability check for get_device_api_level_inlines module.
...
Bugs: b/245972273
Test: adb shell
Change-Id: I49d64a12b542c8f3723f89531c63d10b84d16d26
2023-05-02 23:36:34 +00:00
zijunzhao
1fdece95d3
Implement C23 printf 'wf' length modifiers
...
wfN: Specifies that a following b, d, i, o, u, x, or X conversion specifier applies to a fastest minimum-width integer argument with a specific width where N is a positive decimal integer with no leading zeros (the argument will have been promoted according to the integer promotions, but its value shall be converted to the unpromoted type); or that a following n conversion specifier applies to a pointer to a fastest minimum-width integer type argument with a width of N bits. All fastest minimum-width integer types (7.22.1.3) defined in the header <stdint.h> shall be supported. Other supported values of N are implementation-defined.
Bug: b/271903607
Test: adb shell
Change-Id: Ida36d5a50af2a46fd04cb5fe039793d8872f9f3b
2023-05-02 21:06:09 +00:00
Elliott Hughes
abeb9553ea
Merge "Fix the WIFSTOPPED definition." am: 721b93d7ec
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2575250
Change-Id: Ied741177286f0c42aef6e4235a314fd6c2650064
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 15:18:32 +00:00
Elliott Hughes
721b93d7ec
Merge "Fix the WIFSTOPPED definition."
2023-05-02 14:40:15 +00:00
Treehugger Robot
0a531de854
Merge "Nullability check for getopt module." am: c5ca568b96
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2568750
Change-Id: I9d1d9465ce6fbccb9a474f811a07e6467a34715e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 19:49:24 +00:00
Elliott Hughes
2b8ca55d14
Fix the WIFSTOPPED definition.
...
Although this breaks job control in several shells (including mksh),
this has been broken since the initial commit and no-one's noticed until
now.
Bug: https://github.com/android/ndk/issues/1878
Test: treehugger
Change-Id: Id7c4805965c5e5847db99b57df1af13355adcc22
2023-05-01 19:48:12 +00:00
Treehugger Robot
c5ca568b96
Merge "Nullability check for getopt module."
2023-05-01 18:48:25 +00:00
Zijun Zhao
7ba6b487cb
Merge "Nullability check for resource module." am: 20fa28e564
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2569870
Change-Id: I5ebe38317844e50c81c22dea1bea5c5d77d5068f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 17:02:44 +00:00
zijunzhao
d3f2f109fc
Nullability check for getopt module.
...
Bugs: b/245972273
Test: adb shell
Change-Id: I243bb87fe26beecd376d894b25cedd993c246880
2023-05-01 16:19:44 +00:00
Zijun Zhao
20fa28e564
Merge "Nullability check for resource module."
2023-05-01 16:16:42 +00:00
zijunzhao
a23e448288
Nullability check for resource module.
...
Bugs: b/245972273
Test: adb shell
Change-Id: Ia875f9e0189f72317276cc28bfe6faf1f95c2908
2023-04-28 22:18:02 +00:00
Treehugger Robot
b26c07a449
Merge "Nullability check for ctype_inlines module." am: 3ee441491a
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2568133
Change-Id: I762886f6051be0a3878323312351497ec76db67d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 21:38:13 +00:00
Treehugger Robot
3ee441491a
Merge "Nullability check for ctype_inlines module."
2023-04-28 20:57:27 +00:00
Almaz Mingaleev
2ab2173c09
Merge "Update tzcode from 2022a to 2023a." am: 8cad3f9776
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2567910
Change-Id: Ib0f739c93ab74ac8fe14a4664f214ac46398a89c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 19:14:57 +00:00
Almaz Mingaleev
8cad3f9776
Merge "Update tzcode from 2022a to 2023a."
2023-04-28 18:41:33 +00:00