Commit graph

20350 commits

Author SHA1 Message Date
Elliott Hughes
272b2694cd Merge "Report errno more often in fastboot."
am: 8c5384e50b

* commit '8c5384e50bfbc97e4b4ea74e52391879a09b68fa':
  Report errno more often in fastboot.

Change-Id: I19a33597f29c1974063d4308eeccea60bbb350f5
2016-05-11 21:39:00 +00:00
Elliott Hughes
8c5384e50b Merge "Report errno more often in fastboot." 2016-05-11 21:27:44 +00:00
Dimitry Ivanov
3f0a12622b Merge "Move linker-namespace functions declarations"
am: 37ed923d1c

* commit '37ed923d1c08b8b9204a6a66f11bbf0b4375d35b':
  Move linker-namespace functions declarations

Change-Id: I91b184943a9a1cfa286f7e8ebb2df21f34063a3d
2016-05-11 21:22:02 +00:00
Dimitry Ivanov
37ed923d1c Merge "Move linker-namespace functions declarations" 2016-05-11 21:14:41 +00:00
Elliott Hughes
53ec495b40 Report errno more often in fastboot.
Change-Id: I4b4b47c584a146b38876a379f26ceb20d071c643
2016-05-11 12:39:27 -07:00
Elliott Hughes
4434b42cd0 Merge "Add a fortify test to crasher."
am: e674d32d2d

* commit 'e674d32d2d2816255c836cb7eed51eee6c9e8147':
  Add a fortify test to crasher.

Change-Id: I7d4c1342c514c73d195ad970703bb20338633db8
2016-05-11 17:56:16 +00:00
Elliott Hughes
e674d32d2d Merge "Add a fortify test to crasher." 2016-05-11 17:47:21 +00:00
Dimitry Ivanov
ed4c0be382 Merge "nativeloader: Ignore empty java_permitted_path"
am: 39d1230ee3

* commit '39d1230ee31c704e95ec45048ff812a2b6aae5bf':
  nativeloader: Ignore empty java_permitted_path

Change-Id: Iab7b81414593760f4a9d5b02a5be3ea6f6b9720a
2016-05-11 07:40:59 +00:00
Dimitry Ivanov
39d1230ee3 Merge "nativeloader: Ignore empty java_permitted_path" 2016-05-11 07:36:31 +00:00
Dimitry Ivanov
72ca40f738 nativeloader: Ignore empty java_permitted_path
Passing empty permitted path should result in no-op.
This addresses review comment on CL with commit
f334cbf0e1

Bug: http://b/28639227
Change-Id: I4a4540e522e90a145a374939921932c86f35e88d
(cherry picked from commit d0b1531929)
2016-05-10 22:02:05 -07:00
Dimitry Ivanov
5cd1e6822a Merge "Check if public namespace has already been initialized"
am: 0756fae4f1

* commit '0756fae4f1aea5072ed820087b2487b408194c38':
  Check if public namespace has already been initialized

Change-Id: Ia338baa984c3ca310f4a30db1d094704607e5cc9
2016-05-11 01:27:55 +00:00
Dimitry Ivanov
0756fae4f1 Merge "Check if public namespace has already been initialized" 2016-05-11 01:23:20 +00:00
Dimitry Ivanov
a5c037143c Merge "Extend white-listed directories to include /mnt/expand"
am: 3fb5f13806

* commit '3fb5f1380671b6b9d3b511fc2b80051a14313dec':
  Extend white-listed directories to include /mnt/expand

Change-Id: I106dac170a9acb80835082916e6aa09328e5fb11
2016-05-10 23:21:44 +00:00
Treehugger Robot
3fb5f13806 Merge "Extend white-listed directories to include /mnt/expand" 2016-05-10 23:17:27 +00:00
Dimitry Ivanov
637da4eeeb Extend white-listed directories to include /mnt/expand
Apps on sdcard live under /mnt/expand and therefore
this directory should be under linker namespaces
permitted_path.

Bug: http://b/28639227
Change-Id: I462f9f23656c95d9c2a48bb3f513abcd9d08f340
(cherry picked from commit f334cbf0e1)
2016-05-10 15:31:18 -07:00
Elliott Hughes
23d1cad9e0 Add a fortify test to crasher.
Change-Id: I675dbeaa39529583be5877946fd38b94ec341315
2016-05-10 14:44:59 -07:00
Elliott Hughes
23e1312720 Merge "<cutils/atomic.h> has been inlined for two years now."
am: c5016de66b

* commit 'c5016de66b6d778dd7c292e215aad6b5c079e92c':
  <cutils/atomic.h> has been inlined for two years now.

Change-Id: Icc28b866c2dd081d1047263c7cfaea05d20975f6
2016-05-10 16:01:20 +00:00
Elliott Hughes
c5016de66b Merge "<cutils/atomic.h> has been inlined for two years now." 2016-05-10 15:55:22 +00:00
Dimitry Ivanov
80ddb8f551 Check if public namespace has already been initialized
There is no point in reading/loading the list of public
libraries once public namespace is already initialized.

Change-Id: I5a53c46bb57b8de241ba521a6321c12e94a76476
2016-05-09 18:12:00 -07:00
Dimitry Ivanov
6796522256 Move linker-namespace functions declarations
They are intended for platform use only and we shouldn't have them
in the public header file. This CL moves them to libnativeloader
private header file.

Bug: http://b/28174921
Change-Id: I01cf446d2d8d7cf6f9e31130aa3d4e54fbbbb9fc
2016-05-09 18:09:06 -07:00
Elliott Hughes
103e8f5608 <cutils/atomic.h> has been inlined for two years now.
Change-Id: If4f817acc054d7336df09a5b8dde34693e0e96a5
2016-05-09 15:11:56 -07:00
Dimitry Ivanov
1a3ac02e4c Merge "nativeloader: Fix the case of search_path == null"
am: 179fea40bb

* commit '179fea40bb1ed2da183f3a2a6398d1c68b9f6f32':
  nativeloader: Fix the case of search_path == null

Change-Id: Idb502568c161693877c30bb7cd085e974433aa8f
2016-05-09 19:21:26 +00:00
Dimitry Ivanov
179fea40bb Merge "nativeloader: Fix the case of search_path == null" 2016-05-09 19:17:10 +00:00
Dimitry Ivanov
8a0425b86a nativeloader: Fix the case of search_path == null
When user creates custom classloader which does not extend
BaseDexClassLoader the librarySearchPath gets set to null
by java.lang.Runtime.doLoad().

This patch makes nativeloader correctly handle it.

Bug: http://b/28659864
Change-Id: I1b61c6bc952984d7c49775a9178fc3270948e62a
2016-05-09 10:55:50 -07:00
Rubin Xu
a76e171bf3 Merge "Return correct length from pmsgRead()"
am: fc2a8b2bd6

* commit 'fc2a8b2bd605e4639db0feaab49c516c0ae90180':
  Return correct length from pmsgRead()

Change-Id: I868b2ad0258edd409f10fdf8bfb27f44c39de77d
2016-05-09 15:32:15 +00:00
Treehugger Robot
fc2a8b2bd6 Merge "Return correct length from pmsgRead()" 2016-05-09 15:22:43 +00:00
Dimitry Ivanov
9e351d2f2b Merge "Add public libs from an environment variable"
am: c6160d2a0e

* commit 'c6160d2a0ef648ccb3d217c589c60b5c00b80387':
  Add public libs from an environment variable

Change-Id: I2be47c2e9fc02860e7ddd79b97f666c9ea6e881b
2016-05-06 19:56:13 +00:00
Dimitry Ivanov
c6160d2a0e Merge "Add public libs from an environment variable" 2016-05-06 19:44:17 +00:00
Dimitry Ivanov
4ddabd01bf Add public libs from an environment variable
This is enabled only for builds with ro.debuggable=1
It is intended for use only in tests using dalvikvm
and needing access to platform libraries.

Bug: http://b/28449304
Change-Id: I402457d0da542996ccf265aeaa305f09881e4333
2016-05-06 11:39:47 -07:00
Daniel Micay
2f67f4687b Merge "enable integer sanitizer for sdcard service"
am: 532ab82e10

* commit '532ab82e1066837e8a70c64fcee9d083f7cd04b7':
  enable integer sanitizer for sdcard service

Change-Id: Ia732087fed56c1a86303cdd5398bec629ba14e31
2016-05-06 17:05:48 +00:00
Nick Kralevich
532ab82e10 Merge "enable integer sanitizer for sdcard service" 2016-05-06 16:58:56 +00:00
Christopher Ferris
66c17d54e2 Merge "Set groups before dropping privileges."
am: f34304019d

* commit 'f34304019d464de0c03fe62ca7fd9e158afb598c':
  Set groups before dropping privileges.

Change-Id: If5396c913cfed13c01bd06d6a5d781439e5f6876
2016-05-06 01:14:16 +00:00
Treehugger Robot
f34304019d Merge "Set groups before dropping privileges." 2016-05-06 01:08:14 +00:00
Christopher Ferris
05c5ef4757 Merge "Fix null pointer dereference."
am: 830561bb2b

* commit '830561bb2b34ca8c09be4860380e9032202c3112':
  Fix null pointer dereference.

Change-Id: I82a4e97c61c1d3aaef1e4af1292cab06eb804ccc
2016-05-05 22:50:38 +00:00
Christopher Ferris
8b474de4ac Set groups before dropping privileges.
The code for dumping tombstones tries to read the log data. This was
silently failing after the change to drop root privileges. Fix this
by explicitly setting the groups allowed before dropping privileges.

Bug: 28590884
(cherry picked from commit edc2380109)

Change-Id: I225365edccb11f8752027566fd42f3b10ce10260
2016-05-05 15:47:16 -07:00
Treehugger Robot
830561bb2b Merge "Fix null pointer dereference." 2016-05-05 22:44:04 +00:00
Christopher Ferris
157f2725ec Fix null pointer dereference.
In the function dump_thread_info, if /proc/<PID>/comm is unreadable, then
threadname will be used in a strncmp causing a crash. The fix is to
avoid the check if threadname is null.

Bug: 28615417
(cherry picked from commit 039976e553)

Change-Id: I1e61431b1549ecfdc49a72cbf193a364069cda79
2016-05-05 14:21:25 -07:00
Christopher Ferris
9c02f2379f Merge "Fix problem with wait_for_gdb."
am: d494665822

* commit 'd4946658225e7fdb12219924357814fcc0cd3cf9':
  Fix problem with wait_for_gdb.

Change-Id: If9ae01ddd02739cdb3ccbdde1b11c9ec8375fe7e
2016-05-05 20:36:06 +00:00
Treehugger Robot
d494665822 Merge "Fix problem with wait_for_gdb." 2016-05-05 20:27:30 +00:00
Daniel Micay
83c0c7b2ab enable integer sanitizer for sdcard service
The previous false positive fix (df9c4a01) is enough to pass tests, and
it doesn't appear that there are any remaining issues.

Change-Id: Ib9812f1201ff0cd2ae8c8371737754fc328765b5
2016-05-05 16:03:32 -04:00
Christopher Ferris
99235e9967 Fix problem with wait_for_gdb.
When someone enables wait_for_gdb, activity manager will kill the
stopped process before a developer can attach to the process. To
allow debugging in this case, change the code to only contact the
activity manager right before continuing the process that is
crashing.

Also, modify the conditions under which to do a gdb attach. The previous
code did a partial attach if perform_dump failed. The new version simply
allows an attach regardless of whether perform_dump passes or fails.

Bug: 28409358
(cherry picked from commit 9818bd2bbe)

Change-Id: I42f464b69332748e16b07d9d00f44b3aa26ce8b7
2016-05-05 10:50:39 -07:00
Rubin Xu
9c2f803e9d Return correct length from pmsgRead()
Bug: 28610769
Change-Id: I38cac786ca43ef8d9530f4e2e5a0bdd4cc3bccef
2016-05-05 16:50:44 +01:00
Elliott Hughes
e9e8b44d5a Merge "Lose ps to toybox."
am: 31701d6074

* commit '31701d6074effb399cf717da21abde91d7e29dd7':
  Lose ps to toybox.

Change-Id: I5b24a54c4e9a7e64853c71d13256aa6cf89ca0ac
2016-05-05 00:36:09 +00:00
Elliott Hughes
31701d6074 Merge "Lose ps to toybox." 2016-05-05 00:29:12 +00:00
Dimitry Ivanov
9fad128a16 Merge "nativeloader: Add CloseNativeLibrary() method"
am: ad717d6566

* commit 'ad717d6566eb381fb0ef47941c000789f048cf81':
  nativeloader: Add CloseNativeLibrary() method

Change-Id: Id4a0937a32afe189c5cb46367d91a2aeebbfb71d
2016-05-04 23:44:28 +00:00
Treehugger Robot
ad717d6566 Merge "nativeloader: Add CloseNativeLibrary() method" 2016-05-04 23:38:55 +00:00
Dimitry Ivanov
7a1f9518f7 nativeloader: Add CloseNativeLibrary() method
This method is called by art on UnloadNativeLibraries()

Bug: http://b/28406866
Change-Id: Ibccff93c83d6ccd3d0a1c0294a64b09281b4e05e
(cherry picked from commit 09a516bf16)
2016-05-04 15:26:33 -07:00
Elliott Hughes
eea3c0e601 Lose ps to toybox.
Change-Id: I890a453533e1b3066169738f55314f8813285c17
2016-05-04 15:20:02 -07:00
Elliott Hughes
ee3202563b Merge "Remove <utils/ashmem.h>."
am: f9f76146a1

* commit 'f9f76146a1d0f05654be8963e78c2ed6c56d4a57':
  Remove <utils/ashmem.h>.

Change-Id: I2404bef3218617fb06dcb62f52717f61d83f52d8
2016-05-04 22:01:36 +00:00
Elliott Hughes
f9f76146a1 Merge "Remove <utils/ashmem.h>." 2016-05-04 21:48:21 +00:00