Commit graph

37890 commits

Author SHA1 Message Date
Christopher Morin
9b205334d6 Merge "fs_mgr: fix memory leak"
am: 9bbcea1878

Change-Id: I4c82760de7301be80fe2bc39fe8aa9d2f5e7f698
2018-01-06 05:56:01 +00:00
Christopher Morin
9bbcea1878 Merge "fs_mgr: fix memory leak" 2018-01-05 21:37:08 +00:00
Tom Cherry
040b849f5a Merge "PropertyService: Exclude sanitization for darwin"
am: 5a7a8f2f17

Change-Id: I1c394b6079e2ff2bec9ad6ac54aa03bcc9f5ac8e
2018-01-05 17:35:40 +00:00
Tom Cherry
5a7a8f2f17 Merge "PropertyService: Exclude sanitization for darwin" 2018-01-05 17:32:55 +00:00
Andreas Gampe
e4c9acb767 PropertyService: Exclude sanitization for darwin
This doesn't seem to work. All other projects restrict sanitization,
too.

Mac build not actually tested.

Test: m
Test: linux host build still contains ubsan symbols
Change-Id: I60532a46177632320ba3b15b4a7c2d5e31ef2bfc
2018-01-04 19:25:52 -08:00
Chris Morin
517ed633c2 fs_mgr: fix memory leak
The fstab struct wasn't properly being freed.

Test: Ensure a user of fs_mgr (vold) runs without errors.
Change-Id: I4dcb8ae2ab3e831fbdb13372eb31a67a5d9fb735
2018-01-04 18:48:21 -08:00
Tom Cherry
1b42dece61 Merge "Create a host side checker for property info file correctness"
am: db976aa526

Change-Id: I07b009c4214f7b104a2c90ebb58149c49bbc5235
2018-01-04 22:06:18 +00:00
Tom Cherry
956a264a2b Merge "Add OWNERS file"
am: 2af1be4c16

Change-Id: Ie1b139a48e045116d9a22d690b94c2baf0bb8b1b
2018-01-04 22:05:43 +00:00
Treehugger Robot
db976aa526 Merge "Create a host side checker for property info file correctness" 2018-01-04 22:00:22 +00:00
Tom Cherry
919458c350 Create a host side checker for property info file correctness
Bug: 36001741
Test: verify a valid property info file and fail due to various failures
Change-Id: Iadd38796aa619f87ec559fe5687bbe2009df8b2d
2018-01-04 22:00:11 +00:00
Tom Cherry
2af1be4c16 Merge "Add OWNERS file" 2018-01-04 21:59:30 +00:00
Tom Cherry
b6917a3c99 Add OWNERS file
Change-Id: I13315585ecc74978689d0e033ce93a94b1560d1d
Exempted-From-Owner-Approval: Vacation
2018-01-04 13:54:45 -08:00
Jeff Vander Stoep
cf7f19f4b9 Merge "LogAudit: remove dynamic rate limiter"
am: 9e7cec22e0

Change-Id: I332b64922dbe52fe0e254de7150e36fa6bc0fdb9
2018-01-04 17:33:04 +00:00
Treehugger Robot
9e7cec22e0 Merge "LogAudit: remove dynamic rate limiter" 2018-01-04 17:21:32 +00:00
Tom Cherry
2b4d5e6958 Merge "system property: property set without time spent asleep"
am: 0f65650859

Change-Id: I902193d830e94fa9bb4032768d980487224f45d3
2018-01-04 17:12:01 +00:00
Tom Cherry
0f65650859 Merge "system property: property set without time spent asleep" 2018-01-04 17:06:59 +00:00
Jiyong Park
3ef1ce174d Merge "Don't install unnecessary VNDK libs"
am: 2fdf9da669

Change-Id: Iac44f8662cd1d0adcfd11515945d678a9a82e346
2018-01-04 13:39:07 +00:00
Treehugger Robot
2fdf9da669 Merge "Don't install unnecessary VNDK libs" 2018-01-04 13:36:14 +00:00
Dong Jinguang
bb877e273b system property: property set without time spent asleep
There is a 2s timeout for system property set that currently
uses boot_clock as its clock source. If the system goes to sleep
during a property set, it may erroneously cause the timeout to
be reached as boot_clock increments during sleep. This patch
changes from boot_clock to steady_clock to ignore time spent
asleep when determining this timeout.

bug: 71497234
Test: 1. System service process try to set a system property
      with timeout 2s
      2. At the same time, the system go into sleep mode more
      than 2s
      3. System property set will be ok.

Change-Id: I808b9af16974a0f4de60a4ca30ae64d095a13422
2018-01-04 09:35:40 +08:00
Daniel Colascione
da0d209ba1 Merge "Pin lmkd for real"
am: 625d1383d3

Change-Id: If813c79b3f321faa5fc34d70078c30c0966a3676
2018-01-03 23:30:53 +00:00
Treehugger Robot
625d1383d3 Merge "Pin lmkd for real" 2018-01-03 23:23:38 +00:00
Jeff Vander Stoep
54c7a5f1e7 LogAudit: remove dynamic rate limiter
Select a low rate-limit to cut down on logspam and resulting
performance regressions.

Functionally reverts 247d682fe1
(logd: sepolicy dynamic rate limiting) and sets a static low
rate-limit. Before 247d682f, the limit was statically set to 20.
247d682f continued to support 20, but if sustained dropped the limit
to 5. This revert leaves us at 5 so as not to impact performance.

Test: /data/nativetest/logd-unit-tests/logd-unit-tests \
    --gtest_filter=logd.sepolicy_rate_limiter
    [  PASSED  ] 1 test.
Bug: 71538411
Change-Id: I6c92f4ba825cc24beb8f1f1b79258fa8097c837b
2018-01-03 12:52:58 -08:00
Daniel Colascione
4dd5d00ecc Pin lmkd for real
We pin lmkd in memory so that we don't take page faults (and thus
requisition memory) while we're in the process of responding to a
low-memory condition. mlockall(2) is the right primitive for this
pinning. Previously, we used the MCL_FUTURE flag to mlockall: used
this way, mlockall doesn't actually pin all pages in memory, since
MCL_FUTURE affects only the default flags for future mappings and
doesn't affect mapping already in existence at the time of the
mlockall call --- like the lmkd executable itself.

This patch adds the MCL_CURRENT flag, which also pins all pages
already mapped.

Test: code inspection
Change-Id: I4563959367a2f0a9cadc3ea41731b7f311326685
2018-01-03 12:32:14 -08:00
Yi Kong
ef44dd2325 Merge "Use correct format specifier"
am: 370d2e02e0

Change-Id: I167f8bfdd819945b53bb8fa29555f593f8687fa8
2018-01-03 20:01:38 +00:00
Yi Kong
370d2e02e0 Merge "Use correct format specifier" 2018-01-03 19:49:08 +00:00
Yi Kong
21c515ad1c Use correct format specifier
Discovered by the upcoming compiler update.

Test: m checkbuild
Change-Id: I8dd4bb711bfa4f4b71a3345a2ee38f689cee5257
2017-12-27 13:42:49 -08:00
Narayan Kamath
000e0bfff4 Merge "zip_archive: Fix a few more badly written tests."
am: 93d344d98c

Change-Id: Iaaa56006cc57acf8950040fa99cacae828c5858e
2017-12-27 11:41:44 +00:00
Treehugger Robot
93d344d98c Merge "zip_archive: Fix a few more badly written tests." 2017-12-27 11:35:20 +00:00
Narayan Kamath
c36b80928b zip_archive: Fix a few more badly written tests.
Fix failures in DataDescriptor related tests due to to a bad call to
SetZipString (undefined behaviour). Also fix a typo in the test for
invalid descriptors, we were asserting things on the wrong array.

Test: zip_archive_test
Change-Id: I8c9a632443fdf1d5c115670d6e9317e1f4bf6ef4
2017-12-27 09:42:00 +00:00
Josh Gao
31b8659606 Merge "debuggerd: restore the location of abort message."
am: 2da01a2a71

Change-Id: Idb373a5e1b7e9772269bb184cb2b32c4e6a9a776
2017-12-23 00:23:14 +00:00
Treehugger Robot
2da01a2a71 Merge "debuggerd: restore the location of abort message." 2017-12-23 00:17:34 +00:00
Josh Gao
65e2c06a90 Merge "debuggerd: wait for dump completion on crashes."
am: 1f3b605c41

Change-Id: I21dfb7a7efba253e8d3c58a80a819d520b030c04
2017-12-23 00:15:18 +00:00
Treehugger Robot
1f3b605c41 Merge "debuggerd: wait for dump completion on crashes." 2017-12-23 00:11:34 +00:00
Josh Gao
34c2556d11 debuggerd: restore the location of abort message.
The abort message was accidentally relocated to be printed below the
registers, backtrace, and stack, which isn't very helpful. Move it back
to its rightful place.

Test: treehugger
Change-Id: I8aa5b63e58081f27ccdb42481fed8d9eb3a892a4
2017-12-22 14:20:12 -08:00
Josh Gao
7302097e77 debuggerd: wait for dump completion on crashes.
When a process crashes, both ActivityManager and init will try to kill
its process group when they notice. The recent change to minimize the
amount of time a process is paused results in crash dumps being killed
before they finish as a result of this. Since anything that needs to be
low-latency is probably not going to be too happy if it crashes, just
wait for completion whenever we're processing a real crash.

Bug: http://b/70343110
Test: debuggerd_test
Change-Id: I894bb06efd264b1ba005df06f7326a72f4b767bb
2017-12-22 14:20:12 -08:00
Narayan Kamath
64bf32d999 Merge "Get rid of unneeded allocations in Extract...() APIs"
am: 18f25d399e

Change-Id: Iedf41c02dc7b1b92ba781d59f71f1e8e6729ffcf
2017-12-22 10:47:47 +00:00
Narayan Kamath
fede183c53 Merge "zip_archive: Fix tests broken by 1f93d71022cca7bb6bb9eec49."
am: 492de535c4

Change-Id: I0e6de0b6f71626fefbb04befd2e8e84f439ae1fe
2017-12-22 10:47:05 +00:00
Narayan Kamath
18f25d399e Merge "Get rid of unneeded allocations in Extract...() APIs" 2017-12-22 10:41:41 +00:00
Narayan Kamath
492de535c4 Merge "zip_archive: Fix tests broken by 1f93d71022cca7bb6bb9eec49." 2017-12-22 10:41:17 +00:00
Shawn Willden
252f333b31 Merge "Add swillden and dkrahn to OWNERS"
am: 8edf81d50f

Change-Id: Ide52b00a57b156b0edc10827068e512d58727e70
2017-12-21 20:59:58 +00:00
Shawn Willden
8edf81d50f Merge "Add swillden and dkrahn to OWNERS" 2017-12-21 20:47:23 +00:00
Shawn Willden
10ed6fcc85 Add swillden and dkrahn to OWNERS
Test: N/A
Change-Id: I0d3fd54af475ee9184eb44de689b821c450b874f
2017-12-21 12:45:24 -08:00
Ivan Lozano
2fbf6f1083 Merge "Fix sanitizer errors in bootstat.cpp."
am: 9ddf491492

Change-Id: Ib417abbcf4ce2b18f508af9e0ef95e4cca789c02
2017-12-21 17:52:41 +00:00
Steve Paik
89938ac4a4 Merge "Convert autosuspend_wakeup_count.c to cpp"
am: 3b7998aaa1

Change-Id: I1173a17321d245f78d70dc685869c8b875e540f7
2017-12-21 17:46:12 +00:00
Logan Chien
3d5afa7b34 Merge "Separate VNDK libs into another linker namespace"
am: b00ed37a66

Change-Id: Icd85a59b1357f7931c4e8b84e57ec45273b1bc73
2017-12-21 17:45:36 +00:00
Andrew Chant
499d82e5df Merge "usblib: usb_device_get_string decoding fixes."
am: d8dc605d6c

Change-Id: I790e57b379160b82b4b8a1b758ceaf7a049a7b3f
2017-12-21 17:44:51 +00:00
Christopher Ferris
ca0cae76eb Merge "Add tool to save information from a process."
am: 7c20a6cd7c

Change-Id: I7f834ea5770d2ae646c84ff08cd5037a9b2fc473
2017-12-21 17:44:14 +00:00
Narayan Kamath
f37bb8e45b zip_archive: Fix tests broken by 1f93d71022.
Moving to std::hash changed iteration order but these tests should
not have relied on hash_map iteration order anyway.

Test: zip_archive_test

Change-Id: I712bf2307c8770f03ea6f074bfc506a40cdcb066
2017-12-21 12:55:59 +00:00
Ivan Lozano
9ddf491492 Merge "Fix sanitizer errors in bootstat.cpp." 2017-12-21 06:42:55 +00:00
Treehugger Robot
3b7998aaa1 Merge "Convert autosuspend_wakeup_count.c to cpp" 2017-12-21 03:24:16 +00:00