OSDN Git Service
Chih-Wei Huang [Fri, 25 May 2018 09:16:34 +0000 (17:16 +0800)]
Merge tag 'android-8.1.0_r29' into oreo-x86
Android 8.1.0 Release 29 (OPM4.171019.016.C1)
android-build-team Robot [Wed, 21 Mar 2018 21:23:19 +0000 (21:23 +0000)]
Snap for
4657601 from
3a927fc8396898cbc5ce6e9286e5b205e5ed3967 to oc-m4-release
Change-Id: I8906788c45929be93468c88fd5ad94c1b5b40f2a
Chih-Wei Huang [Thu, 8 Mar 2018 04:30:36 +0000 (12:30 +0800)]
We require text relocations
Don't show annoying warnings.
Chih-Wei Huang [Wed, 7 Mar 2018 08:41:26 +0000 (16:41 +0800)]
Merge tag 'android-8.1.0_r18' into oreo-x86
Android 8.1.0 Release 18 (OPM5.171019.017)
Chih-Wei Huang [Wed, 24 Aug 2016 14:58:24 +0000 (22:58 +0800)]
Add syscalls ioperm and iopl
Christopher R. Palmer [Sun, 7 Feb 2016 11:46:05 +0000 (06:46 -0500)]
linker: Allow text-relocs for x86 (only)
This effectively reverts
https://android.googlesource.com/platform/bionic/+/
e4ad91f86a47b39612e030a162f4793cb3421d31%5E%21/#F0
for x86 platforms. Unfortunately, this seems like it is required
if we are going to support ffmpeg. The ffmpeg team decreed that they
require text relocations for x86 (only) and that they would not
fix the fact that android 6.0 makes ffmpeg unusable on x86:
https://trac.ffmpeg.org/ticket/4928
Change-Id: I68397f4d62f4f6acd8e0d41b7ecdc115969b890a
android-build-team Robot [Tue, 28 Nov 2017 23:33:01 +0000 (23:33 +0000)]
Snap for
4448085 from
fcabaf45b7a17a2b67b3a7cc019da4b396966bce to oc-m3-release
Change-Id: I70fc2f7889874c3ce6260976373ff82d00ec6c68
android-build-team Robot [Mon, 9 Oct 2017 19:05:50 +0000 (19:05 +0000)]
Snap for
4384531 from
fcabaf45b7a17a2b67b3a7cc019da4b396966bce to oc-m2-release
Change-Id: Ia77c3c86e4cd0a444a1f4ebe73b7154225f00d28
android-build-team Robot [Tue, 3 Oct 2017 07:29:46 +0000 (07:29 +0000)]
Snap for
4373604 from
854556c41e20c37b210498b0374415b640104785 to oc-mr1-release
Change-Id: Ic1e94cd5376d06b8cf7b4c26d3f1aec31311159d
Elliott Hughes [Tue, 19 Sep 2017 21:02:50 +0000 (14:02 -0700)]
Improve pthread_create failure handling.
Return EAGAIN rather than aborting if we fail to set up the TLS for a new
thread.
Add a test that uses all the VMAs so we can properly test these edge cases.
Add an explicit test for pthread_attr_setdetachstate, which we use in the
previous test, but other than that has no tests.
Remove support for ro.logd.timestamp/persist.logd.timestamp, which doesn't
seem to be used, and which prevents us from logging failures in cases where
mmap fails (because we need to mmap in the system property implementation).
(cherry picked from commit
53dc9dd70155fd75af744cbebecc563658c69818)
Bug: http://b/
65608572
Test: ran tests
Change-Id: I881029d9fd368b8556843e70fdb278fbe51dbfee
Merged-In: I881029d9fd368b8556843e70fdb278fbe51dbfee
android-build-team Robot [Fri, 29 Sep 2017 20:06:48 +0000 (20:06 +0000)]
release-request-
99856c15-b008-4977-9971-
f86523a23c0a-for-git_oc-m2-release-
4367109 snap-temp-L18300000107415568
Change-Id: I072545805510fb08b891e30d904bb53213a5e037
android-build-team Robot [Thu, 28 Sep 2017 07:26:35 +0000 (07:26 +0000)]
release-request-
ca7a0f27-e01e-4493-95dc-
73b265f88cc9-for-git_oc-mr1-release-
4365318 snap-temp-L33600000106883904
Change-Id: I1433ee623ac372956bb8a345bfc4206b602ef8ad
Elliott Hughes [Tue, 26 Sep 2017 18:39:36 +0000 (11:39 -0700)]
Include strerror(errno) in __init_tls abort messages.
Bug: http://b/
66911122
Bug:
64709603 (presubmit balking at the line above)
Test: ran tests
Change-Id: I068a388f8ea31012e7e07e8bded1c113796a8440
Merged-In: I068a388f8ea31012e7e07e8bded1c113796a8440
android-build-team Robot [Sun, 24 Sep 2017 07:41:06 +0000 (07:41 +0000)]
release-request-
2950741e-0b24-4d70-b748-
67bb2b5435b5-for-git_oc-mr1-release-
4357583 snap-temp-L55500000105655441
Change-Id: I1d41b3558d9c890e9ef209a0365b42b47ced51c5
TreeHugger Robot [Fri, 22 Sep 2017 02:32:50 +0000 (02:32 +0000)]
Merge "Don't resolve permitted.paths" into oc-mr1-dev
android-build-team Robot [Thu, 21 Sep 2017 21:58:01 +0000 (21:58 +0000)]
release-request-
a84b3435-75fa-41e8-bd3c-
ca0f4cbd5cc5-for-git_oc-m2-release-
4352002 snap-temp-L88700000105039240
Change-Id: Ifdeb3942140cc4e9e225e6b24681d251c98aaa98
android-build-team Robot [Thu, 21 Sep 2017 07:26:53 +0000 (07:26 +0000)]
release-request-
bbc747ae-190b-4d38-8704-
432aa6396c16-for-git_oc-mr1-release-
4351869 snap-temp-L93800000104806132
Change-Id: I37613363c5eb0c7a76f176371147992d7977d382
TreeHugger Robot [Thu, 21 Sep 2017 05:17:21 +0000 (05:17 +0000)]
Merge "Don't run exec_with_ld_config_file* tests on non-production devices" into oc-mr1-dev
Jiyong Park [Tue, 19 Sep 2017 00:48:07 +0000 (09:48 +0900)]
Don't run exec_with_ld_config_file* tests on non-production devices
The tests that use LD_CONFIG_FILE environment variable shouldn't be run
on non-production devices because LD_CONFIG_FILE is only for debuggable
builds. We have used the build-time flag USE_LD_CONFIG_FILE, which is
set for the debuggable builds, to conditionally include or exclude the
tests. However, this can be a problem when 1) the device is not
debuggable but 2) the CTS itself is built with debuggable target. So,
instead of relying on the build-time flag USE_LD_CONFIG_FILE, the tests
now check the debuggability of the device and skip the tests when it
isn't debuggable.
Bug:
65842135
Test: 1) flash user build image to a 2017 pixel device.
2) build cts with 'userdebug' build target
3) CtsBionicTestCases pass on the device
Change-Id: Ib88e3b26d093e5479d52cd87db47dee5e108cac2
Jiyong Park [Thu, 21 Sep 2017 01:27:36 +0000 (10:27 +0900)]
Don't resolve permitted.paths
Linker resolves the paths in /system/etc/ld.config.txt to canonicalize
the paths and to ensure they exist. However, as permitted paths for the
default namespace contain directories such as /vendor/app, /mnt/expand,
and etc., the resolving causes selinux denial on some processes which do
not have access to some of the permitted paths.
In order to silence the bogus selinux denial, resolution is skipped for
permitted paths.
Note that the resolution is not strictly required especially for
Treble-ized devices where permitted paths are already canonicalized (i.e
/vendor isn't a symlink to /system/vendor).
Bug:
65843095
Test: no selinux denial on /vendor/app, /vendor/framework, etc. while
booting.
Change-Id: I1a9921e45f4c15b08cdf8f1caee64c4cb0761e1f
android-build-team Robot [Wed, 20 Sep 2017 07:45:24 +0000 (07:45 +0000)]
release-request-
42a2a3ad-8c90-4c84-a0ad-
5d067beb8e30-for-git_oc-mr1-release-
4349323 snap-temp-L16100000104414353
Change-Id: Ie947e51a6314ac95a62b9da8e7b0c63b64269681
Evgenii Stepanov [Tue, 19 Sep 2017 00:51:48 +0000 (17:51 -0700)]
Extend cfi test to verify a range of target pointers.
Test: bionic device tests
Bug:
63400743
Bug:
65590288
(cherry picked from commit
1dfd76ac2c7f5e993cde7407931bfd01dceca44d)
Change-Id: I33832ef9ab98baf52afe969ea7a03fe419f93cb2
Christopher Ferris [Mon, 18 Sep 2017 21:39:33 +0000 (14:39 -0700)]
Drop thread list lock before abort.
Bug:
65656273
Test: Ran the app and verified it crashes instead of deadlocks.
Change-Id: I7dbe653d50a635a23993c99c5f73ca094ee80b28
(cherry picked from commit
7982914faefdcc6b0fbb98d63bb9fde48d4efd18)
android-build-team Robot [Sun, 17 Sep 2017 07:34:12 +0000 (07:34 +0000)]
release-request-
1f2fcfef-9736-44dc-8628-
3ba96dac60db-for-git_oc-mr1-release-
4343541 snap-temp-L73700000103533431
Change-Id: I81e1d59fbd6585c0f13e5539a7c5cfd6347cb43c
Evgenii Stepanov [Fri, 15 Sep 2017 20:58:58 +0000 (13:58 -0700)]
[cfi] Fix __cfi_check address calculation.
The current code is incorrect when the target address is 18 bit aligned.
Test: stops random (and extremely rare) crashes in media.extractor
Bug:
63400743
Bug:
65590288
(cherry picked from commit
ded4524cb0a2ad931468409ff0f4817f9c0a8925)
Change-Id: I7047f7304621d3a7a100cde57860a3154a29effe
android-build-team Robot [Tue, 12 Sep 2017 18:08:42 +0000 (18:08 +0000)]
release-request-
dabd8cf7-7af2-48e9-a296-
ccc6a71cc25d-for-git_oc-m2-release-
4328410 snap-temp-L55300000101694322
Change-Id: Ic001ccd227b39f08b7a4edac224a3f0025b895b4
android-build-team Robot [Fri, 8 Sep 2017 07:34:23 +0000 (07:34 +0000)]
release-request-
8cd2a23c-f767-488e-8139-
390d1636483f-for-git_oc-mr1-release-
4323561 snap-temp-L80400000100600189
Change-Id: I4191762acb1842c4b049319f6e617f5d37f46c41
TreeHugger Robot [Fri, 8 Sep 2017 00:07:22 +0000 (00:07 +0000)]
Merge "For devices which are not treble enabled, return the system shell." into oc-mr1-dev
Jayant Chowdhary [Fri, 1 Sep 2017 23:29:44 +0000 (16:29 -0700)]
For devices which are not treble enabled, return the system shell.
For treble enabled devices, still return the appropriate shell depending
on whether the process is a vendor process or a system one.
Test: Manual testing: on a bullhead device, ran test programs from
/vendor/bin which used popen() and system(). The calls succeeded.
Bug:
65054230
Bug:
64516799
Change-Id: I15dfdbb107cfca7c0f92f337c9bb46b9876eb38e
android-build-team Robot [Thu, 7 Sep 2017 07:45:29 +0000 (07:45 +0000)]
release-request-
108343c4-ad88-44f9-aaa2-
24d8b8a5c176-for-git_oc-mr1-release-
4321077 snap-temp-L97000000100182150
Change-Id: I3d5ea6a479a691f5b40197069fec8ce54e1acc85
TreeHugger Robot [Thu, 7 Sep 2017 00:02:43 +0000 (00:02 +0000)]
Merge "Build support for 32-bit armv8-a" into oc-mr1-dev
android-build-team Robot [Sun, 3 Sep 2017 07:30:44 +0000 (07:30 +0000)]
release-request-
957cd691-fb71-4770-8ff7-
a3b9602655a5-for-git_oc-mr1-release-
4314464 snap-temp-L54400000099147910
Change-Id: I2bab6cde483731ab4c06afdfd5a5cb06eb4075d9
android-build-team Robot [Thu, 31 Aug 2017 07:33:11 +0000 (07:33 +0000)]
release-request-
fd631211-effa-4885-9314-
559fcbd0a094-for-git_oc-mr1-release-
4308825 snap-temp-L52700000098265170
Change-Id: Idc68d45422e89822479078cb483654abafdb9d17
Jiyong Park [Thu, 31 Aug 2017 05:07:13 +0000 (14:07 +0900)]
Make dlext.ns_shared be independent of default namespace config
dlext.ns_shared creates a child namespace, which is isolated & shared,
from the default namespace. It then checks whether a lib that was loaded
in the parent(=default) namespace *after* the child namespace is created
is not accessible to the child namespace. Because this test is using the
default namespace as a parent namespace, the test result is dependent on
the specific configuration of the default namespace, which isn't
desirable.
Specifically, since ANDROID_NAMESPACE_TYPE_SHARED now copies search
paths and permitted paths of the parent namespace to the child namespace,
a lib that is accessible to the former is also accessible to the latter
even if the lib hasn't been shared when creating the latter. So, the
result of the test varies depending on whether the default namespace has
permitted paths or not. (if it is configured as an isolated namespace
and has permitted paths, then the test fails).
In order to make this test be independent from how the default namespace
is configured, a parent namespace is explicitly created and the child
namespaces are created from the parent namespace, not from the default
namespace.
Bug:
65189955
Test: bionic-unit-tests --gtest_filter=dlext.ns_shared successful
Test: the same test successful when the default namespace is configured
as follows
namespace.default.isolated = true
namespace.default.permitted_paths = ...:/data
Change-Id: Ifa33c6c42f8c327b2b1c380c7abba8e8f1afee82
TreeHugger Robot [Wed, 30 Aug 2017 18:57:35 +0000 (18:57 +0000)]
Merge "Don't run disable_ld_config_file test on non-production devices" into oc-mr1-dev
Jiyong Park [Wed, 30 Aug 2017 02:30:53 +0000 (11:30 +0900)]
Don't run disable_ld_config_file test on non-production devices
The test always fails when run on non-production devices. Silence the
expected failure.
Bug:
64908138
Test: run CtsBionicTestCases on userdebug device. disable_ld_config_file
test does not fail.
Change-Id: Icd24a356dfbc62f540e3263070434a4fd065bfbc
Jiyong Park [Wed, 30 Aug 2017 00:32:28 +0000 (09:32 +0900)]
Fix API level of cfi_* symbols to 27
API level of O-MR1 is 27.
Bug:
63053790
Test: bionic tests passes
Change-Id: I78f0bd8af106954326394d60bf4d0cf5e10f7f17
android-build-team Robot [Wed, 23 Aug 2017 07:28:27 +0000 (07:28 +0000)]
release-request-
cff6d9b6-a564-4d17-99cb-
c2d0bb282758-for-git_oc-mr1-release-
4293817 snap-temp-L12800000095933585
Change-Id: I172f9fbd5cd13fc72216afee6152022582dca7be
Sandeep Patil [Mon, 21 Aug 2017 19:17:19 +0000 (12:17 -0700)]
libc: Add support to allow library calls to find appropriate shell executable for a process
Library calls like system() and popen() invoke the shell executable
pointed to by '_PATH_BSHELL' in order to run the command passed into the
function. The _PATH_BSHELL points to /system/bin/sh by default and thus
breaks any vendor process trying to use system() / popen(), as they are
denied access to system shell by selinux.
This CL make necessary changes, so the implmentations of system() and popen()
can use the appropriate shell (e.g. /vendor/bin/sh for processes running
out of /vendor partition). Also, changes the implementation of system()
and popen().
Bug:
64832610
Test: Manual, Using a test program running from /system/bin and
/vendor/bin to ensure correct shell is being used.
Change-Id: Ie7168d69decb1ae98284446ae7db34dec930dc33
Signed-off-by: Sandeep Patil <sspatil@google.com>
Isaac Chen [Mon, 26 Jun 2017 12:23:26 +0000 (20:23 +0800)]
Build support for 32-bit armv8-a
The assembly in arm's generic strlen implementation contains deprecated
instruction sequence:
it eq ; start of IT block
ldreq ... ; 32-bit T32 insruction in IT block deprecated in armv8
This will cause compiler error because of -Winline-asm and -Werror.
The fix here is to change the sequence:
it eq
ldreq ...
bne 1f
to equivalent sequence:
bne 1f
ldr ...
The resulted sequence is (1 instruction) shorter.
See ARM for ARMv8 for details:
F6.2 Partial Deprecation of IT
... All uses of IT that apply to instructions other than a single
subsequent 16-bit instruction from a restricted set are deprecated, ...
Bug:
62895439
Test: "bionic-unit-tests-static --gtest_filter=*strlen*" on Nexus 4
(krait), emulator (armv7), and sailfish (armv8).
The test binary for the first 2 is built with armv7-a as its
TARGET_CPU_ARCH; The test binary for the last is built with
armv8-a as its TARGET_2ND_CPU_ARCH.
TARGET(_2ND)_CPU_VARIANTs of both binaries are set to "generic".
Change-Id: Ia2208b4e2ba2cad589975bc7b4617688cbb8826a
Merged-Id: Ia2208b4e2ba2cad589975bc7b4617688cbb8826a
(cherry picked from commit
d544fb7da025b805b6e9dd61c4bfabb9272271b2)
android-build-team Robot [Sun, 20 Aug 2017 07:29:53 +0000 (07:29 +0000)]
release-request-
369362fc-cc6c-4cb1-95c0-
90b5ac7c52cb-for-git_oc-mr1-release-
4288633 snap-temp-L81700000095141745
Change-Id: Ice5606c92e51cd72ab0fb6ff77f4e18b428bc511
TreeHugger Robot [Fri, 18 Aug 2017 06:18:00 +0000 (06:18 +0000)]
Merge "Make default namespace handle the 'visible' flag." into oc-mr1-dev
Evgenii Stepanov [Thu, 3 Aug 2017 01:16:50 +0000 (18:16 -0700)]
Revert "Revert "arm64: expand CFI shadow to cover 48-bit virtual addresses""
This reverts commit
ea3df0c52b6ebe5e24f2d36259d97fd06f8e8a1a, and
increases the address limit on non-aarch64 64-bit platforms as well.
RLIMIT_AS problem fixed in a different commit.
Bug:
63141434,
64293803
Test: device boots
(cherry picked from commit
abb163f5f0e3fcba4fd8f75aa0a00e4cf36f7d53)
Change-Id: I53ee7cb50bbc0b535923bee8a8c0e2e416a81d41
Evgenii Stepanov [Wed, 2 Aug 2017 23:34:44 +0000 (16:34 -0700)]
[cfi] Export __cfi_shadow_size.
__cfi_shadow_size returns the size of the CFI shadow mapping, or 0 if
CFI is not (yet) used in this process. This can be used to adjust
RLIMIT_AS setting.
Test: device bionic tests
Bug:
64293803
(cherry picked from commit
97c16f8dca0694abfcdda34f8e01f5e1e989120f)
Change-Id: Ia82152f568e3a80deb902d02fa400e88e3f556bc
Justin Yun [Fri, 7 Jul 2017 07:21:53 +0000 (16:21 +0900)]
Make default namespace handle the 'visible' flag.
'visible' flag was interpreted only the namespaces other than 'default'.
The flag has to be handled without exception once it is set.
Bug:
63411330
Test: Build and boot without errors.
Test: Add `namespace.default.visible = true` to [vendor] process in
'ld.config.txt' and reboot the device.
Merged-In: Ia363dfadf0200317b875e26bb4b2fae849af1384
Change-Id: Ia363dfadf0200317b875e26bb4b2fae849af1384
(cherry picked from commit
90de9f081e098ef019457d6529ef6d7fb3c09873)
android-build-team Robot [Sun, 13 Aug 2017 07:27:21 +0000 (07:27 +0000)]
release-request-
68cc9b2a-98ae-4fbf-8b56-
3e535855f399-for-git_oc-mr1-release-
4269864 snap-temp-L25700000092502312
Change-Id: I80913fc21bc7ae6e1fb4af57f2c1b7002b15fcc4
Elliott Hughes [Fri, 28 Jul 2017 23:53:32 +0000 (16:53 -0700)]
Fix the sysconf _SC_2_VERSION test.
Not sure how this ended up broken. Too many branches!
Bug: http://b/
64565873
Test: ran tests
(cherry picked from commit
6c135f4c41c0fafcf270aea5202adc6e68e04b76)
Change-Id: Ie7078541d2a75fb2fbcf03e78a49707307b674c0
android-build-team Robot [Tue, 8 Aug 2017 07:26:13 +0000 (07:26 +0000)]
release-request-
c8b8af6b-4899-402a-9ff7-
72255ba5300b-for-git_oc-mr1-release-
4253898 snap-temp-L09600000090287887
Change-Id: Iec7c2366abed8d0ede884a6fbe243541877f2eb1
John Reck [Mon, 7 Aug 2017 18:19:17 +0000 (11:19 -0700)]
Add O MR1 define
Bug:
64394076
Test: none
Change-Id: Ice3991c626dd2cce93c9a571ba529fa5b0129492
android-build-team Robot [Sun, 6 Aug 2017 07:32:45 +0000 (07:32 +0000)]
release-request-
d642586e-3e25-49f4-8b4c-
acad0e3f63d8-for-git_oc-mr1-release-
4249777 snap-temp-L81500000089724408
Change-Id: I9c2f8d694796fe34be56dec4590fcd807bab25d5
Tom Cherry [Fri, 4 Aug 2017 21:31:58 +0000 (21:31 +0000)]
Remove a check for AIDs in the OEM range. am:
c2c36b661c
am:
fe1dc33b28
Change-Id: Ic2107c9550f368db0ada5cc3f680bf289734a812
Tom Cherry [Fri, 4 Aug 2017 21:25:57 +0000 (21:25 +0000)]
Remove a check for AIDs in the OEM range.
am:
c2c36b661c
Change-Id: Ic99c543a3cf5eaad251fc07957262f144c5f7b97
Tom Cherry [Fri, 4 Aug 2017 18:07:19 +0000 (11:07 -0700)]
Remove a check for AIDs in the OEM range.
Remove the check that AIDs in the OEM range are not defind in
android_filesystem_config, as we do not yet have a good solution for
OEMs to define custom AIDs and what OEMs are currently doing isn't
hurting anything.
Bug: b/
64137613
Test: pwd.getpwent_iterate / grp.getgrent_iterate
Change-Id: If98ad4443fe9e827e3f17b3df92eca82763e6290
(cherry picked from commit
a14485addeacc23587743dad307184c00224b823)
Jiyong Park [Fri, 4 Aug 2017 01:25:46 +0000 (10:25 +0900)]
Revert "linker: disable ld.config.txt in ASAN mode"
This reverts commit
81b175747d2c7831c010e7e94a6f2572d6dfe437.
Reason:
02586a2a34e6acfccf359b94db840f422b6c0231 fixed the bug that
prevented us from using LD_PRELOAD with multiple namespaces.
Bug:
38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful
Merged-In: I25a05927ffbb28b9fa72303652893f43918ccec6
Change-Id: Ib7568d65c2524fd2307d01eb3d50fc308feced9c
(cherry picked from commit
6ab40bbf537d45b171f4830cfa6d82949d4cb258)
Jiyong Park [Fri, 19 May 2017 16:01:24 +0000 (01:01 +0900)]
linker: the global group is added to all built-in namespaces
With ld.config.txt, we now have multiple built-in namespaces other than
the default namespace. Libs (and their dependents) listed in LD_PRELOAD
must be visible to those additional namespaces as well.
This also adds a debugging only feature: path to the linker config file
can be customized via LD_CONFIG_FILE environment variable. This works
only for debuggable builds.
Bug:
38114603
Bug:
62815515
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/5.0/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful
Merged-In: I9a03591053f4a9caea82f0dcb23e7a3d324bb9bd
Change-Id: I9a03591053f4a9caea82f0dcb23e7a3d324bb9bd
(cherry picked from commit
02586a2a34e6acfccf359b94db840f422b6c0231)
android-build-team Robot [Thu, 3 Aug 2017 07:38:57 +0000 (07:38 +0000)]
release-request-
ca4ad653-1655-436a-b65c-
2527b02ae5f2-for-git_oc-mr1-release-
4241196 snap-temp-L48200000088705722
Change-Id: I10ee03d8a1013644c1fb79c9f73c1971303c044d
Evgenii Stepanov [Wed, 2 Aug 2017 18:11:47 +0000 (18:11 +0000)]
Merge "Fix asan path translation loading a library twice." into oc-mr1-dev
Evgenii Stepanov [Thu, 27 Jul 2017 21:55:44 +0000 (14:55 -0700)]
Fix asan path translation loading a library twice.
An ASan binary may load a non-ASan library from /system if /data is not mounted yet.
A dlopen() call for the same library later, when /data/ is available, will translate the path and attempt to load
an ASan copy of the library from /data/asan/system. This way we may end up loading both ASan and non-ASan copies of
the library in the same process, which is a very bad thing.
This change adds a check for a loaded library with the non-translated real path before applying path translation.
Bug:
63622872
Test: hide/rename a library in /data/asan; dlopen; restore the library; dlopen; check that the library from /data/asan is NOT loaded.
Change-Id: I17060837f08dc3c665cab803dd89979d88f0a019
android-build-team Robot [Wed, 26 Jul 2017 07:27:31 +0000 (07:27 +0000)]
release-request-
08461da0-a262-4ebb-8c32-
784b60a151df-for-git_oc-mr1-release-
4216972 snap-temp-L74000000086000437
Change-Id: Ie015f25a29434c5803ea35033c356713bedbe682
Elliott Hughes [Tue, 25 Jul 2017 19:23:40 +0000 (19:23 +0000)]
Make xfail passes not failures. am:
b09c4fc957
am:
9a1df36a07
Change-Id: I3b7b93492eab22e901ada3161771b132181a580b
Elliott Hughes [Tue, 25 Jul 2017 19:20:10 +0000 (19:20 +0000)]
Make xfail passes not failures.
am:
b09c4fc957
Change-Id: Ie5b2746ac6be0a140c1f15679038a95b33505d08
Elliott Hughes [Sat, 22 Jul 2017 01:51:06 +0000 (18:51 -0700)]
Make xfail passes not failures.
Bug: http://b/
63703384
Test: ran tests
(cherry picked from commit
93a89f84e4616070bccfc1c9c898b5e88f1c21d6)
Change-Id: I63dff7748cbc4b3c1822a16c8bb9c839d148695b
android-build-team Robot [Wed, 19 Jul 2017 07:25:08 +0000 (07:25 +0000)]
release-request-
bd6aa7dd-7b02-4794-942c-
14599bf61208-for-git_oc-mr1-release-
4193791 snap-temp-L98700000083613807
Change-Id: I409acdff19b7a04084bb6f1bab69b9f1b69fb537
Dan Albert [Wed, 19 Jul 2017 05:52:48 +0000 (05:52 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am:
0d6485eca4 am:
b2870803ba am:
0747ffb7a3
am:
6f6c1cf73c
Change-Id: Ie3ad8afc7d12ffcdedcefb7573dbcd988ca1e01d
Dan Albert [Wed, 19 Jul 2017 05:49:48 +0000 (05:49 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am:
0d6485eca4 am:
b2870803ba
am:
0747ffb7a3
Change-Id: Ib2696d246a59cdb6b16c02b62109b570bd246d3c
Dan Albert [Wed, 19 Jul 2017 05:47:18 +0000 (05:47 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64." am:
0d6485eca4
am:
b2870803ba
Change-Id: I7ff86b0bcb562d8aa50b330a66283f91dd181732
Dan Albert [Wed, 19 Jul 2017 05:44:25 +0000 (05:44 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64."
am:
0d6485eca4
Change-Id: If9a663b7f780dc9b6c6031740940ab432d492f29
Treehugger Robot [Wed, 19 Jul 2017 05:37:13 +0000 (05:37 +0000)]
Merge "Add __RENAME_IF_FILE_OFFSET64."
dimitry [Tue, 18 Jul 2017 23:00:21 +0000 (23:00 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4 am:
ac62e82856 am:
1001ee78ba
am:
eba2e77eb6
Change-Id: I39233540d7e5d22552231a0050664d3d9f479e27
dimitry [Tue, 18 Jul 2017 23:00:05 +0000 (23:00 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4 am:
ac62e82856 am:
e3c809f863
am:
6c960cde6d
Change-Id: I7489adebbee754ebb4c25a89aab69bb1bac14f78
dimitry [Tue, 18 Jul 2017 22:45:43 +0000 (22:45 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4 am:
ac62e82856
am:
1001ee78ba
Change-Id: I83bab5c56d0319ed64aef16db86f44fceaac9fc3
dimitry [Tue, 18 Jul 2017 22:43:58 +0000 (22:43 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4 am:
ac62e82856
am:
e3c809f863
Change-Id: Ia52ceaf0609d026cfd9fa8459f159c9e2c82583a
dimitry [Tue, 18 Jul 2017 22:41:11 +0000 (22:41 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4
am:
ac62e82856
Change-Id: I85aa7c0068125a60238629fdb31b325e0eca49a3
dimitry [Tue, 18 Jul 2017 22:39:52 +0000 (22:39 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67 am:
43475fdae4
am:
ac62e82856
Change-Id: Ia52482412ae2c2a428c90f30c734ebdb2cad8a54
dimitry [Tue, 18 Jul 2017 22:37:42 +0000 (22:37 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d am:
46dfffdc67
am:
43475fdae4
Change-Id: Ia526ffd192f8830efcc5768c62d0758df2109da4
dimitry [Tue, 18 Jul 2017 22:30:40 +0000 (22:30 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44 am:
ee7deb734d
am:
46dfffdc67
Change-Id: I3a1e3dfa091c3e43c1e73700db6d6c9c686b54ef
dimitry [Tue, 18 Jul 2017 22:27:52 +0000 (22:27 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31 am:
2542cfdb44
am:
ee7deb734d
Change-Id: If8881fa07f5f050dc0c15af7177d003801dd0269
dimitry [Tue, 18 Jul 2017 22:24:09 +0000 (22:24 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971 am:
9bc88caa31
am:
2542cfdb44
Change-Id: Ie9bce8dfd0722e50026a0aa5d1d81c70725fcd28
dimitry [Tue, 18 Jul 2017 22:22:09 +0000 (22:22 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62 am:
8666246971
am:
9bc88caa31
Change-Id: I89d5e919ef7bc13df36df63baaeaff7517c0b962
dimitry [Tue, 18 Jul 2017 22:20:10 +0000 (22:20 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa am:
781c67bd62
am:
8666246971
Change-Id: Id6f8e6908119ba309f555501b6bab6181cf16bec
dimitry [Tue, 18 Jul 2017 22:18:14 +0000 (22:18 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326 am:
6cb0d4b2aa
am:
781c67bd62
Change-Id: I2da0ca80ec42389add7b786a66e9a8d4fdc83254
dimitry [Tue, 18 Jul 2017 22:15:17 +0000 (22:15 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours am:
3c77ef5326
am:
6cb0d4b2aa
Change-Id: I5a2b6fcb300b86ab15c2d8fe8cf253e5f2ce03b2
dimitry [Tue, 18 Jul 2017 22:11:40 +0000 (22:11 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0 am:
a5f74a4a80 -s ours
am:
3c77ef5326
Change-Id: I812f929ce4704bd374e9267aeecca957e1d92d5c
dimitry [Tue, 18 Jul 2017 22:05:09 +0000 (22:05 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670 am:
d6b25861d0
am:
a5f74a4a80 -s ours
Change-Id: Ic277a838f4c2c974aa37514bbd073413c117f8e5
dimitry [Tue, 18 Jul 2017 21:48:06 +0000 (21:48 +0000)]
loader: fix dlopen performance regression caused by fix for CVE-2017-0670
am:
d6b25861d0
Change-Id: If9f751cf09c6551aababec28b6100fd77c3b510d
TreeHugger Robot [Tue, 18 Jul 2017 19:55:09 +0000 (19:55 +0000)]
Merge "Remove weaker _POSIX_THREAD_PROCESS_SHARED test."
Elliott Hughes [Tue, 18 Jul 2017 18:36:12 +0000 (18:36 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am:
a571e9e748 am:
1498e806c9 am:
86c1846e23
am:
c022475d4f
Change-Id: Id2b92a2ff66c3122f0473666cdc8cf528548a5c2
Elliott Hughes [Tue, 18 Jul 2017 18:30:32 +0000 (18:30 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am:
a571e9e748 am:
1498e806c9
am:
86c1846e23
Change-Id: I50d6f2cf31dcbe0e7bce925ce7de71d148b24418
Elliott Hughes [Tue, 18 Jul 2017 18:26:00 +0000 (18:26 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32." am:
a571e9e748
am:
1498e806c9
Change-Id: I1c1e5df9917b56e9942858e76246bf8aa2e644d9
Elliott Hughes [Tue, 18 Jul 2017 18:20:11 +0000 (18:20 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."
am:
a571e9e748
Change-Id: I6f646e36ae2de0a50dac703fcac385fb116035e3
Elliott Hughes [Tue, 18 Jul 2017 18:04:25 +0000 (18:04 +0000)]
Merge "Document the intricacies of `_FILE_OFFSET_BITS=32` for LP32."
android-build-team Robot [Tue, 18 Jul 2017 07:36:53 +0000 (07:36 +0000)]
release-request-
e04bb055-13fc-41a1-8a9f-
7fb10894ec3d-for-git_oc-mr1-release-
4189380 snap-temp-L90600000083186678
Change-Id: I86bb57e68e2603278ac0ac96a937125fe5d5905b
Elliott Hughes [Tue, 18 Jul 2017 00:14:02 +0000 (17:14 -0700)]
Remove weaker _POSIX_THREAD_PROCESS_SHARED test.
This branch (master, which will be o-mr1) already has a stronger test
than this one (which was added for o-dr, which doesn't have its own API
level).
Bug: http://b/
62424597
Test: ran tests
Change-Id: Icfb7b50fa3c5b6d256d378add12c854a899a1c92
Elliott Hughes [Mon, 17 Jul 2017 22:37:03 +0000 (22:37 +0000)]
Merge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am:
7b41aaf3d5 am:
e69278094a" into oc-dr1-dev-plus-aosp
am:
43bf301553
Change-Id: Ia7bb6ea599bcce05fa7116fbd64fd1ff5e45cd4a
Elliott Hughes [Mon, 17 Jul 2017 22:36:49 +0000 (22:36 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am:
7b41aaf3d5 am:
f58c401672
am:
a3abe4b3ac
Change-Id: I602285464d04fce37d50a8ae6cba20278caecc87
Android Build Merger (Role) [Mon, 17 Jul 2017 22:34:39 +0000 (22:34 +0000)]
Merge "Loosen _POSIX_THREAD_PROCESS_SHARED test. am:
7b41aaf3d5 am:
e69278094a" into oc-dr1-dev-plus-aosp
Elliott Hughes [Mon, 17 Jul 2017 22:34:30 +0000 (22:34 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am:
7b41aaf3d5
am:
e69278094a
Change-Id: Ie69c304454c7fd31b8d69bcf316cd9f4cf8988bd
Elliott Hughes [Mon, 17 Jul 2017 22:34:16 +0000 (22:34 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test. am:
7b41aaf3d5
am:
f58c401672
Change-Id: I82012d0143b4548144d37926acb58ba89680fb6b
Elliott Hughes [Mon, 17 Jul 2017 22:31:46 +0000 (22:31 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
am:
7b41aaf3d5
Change-Id: Ieb17d253ea1e421219c04ffdb804c2e8460d997e
Elliott Hughes [Mon, 17 Jul 2017 22:31:46 +0000 (22:31 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
am:
7b41aaf3d5
Change-Id: I7f8920c2dfa00dfe7de504c41caefa9d1c8dc727