Commit Graph

38822 Commits

Author SHA1 Message Date
David Srbecky 24d5a1e8a4 Merge "Adjust DEX file reading to follow layout changes in ART." am: 8fbdbba9f5
am: 1f2daf1b79

Change-Id: I25c5d81c5803b920f7e4d68cc6aebe023b439ea6
2018-02-23 18:10:48 +00:00
David Srbecky 1f2daf1b79 Merge "Adjust DEX file reading to follow layout changes in ART."
am: 8fbdbba9f5

Change-Id: I550ee4892c6c9ec83695ea861af9953fdb5c53fb
2018-02-23 18:05:06 +00:00
David Srbecky 8fbdbba9f5 Merge "Adjust DEX file reading to follow layout changes in ART." 2018-02-23 17:53:23 +00:00
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
Robert Sesek 19fafd1ae9 Merge "Remove fs_config entries for webview_zygote."
am: 47354e76eb

Change-Id: I9faa6c9c4a83ba6d214e37155ebd84b724bc325f
2018-02-23 17:33:07 +00:00
Treehugger Robot 47354e76eb Merge "Remove fs_config entries for webview_zygote." 2018-02-23 17:12:17 +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 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
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 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
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 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
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 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
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 e1cbc97115 Merge "debuggerd seccomp: explain why we define PROT_READ/WRITE." am: 665e4c1537
am: 5504477722

Change-Id: I935382f7581f1e0220c9a362bfe0f659d7ee598a
2018-02-19 09:56:17 +00:00
Josh Gao 5504477722 Merge "debuggerd seccomp: explain why we define PROT_READ/WRITE."
am: 665e4c1537

Change-Id: I3762171a451d169d273a4affa3bf3c6eee7a3b3c
2018-02-19 09:49:45 +00:00
Justin Yun 89ed655ef7 Merge "Define PROT_READ and PROT_WRITE when generating the policy files" am: a1721a5043
am: 158208cde0

Change-Id: I6855db3d6f56067983fd89e2c330223cb82ab9a2
2018-02-19 09:44:45 +00:00
Treehugger Robot 665e4c1537 Merge "debuggerd seccomp: explain why we define PROT_READ/WRITE." 2018-02-19 09:43:22 +00:00
Justin Yun 158208cde0 Merge "Define PROT_READ and PROT_WRITE when generating the policy files"
am: a1721a5043

Change-Id: Ibb4459bac1136ce9c54b7a109bb7b7dc72986563
2018-02-19 09:39:05 +00:00
Treehugger Robot a1721a5043 Merge "Define PROT_READ and PROT_WRITE when generating the policy files" 2018-02-19 09:33:33 +00:00
George Burgess IV cb2449f851 Fix a memory leak
If create_service_thread fails, we'll leak `arg`.

This fixes a static analyzer complaint:
system/core/adb/services.cpp:298:13: warning: Potential leak of memory
pointed to by 'arg'

Bug: None
Test: Reran the static analyzer. No more complaints about this leak.
Change-Id: I5aec7fd78f2cc775b650501b02bdf0039d1647ca
2018-02-19 01:05:56 -08:00
Josh Gao edd28f6ede debuggerd seccomp: explain why we define PROT_READ/WRITE.
Add a comment explaining why we define PROT_READ/PROT_WRITE, even
though a current libminijail supports both cosntants.

Bug: http://b/73273658
Test: treehugger
Change-Id: I51c1be1b1b569e94dbc9045a90bc28221b7dc9c7
2018-02-18 23:50:19 -08:00
Justin Yun 40ecb9abf2 Define PROT_READ and PROT_WRITE when generating the policy files
When generating crash_dump.*.policy, replace PROT_READ and PROT_WRITE
to numeric constants to make the policy backward compatible with old
libminijail.so.

Bug: 73273658
Test: use the new policy in OMR1 devices
Change-Id: I936a733340ad4df8aef6562c03eb10c29ffdada2
2018-02-19 10:42:42 +09:00
Christopher Ferris c9dd4ac7a9 Merge "Modify elf cache to handle elf_offsets properly." am: 277a95bfef
am: e89745202c

Change-Id: Idf566f7aa0cc1df292cdf4da7c982388b4fa5bde
2018-02-17 04:03:49 +00:00
Christopher Tate 192cd6ec1b Merge "Fix darwin build" am: 8c0c1ba989
am: e68fa81351

Change-Id: Ia9d754f5a71ba2a6d926139e3eb1b1082b1ef1cb
2018-02-17 04:01:15 +00:00
Christopher Ferris e89745202c Merge "Modify elf cache to handle elf_offsets properly."
am: 277a95bfef

Change-Id: I71c15df8d527548610cc15484f7c382e85b54552
2018-02-17 03:49:06 +00:00
Christopher Tate e68fa81351 Merge "Fix darwin build"
am: 8c0c1ba989

Change-Id: I8acb6a80f4ab5458f01fb6196203c4c664438934
2018-02-17 03:46:53 +00:00
Christopher Ferris 277a95bfef Merge "Modify elf cache to handle elf_offsets properly." 2018-02-17 02:00:31 +00:00