Commit Graph

33283 Commits

Author SHA1 Message Date
Tom Cherry 4ee2a57595 Merge "Enable libprocessgroup on host bionic" am: 44673da3eb am: ee178d6976
am: 7b0f3d9f6a

Change-Id: Idf7e0b4b6ee104f37d8b05b0e8ea7792aa63317d
2017-05-12 03:45:46 +00:00
Tom Cherry 7b0f3d9f6a Merge "Enable libprocessgroup on host bionic" am: 44673da3eb
am: ee178d6976

Change-Id: I76bbef92d234233c1ced1ea6bf8af592584213bf
2017-05-12 02:33:37 +00:00
Tom Cherry ee178d6976 Merge "Enable libprocessgroup on host bionic"
am: 44673da3eb

Change-Id: I88fed3b3b93d3102fa6322b2254e18fffe350d51
2017-05-12 02:31:39 +00:00
Treehugger Robot 44673da3eb Merge "Enable libprocessgroup on host bionic" 2017-05-12 02:28:06 +00:00
David Zeuthen e4769abd8f Merge "fs_mgr: Update for new libavb API." am: 5ed7d39857 am: fb4d8b0bac
am: 91f1bf78b0

Change-Id: I9ec32d93fa3484b4dc7eb40344390186435a6786
2017-05-12 01:58:25 +00:00
Elliott Hughes baaa08f277 Merge "Fix "fastboot oem"." am: dbe9ab1074 am: c9d545855a
am: 8bb2503c78

Change-Id: I8e5854829bd1a85de9ba2f074f3e7eb5098fe70e
2017-05-12 01:57:52 +00:00
Mark Salyzyn 28034ce8ab Merge "logd: validate and fill in socket credentials" am: 17254f59a2 am: 1423041905
am: b3b67adafd

Change-Id: Id0f6c9df1a48215be1812e39903a55eeaccff969
2017-05-12 01:57:30 +00:00
Mark Salyzyn 654b6eff04 Merge "logcat: test: inject for *.event_tag_filter" am: 2841b4efe0 am: ed1e53fc77
am: 9a2b70a7c8

Change-Id: I26c223bfe6a8028130427d73079fe5306cf65253
2017-05-12 01:57:10 +00:00
Renaud Paquay 1033781b10 Merge "Fix uninitialized member variable" am: 46bb1ffa8a am: 9cf71d784e
am: c134530c37

Change-Id: I6f95919b2f3975754e8937aaa0c956feb79cc3e1
2017-05-12 01:55:47 +00:00
Mark Salyzyn db52ba299b Merge "logd: test: check sepolicy background rate before testing" am: 5a40c42877 am: 1961eab662
am: 5698594d8a

Change-Id: I6c6e5e08f01b23bedfeb90b3f39031b92a092f44
2017-05-12 01:55:23 +00:00
David Zeuthen 91f1bf78b0 Merge "fs_mgr: Update for new libavb API." am: 5ed7d39857
am: fb4d8b0bac

Change-Id: I551f4cea142e70db7eb88eaaa86cd3c7afc6897c
2017-05-12 01:44:35 +00:00
Elliott Hughes 8bb2503c78 Merge "Fix "fastboot oem"." am: dbe9ab1074
am: c9d545855a

Change-Id: I22af3acd882355fd096d3e6078fe7fb6aa8ce2b1
2017-05-12 01:39:28 +00:00
David Zeuthen fb4d8b0bac Merge "fs_mgr: Update for new libavb API."
am: 5ed7d39857

Change-Id: Iaccfaae0cc8884ef6352c4c338690a31a8d18f75
2017-05-12 01:36:19 +00:00
Treehugger Robot 5ed7d39857 Merge "fs_mgr: Update for new libavb API." 2017-05-12 01:17:45 +00:00
Siarhei Vishniakou b995b58631 Merge "Adding 'uhid' permission for access to /dev/uhid." am: cecbc9993d am: 04daed4793
am: d819380f50

Change-Id: If06b07c88276c32cdf5b53e6afcf0563e6538544
2017-05-12 01:00:46 +00:00
Tom Cherry efa81080fd Enable libprocessgroup on host bionic
Bug: 31559095

Test: Build
Change-Id: I1ee9fb492137c6c16f0d02586393837616127972
2017-05-11 17:55:04 -07:00
Elliott Hughes c9d545855a Merge "Fix "fastboot oem"."
am: dbe9ab1074

Change-Id: I71c0d2eceaf4153f853196d07688558b3979a033
2017-05-12 00:42:37 +00:00
Treehugger Robot dbe9ab1074 Merge "Fix "fastboot oem"." 2017-05-11 23:40:59 +00:00
Mark Salyzyn b3b67adafd Merge "logd: validate and fill in socket credentials" am: 17254f59a2
am: 1423041905

Change-Id: I80c1ec043d288ae037a208702c639acf0042fc27
2017-05-11 23:40:19 +00:00
Mark Salyzyn 9a2b70a7c8 Merge "logcat: test: inject for *.event_tag_filter" am: 2841b4efe0
am: ed1e53fc77

Change-Id: I4b6c0f145fa83b4c1bb895256b4de45598e5f363
2017-05-11 23:39:49 +00:00
Renaud Paquay c134530c37 Merge "Fix uninitialized member variable" am: 46bb1ffa8a
am: 9cf71d784e

Change-Id: Ib7644e66e1860a13c0e79b5976d9159ff2de43d2
2017-05-11 23:39:22 +00:00
Mark Salyzyn 5698594d8a Merge "logd: test: check sepolicy background rate before testing" am: 5a40c42877
am: 1961eab662

Change-Id: I7ce24090e02b9902c615c2263cfaba3134c2526e
2017-05-11 23:38:51 +00:00
Mark Salyzyn 1423041905 Merge "logd: validate and fill in socket credentials"
am: 17254f59a2

Change-Id: I987d058e7245f5cb9a3603b3f52f7fa947d5dea7
2017-05-11 22:14:10 +00:00
Mark Salyzyn ed1e53fc77 Merge "logcat: test: inject for *.event_tag_filter"
am: 2841b4efe0

Change-Id: Ic1fb5ed5bb304ab4a6fa3e55414a07e73c5d546b
2017-05-11 22:13:48 +00:00
Elliott Hughes 29d5d7d718 Fix "fastboot oem".
Broken by d6365a7052.

Bug: https://issuetracker.google.com/38216236
Test: "fastboot oem uart enable"
Change-Id: I672d5b96bb16fd77e7af61115b8a38606c691ea8
2017-05-11 15:05:13 -07:00
Siarhei Vishniakou d819380f50 Merge "Adding 'uhid' permission for access to /dev/uhid." am: cecbc9993d
am: 04daed4793

Change-Id: I2bcaa5fe48f60c837ac341c71819c492860f50e2
2017-05-11 22:02:14 +00:00
Treehugger Robot 17254f59a2 Merge "logd: validate and fill in socket credentials" 2017-05-11 21:49:30 +00:00
Treehugger Robot 2841b4efe0 Merge "logcat: test: inject for *.event_tag_filter" 2017-05-11 21:48:38 +00:00
Renaud Paquay 9cf71d784e Merge "Fix uninitialized member variable"
am: 46bb1ffa8a

Change-Id: I102f6414d6846186327f68b5dae2e23eadfa0502
2017-05-11 21:04:41 +00:00
Mark Salyzyn 1961eab662 Merge "logd: test: check sepolicy background rate before testing"
am: 5a40c42877

Change-Id: I785965cc1c27d598f3293493d133e7b865c98d59
2017-05-11 21:04:16 +00:00
Siarhei Vishniakou 04daed4793 Merge "Adding 'uhid' permission for access to /dev/uhid."
am: cecbc9993d

Change-Id: I0cfcdaac7685f10a6f2b5e9bfc54a83cc5385da2
2017-05-11 20:48:04 +00:00
Mark Salyzyn c4e4823b00 logd: validate and fill in socket credentials
- android::pidToUid() additional checking.  Make sure if we have to
  convert a PID to an UID that the parse of /proc/<pid>/status
  requires a trailing space after the number
- android::tidToPid() added, in the same vein as android::pidToUid().
- stats.tidToPid() added
- If no credentials, set PID to 0 and UID to DEFAULT_OVERFLOWUID
- If credentialed PID is 0, use stats.tidToPid()
- If credentialed UID is DEFAULT_OVERFLOWUID, use stats.pidToUid()

Test: remove +passcred from logd.rc for daemon and confirm very few
      UID=65534 or PID=0 cases actually show up
Bug: 37985222
Change-Id: I7d20506e70e67beb3043d1537cf9450ab58dc278
2017-05-11 12:21:02 -07:00
Treehugger Robot 46bb1ffa8a Merge "Fix uninitialized member variable" 2017-05-11 19:17:21 +00:00
Mark Salyzyn 24b79ce2bc logcat: test: inject for *.event_tag_filter
Inject a message for event_tag_filter and bucket tests. The former
registered an occasional failure.

Switch order of EXPECT checks so that constant is on the right so
that error reports make more sense.

Test: gTest logcat-unit-tests --gtest_filter=*.event_tag_filter
Test: gTest logcat-unit-tests
Bug: 37791296
Change-Id: Ic2536e6e4c95e3a913ad0ea4c22219aa3c5c01eb
2017-05-11 12:16:06 -07:00
Treehugger Robot 5a40c42877 Merge "logd: test: check sepolicy background rate before testing" 2017-05-11 19:13:52 +00:00
Siarhei Vishniakou cecbc9993d Merge "Adding 'uhid' permission for access to /dev/uhid." 2017-05-11 19:02:32 +00:00
Renaud Paquay b7a4f0b9e2 Fix uninitialized member variable
The default constructor of FileMap was missing an initializer for the
mFileMapping variables. This results in CloseHandle being called with
a "random" value, which can cause havoc in Win32 process over time (e.g.
in the case of libaapt2_jni.dll, which is loaded in a JVM process).

Also, update the code to use "NULL" for invalid file map handle
and "INVALID_HANDLE_VALUE" for invalid file handle.

Bug: 38197857
Test: Stress testing on (Windows) machine
Change-Id: Ibd769219d601fbafcfcee89e848b31cc5137826c
2017-05-11 10:30:52 -07:00
Mark Salyzyn c51ecf9238 logd: test: check sepolicy background rate before testing
logd.sepolicy_rate_limiter_* tests can fail individually so join them
together into one test.  The new test logd.sepolicy_rate_limiter
fails as a group if the background sepolicy activity is too high, so
check it and report a warning that the test can fail as a result so it
can be forgiven during unit testing.  The failure remains as a VTS
performance threshold that requires investigation.

The test takes a total of 45 seconds to run, it was split up as this
approaches the 60 second test timeout on go/apct.

Test: gTest logd-unit-tests --gtest_filter=logd.sepolicy_rate_limiter
      (run in loop ensuring passes do not interfere with eachother)
Bug: 37791296
Change-Id: Ia865241f684c6b0de428702cbd5110dc17927c66
2017-05-11 17:16:30 +00:00
Siarhei Vishniakou 0729dd1edb Adding 'uhid' permission for access to /dev/uhid.
This CL is in support of another CL c/2048848, topic
'Refactor hid command in /frameworks/base/cmds' in
internal master. Adding the permissions for
shell here to access uhid_node as part of the
new 'uhid' group.

Bug: 34052337
Test: Tested on angler, bluetooth mouse works OK.

Change-Id: If9e100aa1262d689fb8adc5c0ce93f157c96399e
2017-05-11 01:28:53 +00:00
Josh Gao a02d0eeb39 libdebuggerd: print the build fingerprint in fallback.
Bug: http://b/37798209
Test: killall -ABRT media.codec on internal
Change-Id: I0ff1fc5ca1e0bcec2c1b2553d6af7099deebfeda
(cherry picked from commit 62f5977d4a)
2017-05-10 17:30:00 -07:00
Josh Gao 92abfb41f3 debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id.
bionic's cached values for getpid/gettid can be invalid if the crashing
process manually invoked clone to create a thread or process, which
will lead the crash_dump refusing to do anything, because it sees the
actual values.

Use the getpid/gettid syscalls directly to ensure correct values on
this end.

Bug: http://b/37769298
Test: debuggerd_test
Change-Id: I0b1e652beb1a66e564a48b88ed7fa971d61c6ff9
(cherry picked from commit 2e7b8e2d1a)
2017-05-10 17:30:00 -07:00
Josh Gao 8d21697d5c libdebuggerd: implement fallback register dumping on arm/aarch64.
Bug: http://b/35439781
Test: killall -ABRT media.codec on internal
Change-Id: I7a23d3bfcf07ad584e677b2ef5fff28436ef0972
(cherry picked from commit 77b00ed429)
2017-05-10 17:30:00 -07:00
Josh Gao 709f57bc69 Merge changes I0ff1fc5c,I7a23d3bf am: 7d199de8e2 am: 162ec283cf
am: 61c8aea04a

Change-Id: I71afab81c2c26e9213da746b9f25a00e98e50796
2017-05-11 00:23:49 +00:00
Chih-Hung Hsieh 0d1879dd8c Merge "Work around clang-tidy segmentation fault." am: d761dd747e am: 4a926efc49
am: 3f9923cf7f

Change-Id: I5207bb2b06902b248137edeef6be3ac167ee62de
2017-05-11 00:23:21 +00:00
Josh Gao 61c8aea04a Merge changes I0ff1fc5c,I7a23d3bf am: 7d199de8e2
am: 162ec283cf

Change-Id: I1dc9b13c00f6944368257e9a4e347278ec46f55f
2017-05-11 00:05:43 +00:00
Chih-Hung Hsieh 3f9923cf7f Merge "Work around clang-tidy segmentation fault." am: d761dd747e
am: 4a926efc49

Change-Id: I5e4b9b8507dc24bb44323c331eabe1afb25dd8f5
2017-05-11 00:05:13 +00:00
Josh Gao 162ec283cf Merge changes I0ff1fc5c,I7a23d3bf
am: 7d199de8e2

Change-Id: I6f47c2f66d79b8d26c239c974dcea34e4e8fef67
2017-05-10 23:54:41 +00:00
Chih-Hung Hsieh 4a926efc49 Merge "Work around clang-tidy segmentation fault."
am: d761dd747e

Change-Id: I51913166b123b41e31c23da8c0def798057dd556
2017-05-10 23:54:12 +00:00
Josh Gao 7d199de8e2 Merge changes I0ff1fc5c,I7a23d3bf
* changes:
  libdebuggerd: print the build fingerprint in fallback.
  libdebuggerd: implement fallback register dumping on arm/aarch64.
2017-05-10 23:24:38 +00:00
Treehugger Robot d761dd747e Merge "Work around clang-tidy segmentation fault." 2017-05-10 23:11:19 +00:00