OSDN Git Service

android-x86/bionic.git
7 years agolinker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2...
Dimitry Ivanov [Tue, 16 May 2017 22:21:22 +0000 (22:21 +0000)]
linker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2 am: cb40eec87c am: 0399816edb
am: 85efd3b591

Change-Id: I0b41cdffdccab8b79a4d9c6327dc0f6f521c1acf

7 years agolinker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2...
Dimitry Ivanov [Tue, 16 May 2017 22:17:52 +0000 (22:17 +0000)]
linker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2 am: cb40eec87c
am: 0399816edb

Change-Id: Ic7c3a9f3dc52cca6edf3933b33b04e6a82e77aca

7 years agolinker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2
Dimitry Ivanov [Tue, 16 May 2017 22:15:22 +0000 (22:15 +0000)]
linker: remove link from external library on unload am: b37d10cc80 am: 3a644889b2
am: cb40eec87c

Change-Id: Id0d4a58612a9be52a1f1a0f976bbeeab89547c09

7 years agolinker: remove link from external library on unload am: b37d10cc80
Dimitry Ivanov [Tue, 16 May 2017 22:12:22 +0000 (22:12 +0000)]
linker: remove link from external library on unload am: b37d10cc80
am: 3a644889b2

Change-Id: I7c022194739391c24a736a3a5deb906433fc5649

7 years agolinker: remove link from external library on unload
Dimitry Ivanov [Tue, 16 May 2017 22:08:52 +0000 (22:08 +0000)]
linker: remove link from external library on unload
am: b37d10cc80

Change-Id: I48901a8fbf4bc25fff1462e6086fc23b76ca2ba3

7 years agoMerge "libc: ARM64: fix memset for non-standard ZVA sizes" am: 6fba793bc3
Christopher Ferris [Tue, 16 May 2017 20:16:44 +0000 (20:16 +0000)]
Merge "libc: ARM64: fix memset for non-standard ZVA sizes" am: 6fba793bc3
am: af37fb9598

Change-Id: I8a9d24f107d3e994af31b77e7d14f470e5e111f8

7 years agoMerge "libc: ARM64: fix memset for non-standard ZVA sizes"
Christopher Ferris [Tue, 16 May 2017 20:13:44 +0000 (20:13 +0000)]
Merge "libc: ARM64: fix memset for non-standard ZVA sizes"
am: 6fba793bc3

Change-Id: I2c5892739d09f40803e7b30fba1704abaf674546

7 years agoMerge "libc: ARM64: fix memset for non-standard ZVA sizes"
Christopher Ferris [Tue, 16 May 2017 20:07:19 +0000 (20:07 +0000)]
Merge "libc: ARM64: fix memset for non-standard ZVA sizes"

7 years agoMerge "Add support for modifying decay timer." am: d84c30ddec
Christopher Ferris [Tue, 16 May 2017 14:17:37 +0000 (14:17 +0000)]
Merge "Add support for modifying decay timer." am: d84c30ddec
am: ce73bd53ff

Change-Id: I70251c96a7a23f9997113d6f68b0a820867029bd

7 years agoMerge "Add support for modifying decay timer."
Christopher Ferris [Tue, 16 May 2017 14:09:09 +0000 (14:09 +0000)]
Merge "Add support for modifying decay timer."
am: d84c30ddec

Change-Id: Ia05ad1bd28156ded61f6b8e04e4eeb781610e561

7 years agoMerge "Add support for modifying decay timer."
Christopher Ferris [Tue, 16 May 2017 14:02:51 +0000 (14:02 +0000)]
Merge "Add support for modifying decay timer."

7 years agolibc: ARM64: fix memset for non-standard ZVA sizes
Kevin Brodsky [Tue, 16 May 2017 10:29:49 +0000 (11:29 +0100)]
libc: ARM64: fix memset for non-standard ZVA sizes

372f19e9e27c ("libc: ARM64: update memset/strlen/memcpy/memmove to
newlib/cortex-strings") introduced a bug in memset, only occurring
on the [set_long + zero + non-standard ZVA size] path, more
specifically when DCZID_EL0 reports a size different to 64 or 128.

On platforms with such sizes reported by DCZID_EL0, various string*
unit tests fail due to memset zeroing memory before and/or after the
area it is supposed to set.

Test: bionic-unit-tests --gtest_filter=string*
Change-Id: Idb80c0269226e40e343645a58608e3f324378468

7 years agolinker: remove link from external library on unload
Dimitry Ivanov [Wed, 19 Apr 2017 18:28:16 +0000 (11:28 -0700)]
linker: remove link from external library on unload

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)

7 years agoAdd support for modifying decay timer.
Christopher Ferris [Mon, 15 May 2017 22:50:19 +0000 (15:50 -0700)]
Add support for modifying decay timer.

Add the mallopt function, and only a single option so far.

Bug: 36401135

Test: Built and booted bullhead.
Test: Ran jemalloc unit tests.
Test: Ran bionic unit tests.
Test: Ran a test that allocated and free'd a large piece of memory,
Test: and verified that after changing the parameter, the PSS
Test: sticks around (decay timer set to 1), the PSS is purged (decay
Test: timer set to 0).
Change-Id: I6927929b0c539c1023d34772d9e26bb6a8a45877

7 years agoMerge "Add support for cortex-a73." am: f0ddcc676c
Christopher Ferris [Mon, 15 May 2017 22:12:19 +0000 (22:12 +0000)]
Merge "Add support for cortex-a73." am: f0ddcc676c
am: f61793658a

Change-Id: I7deb8abbfed0eac49466be9cc3c1b55db9ff5910

7 years agoMerge "Add support for cortex-a73."
Christopher Ferris [Mon, 15 May 2017 22:09:18 +0000 (22:09 +0000)]
Merge "Add support for cortex-a73."
am: f0ddcc676c

Change-Id: Ia8bacd338712aeade1ea753e303b82eab53b5539

7 years agoMerge "Add support for cortex-a73."
Christopher Ferris [Mon, 15 May 2017 22:00:42 +0000 (22:00 +0000)]
Merge "Add support for cortex-a73."

7 years agoAdd support for cortex-a73.
Christopher Ferris [Mon, 8 May 2017 19:09:03 +0000 (12:09 -0700)]
Add support for cortex-a73.

Bug: 37647380

Test: Built target with cortex-a73 for both 32 bit/64 bit.
Test: Built target with cortex-a53.cortex-a57 for both 32 bit/64 bit.
Test: Ran bionic unit tests, ran art target tests.

(cherry picked from commit 6fca047b5379c2bf7b6b874a2b2f9cc44e1b01fa)

Change-Id: I2c48e1bc7f4a3c4548d1c66f87eab19c8618a0b8

7 years agoMerge "test: check unbounded memory leak in pthread detach" am: ac58d33d34
Elliott Hughes [Mon, 15 May 2017 16:25:52 +0000 (16:25 +0000)]
Merge "test: check unbounded memory leak in pthread detach" am: ac58d33d34
am: c90d2db2e1

Change-Id: Ibff18c6800b077f7e60312b98f16cb52705cbd23

7 years agoMerge "test: check unbounded memory leak in pthread detach"
Elliott Hughes [Mon, 15 May 2017 16:22:52 +0000 (16:22 +0000)]
Merge "test: check unbounded memory leak in pthread detach"
am: ac58d33d34

Change-Id: I7e1c161b38e53c717c059b76c1c1eeea41facb6e

7 years agoMerge "test: check unbounded memory leak in pthread detach"
Elliott Hughes [Mon, 15 May 2017 16:20:03 +0000 (16:20 +0000)]
Merge "test: check unbounded memory leak in pthread detach"

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 18:05:40 +0000 (18:05 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d am: f3537c61bf am: be8327ce71 am: 6be47949d6 am: 4852206c8b
am: 24642c2808

Change-Id: I3d16af8770de1e3cc7dbda983b179f4aab13597d

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 18:05:25 +0000 (18:05 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006 am: b2792c701f am: 7ac2da9266 am: f62dc07af3 am: ca97abb2fb
am: 901c064d4d

Change-Id: I28a0e9f10a0adca6ce6cf95c36bf332c601a7b96

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 18:02:38 +0000 (18:02 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d am: f3537c61bf am: be8327ce71 am: 6be47949d6
am: 4852206c8b

Change-Id: I2ffa928ec3f42c062a8dd8ed71ef74ba2012a754

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 18:02:24 +0000 (18:02 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006 am: b2792c701f am: 7ac2da9266 am: f62dc07af3
am: ca97abb2fb

Change-Id: I1c41aa814ae28c24f2bff84473a4f49508c4541a

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 18:00:07 +0000 (18:00 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d am: f3537c61bf am: be8327ce71
am: 6be47949d6

Change-Id: I3f2e5fd302dda1d0ce018cd7074bfd2c1b8727b0

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:59:54 +0000 (17:59 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006 am: b2792c701f am: 7ac2da9266
am: f62dc07af3

Change-Id: If6103a556f58227bc38ea0c19f7e8f7c76b481cd

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:57:36 +0000 (17:57 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d am: f3537c61bf
am: be8327ce71

Change-Id: Icd38c97287d0f2215bc4677f7c4f971badd9b6fa

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:57:23 +0000 (17:57 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006 am: b2792c701f
am: 7ac2da9266

Change-Id: I00d7ea4507586ceb236e21d78c4da8be380fbf78

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:54:35 +0000 (17:54 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4 am: 2514cb784d
am: f3537c61bf

Change-Id: Ib97ef3be452422f32390457047d64b17c02ac9e0

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:54:23 +0000 (17:54 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538 am: cb3e51d006
am: b2792c701f

Change-Id: Id90e8ed17cdd2804d6f6534cfbbb70e1892be0cd

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:52:14 +0000 (17:52 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5 am: 59abd613d4
am: 2514cb784d

Change-Id: I333d717351fb970e651260a7ec88d17bc9a1c014

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:51:54 +0000 (17:51 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729 am: 62110f9538
am: cb3e51d006

Change-Id: I17db0fafc84cda99bb401efcca497342b9ad4d9a

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:49:34 +0000 (17:49 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0 am: c65740f4a5
am: 59abd613d4

Change-Id: I1f1fd31090a9a2bc2d3c1472558d2b2dc2993c40

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:49:23 +0000 (17:49 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d am: de4e1ef729
am: 62110f9538

Change-Id: I93471ac1d92f3e0908744e1c648df1b367d62e7f

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:46:34 +0000 (17:46 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a am: 254aec13d0
am: c65740f4a5

Change-Id: I59cea9af44bfa75e1a9f7f4c780396f2d3f606db

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:46:23 +0000 (17:46 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours am: dfb42b364d
am: de4e1ef729

Change-Id: If332d0da191a7e1671fffe2e4ee1f02dd3bb5845

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:44:04 +0000 (17:44 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff am: 623d83754a
am: 254aec13d0

Change-Id: I3bf9d4ddda2fecb0a1e18b9f7600585118555121

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3...
Dimitry Ivanov [Sun, 14 May 2017 17:43:52 +0000 (17:43 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4 am: 78b10daab3  -s ours
am: dfb42b364d

Change-Id: I000de0ab7f28fab41b846ff8837669e97d048e26

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours am...
Dimitry Ivanov [Sun, 14 May 2017 17:41:34 +0000 (17:41 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours am: 02b94ea8ff
am: 623d83754a

Change-Id: Ieff24664f41ed85ddb65af28a0f44bdbfb76bee2

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4
Dimitry Ivanov [Sun, 14 May 2017 17:41:22 +0000 (17:41 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 772db5e6d4
am: 78b10daab3  -s ours

Change-Id: I6ce0ea6a941043e1271d3a02a1f8dc706716e6c9

7 years agoloader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e -s ours
Dimitry Ivanov [Sun, 14 May 2017 17:33:31 +0000 (17:33 +0000)]
loader: fix leak of child-to-parent links on dlclose() am: 46c3aa2c0e  -s ours
am: 02b94ea8ff

Change-Id: I0b49c8b7b3d3557f98815e29cd902c29a029a02e

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Sun, 14 May 2017 17:33:21 +0000 (17:33 +0000)]
loader: fix leak of child-to-parent links on dlclose()
am: 772db5e6d4

Change-Id: I538995372384103dcbd1ca6f3ff5fcd4ae80c972

7 years agoloader: fix leak of child-to-parent links on dlclose()
Dimitry Ivanov [Sun, 14 May 2017 17:30:22 +0000 (17:30 +0000)]
loader: fix leak of child-to-parent links on dlclose()
am: 46c3aa2c0e  -s ours

Change-Id: I41138d893d74f59fc0e888c444e314523a8e7a49

7 years agotest: check unbounded memory leak in pthread detach
Zhenhua WANG [Fri, 12 May 2017 05:53:51 +0000 (13:53 +0800)]
test: check unbounded memory leak in pthread detach

In pthread_leak.detach test, compare the memory usage after two same
scenarios - all children threads have exited. Thus, test emulated by
NativeBridge, which may reserve a memory pool, will pass if it's not
unbounded leak.

Bug: https://issuetracker.google.com/37920774
Test: CtsBionicTestCases
Change-Id: Ia51aa67bacb588284747652b36ea5d8e85bea832

7 years agoMerge "Clean up __isthreaded." am: d785b4465e
Elliott Hughes [Fri, 12 May 2017 02:25:55 +0000 (02:25 +0000)]
Merge "Clean up __isthreaded." am: d785b4465e
am: 51c1351672

Change-Id: I026e0d5da94bb88a311768a8d2611502cc7b527b

7 years agoMerge "Clean up __isthreaded."
Elliott Hughes [Fri, 12 May 2017 02:11:55 +0000 (02:11 +0000)]
Merge "Clean up __isthreaded."
am: d785b4465e

Change-Id: I66192ac99b40c7fa7359a147f2d1ca86859b048d

7 years agoMerge "Clean up __isthreaded."
Treehugger Robot [Fri, 12 May 2017 01:35:49 +0000 (01:35 +0000)]
Merge "Clean up __isthreaded."

7 years agoMerge "Run bionic/libc/tools/genversion-scripts.py" am: 23672d30e2
Elliott Hughes [Fri, 12 May 2017 00:14:44 +0000 (00:14 +0000)]
Merge "Run bionic/libc/tools/genversion-scripts.py" am: 23672d30e2
am: aad073b8b8

Change-Id: I9e120303d8e60b1b9b058514f167e4e42e36cc8c

7 years agoMerge "Run bionic/libc/tools/genversion-scripts.py"
Elliott Hughes [Fri, 12 May 2017 00:10:36 +0000 (00:10 +0000)]
Merge "Run bionic/libc/tools/genversion-scripts.py"
am: 23672d30e2

Change-Id: I716e66a863a9fb9c6f1ab0291da42249e916dfb6

7 years agoMerge "Run bionic/libc/tools/genversion-scripts.py"
Treehugger Robot [Thu, 11 May 2017 23:52:13 +0000 (23:52 +0000)]
Merge "Run bionic/libc/tools/genversion-scripts.py"

7 years agoClean up __isthreaded.
Elliott Hughes [Thu, 11 May 2017 22:29:03 +0000 (15:29 -0700)]
Clean up __isthreaded.

__isthreaded is annoying for ARC++ and useless for everyone. Just hard-code
the value in ndk_cruft for LP32 and be done with it.

Bug: N/A
Test: builds
Change-Id: I08f11a404bbec55ed57cb1e18b5116163c7d7d13

7 years agoRun bionic/libc/tools/genversion-scripts.py
Elliott Hughes [Thu, 11 May 2017 22:14:41 +0000 (15:14 -0700)]
Run bionic/libc/tools/genversion-scripts.py

When 2e8e5e60b6ecbcfe2110242e41b9ec5340b11cf5 was cherrypicked, we
didn't regenerate the generated files.

Bug: N/A
Test: builds
Change-Id: I87730e834520aea742738708237d11a798bf3220

7 years agoMerge "Fix clang-tidy perfomrance warnings." am: 0e986b8d5d
wy [Thu, 11 May 2017 02:53:36 +0000 (02:53 +0000)]
Merge "Fix clang-tidy perfomrance warnings." am: 0e986b8d5d
am: 5fe41a02ae

Change-Id: I1f5195133c9d98c17e83ae759320983c5986d177

7 years agoMerge "Fix clang-tidy perfomrance warnings."
wy [Thu, 11 May 2017 02:52:04 +0000 (02:52 +0000)]
Merge "Fix clang-tidy perfomrance warnings."
am: 0e986b8d5d

Change-Id: I608f585ea91e664e0e262448fd7e67fd05458f1e

7 years agoMerge "Fix clang-tidy perfomrance warnings."
Treehugger Robot [Thu, 11 May 2017 02:46:42 +0000 (02:46 +0000)]
Merge "Fix clang-tidy perfomrance warnings."

7 years agoFix clang-tidy perfomrance warnings.
wy [Wed, 10 May 2017 22:21:13 +0000 (15:21 -0700)]
Fix clang-tidy perfomrance warnings.

Change-Id: Ibf3d32a5ba1cb70158d857be3d20aa3d1a870341
Test: build with WITH_TIDY=1

7 years agoMerge "greylist is no longer enabled by default." am: a93fcd0394
Jiyong Park [Wed, 10 May 2017 02:52:33 +0000 (02:52 +0000)]
Merge "greylist is no longer enabled by default." am: a93fcd0394
am: 55dbe0a31b

Change-Id: I4d44269d37dbc038db3ffd34ff8ea4a06dc7b4d2

7 years agoMerge "Remove known failures from arm ifunc tests" am: 9259c5bde6
Dimitry Ivanov [Wed, 10 May 2017 02:52:19 +0000 (02:52 +0000)]
Merge "Remove known failures from arm ifunc tests" am: 9259c5bde6
am: aef886b527

Change-Id: If5115947da7248def566c99d2ad872e1abb084b2

7 years agoMerge "greylist is no longer enabled by default."
Jiyong Park [Wed, 10 May 2017 02:47:04 +0000 (02:47 +0000)]
Merge "greylist is no longer enabled by default."
am: a93fcd0394

Change-Id: I7a36df6a790e01cf947de920be8eb2dc5b6a8d9e

7 years agoMerge "Remove known failures from arm ifunc tests"
Dimitry Ivanov [Wed, 10 May 2017 02:46:49 +0000 (02:46 +0000)]
Merge "Remove known failures from arm ifunc tests"
am: 9259c5bde6

Change-Id: I5de89e6905ff3fcfa80c66a7a26dc59971325f00

7 years agoMerge "greylist is no longer enabled by default."
Treehugger Robot [Wed, 10 May 2017 02:33:28 +0000 (02:33 +0000)]
Merge "greylist is no longer enabled by default."

7 years agoMerge "Remove known failures from arm ifunc tests"
Treehugger Robot [Wed, 10 May 2017 02:27:56 +0000 (02:27 +0000)]
Merge "Remove known failures from arm ifunc tests"

7 years agoMerge "Cope with AT_SYSINFO not being set on x86." am: 3c71e1ae18
Elliott Hughes [Wed, 10 May 2017 01:45:45 +0000 (01:45 +0000)]
Merge "Cope with AT_SYSINFO not being set on x86." am: 3c71e1ae18
am: 0a27d1b6c0

Change-Id: I09da6e37dc0c916cee9bdd5533a1fd251eaa8197

7 years agoMerge "Cope with AT_SYSINFO not being set on x86."
Elliott Hughes [Wed, 10 May 2017 01:40:16 +0000 (01:40 +0000)]
Merge "Cope with AT_SYSINFO not being set on x86."
am: 3c71e1ae18

Change-Id: I64b3be17befa077434fc231a9f4c3ccfbf5b38d0

7 years agoMerge "Cope with AT_SYSINFO not being set on x86."
Treehugger Robot [Wed, 10 May 2017 01:28:53 +0000 (01:28 +0000)]
Merge "Cope with AT_SYSINFO not being set on x86."

7 years agogreylist is no longer enabled by default.
Jiyong Park [Fri, 5 May 2017 13:07:05 +0000 (22:07 +0900)]
greylist is no longer enabled by default.

greylist is needed only for application namepaces. Since we started using
linker-namesapces for vendors and other platform apps linker should not
enable greylist workaround by default.

Bug: http://b/37731053
Bug: https://issuetracker.google.com/38146125
Test: sailfish builds and boots
Test: bionic-unit-tests and linker-unit-tests pass
Change-Id: Iee83db6fb1ae754f5ade18491321d9bca3b5ead4
(cherry picked from commit e8ffe56a9c2bacc6bd880238250ad61e2bbb257b)

7 years agoMerge "Zero-initialize user_desc for __set_thread_area." am: 4119281323
Elliott Hughes [Wed, 10 May 2017 00:19:38 +0000 (00:19 +0000)]
Merge "Zero-initialize user_desc for __set_thread_area." am: 4119281323
am: e5652e566c

Change-Id: I444057a0e2ddc0984b7e5bfd59c63609923c60a3

7 years agoMerge "Zero-initialize user_desc for __set_thread_area."
Elliott Hughes [Wed, 10 May 2017 00:14:39 +0000 (00:14 +0000)]
Merge "Zero-initialize user_desc for __set_thread_area."
am: 4119281323

Change-Id: I25a508b09ea208182e96b21a997f1e89a865e590

7 years agoMerge "Zero-initialize user_desc for __set_thread_area."
Elliott Hughes [Tue, 9 May 2017 23:59:07 +0000 (23:59 +0000)]
Merge "Zero-initialize user_desc for __set_thread_area."

7 years agoZero-initialize user_desc for __set_thread_area.
Elliott Hughes [Tue, 9 May 2017 21:39:24 +0000 (14:39 -0700)]
Zero-initialize user_desc for __set_thread_area.

The kernel does seem to read some of the "unused" fields if only to do
basic validity checks.

valgrind complained about this, and I'm not convinced it's spurious.

Bug: http://b/38034461
Test: ran tests
Change-Id: I077fcc75bf0738491242166fc4576a9693ce18a5

7 years agoCope with AT_SYSINFO not being set on x86.
Elliott Hughes [Tue, 9 May 2017 21:26:30 +0000 (14:26 -0700)]
Cope with AT_SYSINFO not being set on x86.

Bug: http://b/38034461
Test: ran dexdump under valgrind on x86
Change-Id: I6a54c7ed4fe4e68731e099d9569ab788379820f8

7 years agoMerge "Add new memchr/strrchr tests." am: ea5ee452c9
Christopher Ferris [Tue, 9 May 2017 16:54:34 +0000 (16:54 +0000)]
Merge "Add new memchr/strrchr tests." am: ea5ee452c9
am: 562e484b95

Change-Id: I0cace426ba383e31c590244607aa8a167c2893a9

7 years agoMerge "Add new memchr/strrchr tests."
Christopher Ferris [Tue, 9 May 2017 16:51:01 +0000 (16:51 +0000)]
Merge "Add new memchr/strrchr tests."
am: ea5ee452c9

Change-Id: I92861fd3aed7e2b5739724819cbead1cbd9c8419

7 years agoMerge "Add new memchr/strrchr tests."
Christopher Ferris [Tue, 9 May 2017 16:40:29 +0000 (16:40 +0000)]
Merge "Add new memchr/strrchr tests."

7 years agoAdd new memchr/strrchr tests.
Christopher Ferris [Mon, 8 May 2017 21:24:29 +0000 (14:24 -0700)]
Add new memchr/strrchr tests.

There are new optimizations for these functions, so adding some extra
testing for these routines.

Also, clean up the strchr test slightly with some extra comments.

Test: Ran new tests on glibc version, and on angler.
Change-Id: I41bf4e5e2c84295cc1ce9d2226ed57c2d228d7b8

7 years agoMerge "Make raise/abort work with stale cached pid/tid values." am: 1f9e648878
Josh Gao [Sat, 6 May 2017 01:03:30 +0000 (01:03 +0000)]
Merge "Make raise/abort work with stale cached pid/tid values." am: 1f9e648878
am: 3537fa1c45

Change-Id: Iaf8f99b9fe45e8ce070b5bf17e4f766a3d36e5c8

7 years agoMerge "Make raise/abort work with stale cached pid/tid values."
Josh Gao [Sat, 6 May 2017 01:01:30 +0000 (01:01 +0000)]
Merge "Make raise/abort work with stale cached pid/tid values."
am: 1f9e648878

Change-Id: Ife384adfc3ff035ac1b31341acd0aebae4886c9a

7 years agoMerge "Make raise/abort work with stale cached pid/tid values."
Treehugger Robot [Sat, 6 May 2017 00:56:20 +0000 (00:56 +0000)]
Merge "Make raise/abort work with stale cached pid/tid values."

7 years agoMake raise/abort work with stale cached pid/tid values.
Josh Gao [Fri, 5 May 2017 20:27:15 +0000 (13:27 -0700)]
Make raise/abort work with stale cached pid/tid values.

Switch raise to using tgkill with direct syscalls of getpid/gettid,
and switch abort to use raise(SIGABRT).

Bug: http://b/37769298
Test: debuggerd_test
Change-Id: If6f9d17fd8ae6177e742dc9f2f44bd78539431ba

7 years agoMerge changes from topic 'mips_seccomp_fixes' am: e6691d3470
Lazar Trsic [Fri, 5 May 2017 18:44:30 +0000 (18:44 +0000)]
Merge changes from topic 'mips_seccomp_fixes' am: e6691d3470
am: 225c2c0804

Change-Id: Ibff18f07793e56d887040c0c349999ad78d2be8f

7 years agoMerge changes from topic 'mips_seccomp_fixes'
Lazar Trsic [Fri, 5 May 2017 18:42:33 +0000 (18:42 +0000)]
Merge changes from topic 'mips_seccomp_fixes'
am: e6691d3470

Change-Id: I757c5de7de03e78227a816cd4ea7b18e8073129c

7 years agoMerge changes from topic 'mips_seccomp_fixes'
Treehugger Robot [Fri, 5 May 2017 18:31:31 +0000 (18:31 +0000)]
Merge changes from topic 'mips_seccomp_fixes'

* changes:
  [MIPS64] Enable necessary mips64 syscalls in seccomp whitelist
  Fix MIPS seccomp definitions for PRIMARY and SECONDARY arch

7 years ago[MIPS64] Enable necessary mips64 syscalls in seccomp whitelist
Lazar Trsic [Fri, 5 May 2017 12:44:11 +0000 (14:44 +0200)]
[MIPS64] Enable necessary mips64 syscalls in seccomp whitelist

Allow execution of: newfstatat, fstat and cacheflush syscalls
for mips64 arch.

Test: Boot mips64 emulator to homescreen with 3.18 kernel.
emulator -kernel prebuilts/qemu-kernel/mips64/3.18/kernel-qemu2

Change-Id: Ib5d6b0060f3e17b64d86fc944aa83a5240d512f8

7 years agoFix MIPS seccomp definitions for PRIMARY and SECONDARY arch
Lazar Trsic [Fri, 5 May 2017 12:29:34 +0000 (14:29 +0200)]
Fix MIPS seccomp definitions for PRIMARY and SECONDARY arch

Set correct values for PRIMARY and SECONDARY arch definitions
to match LE MIPS architectures.
This change is resolving boot problem for mips32 arch with 3.18 kernel.
This also fixes mips64 issue related to PRIMARY_ARCH definition,
but in order to boot to home screen it needs additional syscalls whitelisted
which will be introduced in separate patch.

Tested on emulator:
emulator -kernel prebuilts/qemu-kernel/mips/3.18/kernel-qemu2

Change-Id: I68dfd136c22141933a8a8c5336db01a02f00b0df

7 years agoMerge "libc: clean up ARM64 copyright notices" am: 86b3494e3b
Jake Weinstein [Fri, 5 May 2017 07:22:19 +0000 (07:22 +0000)]
Merge "libc: clean up ARM64 copyright notices" am: 86b3494e3b
am: 14a79c672c

Change-Id: Iacc276c31b023fd51eaee4d67e5a084393ac3728

7 years agoMerge "libc: clean up ARM64 copyright notices"
Jake Weinstein [Fri, 5 May 2017 07:19:17 +0000 (07:19 +0000)]
Merge "libc: clean up ARM64 copyright notices"
am: 86b3494e3b

Change-Id: I5f3c8e6f8d38f0a3d8388ca5323c45b4a19c2c02

7 years agoMerge "libc: clean up ARM64 copyright notices"
Treehugger Robot [Fri, 5 May 2017 07:15:08 +0000 (07:15 +0000)]
Merge "libc: clean up ARM64 copyright notices"

7 years agolibc: clean up ARM64 copyright notices
Jake Weinstein [Thu, 4 May 2017 16:08:39 +0000 (12:08 -0400)]
libc: clean up ARM64 copyright notices

Test: None needed

Change-Id: I3626a92329e954f67bada6ed73f3033225bbfef5

7 years agoMerge changes Ia7200bf0,I86999bb7 am: 05fd20c797
Josh Gao [Thu, 4 May 2017 04:13:55 +0000 (04:13 +0000)]
Merge changes Ia7200bf0,I86999bb7 am: 05fd20c797
am: d6a9b2600b

Change-Id: I9a6d9ffacd44b9d062b4ed08c832fffe5393fada

7 years agoMerge changes Ia7200bf0,I86999bb7
Josh Gao [Thu, 4 May 2017 04:10:57 +0000 (04:10 +0000)]
Merge changes Ia7200bf0,I86999bb7
am: 05fd20c797

Change-Id: I233e1b86ae5f74136f8a728ecedb00d2f4444c70

7 years agoMerge changes Ia7200bf0,I86999bb7
Treehugger Robot [Thu, 4 May 2017 04:08:22 +0000 (04:08 +0000)]
Merge changes Ia7200bf0,I86999bb7

* changes:
  versioner: fix leak.
  versioner: add symlink for dependencies.

7 years agoRemove known failures from arm ifunc tests
Dimitry Ivanov [Wed, 3 May 2017 18:01:00 +0000 (11:01 -0700)]
Remove known failures from arm ifunc tests

Since clang does not produce IRELATIVE relocations
this test started passing when we switched away from gcc
This is still a problem because it now leads to
situation where static ifuncs become globally visible
but this is a different problem.

Test: bionic-unit-tests --gtest_filer=dl*
Change-Id: Id27ba5093b88519c00acbc43ab8a991a671a9f51

7 years agoMerge "Move libc_log code into libasync_safe." am: 5725481f1e
Christopher Ferris [Wed, 3 May 2017 17:55:53 +0000 (17:55 +0000)]
Merge "Move libc_log code into libasync_safe." am: 5725481f1e
am: 197ddaa2cd

Change-Id: I5aa223fa072876420d461dedccfdf29fbd218275

7 years agoMerge "Move libc_log code into libasync_safe."
Christopher Ferris [Wed, 3 May 2017 17:51:48 +0000 (17:51 +0000)]
Merge "Move libc_log code into libasync_safe."
am: 5725481f1e

Change-Id: I24de307b68be5c1576dc32f5806f326604f149b4

7 years agoMerge "Move libc_log code into libasync_safe."
Christopher Ferris [Wed, 3 May 2017 17:43:33 +0000 (17:43 +0000)]
Merge "Move libc_log code into libasync_safe."

7 years agoMerge "Add ifunc for variable test-case" am: 846924ae95
Dimitry Ivanov [Wed, 3 May 2017 16:18:36 +0000 (16:18 +0000)]
Merge "Add ifunc for variable test-case" am: 846924ae95
am: 71d3f64fe8

Change-Id: Ia80b4945ed518ef72b3751adff44c7608ac01151

7 years agoMerge "Add ifunc for variable test-case"
Dimitry Ivanov [Wed, 3 May 2017 16:16:05 +0000 (16:16 +0000)]
Merge "Add ifunc for variable test-case"
am: 846924ae95

Change-Id: Iefc3604348a890ec9d49a51359421c071109fc64

7 years agoMerge "Add ifunc for variable test-case"
Dimitry Ivanov [Wed, 3 May 2017 16:11:25 +0000 (16:11 +0000)]
Merge "Add ifunc for variable test-case"

7 years agoMove libc_log code into libasync_safe.
Christopher Ferris [Tue, 25 Apr 2017 00:48:32 +0000 (17:48 -0700)]
Move libc_log code into libasync_safe.

This library is used by a number of different libraries in the system.
Make it easy for platform libraries to use this library and create
an actual exported include file.

Change the names of the functions to reflect the new name of the library.

Run clang_format on the async_safe_log.cpp file since the formatting is
all over the place.

Bug: 31919199

Test: Compiled for angler/bullhead, and booted.
Test: Ran bionic unit tests.
Test: Ran the malloc debug tests.
Change-Id: I8071bf690c17b0ea3bc8dc5749cdd5b6ad58478a