Commit graph

38716 commits

Author SHA1 Message Date
Josh Gao
9606bfaa42 Merge "debuggerd_fallback: fix race." am: cd2fa1f432
am: 135dacd4d1

Change-Id: I5330f48b7f1d713644465865ac33badcce046d7a
2018-02-10 02:05:47 +00:00
Josh Gao
135dacd4d1 Merge "debuggerd_fallback: fix race."
am: cd2fa1f432

Change-Id: Ie074a05e7eacbf8234c4ece44e98a9f8b5b96a2e
2018-02-10 01:59:44 +00:00
Treehugger Robot
cd2fa1f432 Merge "debuggerd_fallback: fix race." 2018-02-10 01:44:07 +00:00
Elliott Hughes
d7bb826a9c Fix a few demangler issues.
Specifically:

  * rvalue references.

  * St does not require N...E delimiters (explicit special case in the spec).

  * ".cfi" suffixes.

Bug: http://b/67678053
Test: ran tests
Change-Id: If8cabad448b46b165eefc6c5487996428c9c6975
2018-02-09 17:34:55 -08:00
Josh Gao
c531ed6648 debuggerd_fallback: fix race.
A race condition occurs when one thread takes more than a second to get
scheduled to handle the signal we send to ask it to dump its stack.
When this happens, the main thread will continue on, close the fd, and
then ask the next thread to dump, but the slow thread will then wake up
and try to write to the new thread's fd, or trigger an assertion in
__linker_enable_fallback_allocator.

Do a few things to make this less bad:
  - encode both target tid and fd in the shared atomic, so that we know
    who each fd is for
  - switch __linker_enable_fallback_allocator to return success instead
    of aborting, and bail out if it's already in use
  - write to the output fd right when we get to it, instead of doing it
    whenever the dumping code decides to, to reduce the likelihood that
    the timeout expires

Test: debuggerd_test
Change-Id: Ife0f6dae388b601e7f991605f14d7a0274013f6b
2018-02-09 15:35:40 -08:00
Daniel Colascione
d4f6dc272c Merge "Add explanation for clone use" am: bac72c884f
am: c9d48b25fc

Change-Id: If5ceab48cb09a3d0f12bbfceb55dce061685d6ed
2018-02-09 22:30:14 +00:00
Christopher Ferris
ab8d60cc7c Merge "Expose per arch headers." am: 99888af9f1
am: 8711fbb08c

Change-Id: If25ba3a408bbf579cd0d99fcc0da6a8a1087cc91
2018-02-09 22:28:07 +00:00
Daniel Colascione
c9d48b25fc Merge "Add explanation for clone use"
am: bac72c884f

Change-Id: Ica0d295c327b0b8c20cf5feac859acec4222b48d
2018-02-09 22:07:47 +00:00
Christopher Ferris
8711fbb08c Merge "Expose per arch headers."
am: 99888af9f1

Change-Id: Ic26c025b5edae7867795c38074e6314b75d75d89
2018-02-09 22:05:57 +00:00
Daniel Colascione
bac72c884f Merge "Add explanation for clone use" 2018-02-09 19:33:09 +00:00
Christopher Ferris
99888af9f1 Merge "Expose per arch headers." 2018-02-09 19:23:31 +00:00
Josh Gao
573a95d696 Merge "debuggerd: update policy for recent sigaction changes." am: 26b69296fe
am: 6ab5e9c96b

Change-Id: I9825660d92f51a37003951566348b19074495713
2018-02-09 07:28:20 +00:00
Josh Gao
6ab5e9c96b Merge "debuggerd: update policy for recent sigaction changes."
am: 26b69296fe

Change-Id: I62891c34504f650a2b4c808f0e5cd4d38fe95e30
2018-02-09 07:23:47 +00:00
Treehugger Robot
26b69296fe Merge "debuggerd: update policy for recent sigaction changes." 2018-02-09 07:12:50 +00:00
Christopher Ferris
53914165e4 Expose per arch headers.
Bug: 73013352

Test: Compiles.
Change-Id: Ic05660db7d7858a9857143ee5e58cdaddcf52a35
2018-02-08 19:29:08 -08:00
Josh Gao
08cd23e732 debuggerd: update policy for recent sigaction changes.
Commit 3e235911 in bionic switched LP32's sigaction implementation over
to using the rt_sigaction syscall, matching LP64. Update our seccomp
policy to match.

Bug: http://b/73119572
Test: debuggerd_test32
Change-Id: I0a662a1c874298d434468d2dcdb4ebf9f276110c
2018-02-08 16:48:03 -08:00
Daniel Colascione
b650aef2a0 Add explanation for clone use
Test: no code changes
Change-Id: I70c8af8261cda3163677557fd78ae0119b1f1be0
2018-02-08 15:07:47 -08:00
David Sehr
1f42401f35 Merge "Remove dependency on -no_art variant" am: 2ccde89153
am: 1f5228709c

Change-Id: Ib04dba9f020f5f28344bdd8c2a32eebb3f95c59a
2018-02-08 21:47:50 +00:00
David Sehr
1f5228709c Merge "Remove dependency on -no_art variant"
am: 2ccde89153

Change-Id: I73179b52f72d82b167d4bfaf38493feac89484a9
2018-02-08 21:43:44 +00:00
David Sehr
2ccde89153 Merge "Remove dependency on -no_art variant" 2018-02-08 21:26:05 +00:00
Paul Crowley
006cd45c86 Merge "Revert "Don't initialize atrace if it's already disabled."" am: c50d19c0b0
am: 33d3758684

Change-Id: I46f1627713be963686a5f5d36e5af24e2cd25626
2018-02-08 17:39:24 +00:00
Paul Crowley
33d3758684 Merge "Revert "Don't initialize atrace if it's already disabled.""
am: c50d19c0b0

Change-Id: I55076549651d386ed7bdfab8ec05061049735271
2018-02-08 17:35:14 +00:00
Treehugger Robot
c50d19c0b0 Merge "Revert "Don't initialize atrace if it's already disabled."" 2018-02-08 17:27:41 +00:00
Justin Yun
0d77d80aad Merge changes from topic "vndk-sp-list-update" am: 4c0ee1e8a0
am: 6edfca6e3b

Change-Id: I542fcb67e5a7aaef0f976d652a42902b0ff521cb
2018-02-08 06:11:06 +00:00
Justin Yun
cd299eb528 Use actual VNDK list for non-VNDK-enforcing devices am: 8a9a8eeb85
am: c2ff3dbbfe

Change-Id: I7a0f5abaad4ed062caf21000ff304c734dba22d6
2018-02-08 06:10:31 +00:00
Justin Yun
6edfca6e3b Merge changes from topic "vndk-sp-list-update"
am: 4c0ee1e8a0

Change-Id: I155e3e864678401e0858842b4bd3ace7600da381
2018-02-08 06:05:30 +00:00
Justin Yun
c2ff3dbbfe Use actual VNDK list for non-VNDK-enforcing devices
am: 8a9a8eeb85

Change-Id: I2677acd9dbd266873fb12d20674e298cc9d1444c
2018-02-08 06:04:37 +00:00
Treehugger Robot
4c0ee1e8a0 Merge changes from topic "vndk-sp-list-update"
* changes:
  Rename namespace configuration source files.
  Use actual VNDK list for non-VNDK-enforcing devices
2018-02-08 05:52:02 +00:00
Josh Gao
16bbf3b4cd Merge "adb: switch asocket::enqueue to std::string." am: 9bf624cd3a
am: e523a6c94f

Change-Id: I1a41300d93477f008f6a8f9eca611b1985897c3d
2018-02-08 02:59:26 +00:00
Josh Gao
d3f70d4a83 Merge changes I86bcfaaa,I24d7f5d0 am: f99711fe87
am: 157c2fa504

Change-Id: Ie9e05081da1ba2c67d80b197aaeaa0706cc7c64a
2018-02-08 02:55:18 +00:00
Josh Gao
e523a6c94f Merge "adb: switch asocket::enqueue to std::string."
am: 9bf624cd3a

Change-Id: Ifd2c3237cb6f12d7b8592f42ec3c378053a01491
2018-02-08 02:34:57 +00:00
Josh Gao
157c2fa504 Merge changes I86bcfaaa,I24d7f5d0
am: f99711fe87

Change-Id: I4e21cf95ef677dd14c90830456eba400deb32eda
2018-02-08 02:30:18 +00:00
Josh Gao
9bf624cd3a Merge "adb: switch asocket::enqueue to std::string." 2018-02-08 01:06:22 +00:00
Paul Crowley
738adf7b46 Revert "Don't initialize atrace if it's already disabled."
This reverts commit e184423526.

Reason for revert: b/73081734
Bug: 73081734

Change-Id: I8ae835f5575292ebd3c4457ef26c2e8f98cfa11e
2018-02-08 00:49:37 +00:00
Josh Gao
f99711fe87 Merge changes I86bcfaaa,I24d7f5d0
* changes:
  adb: restore packet data length checks.
  adb: switch asocket's intrusive linked list to vectors.
2018-02-08 00:34:40 +00:00
Jerry Zhang
3be61d3850 Remove urb request size maximum.
The 16kB maximum for transfers was removed from
the kernel in 3.3. Devio has since supported
arbitrary transfer sizes through scatter gather.

See the following kernel patches for context:
"USB: change the memory limits in usbfs URB submission"
"usbdevfs: Use scatter-gather lists for large bulk transfers"

Bug: 67683483
Test: Run usb_async_test app with USB3 : 38MB/s -> 300MB/s
Change-Id: Ia52440cb725561b0f1db1a75aa1b8ab952585826
2018-02-07 16:12:14 -08:00
Justin Yun
27bdc37fac Rename namespace configuration source files.
For strict VNDK runtime restriction, use ld.config.txt as a source
file. For treblized devices without BOARD_VNDK_VERSION, use
ld.config.vndk_lite.txt file.

Test: Build and boot on Pixel 2017 and 2018 devices.
Change-Id: Ie5b77facd4c11bc73219ecf13ad1298ac5d60d8e
2018-02-08 08:46:59 +09:00
Justin Yun
8a9a8eeb85 Use actual VNDK list for non-VNDK-enforcing devices
Rename ld.config.txt.in to ld.config.vndk.txt and
ld.config.txt to ld.config.vndk_light.txt.

For FULL_TREBLE devices without BOARD_VNDK_VERSION, update the VNDK
library list in ld.config.vndk_light.txt with the actual VNDK list.

Bug: 69526027
Test: Build marlin/sailfish and check boot
Change-Id: Idbb0cc97d11037c1493d4739e84961297ce51dbd
Merged-In: Idbb0cc97d11037c1493d4739e84961297ce51dbd
2018-02-08 08:33:15 +09:00
David Sehr
892e675a89 Remove dependency on -no_art variant
Remove an external dependency on a shim I used to protect against
renaming.

Bug: 22322814
Test: make -j 50
Change-Id: I7e6eaee7d82a1a42d4c37daa74803cefc7bb68ce
2018-02-07 15:19:22 -08:00
Todd Poynor
c025a154cb Merge "healthd: don't report fake data for battery-less devices" am: ab26cc4b12
am: d9960d84d1

Change-Id: I30f0925d6b6f14d56197a52eb61e47fdc46d0af3
2018-02-07 20:50:46 +00:00
Todd Poynor
d9960d84d1 Merge "healthd: don't report fake data for battery-less devices"
am: ab26cc4b12

Change-Id: I2597154b24428ca806d628ad567c5742722caeac
2018-02-07 20:46:07 +00:00
Treehugger Robot
ab26cc4b12 Merge "healthd: don't report fake data for battery-less devices" 2018-02-07 20:38:32 +00:00
Christopher Ferris
5dc48189ee Merge "Check that dex pc is in a valid map." am: 3ff3ff1c36
am: 7d362f1eb7

Change-Id: I0ebc59d03f920ad1d98a7b99ccd25d465b06b57a
2018-02-07 15:02:37 +00:00
Christopher Ferris
7d362f1eb7 Merge "Check that dex pc is in a valid map."
am: 3ff3ff1c36

Change-Id: If82d8eacf0186ba49c4728bf9dfb78a781ae19e5
2018-02-07 14:58:03 +00:00
Christopher Ferris
3ff3ff1c36 Merge "Check that dex pc is in a valid map." 2018-02-07 14:50:03 +00:00
Josh Gao
b4affd20b7 Merge "adb: don't spew to logcat when tracing is enabled." am: 28c44863f6
am: b652ac4bd8

Change-Id: I47e464c9d9e50e67cde76340f9109f28cc3845a2
2018-02-07 06:12:53 +00:00
Josh Gao
b652ac4bd8 Merge "adb: don't spew to logcat when tracing is enabled."
am: 28c44863f6

Change-Id: I8f848151e5df370c43382bb01bddeda0f252da67
2018-02-07 06:08:16 +00:00
Treehugger Robot
28c44863f6 Merge "adb: don't spew to logcat when tracing is enabled." 2018-02-07 05:57:46 +00:00
Mark Salyzyn
9e11bb0cdb Merge "lmkd: use after free" am: 7c3c8c27e1
am: c95fb64f0f

Change-Id: I14be93f1bb37bab59b68c874017c4979cf9655db
2018-02-07 02:40:04 +00:00
Mark Salyzyn
c95fb64f0f Merge "lmkd: use after free"
am: 7c3c8c27e1

Change-Id: If54ce69ac7ca03a67e25a2e3a3f4392ba2a8aeca
2018-02-07 02:26:30 +00:00