aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-19linker: remove link from external library on unloadandroid-7.1.1_r61android-7.1.1_r60android-7.1.1_r59nougat-mr1.8-releasenougat-mr1-security-releaseDimitry Ivanov
When unloading library make sure the soinfo_link to parent from linked external libraries is removed as well. Bug: 36104177 Bug: http://b/37433850 Test: manual Change-Id: I601b54144acecac54744805b38313c46045c54cb (cherry picked from commit ee398f820700de30941fd82e38bd917e1513cbc6) (cherry picked from commit b37d10cc8017c102530c096537890b7c6215ad2b)
2016-12-12Check for bad packets in getaddrinfo.c's getanswer.Elliott Hughes
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) (cherry picked from commit 418fe1eb1aeefc2268a40c5cec0ceb62672fa026)
2016-10-09merge in nyc-mr1-release history after reset to nyc-mr1-devandroid-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r6android-7.1.1_r4android-7.1.1_r3android-7.1.1_r2android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1nougat-mr1.2-releaselinaro-ngitbuildkicker
2016-10-07Fix a linking error in bionic/tests am: 3656958a16android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r2android-cts-7.1_r1nougat-mr1-devTianjie Xu
am: 0893380bed Change-Id: I462b022e42676ec6ceba39ece3933dc4cc6237d0
2016-10-07Fix a linking error in bionic/testsTianjie Xu
am: 3656958a16 Change-Id: I5636ecc4e0a5ff4e1ee0a6cd0f1d182d444e63f9
2016-10-06Fix a linking error in bionic/testsTianjie Xu
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
2016-10-06merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-10-05Fix for default library path "/vendor/lib"neo.chae
Android N restrict which libraries C/C++ code can link against at runtime. If device has a vendor partition then /system/vendor symlink to /vendor. Otherwise /vendor symlink to /system/vendor. But is_system_library() is only checking /vendor/lib. It will return false for /system/vendor/lib path. It is need to add a real path to default library path. Similarily, default ld library path is already checking. parse_LD_LIBRARY_PATH()->parse_path()->resolve_paths() Test: build bionic and run bionic-unit-tests Bug: http://b/31919547 Change-Id: Ie6777e2b02729948ce77a94de32343d40358bf2c Signed-off-by: Hyangseok Chae <neo.chae@lge.com> (cherry picked from commit 2589f9de6473a2030594e2c5e95541f00eb2dc7a)
2016-10-05merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-10-04Update timezone data to 2016g.Joachim Sauer
The 2016g 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 to future time stamps Turkey switched from EET/EEST (+02/+03) to permanent +03, effective 2016-09-07. (Thanks to Burak AYDIN.) Use "+03" rather than an invented abbreviation for the new time. New leap second 2016-12-31 23:59:60 UTC as per IERS Bulletin C 52. (Thanks to Tim Parenti.) Changes to past time stamps For America/Los_Angeles, spring-forward transition times have been corrected from 02:00 to 02:01 in 1948, and from 02:00 to 01:00 in 1950-1966. For zones using Soviet time on 1919-07-01, transitions to UT-based time were at 00:00 UT, not at 02:00 local time. The affected zones are Europe/Kirov, Europe/Moscow, Europe/Samara, and Europe/Ulyanovsk. (Thanks to Alexander Belopolsky.) Changes to past and future time zone abbreviations The Factory zone now uses the time zone abbreviation -00 instead of a long English-language string, as -00 is now the normal way to represent an undefined time zone. Several zones in Antarctica and the former Soviet Union, along with zones intended for ships at sea that cannot use POSIX TZ strings, now use numeric time zone abbreviations instead of invented or obsolete alphanumeric abbreviations. The affected zones are Antarctica/Casey, Antarctica/Davis, Antarctica/DumontDUrville, Antarctica/Mawson, Antarctica/Rothera, Antarctica/Syowa, Antarctica/Troll, Antarctica/Vostok, Asia/Anadyr, Asia/Ashgabat, Asia/Baku, Asia/Bishkek, Asia/Chita, Asia/Dushanbe, Asia/Irkutsk, Asia/Kamchatka, Asia/Khandyga, Asia/Krasnoyarsk, Asia/Magadan, Asia/Omsk, Asia/Sakhalin, Asia/Samarkand, Asia/Srednekolymsk, Asia/Tashkent, Asia/Tbilisi, Asia/Ust-Nera, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Etc/GMT-14, Etc/GMT-13, Etc/GMT-12, Etc/GMT-11, Etc/GMT-10, Etc/GMT-9, Etc/GMT-8, Etc/GMT-7, Etc/GMT-6, Etc/GMT-5, Etc/GMT-4, Etc/GMT-3, Etc/GMT-2, Etc/GMT-1, Etc/GMT+1, Etc/GMT+2, Etc/GMT+3, Etc/GMT+4, Etc/GMT+5, Etc/GMT+6, Etc/GMT+7, Etc/GMT+8, Etc/GMT+9, Etc/GMT+10, Etc/GMT+11, Etc/GMT+12, Europe/Kaliningrad, Europe/Minsk, Europe/Samara, Europe/Volgograd, and Indian/Kerguelen. For Europe/Moscow the invented abbreviation MSM was replaced by +05, whereas MSK and MSD were kept as they are not our invention and are widely used. Changes to zone names Rename Asia/Rangoon to Asia/Yangon, with a backward compatibility link. (Thanks to David Massoud.) Test: Ran CTS modules CtsLibcoreTestCases and CtsBionicTestCases. Bug: 31848040 Change-Id: I4e9857616570ca9a540e27c109951ab265fea792
2016-10-04merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-10-03Fix tzdata loading.Elliott Hughes
Android uses one large file of tzdata, so the "read up to the maximum possible length of a valid tzfile" code in upstream localtime.c is broken: there is always data after the current tzfile (even the last tzfile is followed by the zone.tab data). This patch passes the exact length through to the read(2) call so we don't over-read, rather than have to rewrite upstream code that measures back from the "end" of the tzfile. The old code failed the existing time.strftime_null_tm_zone test after updating to tzdata2016g. (cherry picked from commit 81c46fc10fa60fd341f11024d8d3f26ff2c69082) Bug: http://b/31848040 Test: time.strftime_null_tm_zone Change-Id: Iee059b5a8c051bd4952cfd80f02b00d83e489d5e
2016-08-28merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-08-26Merge "Fix dlext.ns_smoke test" into nyc-mr1-devDimitry Ivanov
2016-08-26linker: stat /proc/self/exe instead of executable_pathDimitry Ivanov
am: f987129903 Change-Id: I9d523394eea21f14abf4ad02c424afe028f38b4f
2016-08-26linker: stat /proc/self/exe instead of executable_pathDimitry Ivanov
The absolute path to an executable may no longer be valid for example when the file is unlinked immediately after exec. Using /proc/self/exe instead of absolute path solves this problem. Bug: http://b/31084669 Test: Run the app from http://b/31084669 make sure executable starts Test: by checking ps and /proc/<pid>/exe Change-Id: I5c819f39ef0fc4fc71b05de71e8af9ede611f04c (cherry picked from commit 7da4bbbe87a7eca742c6c45a76aaf191aa70d948)
2016-08-26Merge "linker: stat /proc/self/exe instead of executable_path" into nyc-mr1-devDimitry Ivanov
2016-08-25Fix dlext.ns_smoke testDimitry Ivanov
Check for updated error_message Bug: http://b/31097098 Test: adb shell bionic-unit-tests32/64 --gtest_filter=dlext.ns* (cherry picked from commit 3a6c6b3254b2033a9a0246013a2c8b486800624b) Change-Id: I0f0dd59a6deba016d37d0ccc80113b62db86c1c2
2016-08-25linker: stat /proc/self/exe instead of executable_pathDimitry Ivanov
The absolute path to an executable may no longer be valid for example when the file is unlinked immediately after exec. Using /proc/self/exe instead of absolute path solves this problem. Bug: http://b/31084669 Test: Run the app from http://b/31084669 make sure executable starts Test: by checking ps and /proc/<pid>/exe Change-Id: I5c819f39ef0fc4fc71b05de71e8af9ede611f04c
2016-08-25linker: warn about W+E load segmentsDimitry Ivanov
No mapped segment from the elf file can be writable and executable at the same time. This commit adds a warning for malformed PT_LOAD segments in the elf-files. Change-Id: I5e1e41bc2aabc209d3b07dd6ca2689a394294628 Test: flip protection flag for libtest_empty.so (used hexedit), adb sync Test: run bionic-unit-tests and make sure it displays the warning. Bug: http://b/30146890
2016-08-25merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-08-24Merge "Fix pty.bug_28979140 test in Bionic" into nyc-mr1-devTreeHugger Robot
2016-08-23Fix pty.bug_28979140 test in BionicAlex Vakulenko
The test relies on the fact/assumes that CPU 0 is available to the test process. This is not necessarily the case. Instead of allocating CPU 0 to the main thread, find the first available CPU and use that instead. BUG=b/29991929 TEST=All Bionic unit tests pass Change-Id: I36b311cdba57112d663d652757fd5114183fc780
2016-08-11merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-08-10linker_asan: Translate absolute dlopen paths to use asan-libraries.Dimitry Ivanov
This patch enables absolute path translation to instrumented library when linker_asan is in use. Test: adb shell cat /proc/<rlid pid>/maps | grep libril-qc-qmi-1.so check that it is mapped from /data/vendor/lib64 and not /vendor/lib64 Bug: http://b/30320104 Change-Id: I3bc24754b192afc0a72d6f3801f7b42141ce715b
2016-08-10merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-08-09Check alignment along with range of mapped file fragmentsDimitry Ivanov
Improve sanity-checks of elf-file by adding alignment check of mapped sections and section headers. Bug: http://b/30687964 Change-Id: I7f06ddaa56a13989ce7be847b3a73c352e32c008
2016-08-03merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-08-02Add a test for a known kernel bug.Elliott Hughes
Bug: http://b/27265969 (cherry picked from commit 4a253496b86522ec732a89f19d4ca534d71d53f2) Change-Id: Ibf0b6457b02e89b90bc86c9367e14021c606356b
2016-07-17merge in nyc-mr1-release history after reset to nyc-mr1-devgitbuildkicker
2016-07-14Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.Yabin Cui
Previous patch changed pthread_cond_timedwait_relative_np to use CLOCK_REALTIME, which causes app compatibility problem. So change it back to CLOCK_MONOTONIC. Bug: 30106240 Change-Id: I8e04058e92ede098f4f9f8d133f094001921441e (cherry picked from commit fe4a4d8f67cf84b0b10d6c689f356229e057603b)
2016-07-07Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7 am: a884aa8df7Neil Fuller
am: bc1ce3b828 Change-Id: I7cfc0bb7755fb4c0559c79ec458610a59c398482
2016-07-07Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7Neil Fuller
am: a884aa8df7 Change-Id: I84612c410e4fea54733ed340b6a6695771bba4d9
2016-07-07Update timezone data to 2016f am: 88d23859e0Neil Fuller
am: 6c4968a6e7 Change-Id: I2b7bbc586b55719fd80d985c0972084dd25c7ada
2016-07-07Update timezone data to 2016fNeil Fuller
am: 88d23859e0 Change-Id: I3d0a9287cad7f6ec39174d58bf78f5c4b7e3d3e8
2016-07-07merge in nyc-mr1-release history after reset to nyc-mr1-devThe Android Automerger
2016-07-06Update timezone data to 2016fNeil Fuller
am: 510ac40370 Change-Id: Ifcf36728c70db9432ce3d61bf56355b62a5a5bca
2016-07-06Update timezone data to 2016fNeil Fuller
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
2016-07-06Update timezone data to 2016fNeil Fuller
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
2016-06-22Merge \\\\\\"DO NOT MERGE: push out fix for data dir.\\\\\\" into ↵Daniel Xie
marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be am: e8be35da77 -s ours am: 3593c2fa62 Change-Id: I602665fc0786a47555fb2a2b8d36d0d2127a70e7
2016-06-22Merge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into ↵android-cts-7.0_r9android-cts-7.0_r8android-cts-7.0_r7android-cts-7.0_r6android-cts-7.0_r5android-cts-7.0_r4android-cts-7.0_r33android-cts-7.0_r32android-cts-7.0_r31android-cts-7.0_r30android-cts-7.0_r3android-cts-7.0_r29android-cts-7.0_r28android-cts-7.0_r27android-cts-7.0_r26android-cts-7.0_r25android-cts-7.0_r24android-cts-7.0_r23android-cts-7.0_r22android-cts-7.0_r21android-cts-7.0_r20android-cts-7.0_r2android-cts-7.0_r19android-cts-7.0_r18android-cts-7.0_r17android-cts-7.0_r16android-cts-7.0_r15android-cts-7.0_r14android-cts-7.0_r13android-cts-7.0_r12android-cts-7.0_r11android-cts-7.0_r10android-cts-7.0_r1nougat-devnougat-cts-releasenougat-cts-devDaniel Xie
marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be am: e8be35da77 -s ours Change-Id: I177ca0c55de3b54bd764f6eddf8749325b6cb3f4
2016-06-22Merge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into ↵Daniel Xie
marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be Change-Id: Ie4afe19fe05d760ce22246fb98ef9f5a8a8a88d2
2016-06-22Merge \\\"DO NOT MERGE: push out fix for data dir.\\\" into ↵Daniel Xie
marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 Change-Id: I60161d61084359f0ae74c2fdfd9e75b6af5b24d3
2016-06-22Merge \\"DO NOT MERGE: push out fix for data dir.\\" into ↵Daniel Xie
marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 Change-Id: I670ae33ee552d13a25f1071ce042015baf470e22
2016-06-22Merge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-devDaniel Xie
am: f09a2ff2e6 -s ours Change-Id: Icdb05b897a4877b86581b41d1dd7d1a14031172b
2016-06-22Merge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-devandroid-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12marshmallow-cts-releasemarshmallow-cts-devDaniel Xie
2016-06-22DO NOT MERGE: push out fix for data dir.Daniel Xie
Change-Id: I97ff02676e7f6008c26ddb5c41eb113b4b62280f
2016-06-22Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea am: 6a0a02efabNeil Fuller
am: 378eb66e6c Change-Id: I71ce699be9c888029f0881af5f26d0b005c47d86
2016-06-22Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4ceaNeil Fuller
am: 6a0a02efab Change-Id: I4bba4d1fd498cfe5f30d623940ab385a16146ab4
2016-06-22Update timezone data to 2016e am: 930bdf8e8cNeil Fuller
am: 65f57e4cea Change-Id: I8f38716470915ebd3d2f266d4e5a102c44c13263