OSDN Git Service

android-x86/bionic.git
8 years agoMerge "Remove declaration for __brk." am: e20730ca0b
Josh Gao [Thu, 2 Jun 2016 02:35:00 +0000 (02:35 +0000)]
Merge "Remove declaration for __brk." am: e20730ca0b
am: 73d521e9db

* commit '73d521e9dbd06b556dc965c3a3416250253e4518':
  Remove declaration for __brk.

Change-Id: I17152efdb7eeba281d818b135005c79ae6d7fc15

8 years agoMerge "Remove declaration for __brk."
Josh Gao [Thu, 2 Jun 2016 02:32:38 +0000 (02:32 +0000)]
Merge "Remove declaration for __brk."
am: e20730ca0b

* commit 'e20730ca0be39c52f22d6155043cbb69abd7eb36':
  Remove declaration for __brk.

Change-Id: I503fd3d0164489b839aacc2ed55e953c15ef026a

8 years agoMerge "Remove declaration for __brk."
Treehugger Robot [Thu, 2 Jun 2016 02:25:58 +0000 (02:25 +0000)]
Merge "Remove declaration for __brk."

8 years agoMerge "Fix .clang-format ContinuationIndentWidth." am: 8a48d9d63b
Josh Gao [Thu, 2 Jun 2016 01:36:34 +0000 (01:36 +0000)]
Merge "Fix .clang-format ContinuationIndentWidth." am: 8a48d9d63b
am: 1e2ea25601

* commit '1e2ea256013fc3f4da5bd755f12be655b9ed7053':
  Fix .clang-format ContinuationIndentWidth.

Change-Id: I42e286bd02d36d93733201c9dff29002b85e561e

8 years agoMerge "Fix .clang-format ContinuationIndentWidth."
Josh Gao [Thu, 2 Jun 2016 01:33:26 +0000 (01:33 +0000)]
Merge "Fix .clang-format ContinuationIndentWidth."
am: 8a48d9d63b

* commit '8a48d9d63bae31bf2e639a88ae9caa6c00f1a90a':
  Fix .clang-format ContinuationIndentWidth.

Change-Id: I17b062aefae70035c69e10f09cf71076832e90b5

8 years agoMerge "Fix .clang-format ContinuationIndentWidth."
Josh Gao [Thu, 2 Jun 2016 01:21:42 +0000 (01:21 +0000)]
Merge "Fix .clang-format ContinuationIndentWidth."

8 years agoRemove declaration for __brk.
Josh Gao [Fri, 27 May 2016 18:46:19 +0000 (11:46 -0700)]
Remove declaration for __brk.

Bug: http://b/28178111
Change-Id: I972789cd5da552000c32fd107b9df98330323d89

8 years agoFix .clang-format ContinuationIndentWidth.
Josh Gao [Wed, 1 Jun 2016 01:17:14 +0000 (18:17 -0700)]
Fix .clang-format ContinuationIndentWidth.

Change-Id: If41900122accb2c1ebf012bfa07de9b0fa9690fc

8 years agoMerge "Remove libstdc++ include files." am: 676f6e3c7f
Elliott Hughes [Fri, 27 May 2016 23:50:37 +0000 (23:50 +0000)]
Merge "Remove libstdc++ include files." am: 676f6e3c7f
am: c94f3dff48

* commit 'c94f3dff4815b0d3d60d89699ade186a0bc80608':
  Remove libstdc++ include files.

Change-Id: Iccf3dfa77c4374c6c0bd7db76b1876cc56582b27

8 years agoMerge "Remove libstdc++ include files."
Elliott Hughes [Fri, 27 May 2016 23:48:05 +0000 (23:48 +0000)]
Merge "Remove libstdc++ include files."
am: 676f6e3c7f

* commit '676f6e3c7f29d4b77de8400f3b9a0113d6bb8a3b':
  Remove libstdc++ include files.

Change-Id: Id8fe62f6d8f65324c2c7891463b1a0d1c5409885

8 years agoMerge "Remove libstdc++ include files."
Treehugger Robot [Fri, 27 May 2016 23:36:18 +0000 (23:36 +0000)]
Merge "Remove libstdc++ include files."

8 years agoRemove libstdc++ include files.
Elliott Hughes [Fri, 27 May 2016 00:35:00 +0000 (17:35 -0700)]
Remove libstdc++ include files.

We still need <new> for bionic, and to build libstdc++.

Change-Id: Ic7b26340576a5355007a06db9c1bec395be49ae1

8 years agoMerge "Improve diagnostics from the assembler __strcpy_chk routines." am: 2f82dc50ed
Elliott Hughes [Fri, 27 May 2016 15:33:09 +0000 (15:33 +0000)]
Merge "Improve diagnostics from the assembler __strcpy_chk routines." am: 2f82dc50ed
am: 1c1b6cea82

* commit '1c1b6cea82b9fe8aa1b1c4bcde7d0cbb7cd5a01f':
  Improve diagnostics from the assembler __strcpy_chk routines.

Change-Id: I02056119cadfa76722da81851e832288b93c7508

8 years agoMerge "Improve diagnostics from the assembler __strcpy_chk routines."
Elliott Hughes [Fri, 27 May 2016 15:29:25 +0000 (15:29 +0000)]
Merge "Improve diagnostics from the assembler __strcpy_chk routines."
am: 2f82dc50ed

* commit '2f82dc50edd86fbc5e28e3695c5615f8325b2cd6':
  Improve diagnostics from the assembler __strcpy_chk routines.

Change-Id: I477c65a876906c1f837c3a1db7f59688c758a879

8 years agoMerge "Improve diagnostics from the assembler __strcpy_chk routines."
Elliott Hughes [Fri, 27 May 2016 15:19:09 +0000 (15:19 +0000)]
Merge "Improve diagnostics from the assembler __strcpy_chk routines."

8 years agoImprove diagnostics from the assembler __strcpy_chk routines.
Elliott Hughes [Thu, 26 May 2016 23:38:34 +0000 (16:38 -0700)]
Improve diagnostics from the assembler __strcpy_chk routines.

Change-Id: Ib95b598f7f8338cc1a618c00232a4259dc4a6319

8 years agoMerge "Improve diagnostics from the assembler __strcat_chk routines." am: a3c2df9378
Elliott Hughes [Thu, 26 May 2016 23:12:09 +0000 (23:12 +0000)]
Merge "Improve diagnostics from the assembler __strcat_chk routines." am: a3c2df9378
am: 7f1ded75e8

* commit '7f1ded75e8d8e5aaf5265682d1111006e9d7b01b':
  Improve diagnostics from the assembler __strcat_chk routines.

Change-Id: Idb85a39d0ef19347393697f88cfb4ca67affe611

8 years agoMerge "Improve diagnostics from the assembler __strcat_chk routines."
Elliott Hughes [Thu, 26 May 2016 23:09:32 +0000 (23:09 +0000)]
Merge "Improve diagnostics from the assembler __strcat_chk routines."
am: a3c2df9378

* commit 'a3c2df93789bb7536bd96a01bbf952b6fcee269b':
  Improve diagnostics from the assembler __strcat_chk routines.

Change-Id: I376224af1855c3505d25269a3735814cb59bec70

8 years agoMerge "Improve diagnostics from the assembler __strcat_chk routines."
Treehugger Robot [Thu, 26 May 2016 23:01:25 +0000 (23:01 +0000)]
Merge "Improve diagnostics from the assembler __strcat_chk routines."

8 years agoImprove diagnostics from the assembler __strcat_chk routines.
Elliott Hughes [Thu, 26 May 2016 00:01:31 +0000 (17:01 -0700)]
Improve diagnostics from the assembler __strcat_chk routines.

Change-Id: I44cbe5389c66de6618e581a6e302eea22c39d6fb

8 years agoMerge "Update the "adding a syscall" docs." am: fdedd86070
Elliott Hughes [Thu, 26 May 2016 21:50:18 +0000 (21:50 +0000)]
Merge "Update the "adding a syscall" docs." am: fdedd86070
am: bd3e9f6241

* commit 'bd3e9f6241694ca01b3430649ec17cb11c52abc7':
  Update the "adding a syscall" docs.

Change-Id: I53384453fcb949e1eefd1dc9ebb48243d0c9e346

8 years agoMerge "Update the "adding a syscall" docs."
Elliott Hughes [Thu, 26 May 2016 21:47:54 +0000 (21:47 +0000)]
Merge "Update the "adding a syscall" docs."
am: fdedd86070

* commit 'fdedd86070dcbcbdaa14745b2c1d65b7b7728ad8':
  Update the "adding a syscall" docs.

Change-Id: Ie979c0c7d8d6038bd153faae1aee1a19a147df94

8 years agoMerge "Update the "adding a syscall" docs."
Treehugger Robot [Thu, 26 May 2016 21:41:20 +0000 (21:41 +0000)]
Merge "Update the "adding a syscall" docs."

8 years agoUpdate the "adding a syscall" docs.
Elliott Hughes [Thu, 26 May 2016 20:55:37 +0000 (13:55 -0700)]
Update the "adding a syscall" docs.

Change-Id: I78adafb1c1c491f641a82a02ad7f03cd3f8c7d1e

8 years agoMerge "Don\'t use __u64/__u32 in <sys/user.h>." am: 8c2467ae07
Josh Gao [Thu, 26 May 2016 00:36:12 +0000 (00:36 +0000)]
Merge "Don\'t use __u64/__u32 in <sys/user.h>." am: 8c2467ae07
am: 65d3e95e2c

* commit '65d3e95e2ca436a0d4bc9f215ae337c2baecb4c0':
  Don't use __u64/__u32 in <sys/user.h>.

Change-Id: I4b40ebf20cbc30f43cd71aad57c81eed19a1779f

8 years agoMerge "Don\'t use __u64/__u32 in <sys/user.h>."
Josh Gao [Thu, 26 May 2016 00:28:18 +0000 (00:28 +0000)]
Merge "Don\'t use __u64/__u32 in <sys/user.h>."
am: 8c2467ae07

* commit '8c2467ae07a2f41c1dce6ace714dab5a5cb85baf':
  Don't use __u64/__u32 in <sys/user.h>.

Change-Id: I6bbde8088f991252e201d645f3d398abec83983b

8 years agoMerge "Don't use __u64/__u32 in <sys/user.h>."
Treehugger Robot [Thu, 26 May 2016 00:19:14 +0000 (00:19 +0000)]
Merge "Don't use __u64/__u32 in <sys/user.h>."

8 years agoDon't use __u64/__u32 in <sys/user.h>.
Josh Gao [Wed, 25 May 2016 22:18:14 +0000 (15:18 -0700)]
Don't use __u64/__u32 in <sys/user.h>.

The typedefs for __u64 and __u32 aren't in scope in this file, so
switch fields declared with these to use the matching underlying type.

Bug: http://b/28178111
Change-Id: Id4eec1f7dc81d77e78043227c15e621debe3a48a

8 years agoMerge "Update documentation for malloc debug." am: e85de5b103
Christopher Ferris [Wed, 25 May 2016 20:57:52 +0000 (20:57 +0000)]
Merge "Update documentation for malloc debug." am: e85de5b103
am: 774da1b430

* commit '774da1b43006f8fb14a4ebf4d80c3fec88914586':
  Update documentation for malloc debug.

Change-Id: Ia5521c6fa9b705346f8eb8d372c4cca168353206

8 years agoMerge "Update documentation for malloc debug."
Christopher Ferris [Wed, 25 May 2016 20:53:11 +0000 (20:53 +0000)]
Merge "Update documentation for malloc debug."
am: e85de5b103

* commit 'e85de5b103388f047cc307a362ee8cdc6ef010ec':
  Update documentation for malloc debug.

Change-Id: I27cffc42b17516fe2b532973c47b3266f6cec54b

8 years agoMerge "Update documentation for malloc debug."
Christopher Ferris [Wed, 25 May 2016 20:37:45 +0000 (20:37 +0000)]
Merge "Update documentation for malloc debug."

8 years agoUpdate documentation for malloc debug.
Christopher Ferris [Wed, 25 May 2016 20:04:29 +0000 (13:04 -0700)]
Update documentation for malloc debug.

Add a new document that describes the previous version of malloc debug.

Add a small update to the current documentation to indicate it only
applies to N and later.

Change-Id: Ief74c253ba79018777aa688bde7f5b35319fa4d4

8 years agoCorrectly handle the case of empty LD_PRELOAD entries
Dimitry Ivanov [Wed, 25 May 2016 06:53:22 +0000 (06:53 +0000)]
Correctly handle the case of empty LD_PRELOAD entries
am: bda20e78f0

* commit 'bda20e78f0f314dbbf0f0bbcf0740cf2d6a4b85e':
  Correctly handle the case of empty LD_PRELOAD entries

Change-Id: I69698e18ff21d1e6a9f45267d1c3d1718aa21d09

8 years agoMerge "Correctly handle the case of empty LD_PRELOAD entries" am: 5fa5717674
Dimitry Ivanov [Tue, 24 May 2016 23:25:02 +0000 (23:25 +0000)]
Merge "Correctly handle the case of empty LD_PRELOAD entries" am: 5fa5717674
am: 5ea378b850

* commit '5ea378b8509baea2c7523999c6803dbd8a0ec647':
  Correctly handle the case of empty LD_PRELOAD entries

Change-Id: I09b8697cc4b0f716e21ec92dd7870bda3ffea9d7

8 years agoMerge "Correctly handle the case of empty LD_PRELOAD entries"
Dimitry Ivanov [Tue, 24 May 2016 23:21:52 +0000 (23:21 +0000)]
Merge "Correctly handle the case of empty LD_PRELOAD entries"
am: 5fa5717674

* commit '5fa57176746b78a3c42b909104d9cf4690ff14cb':
  Correctly handle the case of empty LD_PRELOAD entries

Change-Id: Id2ed8186d371aafebe14c393f1e051050cf18ea6

8 years agoCorrectly handle the case of empty LD_PRELOAD entries
Dimitry Ivanov [Tue, 24 May 2016 21:29:56 +0000 (14:29 -0700)]
Correctly handle the case of empty LD_PRELOAD entries

Previous android versions ignored empty entries for LD_PRELOAD

Bug: http://b/28936779
Change-Id: I757478fe0c604ee378186511cb13b757fd9a9864
(cherry picked from commit d799b2bb7e9335786ab4596757d871e4a7722ff0)

8 years agoMerge "Correctly handle the case of empty LD_PRELOAD entries"
Dimitry Ivanov [Tue, 24 May 2016 23:13:06 +0000 (23:13 +0000)]
Merge "Correctly handle the case of empty LD_PRELOAD entries"

8 years agoCorrectly handle the case of empty LD_PRELOAD entries
Dimitry Ivanov [Tue, 24 May 2016 21:29:56 +0000 (14:29 -0700)]
Correctly handle the case of empty LD_PRELOAD entries

Previous android versions ignored empty entries for LD_PRELOAD

Bug: http://b/28936779
Change-Id: I757478fe0c604ee378186511cb13b757fd9a9864

8 years agoFix comments since we are keeping grey-list in N
Dimitry Ivanov [Tue, 24 May 2016 15:46:01 +0000 (15:46 +0000)]
Fix comments since we are keeping grey-list in N
am: f1d4a49598

* commit 'f1d4a4959880eaf0f9c789c43c1bae383a605d9f':
  Fix comments since we are keeping grey-list in N

Change-Id: Ifd03c569842d6894d4f3d39c86673e3358ed76c0

8 years agoFix comments since we are keeping grey-list in N
Dimitry Ivanov [Tue, 24 May 2016 00:33:27 +0000 (17:33 -0700)]
Fix comments since we are keeping grey-list in N

Also add warning about removing access to greylisted libs
in the future Android releases.

Bug: http://b/26427993
Change-Id: I1aaa94e3bde09ab0f6594e9170d479cdb3e77d42

8 years agoMerge "Change use of /data to /data/local/tmp." am: d1c96e2159
Christopher Ferris [Mon, 23 May 2016 21:50:25 +0000 (21:50 +0000)]
Merge "Change use of /data to /data/local/tmp." am: d1c96e2159
am: 3a39e20cb1

* commit '3a39e20cb18c8f5d806986f64fbb0d108e6abd34':
  Change use of /data to /data/local/tmp.

Change-Id: I651ecde789bae1f19be8cf0e10e4e8937bfcfe74

8 years agoMerge "Change use of /data to /data/local/tmp."
Christopher Ferris [Mon, 23 May 2016 21:46:20 +0000 (21:46 +0000)]
Merge "Change use of /data to /data/local/tmp."
am: d1c96e2159

* commit 'd1c96e21593fe5ff4c2989b9902036c65532b4fd':
  Change use of /data to /data/local/tmp.

Change-Id: Ia515ebb9b9cb75d1ca2135bb91260f22c53e476b

8 years agoMerge "Change use of /data to /data/local/tmp."
Treehugger Robot [Mon, 23 May 2016 21:39:22 +0000 (21:39 +0000)]
Merge "Change use of /data to /data/local/tmp."

8 years agoMerge "Do not resolve caller_ns when it is not needed" into nyc-dev
Dimitry Ivanov [Mon, 23 May 2016 21:08:59 +0000 (21:08 +0000)]
Merge "Do not resolve caller_ns when it is not needed" into nyc-dev
am: 5b19771009

* commit '5b19771009d4eb6dfc1e560ceff608cc06050137':
  Do not resolve caller_ns when it is not needed

Change-Id: Ib0d25b2918a37844d52d4a1fc6f79d2eb3eb57bf

8 years agoMerge "Do not resolve caller_ns when it is not needed" into nyc-dev
TreeHugger Robot [Mon, 23 May 2016 21:01:17 +0000 (21:01 +0000)]
Merge "Do not resolve caller_ns when it is not needed" into nyc-dev

8 years agoMerge "Run fsync tests on mutable filesystem." am: 878004f5b0
Shuhei Takahashi [Mon, 23 May 2016 20:54:20 +0000 (20:54 +0000)]
Merge "Run fsync tests on mutable filesystem." am: 878004f5b0
am: 94abd02bef  -s ours

* commit '94abd02befcd5417ad12e25a2d27e3e9e9709f50':
  Run fsync tests on mutable filesystem.

Change-Id: I4dd432d5fb3d756538f2ef6cc2f71c04e75770a1

8 years agoMerge "Run fsync tests on mutable filesystem."
Shuhei Takahashi [Mon, 23 May 2016 20:47:55 +0000 (20:47 +0000)]
Merge "Run fsync tests on mutable filesystem."
am: 878004f5b0

* commit '878004f5b00e0ee062bd63cec87b465c40aff1b6':
  Run fsync tests on mutable filesystem.

Change-Id: I51950a056db2d5a123cac6d8cb7fb11db815c431

8 years agoMerge "Run fsync tests on mutable filesystem."
Treehugger Robot [Mon, 23 May 2016 20:36:33 +0000 (20:36 +0000)]
Merge "Run fsync tests on mutable filesystem."

8 years agoChange use of /data to /data/local/tmp.
Christopher Ferris [Fri, 20 May 2016 22:32:47 +0000 (15:32 -0700)]
Change use of /data to /data/local/tmp.

The unistd fsync/fdatasync were changed to use /data from /.
Unfortunately, this directory is unreadable unless you are root, so
change this path to /data/local/tmp.

Bug: 28885777
(cherry picked from commit 7e53843f7b4c061920d1742c8e70a50509d83a53)

Change-Id: I14514e985af8039ab63ac2bcf890f8d04dd82ccb

8 years agoRun fsync tests on mutable filesystem.
Shuhei Takahashi [Wed, 11 May 2016 05:04:09 +0000 (14:04 +0900)]
Run fsync tests on mutable filesystem.

The purpose of those tests is to ensure fsync succeeds for
directories. However, they try to call fsync for / (the root
filesystem) that is usually mounted read-only, which does not
make sense because the whole point of fsync is to flush
uncommitted changes to the filesystem.

In fact, some well-known read-only filesystems (e.g. squashfs)
does not support fsync, so these tests fail if we use such
filesystems as the root filesystem.

This patch changes the tests to call fsync against /data
instead. /data is a user data partition and should be always
mounted read-write.

Bug: 28681455

(cherry picked from commit cfa3262ce46fdec81cb011ec78273df68c325c9c)

Change-Id: I3e50f7b6ef07e96138711eef1f678f90cc9eb632

8 years agoDo not resolve caller_ns when it is not needed
Dimitry Ivanov [Mon, 23 May 2016 17:31:11 +0000 (10:31 -0700)]
Do not resolve caller_ns when it is not needed

create_namespace resolves caller namespace only
when caller did not explicitly specify parent namespace.

This saves about 25 microseconds for the case when
parent_namepsace is not null (for example when creating
second classloader for the app).

Bug: http://b/28801010
Change-Id: I50ded272c931db701e5a1d8c88ed5ffb13416539
(cherry picked from commit 5240863ed559cb4c2b121ddfbf6b3d78ac15e38f)

8 years agoMerge "Change use of /data to /data/local/tmp. am: 7e53843f7b" into nyc-dev-plus...
Android Build Merger (Role) [Mon, 23 May 2016 19:43:39 +0000 (19:43 +0000)]
Merge "Change use of /data to /data/local/tmp. am: 7e53843f7b" into nyc-dev-plus-aosp

8 years agoChange use of /data to /data/local/tmp.
Christopher Ferris [Mon, 23 May 2016 19:43:32 +0000 (19:43 +0000)]
Change use of /data to /data/local/tmp.
am: 7e53843f7b

* commit '7e53843f7b4c061920d1742c8e70a50509d83a53':
  Change use of /data to /data/local/tmp.

Change-Id: I6ce7588e5a85b8e6d6041ef0081620670a551c45

8 years agoMerge "Do not resolve caller_ns when it is not needed" am: ccfcc8ced7
Dimitry Ivanov [Mon, 23 May 2016 19:43:29 +0000 (19:43 +0000)]
Merge "Do not resolve caller_ns when it is not needed" am: ccfcc8ced7
am: 56234ce04e

* commit '56234ce04e20068c89f2c2e664839da237311482':
  Do not resolve caller_ns when it is not needed

Change-Id: If7a3c3aef40bbd053891a9c4d26b5f0eac104c44

8 years agoMerge "Do not resolve caller_ns when it is not needed"
Dimitry Ivanov [Mon, 23 May 2016 19:40:27 +0000 (19:40 +0000)]
Merge "Do not resolve caller_ns when it is not needed"
am: ccfcc8ced7

* commit 'ccfcc8ced7346abdf80f4b9f77b5cc0b2164bf15':
  Do not resolve caller_ns when it is not needed

Change-Id: I50a487dea192a8083db55bc28ce3de90e1491058

8 years agoMerge "Do not resolve caller_ns when it is not needed"
Dimitry Ivanov [Mon, 23 May 2016 19:35:45 +0000 (19:35 +0000)]
Merge "Do not resolve caller_ns when it is not needed"

8 years agoMerge "Make all rt_sigtimedwait signatures match." am: c7e0ae064d
Elliott Hughes [Mon, 23 May 2016 19:31:12 +0000 (19:31 +0000)]
Merge "Make all rt_sigtimedwait signatures match." am: c7e0ae064d
am: 38ba0203dd

* commit '38ba0203dd3b9067095de43192cdac5a8477dc2f':
  Make all rt_sigtimedwait signatures match.

Change-Id: Ic2be93191e911612ae57516995fcbbb91408206d

8 years agoMerge "Make all rt_sigtimedwait signatures match."
Elliott Hughes [Mon, 23 May 2016 19:28:15 +0000 (19:28 +0000)]
Merge "Make all rt_sigtimedwait signatures match."
am: c7e0ae064d

* commit 'c7e0ae064de3905459dfa84640fafda06a2f9d61':
  Make all rt_sigtimedwait signatures match.

Change-Id: I3856b946f7ae7ef7ad7976c2d1bf0485921ad3e8

8 years agoMerge "Make all rt_sigtimedwait signatures match."
Treehugger Robot [Mon, 23 May 2016 19:16:26 +0000 (19:16 +0000)]
Merge "Make all rt_sigtimedwait signatures match."

8 years agoMake all rt_sigtimedwait signatures match.
Elliott Hughes [Mon, 23 May 2016 18:11:12 +0000 (11:11 -0700)]
Make all rt_sigtimedwait signatures match.

There's no change to the generated stubs, because the script only cares
that this is a pointer type, not what it's a pointer to.

Change-Id: I766720965f0f3d201fc90677a076b26870485377

8 years agoDo not resolve caller_ns when it is not needed
Dimitry Ivanov [Mon, 23 May 2016 17:31:11 +0000 (10:31 -0700)]
Do not resolve caller_ns when it is not needed

create_namespace resolves caller namespace only
when caller did not explicitly specify parent namespace.

This saves about 25 microseconds for the case when
parent_namepsace is not null (for example when creating
second classloader for the app).

Bug: http://b/28801010
Change-Id: I50ded272c931db701e5a1d8c88ed5ffb13416539

8 years agoChange use of /data to /data/local/tmp.
Christopher Ferris [Fri, 20 May 2016 22:32:47 +0000 (15:32 -0700)]
Change use of /data to /data/local/tmp.

The unistd fsync/fdatasync were changed to use /data from /.
Unfortunately, this directory is unreadable unless you are root, so
change this path to /data/local/tmp.

Bug: 28885777
Change-Id: Ia88da7a05c8f1b05fbd45ef2e8c55ba0c3368164

8 years agoMerge "Updated to v4.4.11 kernel headers." am: 51ee871e19
Christopher Ferris [Fri, 20 May 2016 01:39:43 +0000 (01:39 +0000)]
Merge "Updated to v4.4.11 kernel headers." am: 51ee871e19
am: b1081bdaaa

* commit 'b1081bdaaa56e71b2ffd757dccda38b7327c1a98':
  Updated to v4.4.11 kernel headers.

Change-Id: I26b58f6b0b15ecb646d07bdb89c6746fc76b2773

8 years agoMerge "Updated to v4.4.11 kernel headers."
Christopher Ferris [Fri, 20 May 2016 01:37:15 +0000 (01:37 +0000)]
Merge "Updated to v4.4.11 kernel headers."
am: 51ee871e19

* commit '51ee871e19601e1edbac948f961fc557b537870a':
  Updated to v4.4.11 kernel headers.

Change-Id: I356c2df708159a9031fe6219406fee8f28cda1e3

8 years agoMerge "Updated to v4.4.11 kernel headers."
Christopher Ferris [Fri, 20 May 2016 01:27:47 +0000 (01:27 +0000)]
Merge "Updated to v4.4.11 kernel headers."

8 years agoUpdated to v4.4.11 kernel headers.
Christopher Ferris [Thu, 19 May 2016 23:36:40 +0000 (16:36 -0700)]
Updated to v4.4.11 kernel headers.

Change-Id: I6b55a921670d32d7bfff3c304d8001058409d3f7

8 years agoMerge "Do not check zip-entry validity on create_namespace" am: 3c095578ee
Dimitry Ivanov [Thu, 19 May 2016 18:53:10 +0000 (18:53 +0000)]
Merge "Do not check zip-entry validity on create_namespace" am: 3c095578ee
am: 129bfad028

* commit '129bfad028ee192531f1a96ef14a9f90fab690fb':
  Do not check zip-entry validity on create_namespace

Change-Id: I761f9790dc3e4e1e435c56663939e5ac56daffd3

8 years agoMerge "Do not check zip-entry validity on create_namespace"
Dimitry Ivanov [Thu, 19 May 2016 18:48:21 +0000 (18:48 +0000)]
Merge "Do not check zip-entry validity on create_namespace"
am: 3c095578ee

* commit '3c095578eefe40a8f8d222520dc85eec1bf752ad':
  Do not check zip-entry validity on create_namespace

Change-Id: I3c3a41fd66da8a09ba9f9773133de7eab29975db

8 years agoMerge "Do not check zip-entry validity on create_namespace"
Treehugger Robot [Thu, 19 May 2016 18:42:34 +0000 (18:42 +0000)]
Merge "Do not check zip-entry validity on create_namespace"

8 years agoMerge "Do not check zip-entry validity on create_namespace" into nyc-dev
Dimitry Ivanov [Thu, 19 May 2016 18:14:01 +0000 (18:14 +0000)]
Merge "Do not check zip-entry validity on create_namespace" into nyc-dev
am: c912ed0519

* commit 'c912ed05196d18b4f9ce0876b52b600437d1b497':
  Do not check zip-entry validity on create_namespace

Change-Id: I2690af1feed2f5dcd2917b32b43cd84112485afd

8 years agoDo not check zip-entry validity on create_namespace
Dimitry Ivanov [Thu, 19 May 2016 01:14:19 +0000 (18:14 -0700)]
Do not check zip-entry validity on create_namespace

This operation is the most expensive one and since it is
unlikely that the zip-entry name is invalid (given that it
is constructed by the platform) - it can removed.

The worst case scenario is dlopen() of non-existing libraries
taking more time. And this use-case is not on the critical path.

Bug: http://b/28801010
Change-Id: I10a6b0bf342404ab72f0f5102ebf19f6c06ee6bf
(cherry picked from commit a5c1c8e820ec3057f798f675bf8af19a4a29b396)

8 years agoMerge "Do not check zip-entry validity on create_namespace" into nyc-dev
Dimitry Ivanov [Thu, 19 May 2016 17:46:10 +0000 (17:46 +0000)]
Merge "Do not check zip-entry validity on create_namespace" into nyc-dev

8 years agoDo not check zip-entry validity on create_namespace
Dimitry Ivanov [Thu, 19 May 2016 01:14:19 +0000 (18:14 -0700)]
Do not check zip-entry validity on create_namespace

This operation is the most expensive one and since it is
unlikely that the zip-entry name is invalid (given that it
is constructed by the platform) - it can removed.

The worst case scenario is dlopen() of non-existing libraries
taking more time. And this use-case is not on the critical path.

Bug: http://b/28801010
Change-Id: I10a6b0bf342404ab72f0f5102ebf19f6c06ee6bf

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c02...
Daniel Xie [Thu, 19 May 2016 02:19:12 +0000 (02:19 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028 am: 0fab155cf8 am: b46bb761d5 am: 1e44a6e1ed am: 97ecf98be3
am: e9cb77f082

* commit 'e9cb77f082c224f31c4c4d04a613594f459a94b8':
  Run fsync tests on mutable filesystem.

Change-Id: I521a216ed29d6f4cb4596ef73e83fbbf4bf73d4a

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c02...
Shuhei Takahashi [Thu, 19 May 2016 02:16:14 +0000 (02:16 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028 am: 0fab155cf8 am: b46bb761d5 am: 1e44a6e1ed
am: 97ecf98be3

* commit '97ecf98be3efaf196b19fc98e14dbbbc0e58c373':
  Run fsync tests on mutable filesystem.

Change-Id: Id8b620cdc55da0bd2f473a176eac0fb921369d32

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c02...
Daniel Xie [Thu, 19 May 2016 02:13:12 +0000 (02:13 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028 am: 0fab155cf8 am: b46bb761d5
am: 1e44a6e1ed

* commit '1e44a6e1ed6321510d8fbb48bc618a376fc93cc4':
  Run fsync tests on mutable filesystem.

Change-Id: If4ffd6e00b4f6c5d099fea3b20027efd72256ce6

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c02...
Shuhei Takahashi [Thu, 19 May 2016 02:10:13 +0000 (02:10 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028 am: 0fab155cf8
am: b46bb761d5

* commit 'b46bb761d50e2b0cfe8ae597e202a7e05b0eaa5a':
  Run fsync tests on mutable filesystem.

Change-Id: I212ee7226d5a5aa942696c96a49d2f74b1be9c93

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028
Daniel Xie [Thu, 19 May 2016 02:07:14 +0000 (02:07 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev am: de1f02c028
am: 0fab155cf8

* commit '0fab155cf861ee12e8b01b6339ef56524d56ebe1':
  Run fsync tests on mutable filesystem.

Change-Id: Iadcaa7329c8ace2a898860dce99ae1a9cf5f2757

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev
Shuhei Takahashi [Thu, 19 May 2016 02:04:05 +0000 (02:04 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev
am: de1f02c028

* commit 'de1f02c02815c06a6123e0d857ca217534ffbd47':
  Run fsync tests on mutable filesystem.

Change-Id: I0e1cb73b9bde33672a1ef944b75c8bb180976304

8 years agoMerge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev
Daniel Xie [Thu, 19 May 2016 01:57:22 +0000 (01:57 +0000)]
Merge "Run fsync tests on mutable filesystem." into marshmallow-cts-dev

8 years agoMerge "Force clang for bionic" am: 7d99bd38e4
Colin Cross [Wed, 18 May 2016 22:09:41 +0000 (22:09 +0000)]
Merge "Force clang for bionic" am: 7d99bd38e4
am: 3eed7d1c8f

* commit '3eed7d1c8f7383b9cbe331ee4d9d24785a618bd4':
  Force clang for bionic

Change-Id: Ic4ba74a03a5c78670fbcec46e8b1b1d39f7d3659

8 years agoMerge "Force clang for bionic"
Colin Cross [Wed, 18 May 2016 22:07:07 +0000 (22:07 +0000)]
Merge "Force clang for bionic"
am: 7d99bd38e4

* commit '7d99bd38e479170d4d1d2e55c5df97b1cacaebfd':
  Force clang for bionic

Change-Id: Ib6665e40ab6c23861ded88d4b29c6bb6ae7b970c

8 years agoMerge "Force clang for bionic"
Treehugger Robot [Wed, 18 May 2016 21:58:58 +0000 (21:58 +0000)]
Merge "Force clang for bionic"

8 years agoForce clang for bionic
Colin Cross [Wed, 18 May 2016 21:06:22 +0000 (14:06 -0700)]
Force clang for bionic

Bionic will only compile with clang, and Android.mk files force clang,
turn it on in Android.bp.

Change-Id: I9db06298adfeab4eeef031d88aa310776cad3af0

8 years agoMerge "Fix dlopen of main executable by absolute path" into nyc-dev
Dimitry Ivanov [Wed, 18 May 2016 07:40:10 +0000 (07:40 +0000)]
Merge "Fix dlopen of main executable by absolute path" into nyc-dev
am: 041cf17cdd

* commit '041cf17cdd900f807d8d39d04802e9f31f2ffd74':
  Fix dlopen of main executable by absolute path

Change-Id: I1d543ce0d14da2c20783fe179a7ce675010cac3d

8 years agolinker: Allow caller to specify parent namespace
Dimitry Ivanov [Wed, 18 May 2016 07:40:04 +0000 (07:40 +0000)]
linker: Allow caller to specify parent namespace
am: 49cfc899a3

* commit '49cfc899a3708fae9175e44c0c02cd479fda8b36':
  linker: Allow caller to specify parent namespace

Change-Id: I39a3d549a881dc66877bd051956b54be617c25b5

8 years agoMerge "Fix dlopen of main executable by absolute path" into nyc-dev
Dimitry Ivanov [Wed, 18 May 2016 07:33:50 +0000 (07:33 +0000)]
Merge "Fix dlopen of main executable by absolute path" into nyc-dev

8 years agoMerge "linker: Allow caller to specify parent namespace" am: 42abf3d241
Dimitry Ivanov [Tue, 17 May 2016 23:13:31 +0000 (23:13 +0000)]
Merge "linker: Allow caller to specify parent namespace" am: 42abf3d241
am: 88bdbe4726

* commit '88bdbe4726141d8ee1aa447a55f737cee015aee7':
  linker: Allow caller to specify parent namespace

Change-Id: Ib429a07741555c794a856a1324570e2bc0a5d91a

8 years agoMerge "linker: Allow caller to specify parent namespace"
Dimitry Ivanov [Tue, 17 May 2016 23:05:37 +0000 (23:05 +0000)]
Merge "linker: Allow caller to specify parent namespace"
am: 42abf3d241

* commit '42abf3d241b8fd59c3911bd04f13cd4e40e46448':
  linker: Allow caller to specify parent namespace

Change-Id: I4ed03d4b426f004a0fd1668c12dd4990c39c02cb

8 years agoMerge "Fix dlopen of main executable by absolute path" am: 49fbce11e6
Dimitry Ivanov [Tue, 17 May 2016 23:05:36 +0000 (23:05 +0000)]
Merge "Fix dlopen of main executable by absolute path" am: 49fbce11e6
am: 9854a94127

* commit '9854a94127290e798a97dea3de10f5def106d1a8':
  Fix dlopen of main executable by absolute path

Change-Id: I9e7570832f6db0a3d768aab8d0cf5420071f6295

8 years agolinker: Allow caller to specify parent namespace
Dimitry Ivanov [Thu, 12 May 2016 22:20:21 +0000 (15:20 -0700)]
linker: Allow caller to specify parent namespace

This change enables apps to share libraries opened
with RTLD_GLOBAL between different classloader namespaces.

The new parameter to create_namespace allows native_loader
to instruct the linker to share libraries belonging to
global group from a specified namespace instead of
using the caller_ns.

Bug: http://b/28560538
Bug: https://code.google.com/p/android/issues/detail?id=208458
Change-Id: I5d0c62730bbed19cdeb16c7559c74aa262a2475f
(cherry picked from commit fc2da53440383fe1026e0eb287d643b577c2707d)

8 years agoMerge "Fix dlopen of main executable by absolute path"
Dimitry Ivanov [Tue, 17 May 2016 22:57:38 +0000 (22:57 +0000)]
Merge "Fix dlopen of main executable by absolute path"
am: 49fbce11e6

* commit '49fbce11e6373ad4a791d44a678f37ecb9498ba2':
  Fix dlopen of main executable by absolute path

Change-Id: Ie39b2efedff37ea7fc8b8a55573a557e2bf7cd15

8 years agoMerge "linker: Allow caller to specify parent namespace"
Treehugger Robot [Tue, 17 May 2016 22:43:00 +0000 (22:43 +0000)]
Merge "linker: Allow caller to specify parent namespace"

8 years agoFix dlopen of main executable by absolute path
Dimitry Ivanov [Tue, 17 May 2016 20:29:37 +0000 (13:29 -0700)]
Fix dlopen of main executable by absolute path

This CL adds initialization of inode for the main executable
which enables linker to resolve the correct soinfo when
application calls dlopen with absolute path to the
main executable.

Bug: http://b/28420266
Change-Id: I102e07bde454bd44c6e46075e3faeeb5092830d8
(cherry picked from commit 2ba1cf39ae6087249a839ec7b3793d4d4fa75438)

8 years agoMerge "Fix dlopen of main executable by absolute path"
Dimitry Ivanov [Tue, 17 May 2016 22:25:48 +0000 (22:25 +0000)]
Merge "Fix dlopen of main executable by absolute path"

8 years agoFix dlopen of main executable by absolute path
Dimitry Ivanov [Tue, 17 May 2016 20:29:37 +0000 (13:29 -0700)]
Fix dlopen of main executable by absolute path

This CL adds initialization of inode for the main executable
which enables linker to resolve the correct soinfo when
application calls dlopen with absolute path to the
main executable.

Bug: http://b/28420266
Change-Id: I102e07bde454bd44c6e46075e3faeeb5092830d8

8 years agolinker: Allow caller to specify parent namespace
Dimitry Ivanov [Thu, 12 May 2016 22:20:21 +0000 (15:20 -0700)]
linker: Allow caller to specify parent namespace

This change enables apps to share libraries opened
with RTLD_GLOBAL between different classloader namespaces.

The new parameter to create_namespace allows native_loader
to instruct the linker to share libraries belonging to
global group from a specified namespace instead of
using the caller_ns.

Bug: http://b/28560538
Bug: https://code.google.com/p/android/issues/detail?id=208458
Change-Id: I5d0c62730bbed19cdeb16c7559c74aa262a2475f

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 19:15:31 +0000 (19:15 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours am: d95336ac42 am: 0993319651 am: 0ae30d9af8 am: 83b0671a33 am: 10a48fb557 am: fd84d78b1e am: b4d92e1362 am: ad80daaab5 am: 7189a4ccc2
am: d120719e25

* commit 'd120719e250d3f112b1c71ae775cab09c70191cd':
  Fix overflow testing in sbrk.

Change-Id: I73f8e393da184b7f4461d26d5d22b30ad75ae641

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 19:12:23 +0000 (19:12 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours am: d95336ac42 am: 0993319651 am: 0ae30d9af8 am: 83b0671a33 am: 10a48fb557 am: fd84d78b1e am: b4d92e1362 am: ad80daaab5
am: 7189a4ccc2

* commit '7189a4ccc23598eeca0d769bc70916b6a9fe3bf6':
  Fix overflow testing in sbrk.

Change-Id: I3ede782a21037ce189b093dc4448ac5154a11f1b

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 19:09:55 +0000 (19:09 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518 am: b6789dc3b5 am: d54ed72cd8 am: 02f7869aef am: 1d59a2d6c3 am: 2f78cab202 am: b472137abf am: 0d7fdf1499
am: 74d59a0302

* commit '74d59a0302a3c3c0a83f96110e0f6949ab84ba91':
  Fix brk/sbrk error checking.

Change-Id: Ie3553f759197b6584e0206c72483dd9f030ce975