Revision tags: android-11.0.0_r8, android-11.0.0_r7, m/android-11.0.0_r8, android-vts-10.0_r5 |
|
44f0faa2 | 29-Jul-2020 |
Christopher Ferris |
Add support for new scudo mallopt options. Bug: 162092537 Test: Ran new unit tests. Change-Id: I4b7d17a9e98166c03cd153eb9e9d847693914ea3 Merged-In: I4b7d17a9e98166c03cd153eb
Add support for new scudo mallopt options. Bug: 162092537 Test: Ran new unit tests. Change-Id: I4b7d17a9e98166c03cd153eb9e9d847693914ea3 Merged-In: I4b7d17a9e98166c03cd153eb9e9d847693914ea3 (cherry picked from commit 8844879212852a70918df1c9ebcac4d574f1fcd9)
show more ...
|
Revision tags: android-vts-11.0_r1, android-security-11.0.0_r1, android-platform-11.0.0_r1, android-cts-11.0_r1, android-11.0.0_r5, android-11.0.0_r4, android-11.0.0_r3, android-11.0.0_r2, android-11.0.0_r1 |
|
3a5a22d6 | 20-Jul-2020 |
Bram Bonné |
Resolve interface flags using SIOCGIFFLAGS ioctl Normally, getifaddrs() gets its information about interface flags from RTM_NEWLINK messages. With the ability for non-system apps to send
Resolve interface flags using SIOCGIFFLAGS ioctl Normally, getifaddrs() gets its information about interface flags from RTM_NEWLINK messages. With the ability for non-system apps to send RTM_GETLINK messages going away, resolve these flags by performing a SIOCGIFFLAGS ioctl call instead. This fixes a bug where the flags were erroneously copied over from an ifaddrmsg's ifa_flags. Bug: 141455849 Bug: 161869825 Test: atest bionic-unit-tests-static Test: Connect to wireless network. Test: Call getifaddrs() from a non-system app targeting API R+, verify that the interface flags are correct. Change-Id: I552f3b9d21072f59ee6f0890f47cb1bdf3cfcf20
show more ...
|
Revision tags: platform-tools-30.0.4, android-mainline-11.0.0_r2, android-r-beta-3, android-r-beta-2, android-mainline-11.0.0_r1 |
|
c8c3bc58 | 02-Jun-2020 |
Lev Rumyantsev |
Move set_cached_pid() to __clone_for_fork() Bug: 145028007 Test: bionic-unit-tests Merged-In: I3c697924f2a3ef1804a688dd1fe9669f6b7a71bf Change-Id: I3c697924f2a3ef1804a688dd1fe966
Move set_cached_pid() to __clone_for_fork() Bug: 145028007 Test: bionic-unit-tests Merged-In: I3c697924f2a3ef1804a688dd1fe9669f6b7a71bf Change-Id: I3c697924f2a3ef1804a688dd1fe9669f6b7a71bf (cherry picked from commit 3a4c2ffff80402f6c250f1491302aa7d65411349)
show more ...
|
8b26ca41 | 02-Jun-2020 |
Lev Rumyantsev |
Remove WEAK_FOR_NATIVE_BRIDGE for fork Bug: 145028007 Test: bionic-unit-tests Merged-In: I0b019cd08c9d7426a953bd199f2ecd6dd42db00e Change-Id: I0b019cd08c9d7426a953bd199f2ecd6dd42
Remove WEAK_FOR_NATIVE_BRIDGE for fork Bug: 145028007 Test: bionic-unit-tests Merged-In: I0b019cd08c9d7426a953bd199f2ecd6dd42db00e Change-Id: I0b019cd08c9d7426a953bd199f2ecd6dd42db00e (cherry picked from commit 520398ffe90a45e2f2a85f56230055f9f2f6bf02)
show more ...
|
018f4a13 | 02-Jun-2020 |
Lev Rumyantsev |
Narrow native bridge to clone_for_fork We are removing native bridge copy of fork.cpp, but need to replace call to clone() when it's done for bionic's fork. The code here will r
Narrow native bridge to clone_for_fork We are removing native bridge copy of fork.cpp, but need to replace call to clone() when it's done for bionic's fork. The code here will run all pre-/post-clone routines for *guest*, while native bridge implementation will need to run the corresponding *host* routines. Bug: 145028007 Test: bionic-unit-tests Merged-In: Ic5524e743caa287d7aaa8dc7e5d34acd1c7e1170 Change-Id: Ic5524e743caa287d7aaa8dc7e5d34acd1c7e1170 (cherry picked from commit 41127dca3d08e5eb350b678ee03eae30ab779921)
show more ...
|
Revision tags: platform-tools-30.0.3, platform-tools-30.0.2, android-mainline-10.0.0_r11, platform-tools-30.0.1, platform-tools-30.0.0, android-r-preview-4, android-r-preview-3, android-r-preview-2 |
|
91740684 | 27-Feb-2020 |
Peter Collingbourne |
Handle the alternate signal stack correctly in android_unsafe_frame_pointer_chase. If an alternate signal stack is set and the frame record is in bounds of that stack, we need to use the
Handle the alternate signal stack correctly in android_unsafe_frame_pointer_chase. If an alternate signal stack is set and the frame record is in bounds of that stack, we need to use the top of the alternate signal stack for bounds checking rather than the normal stack. Bug: 150215618 Change-Id: I78b760d61b27da44f8e0cfee3fe94a791011fe58 Merged-In: I78b760d61b27da44f8e0cfee3fe94a791011fe58
show more ...
|
2082446f | 27-May-2020 |
Christopher Ferris |
Ignore SCUDO_OPTIONS across a security boundary. Add SCUDO_OPTIONS to the list of the environment variables that should not be preserved across a security boundary. Bug: 1574841
Ignore SCUDO_OPTIONS across a security boundary. Add SCUDO_OPTIONS to the list of the environment variables that should not be preserved across a security boundary. Bug: 157484128 Test: Builds and boots. Change-Id: Id8644608114ad2fd49baedbdbbe1c899768bd54d (cherry picked from commit ad3be7e649e755c0895dbae378a5c88ae3bddb90)
show more ...
|
73ca781f | 21-May-2020 |
Christopher Ferris |
Fix deadlock/timeout in thread unwinding. When malloc debug is enabled, using libbacktrace to unwind can result in a deadlock. This happens when an unwind of a thread is occuring whi
Fix deadlock/timeout in thread unwinding. When malloc debug is enabled, using libbacktrace to unwind can result in a deadlock. This happens when an unwind of a thread is occuring which triggers a signal to be sent to that thread. If that thread is interrupted while a malloc debug function is executing and owns a lock, that thread is then stuck in the signal handler. Then the original unwinding thread attempts to do an allocation and gets stuck waiting for the same malloc debug lock. This is not a complete deadlock since the unwinder has timeouts, but it results in truncated unwinds that take at least five seconds to complete. Only the backtrace signals needs to be blocked because it is the only known signal that will result in a thread being paused in a signal handler. Also, added a named signal in the reserved signal list for the special bionic backtrace signal. Bug: 150833265 Test: New unit tests pass with fix, fail without fix. Change-Id: If3e41f092ebd40ce62a59ef51d636a91bc31ed80 (cherry picked from commit 9bf7817dd29d15ea49c88436db4067d87fc7e6c4)
show more ...
|
53a9db72 | 18-May-2020 |
Bram Bonné |
Merge "Speed up seccomp with priority list." into rvc-dev |
ce846777 | 06-May-2020 |
Bram Bonné |
Speed up seccomp with priority list. Allow to provide a list of prioritized syscalls (e.g., syscalls that we know occur often) which are checked before other syscalls in seccomp.
Speed up seccomp with priority list. Allow to provide a list of prioritized syscalls (e.g., syscalls that we know occur often) which are checked before other syscalls in seccomp. When constructing the bpf seccomp filter, traverse prioritized syscalls in a linear list before checking all other syscalls in a binary tree. Bug: 156732794 Test: make, inspect generated *_system_policy.cpp files Test: simpleperf on futex/ioctl-heavy app seems to show 5-10% less time spent in seccomp call Change-Id: I509343bcd32ada90c0591785ab5cb12d2a38c31e
show more ...
|
01e19d2b | 16-Apr-2020 |
Jooyung Han |
Set min_sdk_version for mainline dependencies To enforce all modules included in mainline modules(apex/apk), modules should set min_sdk_version which is the minimum sdk versions that
Set min_sdk_version for mainline dependencies To enforce all modules included in mainline modules(apex/apk), modules should set min_sdk_version which is the minimum sdk versions that compiled artifacts run against. Setting this doesn't change build output. (While cherry-picking s/29/apex_inherit) Bug: 145796956 Test: m Merged-In: Ibbe3771592677d729c81343fe00859c0afa81918 Change-Id: Ibbe3771592677d729c81343fe00859c0afa81918 (cherry picked from commit 15c32a8e1aa0f7754b5b25bb6c160b5d8b8b49c3)
show more ...
|
7501c6de | 08-May-2020 |
Josh Gao |
fdtrack: don't do anything while vforked. Bug: http://b/153926671 Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator Change-Id: If42905f3d6a76ed70a45e5b9edd029ffd7789045
fdtrack: don't do anything while vforked. Bug: http://b/153926671 Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator Change-Id: If42905f3d6a76ed70a45e5b9edd029ffd7789045 (cherry picked from commit 41291131284471eed7cb6c22cac8b442fd3d1c52)
show more ...
|
1bf410b5 | 08-May-2020 |
Josh Gao |
fdsan: don't do anything when vforked. Bug: http://b/153926671 Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator Change-Id: Id351a993e396774b68239edfef83d9e81205290b
fdsan: don't do anything when vforked. Bug: http://b/153926671 Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator Change-Id: Id351a993e396774b68239edfef83d9e81205290b (cherry picked from commit 65fb2a7f0304fda4463771ae40f8b83728e74a62)
show more ...
|
53783514 | 08-May-2020 |
Josh Gao |
Track whether a thread is currently vforked. Our various fd debugging facilities get extremely confused by a vforked process closing file descriptors in preparation to exec: fdsan can
Track whether a thread is currently vforked. Our various fd debugging facilities get extremely confused by a vforked process closing file descriptors in preparation to exec: fdsan can abort, and fdtrack will delete backtraces for any file descriptors that get closed. Keep track of whether we're in a vforked child in order to be able to detect this. Bug: http://b/153926671 Test: 32/64-bit bionic-unit-tests on blueline, x86_64 emulator Change-Id: I8a082fd06bfdfef0e2a88dbce350b6f667f7df9f (cherry picked from commit 230328374018c7ca4e82a47ff4eb91dd2f79a5c3)
show more ...
|
b47eeab2 | 08-May-2020 |
Roman Kiryanov |
Add goldfish-opengl to use bionic_libc_platform_headers We need __get_tls and TLS_SLOT_OPENGL for our OpenGL implementation. We currently use .mk files and this restriction does not
Add goldfish-opengl to use bionic_libc_platform_headers We need __get_tls and TLS_SLOT_OPENGL for our OpenGL implementation. We currently use .mk files and this restriction does not apply, since we are migrating to .bp we need to address restriction. Bug: 154151802 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Merged-In: I007664d919204cd4f6a623f9695a56e94bab7ae6 Change-Id: I6616331b03649eb19ceeb8121d56e55a9270548a
show more ...
|
8ee91322 | 06-May-2020 |
Jiyong Park |
Merge "Set apex_available property" into rvc-dev |
524510bc | 01-May-2020 |
Josh Gao |
Merge changes I8b25accf,I59013f0c,I6c881e5d,I66826f31,I552692ae, ... into rvc-dev * changes: fdtrack: add wrapper for socketpair. fdtrack: add wrapper for eventfd. fdtrack:
Merge changes I8b25accf,I59013f0c,I6c881e5d,I66826f31,I552692ae, ... into rvc-dev * changes: fdtrack: add wrapper for socketpair. fdtrack: add wrapper for eventfd. fdtrack: add wrappers for epoll_create, epoll_create1. fdtrack: add wrappers for pipe, pipe2. fdtrack: add tests for individual wrappers. fdtrack: don't destroy traces.
show more ...
|
c984b2c5 | 30-Apr-2020 |
Josh Gao |
fdtrack: add wrapper for socketpair. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I8b25accf00dc01f6fab351f3ba612f6b0ff9d094 (cherry picked fr
fdtrack: add wrapper for socketpair. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I8b25accf00dc01f6fab351f3ba612f6b0ff9d094 (cherry picked from commit b107eab5ef1d5946bd753cad0e8b178172d362df)
show more ...
|
bc79638e | 30-Apr-2020 |
Josh Gao |
fdtrack: add wrapper for eventfd. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I59013f0c4da0debbcc50269c64ae9db0cdc4eaa0 (cherry picked from
fdtrack: add wrapper for eventfd. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I59013f0c4da0debbcc50269c64ae9db0cdc4eaa0 (cherry picked from commit 7de412443dd4201c61d7bb17c443bbf2dfd96bad)
show more ...
|
143e2ae8 | 30-Apr-2020 |
Josh Gao |
fdtrack: add wrappers for epoll_create, epoll_create1. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I6c881e5d67596c543526536541d5b8086e21d9e9
fdtrack: add wrappers for epoll_create, epoll_create1. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I6c881e5d67596c543526536541d5b8086e21d9e9 (cherry picked from commit a38331d833fb74607e964b0749427415545018fe)
show more ...
|
9c3b2113 | 30-Apr-2020 |
Josh Gao |
fdtrack: add wrappers for pipe, pipe2. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I66826f312a65ab9f1bd8193bf684e330baa952dc (cherry picked
fdtrack: add wrappers for pipe, pipe2. Bug: https://issuetracker.google.com/154450436 Test: bionic-unit-tests Change-Id: I66826f312a65ab9f1bd8193bf684e330baa952dc (cherry picked from commit 1fad5283a07e87b3ae28f4a2dd6943d600c2926b)
show more ...
|
693a7214 | 28-Apr-2020 |
Jiyong Park |
Set apex_available property The marked library(ies) were available to the APEXes via the hand-written whitelist in build/soong/apex/apex.go. Trying to remove the whitelist by adding
Set apex_available property The marked library(ies) were available to the APEXes via the hand-written whitelist in build/soong/apex/apex.go. Trying to remove the whitelist by adding apex_available property to the Android.bp of the libraries. Bug: 150999716 Test: m Change-Id: If64eff62b9e93af95089e5010c30eb586673b92e
show more ...
|
95cebe5b | 24-Apr-2020 |
Elliott Hughes |
Block all signals in ScopedSignalBlocker. When a thread calls pthread_exit(3), ScopedSignalBlocker blocks all user-visible signals, but leaves internal-use signals 33/34/36/36/37. Si
Block all signals in ScopedSignalBlocker. When a thread calls pthread_exit(3), ScopedSignalBlocker blocks all user-visible signals, but leaves internal-use signals 33/34/36/36/37. Signal 33 is used to unwind a thread for a backtrace, which can cause us to access the stack after it's been unmapped. (Avoiding this was the reason why we have the ScopedSignalBlocker in pthread_exit(3)!) Fix this (and other potential issues) by changing ScopedSignalBlocker to call __rt_sigprocmask(2) directly, so we don't mask out the internal-use signals. Bug: https://issuetracker.google.com/153624226 Test: not trivially reproducible Change-Id: I9b125ed41ddee4c5d33b45920f1d142e52db47cb Merged-In: I9b125ed41ddee4c5d33b45920f1d142e52db47cb
show more ...
|
c27404e7 | 21-Apr-2020 |
Jiyong Park |
Merge changes from topic "apex_available" into rvc-dev * changes: libc_header is available to any apex but only visible to certain places Set apex_available property Set ap
Merge changes from topic "apex_available" into rvc-dev * changes: libc_header is available to any apex but only visible to certain places Set apex_available property Set apex_available property
show more ...
|
8dceacc2 | 18-Apr-2020 |
Mitch Phillips |
Set the top bit for tagged pointers. Some applications may incorrectly assume that a "negative" pointer indicates error. By setting the top bit in TBI mode, we catch these cases as w
Set the top bit for tagged pointers. Some applications may incorrectly assume that a "negative" pointer indicates error. By setting the top bit in TBI mode, we catch these cases as well. Although they don't directly indicate incompatibility with MTE (as MTE uses the 2nd-highest nibble) - this ensures we catch HWASan errors as well as reserve the bits for future MTE expansion. Bug: 154272452 Test: Boot flame, device boots successfully. Change-Id: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b Merged-In: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b
show more ...
|