Commit graph

16 commits

Author SHA1 Message Date
Edward Liaw
4a8d7d79e2 TEST_MAPPING: add CTS bionic test to kernel-presubmit
Bug: 258819618
Test: atest :kernel-presubmit
Change-Id: I6290d694137d1c4f3ea0a004562320ce4068463c
Signed-off-by: Edward Liaw <edliaw@google.com>
2022-11-11 18:46:19 +00:00
Elliott Hughes
8fda8fc0fd Add the toybox tests to bionic's presubmit.
I can't believe we didn't have this already.

Bug: http://b/236967833
Test: treehugger
Change-Id: Ic0fa7fd8e74860744d13d0c168b49240a86a8df2
2022-06-23 22:31:57 +00:00
Florian Mayer
44e30ee19d Add memunreachable to hwasan-presubmit.
The offending tests have been skipped, can enable the rest.

Bug: 229317612
Change-Id: I8eca4268f8d69b862da19f403be0fc25417ddf6e
2022-04-22 16:22:15 +00:00
Florian Mayer
ab36432f7b Add debuggerd_test to hwasan-presubmit.
This passes now.

Bug: 229317612
Change-Id: Iaf26b5fafd33b19dd2e4dbb073bc3f76c7fffd66
2022-04-18 20:39:48 +00:00
Florian Mayer
cb6f86a275 Add bionic tests that pass to hwasan-presubmit.
Currently failing:
* CtsTaggingHostTestCases
* debuggerd_test
* memunreachable_unit_test

Bug: 229317612
Change-Id: I5be1e90a23951e0265e289bfd2dfe11192b49dc3
2022-04-15 04:02:55 +00:00
Mitch Phillips
40d9622c12 Add GWP-ASan CTS to bionic TEST_MAPPING
Bug: N/A
Change-Id: Ia9aac40965ba77823cd3824b0508d4e48c07f43f
Test: presubmit should pick up the new test in TEST_MAPPING.
2022-03-25 00:08:32 +00:00
Colin Cross
8d9297f905 Merge "Add more tests to TEST_MAPPING" 2021-10-01 21:00:23 +00:00
Colin Cross
0cc60afa33 Add more tests to TEST_MAPPING
Test: treehugger
Change-Id: I1d7dd32fd7f90a20d61de4701293527f83dc4ec4
2021-10-01 09:25:36 -07:00
Evgenii Stepanov
1d7077a1ce Add CtsBionicTestCases to hwasan-postsubmit.
Bug: 193568145
Test: none

Change-Id: I8aa9b9d299973600e7488aeae93b92f59776d5e5
2021-09-24 13:20:43 -07:00
Mitch Phillips
a78ace95f4 Add debuggerd_test to bionic test mapping.
Lots of plumbing between bionic and debuggerd, make sure it works.

Bug: N/A
Change-Id: Ida4f3114f76ca88f3768fffa9fdc7deee74afda8
Test: N/A
2021-03-10 21:01:55 +00:00
Mitch Phillips
2210b8d542 [Tagged Pointers] Allow probing the current TP level w/ locking.
aosp/1484976 introduced a breaking change where
DisableMemoryMitigations() now indiscriminately turns tagged pointers
off. When android_mallopt(M_DISABLE_MEMORY_MITIGATIONS) is called, the
correct behaviour is:
 - In SYNC/ASYNC MTE mode -> disable all tagged pointers.
 - If all tagged pointers are already disabled -> nop.
 - If we're in TBI mode -> nop (keep the TBI mode as-is).

In order to do that we have to allow probing of the current heap tagging
mode. In order to prevent TOCTOU between GetHeapTaggingLevel() and
SetHeapTaggingLevel(), we expose a global mutex that should be held when
calling these functions.

Bug: 174263432
Test: atest CtsTaggingHostTestCases on Flame
Change-Id: Ia96f7269d542c9041270458806aee36766d2fbbb
2020-11-30 10:49:03 -08:00
Mitch Phillips
cbf016504b [GWP-ASan] Add gwp_asan_unittest to bionic presubmit.
bionic libc has a dependency on GWP-ASan. Changes in bionic can also
affect GWP-ASan (e.g. GWP-ASan requires some headers from bionic for
tests). Resultingly, we shouldn't accidentally break GWP-ASan through
changes to bionic by adding this as a presubmit check.

Bug: 152414185
Test: cd bionic && atest
Change-Id: I15dac9da6a7b8dbba453cfabec995d79a0f71924
2020-03-26 13:23:19 -07:00
Josh Gao
ad8f02d780 fdtrack: add a test.
Test: logcat -c; fdtrack_test; logcat -d | grep fdtrack
Change-Id: Ie1101c9cf968299ec1f03f20097a2ed27f6e15bd
2020-02-03 14:29:52 -08:00
Christopher Ferris
0442b9f0c4 Run memunreachable_unit_test on bionic changes.
Bug: 137795072

Test: Ran atest.
Change-Id: I2153b3fd97f77bb06e9d66b5f5419cab0cbabcab
2019-12-19 15:58:48 -08:00
Christopher Ferris
e4619f7719 Add automatic running of tests on bionic changes.
malloc debug and malloc hooks have been broken for a long time
and no one noticed. So add them to be run by default on bionic
changes since that provides the most coverage.

Change the malloc debug and malloc hooks tests to support isolated
runs.

Changed the name of the malloc hooks unit tests to system tests
because they weren't really unit tests.

Changed the verify leak malloc debug tests to print out extra
information so it is possible to figure out what sized allocation
failed.

Test: Ran tests.
Change-Id: Idea4c864f1d62598148ee78d7c9397e45234b1ca
2019-11-15 14:19:33 -08:00
Elliott Hughes
f05dd837cb Add TEST_MAPPING.
Test: treehugger
Change-Id: I28eced257260028553bb0dc02a9d99bcbf266378
2019-02-16 09:06:57 -08:00