summaryrefslogtreecommitdiff
path: root/sigchainlib/sigchain_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Properly fix sigchain EnsureFrontOfChain test.Josh Gao2021-03-241-2/+6
| | | | | Test: art_sigchain_tests on host Change-Id: I051062192b0068571732af1f968455952b9a3207
* Cleanups and fixes for sigchain_test.ccNicolas Geoffray2021-03-231-1/+1
| | | | | | | Add a missing call to RaiseHandled. Test: sigchain_test Change-Id: I1a7fde742fa31b30201df228970ae62052dbcf12
* Switch to the new kernel API for obtaining fault address tag bits.Peter Collingbourne2020-11-161-0/+29
| | | | | | | | | | | | | | | | The discussion on LKML is converging on v16 of the fault address tag bits patch [1]. In this version of the patch the presence of the tag bits in si_addr is controlled by a sa_flags bit, and a protocol is introduced to allow userspace to detect kernel support for sa_flags bits. Update the tombstone signal handler to use this API to read the tag bits, update the interceptors in libsigchain to implement the flag support detection protocol and hide the tag bits in si_addr from chained signal handlers that did not request them to match the kernel behavior. [1] https://lore.kernel.org/linux-arm-kernel/cover.1605235762.git.pcc@google.com/ Change-Id: I57f24c07c01ceb3e5b81cfc15edf559ef7dfc740
* Revert^2 "ART: Refactor typedef to using"Andreas Gampe2018-09-201-1/+1
| | | | | | | | | | | This reverts commit ee07743e03042c2ca36e0c9513847a9e7d2509f1. Reason for revert: fixed attributes. Bug: 32619234 Test: m test-art-host Test: m test-art-target-gtest-unstarted_runtime_test Change-Id: I6f0a775adfdf6ecd132b470f7c5446e949872e20
* Revert "ART: Refactor typedef to using"Andreas Gampe2018-09-201-1/+1
| | | | | | | | | This reverts commit 9a20ff06f7ccee08a742c315ec6d351ab56ba1cd. Reason for revert: Attributes on the wrong side. Bug: 32619234 Change-Id: I8fd2abef619b22c02ccfbf5ae629339f1a60918b
* ART: Refactor typedef to usingAndreas Gampe2018-09-191-1/+1
| | | | | | | | Add clang-tidy's modernize-use-using. Bug: 32619234 Test: WITH_TIDY=1 mmma art Change-Id: If50d37b5152af4270784e3cde7951292a9e19033
* sigchain: fix EnsureFrontOfChain on 32-bit.Josh Gao2018-09-041-2/+55
| | | | | | | | | | | | | On 32-bit, bionic's sigaction forwards to sigaction64, which gets interposed by libsigchain's sigaction64, which returns the user's signal handler, not the actual one. This leads to EnsureFrontOfChain's check for whether it should reregister the signal handler to falsely return true, which leads to explosions. Bug: http://b/112677822 Test: /data/nativetest/art/arm/art_sigchain_tests/sigchain_test Test: /data/nativetest64/art/arm64/art_sigchain_tests/sigchain_test Change-Id: Ifbaa4448580d763f5ffd575fa2e77113a8108de6
* Revert^2 "ART: Fix some performance-X tidy"Andreas Gampe2018-06-201-1/+1
| | | | | | | | | | This reverts commit 6856214f2c849600bcb94cc6e84975ba8cb69920. Fix lifetime issue in imgdiag. Test: mmma art Test: m test-art-target-gtest-imgdiag_test Change-Id: I919db6310c0713313340adfe66bcd75a1c5c236e
* Revert "ART: Fix some performance-X tidy"Andreas Gampe2018-06-201-1/+1
| | | | | | | | | This reverts commit 89de444350fdbd7df4fb4d95bb71f00e6673b466. Reason for revert: Seemingly breaks imgdiag_test on device. Change-Id: I46084ecb4205575381aafffd90a0f1a1126e8d2d Test: mmma art
* ART: Fix some performance-X tidyAndreas Gampe2018-06-191-1/+1
| | | | | | | | | Fix performance-for-range-copy, performance-unnecessary-copy-initialization and performance-unnecessary-value-param issues. Test: mmma art Test: m test-art-host Change-Id: I43d8736fc541030a3c61f66aeee0b9c2f1d295f7
* Fix sigchain_test on mipsGoran Jakovljevic2018-03-071-1/+1
| | | | | | | | | | | Pass correct size to syscall. Unlike on arm and x86, _KERNEL__NSIG=128 on mips. This fixes the test on mips32 and mips64. Test: mma test-art-target-gtest-sigchain_test in QEMU Change-Id: I3acd93f3595bcbd2a9a0dc3248955226a1051745
* sigchain: add test.Josh Gao2018-02-261-0/+187
Add a gtest for the various sigchain wrappers. Bug: http://b/73344857 Test: adb shell /data/nativetest64/art/arm64/art_sigchain_tests/sigchain_test (with several actual failures) Change-Id: I331da4f44008984723e2e2733e2a6dd66658e704