Commit graph

25094 commits

Author SHA1 Message Date
Elliott Hughes
f3fc8dc2ca Merge "Break up clock_getcpuclockid tests."
am: 9fd5626507

Change-Id: Ia5a0ccf404db96f5222e76d4d75f270ba791bc51
2017-11-30 16:36:54 +00:00
Elliott Hughes
27d4977f1f Merge "Fix posix_spawn signal defaulting." 2017-11-30 16:35:21 +00:00
Elliott Hughes
9fd5626507 Merge "Break up clock_getcpuclockid tests." 2017-11-30 16:31:35 +00:00
Elliott Hughes
5c44e1e04d Merge "Address review comments from the previous change to this file."
am: 1c41b9dd6c

Change-Id: Ibe6ef9527c9b6b980e8af90fc9cea1112382edbc
2017-11-30 04:03:36 +00:00
Treehugger Robot
1c41b9dd6c Merge "Address review comments from the previous change to this file." 2017-11-30 03:58:56 +00:00
Elliott Hughes
7bfacaabf2 Fix posix_spawn signal defaulting.
Add a new stress test, and fix the code to pass it. We need to ensure that
we reset signal handlers for caught signals before unblocking signals in
the child, we need to ensure that this happens even if you haven't passed
a pthread_spawn_attr_t, and we need to ensure that this happens if you
pass in an empty sigdefault set.

Bug: http://b/68707996
Test: ran tests
Change-Id: I348e9b17b1bdf221591da42c0ada133d98471d66
2017-11-29 18:36:38 -08:00
Elliott Hughes
b441359be7 Break up clock_getcpuclockid tests.
Bug: http://b/69569394
Test: ran tests
Change-Id: If273cf8162e7d10aa4aa037181aefea6533a3487
2017-11-29 18:20:25 -08:00
Elliott Hughes
3d98adf9d0 Address review comments from the previous change to this file.
Bug: N/A
Test: N/A
Change-Id: If79f622956c69a6881de237214ca05086dfe8b60
2017-11-29 16:30:37 -08:00
Yabin Cui
92ce17f63e Merge "Remove timeout signal in ptrace test."
am: bd6a5e0f70

Change-Id: I484dbfdde61383e472a026c6ae40ab1646f17422
2017-11-29 22:06:48 +00:00
Yabin Cui
bd6a5e0f70 Merge "Remove timeout signal in ptrace test." 2017-11-29 21:55:49 +00:00
Mark Salyzyn
dde6b60ded Merge "bionic: test: report kernel sha for clock_getcpuclockid failure"
am: 810802c1d0

Change-Id: I10df92f1200614a89353085aff3a083a525b333d
2017-11-29 19:34:36 +00:00
Elliott Hughes
65ba81b4e8 Merge "Revert "Fix bug with double unload on unsuccessful dlopen""
am: 4eb332439a

Change-Id: I21ba611931b2e5794ef49cae9bcafc8748ebe804
2017-11-29 19:34:10 +00:00
Treehugger Robot
810802c1d0 Merge "bionic: test: report kernel sha for clock_getcpuclockid failure" 2017-11-29 19:19:29 +00:00
Elliott Hughes
4eb332439a Merge "Revert "Fix bug with double unload on unsuccessful dlopen"" 2017-11-29 19:16:33 +00:00
Yabin Cui
143b454ae5 Remove timeout signal in ptrace test.
Bionic gtest runner kills a test when it runs over 90s, so there
is no need to use timeout signal in ptrace test.

Bug: http://b/69525592
Test: run bionic-unit-tests.
Change-Id: I767b81a412724ee40fb0f031103a1f05bd7358c4
2017-11-29 11:05:57 -08:00
Elliott Hughes
27f1806b90 Revert "Fix bug with double unload on unsuccessful dlopen"
This reverts commit 58554ccb8a.

causes /vendor/bin/qseecomd to hit the new abort:

[    8.983301] c5    603 DEBUG: Abort message: 'soinfo=0x7147894cd0 is not in soinfo_list (double unload?)'

Bug: http://b/69909887
Bug: http://b/69787209
Change-Id: Ied38f797e0a071a1acc5ed41adf1b45e855143c7
2017-11-29 18:48:33 +00:00
Dimitry Ivanov
f1e645c67b Merge "Fix bug with double unload on unsuccessful dlopen"
am: dc89324e93

Change-Id: Ibff72e8a13cdc737d950dc71f2612fc99740109f
2017-11-29 09:37:01 +00:00
Dimitry Ivanov
dc89324e93 Merge "Fix bug with double unload on unsuccessful dlopen" 2017-11-29 09:29:34 +00:00
Elliott Hughes
cdfc8c1ff4 Merge "Fix Mac build."
am: c6097b0f9f

Change-Id: Idceb5a06770b5ed0b2ca175e0badbaf6168e580b
2017-11-29 04:28:09 +00:00
Treehugger Robot
c6097b0f9f Merge "Fix Mac build." 2017-11-29 04:19:28 +00:00
Elliott Hughes
fcbdf7dd7b Merge "Improve the _FILE_OFFSET_BITS docs and link to them."
am: 8b9037a05e

Change-Id: Ife66fc43eb7154445fd14cbb5d4ddedac99c8ac0
2017-11-29 03:04:05 +00:00
Treehugger Robot
8b9037a05e Merge "Improve the _FILE_OFFSET_BITS docs and link to them." 2017-11-29 02:57:18 +00:00
Elliott Hughes
4af70b4e15 Fix Mac build.
Bug: N/A
Test: builds
Change-Id: I98e44bc7ec2534443a1973aacf4bb97853b3a51f
2017-11-28 18:02:16 -08:00
Elliott Hughes
f2a2e41823 Merge "Always wrap waitpid in TEMP_FAILURE_RETRY."
am: 0a25aa60a2

Change-Id: I868173901e178d7fa73bf8128429f83c33232448
2017-11-29 00:30:56 +00:00
Treehugger Robot
0a25aa60a2 Merge "Always wrap waitpid in TEMP_FAILURE_RETRY." 2017-11-29 00:23:11 +00:00
Elliott Hughes
a34817457f Improve the _FILE_OFFSET_BITS docs and link to them.
We're still seeing lots of confusion. People do seem to look as far as
the headers, but stop there. So let's try a bit harder to point them in
the right direction.

Also explicitly state that removing _FILE_OFFSET_BITS=64 is the
behavior-preserving fix for compilation problems when upgrading to NDK
r15 or later.

Bug: N/A
Test: N/A
Change-Id: I2d5c65b2fb5cccb9977901e51fea1ad2ccc0fd95
2017-11-28 15:47:01 -08:00
Elliott Hughes
46248ecd53 Merge "Revert "Remove mips/mips64 headers from the NDK sysroot.""
am: 72dcf2340f

Change-Id: Ic23c7f98ebf6c0147cb7f81c53982526cc4d4aa1
2017-11-28 23:38:52 +00:00
Elliott Hughes
72dcf2340f Merge "Revert "Remove mips/mips64 headers from the NDK sysroot."" 2017-11-28 23:26:03 +00:00
Mark Salyzyn
71b81a2bb2 bionic: test: report kernel sha for clock_getcpuclockid failure
For aarch64 only.

Once we activate support for vdso call for clock_getres, we also will
have to deal with kernel bugs in the implementation. If the kernel is
prior to the vdso unification of arm, aarch64 and aarch32, estimated
to land in 4.15, then the assembler implementation for aarch64 will
need two upstream kernel fixes e1b6b6ce and c80ed088. We report the
required url for the upstream kernel fixes upon test failure.

Test: bionic-unit-tests --gtest_filter=time.*
Bug: 20045882
Bug: 63737556
Bug: 69626243
Change-Id: Id93056f432491679e349545cbd1d682074634c58
2017-11-28 14:09:09 -08:00
Elliott Hughes
cabc77f917 Always wrap waitpid in TEMP_FAILURE_RETRY.
Strictly not needed in the WNOHANG case, but it's probably best to have
every waitpid wrapped for future copy & pasters.

Bug: https://issuetracker.google.com/69525592
Test: ran tests
Change-Id: I013b0a52d2753e3d32638e9b84c79af7327fb405
2017-11-28 12:55:19 -08:00
dimitry
58554ccb8a Fix bug with double unload on unsuccessful dlopen
In the case of unsuccessful dlopen the failure guard is triggered
for two namespaces which leads to double unload.

Also update soinfo_free to abort in case when linker tries to free same
soinfo for the second time - this makes linker behavior less undefined.

Test: bionic-unit-tests
Bug: http://b/69787209
Change-Id: I886787ee021b050667f967bce7aa2708390886ea
2017-11-28 21:47:01 +01:00
Elliott Hughes
a034ba2d34 Merge "Fix vdso system call fallback failures."
am: 7d5777ef15

Change-Id: Id21c390ae782cac39e98a4a3e01cfae73b214578
2017-11-28 19:14:15 +00:00
Mark Salyzyn
4ef1ab7d4d Merge "bionic: test: add clock_getres"
am: 26b80da44a

Change-Id: I592828ac6f6ed0e38a487ea44f328f9c5498f052
2017-11-28 19:14:03 +00:00
Treehugger Robot
7d5777ef15 Merge "Fix vdso system call fallback failures." 2017-11-28 19:05:18 +00:00
Treehugger Robot
26b80da44a Merge "bionic: test: add clock_getres" 2017-11-28 19:05:18 +00:00
Elliott Hughes
eaca0154b5 Merge "Document bionic's targetSdkVersion-specific behavior."
am: be1bbb1e44

Change-Id: Ib61a9dc055441c546e42811d71350e81a1ed5be9
2017-11-28 17:58:20 +00:00
Elliott Hughes
be1bbb1e44 Merge "Document bionic's targetSdkVersion-specific behavior." 2017-11-28 17:51:01 +00:00
Elliott Hughes
9591df5294 Fix vdso system call fallback failures.
When a vdso call falls back to making a regular system call, the inline
code for the system call doesn't know about errno and just leaves the
usual kernel result to be translated. Add the missing translation.

Also fix the defaults for non-vdso systems so we actually take the
fallback path (and so avoid unintentionally doing the errno translation
twice in those cases).

Bug: http://b/69626243
Test: ran new tests from http://b/63737556
Change-Id: If379632ea2e059e3d3bc3ff41bf3608dc05fb0a3
2017-11-28 09:09:01 -08:00
Jiyong Park
9a051ec31a Merge "Fix: dl#disable_ld_config_file"
am: f5a6fd2001

Change-Id: I6edd4db7064b96ff0bbcbca562e841e94404ba50
2017-11-28 09:42:30 +00:00
Treehugger Robot
f5a6fd2001 Merge "Fix: dl#disable_ld_config_file" 2017-11-28 09:36:34 +00:00
Jiyong Park
9828386bd4 Fix: dl#disable_ld_config_file
linker now quits with exit(1) instead of abort().
This is a leftover of
https://android-review.googlesource.com/c/platform/bionic/+/497893

Bug: 69635156
Test: run dl#disable_ld_config_file in a user build
Change-Id: If65c50805ffe89a601f4a9bfc1c6f0bb8dc16b77
2017-11-28 13:37:03 +09:00
Mark Salyzyn
6a5a99faf3 bionic: test: add clock_getres
Add clock_getres test combinations. Add clock_gettime_unknown test
to ensure the errno is propagated correctly for that call as well.

Test: bionic-unit-tests --gtest_filter=time.*
Bug: 63737556
Bug: 69626243
Change-Id: I0256b7f03ac7e57bc5b36069b13fe576c29b9c75
2017-11-27 20:36:41 -08:00
Elliott Hughes
6347acec09 Document bionic's targetSdkVersion-specific behavior.
Bug: N/A
Test: N/A
Change-Id: I367edc592203e585a1d84a10ff3437ea3f2edd91
2017-11-27 18:12:04 -08:00
Lazar Trsic
790d2f7161 Revert "Remove mips/mips64 headers from the NDK sysroot."
This reverts commit 050f046d3d.

Change-Id: I2549dfccced02b61383cd9e534bfd34cf1d6dba1
2017-11-27 16:48:14 +01:00
Isaac Chen
c7b573c868 Merge "Optimize libc for generic armv7/armv8 neon cores"
am: b7d6df2b61

Change-Id: Ib9620dbe949c68cc3f976425fa88548f8f62b1c2
2017-11-23 09:11:56 +00:00
Isaac Chen
b7d6df2b61 Merge "Optimize libc for generic armv7/armv8 neon cores" 2017-11-23 09:08:24 +00:00
Yabin Cui
0c0fd96f1d Merge "Improve pty unit test to catch the bug more easily."
am: 8fb8c61e48

Change-Id: If75ed98331b3205ce053f07ec242c566a272ed18
2017-11-22 18:03:28 +00:00
Yabin Cui
8fb8c61e48 Merge "Improve pty unit test to catch the bug more easily." 2017-11-22 17:58:56 +00:00
Yabin Cui
57a4006c10 Improve pty unit test to catch the bug more easily.
Bug: http://b/69260651
Test: run bionic-unit-tests.

Change-Id: Ifb89cc2952508b6e5a093c57053fb93cb61cd28c
2017-11-21 18:04:15 -08:00
Yabin Cui
6c7651f380 Merge "Fix support for typed tests and parameterized tests."
am: f40402a39f

Change-Id: I22d108267a6de4fb8d92cb9e53557de7691f3f0f
2017-11-17 02:54:34 +00:00