Commit graph

39990 commits

Author SHA1 Message Date
Robert Sesek
b13b9e0d55 Merge "Remove fs_config entries for webview_zygote." am: 47354e76eb
am: 19fafd1ae9

Change-Id: Ia7b10849f46fd0fbcf19d355ead1d762718f2e3d
2018-02-23 17:43:32 +00:00
TreeHugger Robot
336fab3633 Merge "Revert "Restore "Add UID parameter to authentication token""" 2018-02-23 17:42:46 +00:00
Robert Sesek
19fafd1ae9 Merge "Remove fs_config entries for webview_zygote."
am: 47354e76eb

Change-Id: I9faa6c9c4a83ba6d214e37155ebd84b724bc325f
2018-02-23 17:33:07 +00:00
Christopher Ferris
432981b905 Modify the offline handling interface.
- Add a new function Backtrace::UnwindOffline that takes the stack data.
- Modify BacktraceMap::CreateOffline so it doesn't take the stack data.
  This makes it easier to reuse the map object created this way.

Reusing the map object increases simpleperf speed (unwinds per second) by 50%.

Test: backtrace_test libunwindstack_test
Change-Id: I90cfbae9e50d95d8a0e3cd394b33ba36d65d45f7
2018-02-23 09:14:06 -08:00
Treehugger Robot
47354e76eb Merge "Remove fs_config entries for webview_zygote." 2018-02-23 17:12:17 +00:00
Brian Young
388ff6bb7b Revert "Restore "Add UID parameter to authentication token""
This reverts commit 9e62f3ee11.

Reason for revert: Regression in creating auth-bound keys

Bug: 73773914

Bug: 67752510

Change-Id: Ibde9aefffbaab9b85deb95ae2fdf9e0db6d1e992
2018-02-23 01:31:12 +00:00
Josh Gao
70adac6a8a debuggerd_fallback: don't recursively abort.
Calls to abort() will always result in our signal handler being called,
because abort will manually unblock SIGABRT before raising it. This
can lead to deadlock when handling address space exhaustion in the
fallback handler. To fix this, switch our mutex to a recursive mutex,
and manually keep track of our lock count.

Bug: http://b/72929749
Test: debuggerd_test --gtest_filter="CrasherTest.seccomp_crash_oom"
Change-Id: I609f263ce93550350b17757189326b627129d4a7
2018-02-22 16:31:38 -08:00
Rajeev Kumar
92b659ba9a Fix variable name in log statement and initialize memory_stat before using it.
Bug: 72177881
Test: Tested manually
Change-Id: Icbf948dd0e40eaa6c660d55f5cd72182436da086
2018-02-22 10:57:18 -08:00
Christopher Ferris
8539d58fc1 Merge "Change the GetAdjustedRelPc to GetPcAdjustment." am: cdf778f5d9 am: 241481eb7e
am: 46bcf44d65

Change-Id: I0af75268611d687ed846f68c4f5897c6b2e80138
2018-02-22 18:15:11 +00:00
Christopher Ferris
46bcf44d65 Merge "Change the GetAdjustedRelPc to GetPcAdjustment." am: cdf778f5d9
am: 241481eb7e

Change-Id: I29b66066cccb153eb3e88e48f6cf69af32c1176b
2018-02-22 18:06:34 +00:00
Christopher Ferris
241481eb7e Merge "Change the GetAdjustedRelPc to GetPcAdjustment."
am: cdf778f5d9

Change-Id: I3f0f8a9e1a4ceea708714439e54ec06bd7a25f36
2018-02-22 17:58:03 +00:00
Christopher Ferris
cdf778f5d9 Merge "Change the GetAdjustedRelPc to GetPcAdjustment." 2018-02-22 17:44:19 +00:00
Tom Cherry
a7e5e7a01e Merge "init: log control messages along with the process that sent them" am: 0f8a67d6a8 am: 76583e1637
am: 7ad6bed77b

Change-Id: I9722417898ea78f28901da7877dfe37f467300d3
2018-02-22 16:53:22 +00:00
Tom Cherry
7ad6bed77b Merge "init: log control messages along with the process that sent them" am: 0f8a67d6a8
am: 76583e1637

Change-Id: Id60a6e1ecac59f5ed875e0b7ff5f5c289e7e617e
2018-02-22 16:44:09 +00:00
Tom Cherry
76583e1637 Merge "init: log control messages along with the process that sent them"
am: 0f8a67d6a8

Change-Id: If7e485e01fb326c6ff7920c96e02e3e59b46c04b
2018-02-22 16:36:31 +00:00
Tom Cherry
0f8a67d6a8 Merge "init: log control messages along with the process that sent them" 2018-02-22 16:21:05 +00:00
Christopher Ferris
a2ec50bf57 Change the GetAdjustedRelPc to GetPcAdjustment.
This cleans up a bit of the Unwinder code to make it clear what's
going on.

Modify the offline unit tests to verify the pc and sp to make sure
that those values get computed correctly.

Test: Passes unit tests.
Test: Passes 137-cfi art tests.
Change-Id: I0787a1d77b8726d3defd08f31c7476f6798f8d0d
2018-02-21 20:16:39 -08:00
Tom Cherry
6f2d56d584 init: log control messages along with the process that sent them
It's currently not clear that init stops processes due to being sent a
control message nor who sent that message.

Bug: 73343913
Test: send control messages and see the logs
Change-Id: I9e9eff2001e649814107ea961b3b747a1f6da598
2018-02-21 16:36:03 -08:00
Josh Gao
f571fcbe87 adb: switch apacket over to a std::string payload.
Test: python test_device.py with walleye/x86_64 emulator
Change-Id: I0a18941af1cb2279e5019a24ace25741def1202f
2018-02-21 14:30:17 -08:00
Christopher Ferris
11bd06a6fe Merge "Add ability to skip function name resolution." am: 2733708cfb am: d41821eade
am: fb477e5063

Change-Id: I8a7b24f4baa451c71580496b84b36a731bb1c4c6
2018-02-21 20:48:10 +00:00
Christopher Ferris
fb477e5063 Merge "Add ability to skip function name resolution." am: 2733708cfb
am: d41821eade

Change-Id: Idb3e5e804df99e39281ed5c79c2ea3c747abce8f
2018-02-21 20:41:32 +00:00
Christopher Ferris
d41821eade Merge "Add ability to skip function name resolution."
am: 2733708cfb

Change-Id: If75fe6d573d44ddb6ef0e562688bea88654717b3
2018-02-21 20:33:56 +00:00
Christopher Ferris
2733708cfb Merge "Add ability to skip function name resolution." 2018-02-21 20:13:24 +00:00
Andreas Gampe
9ad8837f5d Merge "Base: Add an NDK-compiled version of libbase" am: 9b4d7dd51e am: fdabcbb61a
am: 36d05a2d3c

Change-Id: Ic2e2619179adce9bb046840bec6d42d32c20170a
2018-02-21 07:01:32 +00:00
Andreas Gampe
36d05a2d3c Merge "Base: Add an NDK-compiled version of libbase" am: 9b4d7dd51e
am: fdabcbb61a

Change-Id: I9ac3346158b182dc10cbf78094658162755d9ff1
2018-02-21 06:53:54 +00:00
Andreas Gampe
fdabcbb61a Merge "Base: Add an NDK-compiled version of libbase"
am: 9b4d7dd51e

Change-Id: If0dddc912cdb1aa49ad5c166fc136d2dc9d1896a
2018-02-21 06:45:19 +00:00
Treehugger Robot
9b4d7dd51e Merge "Base: Add an NDK-compiled version of libbase" 2018-02-21 06:37:08 +00:00
Andreas Gampe
af05f3b761 Base: Add an NDK-compiled version of libbase
To support building libraries for CTS.

Bug: 73206894
Bug: 73659009
Test: mmma system/core/base
Change-Id: I630be88f44cf5cefcb13be7959fc1a710686e29b
2018-02-21 01:59:24 +00:00
Tom Cherry
c02c42fca8 Merge "Expose __android_log_buf_print and __android_log_buf_write to NDK" am: 887b89fe5e am: 4ebf2495a9
am: f6403fa1d9

Change-Id: I4b1c4d8005ea038e20a1b416fa7718f76faa7e5c
2018-02-21 01:13:53 +00:00
Christopher Ferris
e4b3a6aaa4 Add ability to skip function name resolution.
Bug: 73558129

Test: New unit tests pass.
Change-Id: I3a6b17d2590aacb367ab3e3a51cc85be73ad64eb
2018-02-20 17:10:23 -08:00
Tom Cherry
f6403fa1d9 Merge "Expose __android_log_buf_print and __android_log_buf_write to NDK" am: 887b89fe5e
am: 4ebf2495a9

Change-Id: Id5a0bbcd461a21167d8507ca75c681df4371d158
2018-02-21 01:07:11 +00:00
Tom Cherry
4ebf2495a9 Merge "Expose __android_log_buf_print and __android_log_buf_write to NDK"
am: 887b89fe5e

Change-Id: Idbbdf1940d3e6320a5ddb8d56d5ca1510abfb2ce
2018-02-21 01:00:32 +00:00
Treehugger Robot
887b89fe5e Merge "Expose __android_log_buf_print and __android_log_buf_write to NDK" 2018-02-21 00:50:34 +00:00
Tom Cherry
216f73fb57 Merge "Fix intermittent crash in property_service_test" am: ca26cbc5d3 am: f157725091
am: 28f27c49d0

Change-Id: I29cf259041a2cf5fc3715476d17add5e1ce68797
2018-02-20 23:50:17 +00:00
Tom Cherry
28f27c49d0 Merge "Fix intermittent crash in property_service_test" am: ca26cbc5d3
am: f157725091

Change-Id: If6f95cec386cb4351abfa08f6c85ce6ac3846fb4
2018-02-20 23:25:19 +00:00
Tom Cherry
f157725091 Merge "Fix intermittent crash in property_service_test"
am: ca26cbc5d3

Change-Id: Ieaa5218faf9deee0443b88fff6be43d4a0877ec9
2018-02-20 23:04:33 +00:00
Tom Cherry
73ac28b408 Expose __android_log_buf_print and __android_log_buf_write to NDK
These are needed to build libbase with the NDK.

Bug: 73658597
Test: tree hugger
Change-Id: Icf4a82c5c08975731c180be155743ac63f4bfd50
2018-02-20 14:59:28 -08:00
Treehugger Robot
ca26cbc5d3 Merge "Fix intermittent crash in property_service_test" 2018-02-20 20:52:31 +00:00
Daniel Colascione
d470fbb606 Merge "Enable lmkd kill tracing everywhere" 2018-02-20 19:46:50 +00:00
Tom Cherry
b7ef7e7aff Fix intermittent crash in property_service_test
There is a race in the very_long_name_35166374 test of
property_service.  The test first sends a size value that is beyond
the limit that init will handle, then sends a dummy data value.
However, init closes the socket upon seeing the faulty size, and if
this happens before the test sends the dummy data, the test will crash
due to SIGPIPE.

Since there is no reason to send the dummy data at all, this change no
longer sends it to prevent the crash.  It also now checks explicitly
that init returns an error through the socket.

Bug: 73619375
Test: the unit test in question
Change-Id: I2565a69fa54910cee0e15fc798445e18c91156ec
2018-02-20 10:47:55 -08:00
Elliott Hughes
4c33b88c4b Merge "bpfmt." am: 0609e8d231 am: b57755c429
am: a91867a788

Change-Id: Ieb0985434e2464e47b3adb93fb27fe5042e91657
2018-02-20 02:24:45 +00:00
Elliott Hughes
a91867a788 Merge "bpfmt." am: 0609e8d231
am: b57755c429

Change-Id: Ieeedd2bd96048496ad4141326af3114d3f44eaf1
2018-02-20 02:18:10 +00:00
Elliott Hughes
b57755c429 Merge "bpfmt."
am: 0609e8d231

Change-Id: I810b09372da24d4b84bbeaa5d0c03ec0baf928fd
2018-02-20 02:11:33 +00:00
Treehugger Robot
0609e8d231 Merge "bpfmt." 2018-02-20 02:02:59 +00:00
TreeHugger Robot
f368568d29 Merge "Add tracing tags to vibrator" 2018-02-19 21:38:24 +00:00
George Burgess IV
54abd1d82f Merge "Fix a memory leak" am: cb1b68f9b3 am: 894337ee0b
am: 2a7d34014a

Change-Id: I2b763775555659f77e969f1d4d5bc73363afc53b
2018-02-19 11:02:02 +00:00
George Burgess IV
2a7d34014a Merge "Fix a memory leak" am: cb1b68f9b3
am: 894337ee0b

Change-Id: Ieb9b695cc681831fc3684bcb5d19ddc41099949f
2018-02-19 10:56:53 +00:00
George Burgess IV
894337ee0b Merge "Fix a memory leak"
am: cb1b68f9b3

Change-Id: Ia7a5fbc737d702615499bccd6492aac9ce3d0ce3
2018-02-19 10:51:47 +00:00
Treehugger Robot
cb1b68f9b3 Merge "Fix a memory leak" 2018-02-19 10:44:43 +00:00
Josh Gao
72b1fb6f7b Merge "debuggerd seccomp: explain why we define PROT_READ/WRITE." am: 665e4c1537 am: 5504477722
am: e1cbc97115

Change-Id: Ife944a1d1074c5e7fe6fc07c41c7931f0237ceb7
2018-02-19 10:01:24 +00:00