Commit graph

47010 commits

Author SHA1 Message Date
Suren Baghdasaryan
7bb7f6ef28 Merge "libprocessgroup: make sure SetupCgroups is called once and only by init"
am: 7b2187c372

Change-Id: I1b1562f7042de6268bcd238adfdad1e8ffe6629e
2019-03-25 13:40:13 -07:00
Suren Baghdasaryan
7b2187c372 Merge "libprocessgroup: make sure SetupCgroups is called once and only by init" 2019-03-25 20:24:51 +00:00
Yi Kong
280caf2e20 Merge "[libbacktrace] Modernize code to use override keyword"
am: 9b1f1ee4cc

Change-Id: I22432cdea88210e32f4f5b5cc83cdd275f1cd0cd
2019-03-25 13:13:30 -07:00
Yi Kong
9b1f1ee4cc Merge "[libbacktrace] Modernize code to use override keyword" 2019-03-25 19:56:48 +00:00
Vic Yang
6c04c01306 Merge "Fix parse_apex_configs doc in README.md"
am: 3d2fb41f17

Change-Id: I31a6ab1af4a97142dbf491fd3db3ef3a487f51d6
2019-03-25 12:11:39 -07:00
Treehugger Robot
3d2fb41f17 Merge "Fix parse_apex_configs doc in README.md" 2019-03-25 18:49:41 +00:00
Elliott Hughes
0fa7eddc31 Merge "Clean up some mess by only building Android-specific code for the device."
am: 443fdb2fdc

Change-Id: I3ae6f0662bffd9cf81ae401e80821488cccd3933
2019-03-25 09:34:55 -07:00
Suren Baghdasaryan
798e805715 libprocessgroup: make sure SetupCgroups is called once and only by init
SetupCgroups is called by init process during early-init stage and is not
supposed to be called again by anyone else. Ensure that the caller is the
init process, make sure cgroup.rc file is written only one time, keep the
file descriptor to cgroup.rc file open by the init process to ensure all
its further mappings stay valid even if the file is deleted.

Bug: 124774415
Test: build, run, verify no errors or warning in the logcat

Change-Id: I70ccec551fc07c380333566f618b969667dcf783
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-25 16:22:10 +00:00
Elliott Hughes
443fdb2fdc Merge "Clean up some mess by only building Android-specific code for the device." 2019-03-25 16:14:23 +00:00
Vic Yang
ad7bf56b1d Merge "Fix sed command on Mac builds"
am: 42a5dd9c41

Change-Id: Ia46de32f6b0603ac79c3427476dc7fe4c7d69da2
2019-03-25 06:43:00 -07:00
Treehugger Robot
42a5dd9c41 Merge "Fix sed command on Mac builds" 2019-03-25 13:37:21 +00:00
Kiyoung Kim
b98aaf83a9 Merge "Do not fail when there is no vndk namespace"
am: 6534c60e43

Change-Id: I41b172ff2315b4b295e344ac52bf568e1c3168e4
2019-03-25 05:37:50 -07:00
Treehugger Robot
6534c60e43 Merge "Do not fail when there is no vndk namespace" 2019-03-25 12:34:16 +00:00
Nicolas Geoffray
9283da301c Merge "Allow makefiles to be parsed in a trimmed down manifest."
am: 7b50fc4bef

Change-Id: I345b2a9b9dc412eca7fb7eb22970e3d75a7dc068
2019-03-25 05:10:39 -07:00
Nicolas Geoffray
7b50fc4bef Merge "Allow makefiles to be parsed in a trimmed down manifest." 2019-03-25 11:58:04 +00:00
Yi Kong
13f2d18e30 [libbacktrace] Modernize code to use override keyword
Generated by clang-tidy.

Test: m checkbuild
Change-Id: I4506a9624002250117148413ea6990749cc1a4da
2019-03-25 02:22:42 -07:00
Nicolas Geoffray
7f03e4eea1 Allow makefiles to be parsed in a trimmed down manifest.
Test: m
Change-Id: Id0e52eacc8e8b5fa75af2050a72be6a8bdadc984
Exempt-From-Owner-Approval: Unbreaks ART team
2019-03-25 09:14:33 +00:00
Hridya Valsaraju
220fcf241a Merge changes from topic "b/129002747"
am: dddf40a7f5

Change-Id: I80cb05e7ff96f91d037ea5bddf7c1c1ab44ca1af
2019-03-24 22:18:56 -07:00
Treehugger Robot
dddf40a7f5 Merge changes from topic "b/129002747"
* changes:
  Make VTS run libdm_test
  Create a VTS test from liblp_test
2019-03-25 05:09:36 +00:00
Kiyoung Kim
23ff8eb9c2 Do not fail when there is no vndk namespace
Some of the legacy devices may not have vndk namespace. To make this
work, libnativeloader should not fail when it fails to search for vndk
namespace.

Bug: 129011845
Test: m -j
Change-Id: I6f68aeb6ae84a00985cc20561b2fcdb461be9724
Merged-In: Id9147d4aeee9ba2b301b6893dea5884dce9c14fa
2019-03-25 13:59:40 +09:00
Nick Kralevich
0ae7fe2d48 Merge "zip_archive.cc: delete android_errorWriteLog"
am: 832bd17a0b

Change-Id: I9e8a477e22e2e75f46d1ee63f8b82bf9e07ba049
2019-03-22 20:18:22 -07:00
Nick Kralevich
a5ff3e1276 Merge "entry_name_utils-inl.h: clear top bit before shifting"
am: a72477630d

Change-Id: I6d61bee38676e1f55cd3593b2186b9f1bc4dc6e0
2019-03-22 20:17:41 -07:00
Nick Kralevich
832bd17a0b Merge "zip_archive.cc: delete android_errorWriteLog" 2019-03-23 03:08:35 +00:00
Nick Kralevich
a72477630d Merge "entry_name_utils-inl.h: clear top bit before shifting" 2019-03-23 03:08:07 +00:00
Hridya Valsaraju
1a9a02c9a6 Make VTS run libdm_test
Bug: 129002747
Test: vts-tradefed run commandAndExit vts-kernel --primary-abi-only --module VtsKernelLibdmTest

Change-Id: If0fb06bde561ae839d3aff96a73eb395082b4653
2019-03-22 15:11:49 -07:00
Hridya Valsaraju
4e3b6332ab Create a VTS test from liblp_test
Bug: 129002747
Test: vts-tradefed run commandAndExit vts-kernel --primary-abi-only --module VtsKernelLiblpTest

Change-Id: I6497428ec1ce93f4c1814c3185c490d3701f1140
2019-03-22 15:11:49 -07:00
Hridya Valsaraju
cf96ead2fa Merge "Fuzzy_fastboot must set back the original slot after test"
am: d5b690993b

Change-Id: I7a356d064a6c09cb0c2058e4ee4321816a399ecb
2019-03-22 14:21:39 -07:00
Hridya Valsaraju
d5b690993b Merge "Fuzzy_fastboot must set back the original slot after test" 2019-03-22 21:09:08 +00:00
Mark Salyzyn
91c0da306e Merge "fs_mgr: overlay: test is alarming on legacy eng builds."
am: 605eab93c6

Change-Id: Ie0fa127f60f388e46f800f716ec3f1a0d286a9af
2019-03-22 11:21:32 -07:00
Mark Salyzyn
605eab93c6 Merge "fs_mgr: overlay: test is alarming on legacy eng builds." 2019-03-22 18:08:20 +00:00
Mark Salyzyn
b43448941a fs_mgr: overlay: test is alarming on legacy eng builds.
On taimen-eng build, the test reports:

  [  WARNING ] user fastboot missing required to invalidate, ignoring a failure
  ERROR: expected "cat: /vendor/hello: No such file or directory"
         got "Hello World! Fri Mar 22 08:56:32 PDT 2019"
  [  FAILED  ] vendor content after flash vendor

Which is a result of a corner case problem on devices that need to
use overlayfs to support adb remount, but do not have fastbootd as
required by Dynamic Android Partitions (DAP).  These legacy non-DAP
devices we consider this a Known Issue.

The message however is too alarming when reporting this Known Issue
that the test has notified you it accepts.  Use standard notification
output format, and change the result to a series of WARNING instead.

The output would then look like:

  [  WARNING ] user fastboot missing required to invalidate, ignoring a failure
  [  WARNING ] expected "cat: /vendor/hello: No such file or directory"
  [  WARNING ] got "Hello World! Fri Mar 22 08:56:32 PDT 2019"
  [  WARNING ] vendor content after flash vendor

Which still tells us there is an issue, but does not cause a state
of extreme alarm when looking at the test output.

Test: adb-remount-test.sh
Bug: 120448575
Bug: 128876541
Bug: 123079041
Change-Id: I1d8d60f23f7670ade7eae1be629264f7507e0cfd
2019-03-22 09:41:20 -07:00
Suren Baghdasaryan
a7da5b4a23 Merge "libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances."
am: b552c4ad9a

Change-Id: I62d7253f90ebe57b8bfa58aae3dcf6bdacaa21cc
2019-03-22 09:20:15 -07:00
Suren Baghdasaryan
b552c4ad9a Merge "libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances." 2019-03-22 16:04:56 +00:00
Elliott Hughes
7acb0d39e8 Clean up some mess by only building Android-specific code for the device.
Test: treehugger
Change-Id: Id44721ccd1817d8c537b226f60a58b7cb691fb01
2019-03-21 14:59:45 -07:00
Vic Yang
87215c2530 Fix parse_apex_configs doc in README.md
Test: None
Change-Id: I0871e640cfcab706a5396e3824a1f75239c29840
2019-03-21 11:59:29 -07:00
Colin Cross
9926972bff Merge "Catch SIGBUS in HeapWalker"
am: b566e3cb2f

Change-Id: Ie08b1c6f7e30e562404f03f338fcf89027514a84
2019-03-21 11:05:01 -07:00
Colin Cross
b566e3cb2f Merge "Catch SIGBUS in HeapWalker" 2019-03-21 17:48:03 +00:00
Yurii Zubrytskyi
8a7e47861a Merge "[base] Convert Starts/Ends/Equals string functions to string_view"
am: 1265bc9c6f

Change-Id: I6e8588acda762e269fc1512e84cfc315b5344f31
2019-03-21 10:27:17 -07:00
Vic Yang
4a85f3c92a Fix sed command on Mac builds
Bug: 119423884
Test: Manually test sed command on Mac
Change-Id: I8df32b2476a01e2b758ea81f00dae0b6179ba79a
2019-03-21 10:16:06 -07:00
Yurii Zubrytskyi
1265bc9c6f Merge "[base] Convert Starts/Ends/Equals string functions to string_view" 2019-03-21 17:08:48 +00:00
Peter Collingbourne
dba6d44376 libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances.
This avoids a race between destruction on process exit and concurrent
access from another thread.

Bug: 129023204
Change-Id: Iecafa67a78e2cce53687156e7f91547b4a23ec13
2019-03-21 17:00:48 +00:00
Nick Kralevich
104771e55e zip_archive.cc: delete android_errorWriteLog
The process of determining whether or not to emit a safetynet error
entry while processing a malformed file relies on addition overflow.
Since this is only logging, and logging which isn't used, delete the
code instead of trying to fix the logic which is causing the integer
overflow.

This change is necessary to enable integer sanitization on this code.

Somewhat related to Bug: 122975762
Test: atest ziparchive-tests

Change-Id: I6b41ccf7881348cb4e5236324eaa44a05662a725
2019-03-21 09:58:56 -07:00
Yurii Zubrytskyi
59d876c7a2 [base] Convert Starts/Ends/Equals string functions to string_view
Test: UTs

Change-Id: I3751656d44e7a814488169c53d3e8af0da44f262
2019-03-21 16:29:46 +00:00
Nick Kralevich
c5da03f448 entry_name_utils-inl.h: clear top bit before shifting
Attempting to shift a uint8_t which has the top bit set results in a
value outside of the range allowable for a uint8_t. The process of
converting this value back to a uint8_t triggers ubsan's
implicit-conversion sanitizer.

Ensure the high order bit is stripped before shifting, so that the
shifted value fits into the allowable uint8_t range.

This change is necessary to enable integer sanitization on this code.

Somewhat related to Bug: 122975762
Test: atest ziparchive-tests

Change-Id: I940c8b2828ac88348d80f731274b990e35de6631
2019-03-21 09:29:31 -07:00
Vic Yang
5e9c91c404 Merge "Add support for no-vendor-variant VNDK"
am: c3e96512c0

Change-Id: Id4555b4727feb615b7e250ed2f0903380e87bd98
2019-03-20 21:37:18 -07:00
Vic Yang
c3e96512c0 Merge "Add support for no-vendor-variant VNDK" 2019-03-21 04:30:47 +00:00
Mark Salyzyn
70c217439d Merge "bootstat: add 4 reboot reasons to known set"
am: ddae5c85b9

Change-Id: Id37ef4b4146a4d16629d83c180e3b31194bb5a01
2019-03-20 17:42:14 -07:00
Mark Salyzyn
ddae5c85b9 Merge "bootstat: add 4 reboot reasons to known set" 2019-03-21 00:18:37 +00:00
Colin Cross
87315e9d2f Catch SIGBUS in HeapWalker
SIGBUS shouldn't happen, since all of the regions being walked
were previously read out of /prod/pid/maps, but it seems to happen
rarely.  Catch it so it can produce a better log message.

Bug: 128983715
Test: atest memunreachable_test
Change-Id: I82d3941a382a0451c0dda12f5eb849ad8d697bc9
2019-03-20 16:06:52 -07:00
Evgenii Stepanov
a3fea8c584 Merge "Fix libmemunreachable vs hwasan conflict."
am: b4ef0beb99

Change-Id: I8e90edb54f3b8ae2ae147da8f9e3a73718066e63
2019-03-20 12:53:39 -07:00