OSDN Git Service

android-x86/bionic.git
7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f...
Elliott Hughes [Thu, 8 Dec 2016 21:07:17 +0000 (21:07 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f am: f277bb86c6
am: 389e3e92e2

Change-Id: Ie935c8491aa18867a5087ca4cf707eec318b85f6

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f
Elliott Hughes [Thu, 8 Dec 2016 21:02:16 +0000 (21:02 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1 am: dc0492ac4f
am: f277bb86c6

Change-Id: I93c52807f84160dee04c93a0cdeee0ddf758db1b

7 years agoCheck for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1
Elliott Hughes [Thu, 8 Dec 2016 20:57:15 +0000 (20:57 +0000)]
Check for bad packets in getaddrinfo.c's getanswer. am: 87c0dba7b1
am: dc0492ac4f

Change-Id: I949b993b8490d27ec180257fcca06d8984940f0f

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Thu, 8 Dec 2016 20:52:15 +0000 (20:52 +0000)]
Check for bad packets in getaddrinfo.c's getanswer.
am: 87c0dba7b1

Change-Id: I3a09f86362797881b4e7cc0ee807d28addf7b342

7 years agoCheck for bad packets in getaddrinfo.c's getanswer.
Elliott Hughes [Mon, 14 Nov 2016 21:56:32 +0000 (13:56 -0800)]
Check for bad packets in getaddrinfo.c's getanswer.

The near duplicate in gethnamaddr.c was already doing so (this fix
is basically copy and pasted from there, but with both copies modified
to avoid skirting undefined behavior).

Bug: http://b/32322088
Test: browser still works
Change-Id: Ied6662be567fb1bddc7ceb138cae1da77fb57976
(cherry picked from commit 27a4459d945e34fabd7166791a5b862ccea83f23)

7 years agoFix a linking error in bionic/tests
Tianjie Xu [Fri, 7 Oct 2016 02:23:05 +0000 (19:23 -0700)]
Fix a linking error in bionic/tests

Fix the following linking error by adding liblog in the makefile:
"system/core/libziparchive/zip_archive.cc:277: error: undefined reference to
'__android_log_error_write'"

The error happens because libziparchive has dependency on liblog. This
error affects the downstream branches of nyc-dev.

Bug: 31251826
Test: mma -j32
Change-Id: Ia42909bbbd150ae0ca9f6aa6b14372f2e0aedccf

8 years agoUpdate timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7
Neil Fuller [Thu, 7 Jul 2016 16:05:31 +0000 (16:05 +0000)]
Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7
am: a884aa8df7

Change-Id: I84612c410e4fea54733ed340b6a6695771bba4d9

8 years agoUpdate timezone data to 2016f am: 88d23859e0
Neil Fuller [Thu, 7 Jul 2016 15:58:57 +0000 (15:58 +0000)]
Update timezone data to 2016f am: 88d23859e0
am: 6c4968a6e7

Change-Id: I2b7bbc586b55719fd80d985c0972084dd25c7ada

8 years agoUpdate timezone data to 2016f
Neil Fuller [Thu, 7 Jul 2016 15:55:47 +0000 (15:55 +0000)]
Update timezone data to 2016f
am: 88d23859e0

Change-Id: I3d0a9287cad7f6ec39174d58bf78f5c4b7e3d3e8

8 years agoUpdate timezone data to 2016f
Neil Fuller [Wed, 6 Jul 2016 14:26:15 +0000 (15:26 +0100)]
Update timezone data to 2016f

The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I30fd2a57fce7473b22ec80f713863ce502293ab9
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29991153

8 years agoUpdate timezone data to 2016f
Neil Fuller [Wed, 6 Jul 2016 14:26:15 +0000 (15:26 +0100)]
Update timezone data to 2016f

The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I1767b5d0f7a11349ecd85c1c16942f4d73172dd0
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29984514

8 years agoMerge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into marshmallow-cts-dev...
Daniel Xie [Wed, 22 Jun 2016 21:41:07 +0000 (21:41 +0000)]
Merge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be
am: e8be35da77  -s ours

Change-Id: I177ca0c55de3b54bd764f6eddf8749325b6cb3f4

8 years agoMerge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into marshmallow-cts-dev...
Daniel Xie [Wed, 22 Jun 2016 21:38:36 +0000 (21:38 +0000)]
Merge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659 am: 99a49f5417
am: 9ced3475be

Change-Id: Ie4afe19fe05d760ce22246fb98ef9f5a8a8a88d2

8 years agoMerge \\\"DO NOT MERGE: push out fix for data dir.\\\" into marshmallow-cts-dev am...
Daniel Xie [Wed, 22 Jun 2016 21:36:06 +0000 (21:36 +0000)]
Merge \\\"DO NOT MERGE: push out fix for data dir.\\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours am: d986ba2659
am: 99a49f5417

Change-Id: I60161d61084359f0ae74c2fdfd9e75b6af5b24d3

8 years agoMerge \\"DO NOT MERGE: push out fix for data dir.\\" into marshmallow-cts-dev am...
Daniel Xie [Wed, 22 Jun 2016 21:33:39 +0000 (21:33 +0000)]
Merge \\"DO NOT MERGE: push out fix for data dir.\\" into marshmallow-cts-dev am: f09a2ff2e6  -s ours
am: d986ba2659

Change-Id: I670ae33ee552d13a25f1071ce042015baf470e22

8 years agoMerge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-dev
Daniel Xie [Wed, 22 Jun 2016 21:31:10 +0000 (21:31 +0000)]
Merge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-dev
am: f09a2ff2e6  -s ours

Change-Id: Icdb05b897a4877b86581b41d1dd7d1a14031172b

8 years agoMerge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-dev
Daniel Xie [Wed, 22 Jun 2016 21:22:03 +0000 (21:22 +0000)]
Merge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-dev

8 years agoDO NOT MERGE: push out fix for data dir.
Daniel Xie [Wed, 22 Jun 2016 21:19:01 +0000 (14:19 -0700)]
DO NOT MERGE: push out fix for data dir.

Change-Id: I97ff02676e7f6008c26ddb5c41eb113b4b62280f

8 years agoUpdate timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea
Neil Fuller [Wed, 22 Jun 2016 10:46:09 +0000 (10:46 +0000)]
Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea
am: 6a0a02efab

Change-Id: I4bba4d1fd498cfe5f30d623940ab385a16146ab4

8 years agoUpdate timezone data to 2016e am: 930bdf8e8c
Neil Fuller [Wed, 22 Jun 2016 10:24:38 +0000 (10:24 +0000)]
Update timezone data to 2016e am: 930bdf8e8c
am: 65f57e4cea

Change-Id: I8f38716470915ebd3d2f266d4e5a102c44c13263

8 years agoUpdate timezone data to 2016e
Neil Fuller [Wed, 22 Jun 2016 10:21:57 +0000 (10:21 +0000)]
Update timezone data to 2016e
am: 930bdf8e8c

Change-Id: I85d734d7c7d02f1d999b536745ae8fc323c9b66c

8 years agoUpdate timezone data to 2016d
Neil Fuller [Wed, 22 Jun 2016 08:57:35 +0000 (08:57 +0000)]
Update timezone data to 2016d
am: 8a35704bea  -s ours

Change-Id: I5df7a5c49c79f4a784433a2849f7a01a58f6bf68

8 years agoRevert \"Update timezone data to 2016b\"
Neil Fuller [Wed, 22 Jun 2016 08:42:07 +0000 (08:42 +0000)]
Revert \"Update timezone data to 2016b\"
am: 5ed031daa3  -s ours

Change-Id: Ic4a684359f4e73f1c0c91cad12c0762b3eac3b8b

8 years agoUpdate timezone data to 2016d
Neil Fuller [Fri, 10 Jun 2016 12:07:43 +0000 (13:07 +0100)]
Update timezone data to 2016d

This change is effectively a cherry-pick of aosp/master commit:
60200a74113bf2da23072523b52aa15490d0b07e

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Bug: 29528355
(cherry picked from commit 2880a020e3859c5febde03be4921e2fbb37f06bf)

Change-Id: I4353a9689e0a21c459259eb5d488ed177acca848

8 years agoRevert "Update timezone data to 2016b"
Neil Fuller [Tue, 21 Jun 2016 10:43:14 +0000 (11:43 +0100)]
Revert "Update timezone data to 2016b"

This reverts commit 7bcee86edcc8cb0f969c719fed9bc3bd04de142f.

This is in preparation for applying the 2016a -> 2016d update
to mnc-dr1.5-dev (commit 2880a020e3859c5febde03be4921e2fbb37f06bf)
which cannot currently be applied because the 2016b update is
present in mnc-dr1.5-dev.

Bug: 29528355

8 years agoUpdate timezone data to 2016e
Neil Fuller [Tue, 21 Jun 2016 10:30:57 +0000 (11:30 +0100)]
Update timezone data to 2016e

  Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Bug: 29240433
Change-Id: I2098aec360bd1ac911e9514fe9dcdf87bdc8778a

8 years agoUpdate timezone data to 2016e
Neil Fuller [Wed, 15 Jun 2016 13:55:44 +0000 (14:55 +0100)]
Update timezone data to 2016e

  Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Change-Id: Iad332b686410c54277fe8efc83b38a1b5e90aeb2

8 years agoUpdate timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8 -s ours
Neil Fuller [Mon, 13 Jun 2016 09:27:23 +0000 (09:27 +0000)]
Update timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8  -s ours
am: d9523aac7c

Change-Id: I191ed4f9c1088a44e9130683236cba8e7947e132

8 years agoUpdate timezone data to 2016d am: 2880a020e3
Neil Fuller [Mon, 13 Jun 2016 09:23:04 +0000 (09:23 +0000)]
Update timezone data to 2016d am: 2880a020e3
am: 9958dc9fe8  -s ours

Change-Id: I1cbbea60adebecefa5aa2d80e75e41d9fe4ec4dc

8 years agoUpdate timezone data to 2016d
Neil Fuller [Mon, 13 Jun 2016 09:04:01 +0000 (09:04 +0000)]
Update timezone data to 2016d
am: 2880a020e3

Change-Id: I38ef0c08d2c63a3510b9c80442f85c1f14bf06d0

8 years agoUpdate timezone data to 2016d
Neil Fuller [Fri, 10 Jun 2016 12:07:43 +0000 (13:07 +0100)]
Update timezone data to 2016d

This change is effectively a cherry-pick of aosp/master commit:
60200a74113bf2da23072523b52aa15490d0b07e

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Change-Id: I1a5491f01e0aae8b571c1ed1fddc1995086b6812

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 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 "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 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 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 "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...
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 "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 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 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 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:06:53 +0000 (19:06 +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

* commit '0d7fdf149998059f4b3ac115d191ab53bf1b2f43':
  Fix brk/sbrk error checking.

Change-Id: I8ef9e4a387599a330e75985f740973f941cc335f

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 19:06:52 +0000 (19:06 +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

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

Change-Id: Iacf234b6d224df38dc59fde9c3c9f8a82ba1ad0a

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 19:04:02 +0000 (19:04 +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

* commit 'b472137abf6159bd963381befbf4516242cbea0c':
  Fix brk/sbrk error checking.

Change-Id: Ibc660adf87cc5c61debd3e2e6e0ac58a4d661668

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 19:03:59 +0000 (19:03 +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

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

Change-Id: I0e8c70deedb9f43204d306a5fdad22b14703dbe5

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 19:00:49 +0000 (19:00 +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

* commit '2f78cab2026db556b166386323542708a3bc6ba3':
  Fix brk/sbrk error checking.

Change-Id: I20fce57c0bb3ee7fb99d2a9b10286b79c9458bd2

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

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

Change-Id: I8bf29354a9a631ad7c33a1eab3f66124546b7331

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:57:30 +0000 (18:57 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518 am: b6789dc3b5 am: d54ed72cd8 am: 02f7869aef
am: 1d59a2d6c3

* commit '1d59a2d6c3836e8f3a85062ce6725ae489c0122b':
  Fix brk/sbrk error checking.

Change-Id: I3cc097839dfc3534f31c114c15bc89dedb6ba866

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

* commit '10a48fb5576d44326e35ee01d6163ba78faab9e4':
  Fix overflow testing in sbrk.

Change-Id: Ie5de1ba25e3a769ff57bd9280ae4d4d9625fe4ee

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:52:47 +0000 (18:52 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518 am: b6789dc3b5 am: d54ed72cd8
am: 02f7869aef

* commit '02f7869aefb851d721c3020fca5b35c0ad9de713':
  Fix brk/sbrk error checking.

Change-Id: I31322f99f91feb450792baa2781ad87873a0adc1

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 18:52:47 +0000 (18:52 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours am: d95336ac42 am: 0993319651 am: 0ae30d9af8
am: 83b0671a33

* commit '83b0671a33a0da3d0ed962f8f01ff166069093dd':
  Fix overflow testing in sbrk.

Change-Id: Id325431f9de4bdfe102381da21445fa0781ccc82

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:49:14 +0000 (18:49 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518 am: b6789dc3b5
am: d54ed72cd8

* commit 'd54ed72cd89cb66211a011e92acd645dcc0c2243':
  Fix brk/sbrk error checking.

Change-Id: I630c562d6642cce13cb1697e4dfed2432323f57e

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42...
Christopher Ferris [Tue, 17 May 2016 18:49:09 +0000 (18:49 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours am: d95336ac42 am: 0993319651
am: 0ae30d9af8

* commit '0ae30d9af8c55d95edf7ddb1c2cb4f9dc0579f83':
  Fix overflow testing in sbrk.

Change-Id: I2d63124f58990f8ae3db35789bdd993d98d389ab

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:44:48 +0000 (18:44 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518
am: b6789dc3b5

* commit 'b6789dc3b5fbf8bbd6b407ffe53668138e828655':
  Fix brk/sbrk error checking.

Change-Id: Ief90c1e5bac313ff5a2d18117e70b67e62ced301

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours am: d95336ac42
Christopher Ferris [Tue, 17 May 2016 18:44:48 +0000 (18:44 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours am: d95336ac42
am: 0993319651

* commit '099331965176b368af627858f087dc0eccd0fc18':
  Fix overflow testing in sbrk.

Change-Id: I4bb6ccba7238bb786eee22cb96b0bc64c3f534b8

8 years agoFix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154 -s ours
Christopher Ferris [Tue, 17 May 2016 18:41:21 +0000 (18:41 +0000)]
Fix overflow testing in sbrk. am: 1944780b62 am: 3a5ebf3154  -s ours
am: d95336ac42

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

Change-Id: I60e5637cf560af8b95ccc585f86c2f0fa04481f1

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d
Elliott Hughes [Tue, 17 May 2016 18:41:19 +0000 (18:41 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d
am: c0c1abe518

* commit 'c0c1abe518ae6a7470aaf50f2170c588eca0c69a':
  Fix brk/sbrk error checking.

Change-Id: I8e622e884c0fe5c7262bae9d42971c30f9b2e4a2

8 years agoFix overflow testing in sbrk. am: 1944780b62
Christopher Ferris [Tue, 17 May 2016 18:37:25 +0000 (18:37 +0000)]
Fix overflow testing in sbrk. am: 1944780b62
am: 3a5ebf3154  -s ours

* commit '3a5ebf3154f4ff22b9196f0cc43986a458b6cadc':
  Fix overflow testing in sbrk.

Change-Id: I48cdfd2a6d05fa81bcd3dc3415c078b5f79c1f0f

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours
Elliott Hughes [Tue, 17 May 2016 18:37:10 +0000 (18:37 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours
am: f3a1f4244d

* commit 'f3a1f4244dd53aa9ff5f3c13578c52d3f74aae86':
  Fix brk/sbrk error checking.

Change-Id: Iedd0f7a24a709b4ee7e9b39fd293d56d71d7ec6f

8 years agoFix brk/sbrk error checking. am: f36b5088a3
Elliott Hughes [Tue, 17 May 2016 18:34:36 +0000 (18:34 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3
am: 1d358c8ed4  -s ours

* commit '1d358c8ed4443d358f8a6141071c2445b52c8077':
  Fix brk/sbrk error checking.

Change-Id: I8514cee9e52d38fe8aa92310d9566e8041c58efb

8 years agoFix overflow testing in sbrk.
Christopher Ferris [Tue, 17 May 2016 18:20:00 +0000 (18:20 +0000)]
Fix overflow testing in sbrk.
am: 1944780b62

* commit '1944780b62f84acb660f46c8ae37e10928de8dab':
  Fix overflow testing in sbrk.

Change-Id: I25d6ec44731e53b098b3d6a70ae7eb37e5821ed1

8 years agoFix brk/sbrk error checking.
Elliott Hughes [Tue, 17 May 2016 18:19:59 +0000 (18:19 +0000)]
Fix brk/sbrk error checking.
am: f36b5088a3

* commit 'f36b5088a32775c44661fb6b348ed0b6b3b67e65':
  Fix brk/sbrk error checking.

Change-Id: Ie98e3cd7f1f742a22f0f3f0bd1182e95c55a4280

8 years agoFix overflow testing in sbrk.
Christopher Ferris [Thu, 22 May 2014 02:03:34 +0000 (19:03 -0700)]
Fix overflow testing in sbrk.

Modify the overflow testing for sbrk.

Bug: 15188366
Bug: 28740702

(cherry picked from commit 738b0cc5e95a9a650e9621603f4dd8dd16b07568)

Change-Id: Id79a2314d86333d689b291bc32e513664df7e058

8 years agoFix brk/sbrk error checking.
Elliott Hughes [Sat, 26 Apr 2014 01:27:38 +0000 (18:27 -0700)]
Fix brk/sbrk error checking.

Note that the kernel returns the current break on error or if the requested
break is smaller than the minimum break, or the new break. I don't know where
we got the idea that the kernel could return -1.

Also optimizes the query case.

Also hides an accidentally-exported symbol for LP64.

Bug: 28740702

(cherry picked from commit 533dde4dbf87d6615952be3654fc74e5ff2e1003)

Change-Id: Ied16987756a501acf292368a14e3727ad631efa5

8 years agoAlways update search domain paths.
Pierre Imai [Fri, 6 May 2016 08:56:57 +0000 (17:56 +0900)]
Always update search domain paths.

_resolv_set_nameservers_for_net() so far did not update the search
paths, unless the servers changed as well.

BUG: 28437641
Change-Id: Id31f2d97c173e00357fb2ba95908afb4572c0fc1
(cherry picked from commit 06e2202a4cc6d9a0f382a0bbdcdbd2d527734d5f)

8 years agoRemove linker-namespace functions from the header
Dimitry Ivanov [Tue, 10 May 2016 00:37:39 +0000 (17:37 -0700)]
Remove linker-namespace functions from the header

They are intended for platform use only and we shouldn't have them
in the public header file.

Bug: http://b/28174921
Change-Id: Ib9b3d0fa9442cfa2e784a693ad567d1444d774e5
(cherry picked from commit 41fd29532b52bb66e3e1f4620053713fd0299f6e)

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
Change-Id: I9314dad6f8d54c66401714af0f66e782ebd8e319

8 years agoFix linker crash on trying to unload main executable
Dimitry Ivanov [Thu, 5 May 2016 00:19:14 +0000 (17:19 -0700)]
Fix linker crash on trying to unload main executable

Linker crashed if linking of the main executable fails
instead of aborting with readable error message.

This patch modifies unload to soinfo_unload it all at once
in this particular case. This helps avoid situations when
one of the libraries on the DT_NEEDED list of main executable
has gotten unloaded by previous library unload because it
DT_NEEDED it too.

Example (consider following dependency tree):
main_executable
|-> liba.so
  |-> libb.so
|-> libb.so

The list of the libraries need to be unloaded in this case
is [liba.so, libb.so], but if linker does unload one by one
by the time it gets to libb.so - the soinfo for the library
is already unloaded (and the segments were unmapped).

Passing everything as an array helps soinfo_unload to check
if a library was already unloaded by looking into local_unload_list.

Bug: http://b/28565608
Change-Id: I7199290e10a186057dcf3b7b68dbce954af7dba1
(cherry picked from commit 83fcb542088db7874a387f4f41caac2019821fd2)

8 years agoMerge "Revert "Add a test exercising ptrace watchpoint functionality"" into nyc-dev
TreeHugger Robot [Tue, 3 May 2016 16:43:00 +0000 (16:43 +0000)]
Merge "Revert "Add a test exercising ptrace watchpoint functionality"" into nyc-dev

8 years agoRevert "Add a test exercising ptrace watchpoint functionality"
Pavel Labath [Tue, 3 May 2016 14:46:03 +0000 (14:46 +0000)]
Revert "Add a test exercising ptrace watchpoint functionality"

This test appears to be failing on shamu devices. Revert until we figure out what's the problem.

This reverts commit 88ce78d93a465c1c635901d26542d5ec07b6b6ee.

Bug: 28514348
Change-Id: I0d91ca5eb59eb3ccb5d48b02b245e0f1bcffb5bb

8 years agoMerge "Record the resolution start time on errors." into nyc-dev
Lorenzo Colitti [Mon, 2 May 2016 12:46:17 +0000 (12:46 +0000)]
Merge "Record the resolution start time on errors." into nyc-dev

8 years agoRecord the resolution start time on errors.
Pierre Imai [Wed, 27 Apr 2016 08:30:30 +0000 (17:30 +0900)]
Record the resolution start time on errors.

Also only record samples on the first try for a server.

BUG: 25731675

Change-Id: I10a68813c6636874e63aca1db661e63e1af72a2d
(cherry picked from commit 8b8611a0e6f1928b793c17e80d22c1e2810eadc0)

8 years agoMerge "Add a test exercising ptrace watchpoint functionality" into nyc-dev
Vince Harron [Thu, 28 Apr 2016 17:03:42 +0000 (17:03 +0000)]
Merge "Add a test exercising ptrace watchpoint functionality" into nyc-dev

8 years agoMerge "Make malloc debug symbols platform-private" into nyc-dev
TreeHugger Robot [Thu, 28 Apr 2016 03:53:53 +0000 (03:53 +0000)]
Merge "Make malloc debug symbols platform-private" into nyc-dev

8 years agoMerge "Add unwind information for r7 in arm syscalls." into nyc-dev
TreeHugger Robot [Thu, 28 Apr 2016 02:56:31 +0000 (02:56 +0000)]
Merge "Add unwind information for r7 in arm syscalls." into nyc-dev

8 years agoMake malloc debug symbols platform-private
Dimitry Ivanov [Thu, 28 Apr 2016 01:16:16 +0000 (18:16 -0700)]
Make malloc debug symbols platform-private

Bug: http://b/28432442
Change-Id: I96b9cb8b57726b4e8d53069e72666cf107cdeba2
(cherry picked from commit 54548d8cf91ba2e891b2dd0d25ae5956c62ad3ef)

8 years agoMerge "Add libvorbisidec.so to the grey-list" into nyc-dev
TreeHugger Robot [Thu, 28 Apr 2016 01:37:58 +0000 (01:37 +0000)]
Merge "Add libvorbisidec.so to the grey-list" into nyc-dev

8 years agoAdd unwind information for r7 in arm syscalls.
Christopher Ferris [Thu, 28 Apr 2016 01:31:02 +0000 (18:31 -0700)]
Add unwind information for r7 in arm syscalls.

It turns out that clang can emit code where the sp is saved in the r7
register on arm. Unfortunately, a lot of our syscalls overwrite that
value while the syscall is executing, so unwinding through that syscall
fails.

Update the syscall generation code to add unwinding information for
these uses.

Bug: 28411713
Change-Id: Id51a5d43c058631bb50834527f93fa299bbcf759

8 years agoAdd libvorbisidec.so to the grey-list
Dimitry Ivanov [Wed, 27 Apr 2016 23:55:45 +0000 (16:55 -0700)]
Add libvorbisidec.so to the grey-list

Bug: http://b/28403395
Change-Id: Ic718b1eea4616ca87b94eee211717c4475082cab

8 years agoDO NOT MERGE Fix DNS search path info.
Pierre Imai [Tue, 26 Apr 2016 13:08:40 +0000 (22:08 +0900)]
DO NOT MERGE Fix DNS search path info.

Fix the resolver information returned by
android_net_res_stats_get_info_for_net,
erroneously included MAXDNSRCH empty results if no search path was set.

BUG: 25731675
Change-Id: I97ef5d2d47dc62ca403a3323c7f14902e47b29b6
(cherry picked from commit 1b069a990ad783cd20327a35df59fcdc83e2e1e2)

8 years agoAdd a test exercising ptrace watchpoint functionality
Pavel Labath [Thu, 21 Apr 2016 14:13:22 +0000 (15:13 +0100)]
Add a test exercising ptrace watchpoint functionality

This adds a test which verifies that watchpoints work on devices
which support them. It is motivated by issues experienced by Nexus
5 devices, where watchpoints work only sporadically.

These tests spawn a process, trace it, and verify it hits a
watchpoint of various sizes while executing on all available CPUs
(to help catch a recent bug, where some debugging functionality
was not available on non-boot CPUs). All x86(_64) targets are
expected to support this functionality. In case of arm(64),
watchpoints are expected to work on devices where the relevant
syscall indicates watchpoint presence. In case of mips, this test
is skipped as I could not verify that the test would work
correctly due to lack of hardware, and this test is intrinsically
hardware-dependend.

cherry picked from commit 1faca6c95bc3e2c9456b9dc5362915be2a188340

Bug: 28395519
Change-Id: Ie5cbb16b9eef51f322c02ed8dce712c21cad94cf

8 years agoUpdate timezone data to 2016d
Neil Fuller [Thu, 21 Apr 2016 14:06:48 +0000 (15:06 +0100)]
Update timezone data to 2016d

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 28240832
Change-Id: If11e29f064f074f8b5812d397996322d007ab1d2

8 years agoDO NOT MERGE Add new info functions to resolver for use by Netd.
Pierre Imai [Mon, 18 Apr 2016 03:00:12 +0000 (12:00 +0900)]
DO NOT MERGE Add new info functions to resolver for use by Netd.

android_net_res_stats_get_info_for_net returns the current name servers, search
domains, parameters and stats for the given network ID.

android_net_res_stats_aggregate provides statistics such as errors counts from
the raw stats data reported by android_net_res_stats_get_info_for_net.

android_net_res_stats_get_usable_servers uses the data returned by
android_net_res_stats_aggregate to determine which of the servers are
considered valid or broken by the resolver.

BUG: 25731675
Change-Id: I6059b68e5e8b809027a4d3135f6081588bee8a7d

8 years agoDO NOT MERGE Store DNS server count in resolv_cache.
Pierre Imai [Mon, 18 Apr 2016 02:42:14 +0000 (11:42 +0900)]
DO NOT MERGE Store DNS server count in resolv_cache.

Instead of keeping a sentinel after nameservers[], nsaddrinfo[] and
nstats[], store the server count in the structure, freeing up memory and
eliminating the need to enumerate the server count every time
_resolv_is_nameservers_equal_locked() is invoked.

Also increase MAXNS from 3 to 4.

BUG: 28153323
Change-Id: I11a7257af695157c9e32019cd00c67b535b63c75
(cherry picked from commit fff356786f8a3a98c5c29f12bb7e59e6d98076a9)

8 years agoChange pointer to allocation in unit tests.
Christopher Ferris [Wed, 20 Apr 2016 23:44:39 +0000 (16:44 -0700)]
Change pointer to allocation in unit tests.

I changed the output from "pointer" to "allocation" for allocation
mismatches. I forgot to update the tests.

Bug: 28218530

(cherry picked from commit 97fd7d95f5abd3fbc3274b2591883ecdd9cc03cc)

Change-Id: I4076e4ddb5d2385e786e3ebca187d1e84e3c172c

8 years agoAdd malloc debug documentation.
Christopher Ferris [Fri, 18 Mar 2016 21:29:51 +0000 (14:29 -0700)]
Add malloc debug documentation.

Bug: 27902359
Bug: 28218530

(cherry picked from commit 713a8e36f863c27736ad4f29a5fd9bf84be83aaf)

Change-Id: I63c0cc53287d414ae6accd03c191f3474c02fc82

8 years agoSmall fixes to malloc debug.
Christopher Ferris [Fri, 15 Apr 2016 21:13:52 +0000 (14:13 -0700)]
Small fixes to malloc debug.

- Change the printed name from pointer to allocation to be explicit about
  what is wrong.
- Change the signal to be SIGRTMAX - 19 instead of SIGRTMIN. This should
  prevent problems if we have to reserve other real time signals.

Bug: 28218530

(cherry picked from commit ea26b33248663a836d2f0719cb4e46967b648fe2)

Change-Id: I707d5200c1804bdbf45fc46de0f2565016c48a82

8 years agoUpdate timezone data to 2016c
Neil Fuller [Fri, 15 Apr 2016 13:58:08 +0000 (14:58 +0100)]
Update timezone data to 2016c

 Changes affecting future time stamps

    Azerbaijan no longer observes DST.  (Thanks to Steffen Thorsen.)

    Chile reverts from permanent to seasonal DST.  (Thanks to Juan
    Correa for the heads-up, and to Tim Parenti for corrections.)
    Guess that future transitions are August's and May's second
    Saturdays at 24:00 mainland time.  Also, call the period from
    2014-09-07 through 2016-05-14 daylight saving time instead of
    standard time, as that seems more appropriate now.

  Changes affecting past time stamps

    Europe/Kaliningrad and Europe/Vilnius changed from +03/+04 to
    +02/+03 on 1989-03-26, not 1991-03-31.  Europe/Volgograd changed
    from +04/+05 to +03/+04 on 1988-03-27, not 1989-03-26.
    (Thanks to Stepan Golosunov.)

Bug: 27826144
Change-Id: I4353fa075e6cc0f277a72c928442a63835ec4d97

8 years agoMerge "Update timezone data to 2016b" into nyc-dev
Neil Fuller [Mon, 18 Apr 2016 08:09:57 +0000 (08:09 +0000)]
Merge "Update timezone data to 2016b" into nyc-dev

8 years agoRevert "Temporary move __udivdi3 back to LIBC for x86"
Dimitry Ivanov [Sat, 16 Apr 2016 00:58:12 +0000 (00:58 +0000)]
Revert "Temporary move __udivdi3 back to LIBC for x86"

This reverts commit bc02fb964a59983521c5f6cf80b1189434952780.

Bug: http://b/26406724
Bug: http://b/26423217
Change-Id: I8e3186fc76502d6818753e5d76a7c145207ed9a3
(cherry picked from commit 9f39326a740860a0cfd472115b929bf0ab83799b)

8 years agoRemove dangling links in secondary namespaces
Dimitry Ivanov [Mon, 11 Apr 2016 19:42:58 +0000 (12:42 -0700)]
Remove dangling links in secondary namespaces

linker didn't remove link to the soinfo from shared
namespaces on soinfo_unload, because it didn't keep
record of all namespaces the library is added to.

This change adds test for this and also fixes the
problem by introducing list of secondary namespaces
to soinfo, which is used to remove soinfo in
soinfo::remove_all_links().

Bug: http://b/28115950
Change-Id: Ifbf6e54f92fa6e88f86b6a8dd6dc22d4553afd22
(cherry picked from commit aca299ac4721809d6fc61e25c505bb59acd23fbc)

8 years agoMove linker-namespace functions to LIBC_PLATFORM
Dimitry Ivanov [Wed, 13 Apr 2016 22:01:37 +0000 (15:01 -0700)]
Move linker-namespace functions to LIBC_PLATFORM

Bug: http://b/28174921
Change-Id: I089dbeeea813fc2128b9c2f6268a578d23a1954a

8 years agolinker: unload RTLD_NODELETE libraries when loading fails
Dimitry Ivanov [Wed, 13 Apr 2016 18:46:59 +0000 (11:46 -0700)]
linker: unload RTLD_NODELETE libraries when loading fails

Linker was not unloading libraries marked with RTLD_NODELETE
even when there was a error on load. For example when one of
dt_needed libraries was not found.

Bug: http://b/27911891
Change-Id: Ibc0bf110aa41fbfdc9f327ad8c364f2e3600af71