Commit Graph

39595 Commits

Author SHA1 Message Date
Christopher Ferris 2b7ed1f7f6 Merge "Fix off by 4 error handling eh_frame hdr." am: 73a2508dc4 am: 5384c29b55
am: 67abf042d2

Change-Id: I26a90125010791fdd9b98db920f873d05a9b7c29
2018-02-12 20:44:06 +00:00
Elliott Hughes 30867f1d5a Merge "Fix a few demangler issues." am: ecff589728 am: bb5b8ab90d
am: 13ce76d44d

Change-Id: I47514ca11832f68137681f0405158168b6f1c4a9
2018-02-12 20:42:50 +00:00
Christopher Ferris a4509756f6 Merge "Clear dex pc to avoid duplicate frames." am: 643f1e93ae am: d25de127bf
am: 4197a54f03

Change-Id: If88d6fe2f942ad45112f19f250b21d4703c59029
2018-02-12 20:41:49 +00:00
Christopher Ferris 67abf042d2 Merge "Fix off by 4 error handling eh_frame hdr." am: 73a2508dc4
am: 5384c29b55

Change-Id: I594b42148331d1349f8733eb36460c85a2d8bcd4
2018-02-12 20:22:27 +00:00
Elliott Hughes 13ce76d44d Merge "Fix a few demangler issues." am: ecff589728
am: bb5b8ab90d

Change-Id: I942d758028657ba9fbc613a50e4e91bcb62681d4
2018-02-12 20:21:46 +00:00
Christopher Ferris 4197a54f03 Merge "Clear dex pc to avoid duplicate frames." am: 643f1e93ae
am: d25de127bf

Change-Id: Ie3c6e1cb4c8f1b2a212a2b6ea872c51a267bfe2d
2018-02-12 20:20:52 +00:00
Christopher Ferris 5384c29b55 Merge "Fix off by 4 error handling eh_frame hdr."
am: 73a2508dc4

Change-Id: Ic5374ce8305b29fa471bd2591a1943918ac74111
2018-02-12 20:09:12 +00:00
Elliott Hughes bb5b8ab90d Merge "Fix a few demangler issues."
am: ecff589728

Change-Id: I4cd74455f1055ab02c0599035e3d789ce8a97520
2018-02-12 20:08:27 +00:00
Christopher Ferris d25de127bf Merge "Clear dex pc to avoid duplicate frames."
am: 643f1e93ae

Change-Id: I1efa6a2331da06a019b126924ec0ca074068760d
2018-02-12 20:07:46 +00:00
Christopher Ferris 73a2508dc4 Merge "Fix off by 4 error handling eh_frame hdr." 2018-02-12 18:58:34 +00:00
Elliott Hughes ecff589728 Merge "Fix a few demangler issues." 2018-02-12 18:54:29 +00:00
Christopher Ferris 643f1e93ae Merge "Clear dex pc to avoid duplicate frames." 2018-02-12 18:44:20 +00:00
Ajit Kumar c2a059fbf0 Enabled SYS_MODULE capability for wifi@1.0-service
Add sys_module capability to enabled insmod operation.

Change-Id: I6436c3297e5318bd00ae3582549a11cb82ccbafd
2018-02-12 18:31:47 +00:00
Christopher Ferris a8c397317d Clear dex pc to avoid duplicate frames.
Bug: 73228466

Test: Passes new unit tests, fails without change.
Change-Id: I3660bfd16cbf2d5cf96490ca7714bc5f97914884
2018-02-12 08:46:19 -08:00
Christopher Ferris e37e2d05b1 Fix off by 4 error handling eh_frame hdr.
- Add a new tool that can dump the register information given a pc.
- Add a new offline unwinder test that fails without this change.
- Update unit tests.
- Refactor offline unwind tests to make it easier to add tests.

Bug: 73048324

Test: Passes new unit tests.
Test: Passes libbacktrace unit tests.
Test: Ran debuggerd -b on random processes.
Change-Id: If6c70a044299505c2274ae6888b35bf9ac34b74b
2018-02-10 17:11:23 -08:00
Josh Gao 93c1ca6224 Merge "debuggerd_fallback: fix race." am: cd2fa1f432 am: 135dacd4d1
am: 9606bfaa42

Change-Id: I5cb3ce094be188b466f90f6aa41085a5d77fda30
2018-02-10 02:18:13 +00:00
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
TreeHugger Robot 227d289528 Merge "Implement stats logging in LMKD." 2018-02-10 00:56:33 +00: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 b98ebfb437 Merge "Add explanation for clone use" am: bac72c884f am: c9d48b25fc
am: d4f6dc272c

Change-Id: Ia48e83e750d28f16631e0adb80ee20bab28a01ed
2018-02-09 23:16:58 +00:00
Christopher Ferris b433ffdbf3 Merge "Expose per arch headers." am: 99888af9f1 am: 8711fbb08c
am: ab8d60cc7c

Change-Id: I82fdc4c200f03fa09cdf39fe34c738430bc70ee4
2018-02-09 23:14:45 +00: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
Rajeev Kumar 7045003d0d Implement stats logging in LMKD.
It implements logging of following atoms:
  -- LMK_STATE_CHANGED
  -- LMK_KILL_OCCURRED

We would like to gather memory metrics of the process killed by LMKD
because by gathering this info we would be able to analyze and improve
system health by potentially reducing memory footprint of the process.

This feature would be available on production builds.

To know more about this see: http://go/android-p-memory-metrics

Bug: 65738734
Test: Tested manually
Change-Id: I064e0cdcb47c3b4c95d8b8d5654050c9812008d8
2018-02-09 13:07:40 -08: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 8259070744 Merge "debuggerd: update policy for recent sigaction changes." am: 26b69296fe am: 6ab5e9c96b
am: 573a95d696

Change-Id: Ied048a2116726363d1a5c14d2f5a4d44977c67de
2018-02-09 07:34:27 +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 feaf9f1d4a Merge "Remove dependency on -no_art variant" am: 2ccde89153 am: 1f5228709c
am: 1f42401f35

Change-Id: I58e8ff0d06708d42ff2dbfe4cb85820dfb4c05d3
2018-02-08 21:51:58 +00: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 c67fd14fd1 Merge "Revert "Don't initialize atrace if it's already disabled."" am: c50d19c0b0 am: 33d3758684
am: 006cd45c86

Change-Id: I1f9e10da302fdb6b0a427dae321551f8e3744f7a
2018-02-08 17:46:30 +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 eab887b60e Merge changes from topic "vndk-sp-list-update" am: 4c0ee1e8a0 am: 6edfca6e3b
am: 0d77d80aad

Change-Id: I366d50eee8edb40f243c551a2051d5efebdb3e72
2018-02-08 08:14:12 +00:00
Justin Yun ee92842a51 Use actual VNDK list for non-VNDK-enforcing devices am: 8a9a8eeb85 am: c2ff3dbbfe
am: cd299eb528  -s ours

Change-Id: I49ac136860e08782262f624958c2e4bf2c08047b
2018-02-08 08:13:05 +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