diff options
| author | Johan Hovold | 2016-05-18 15:47:48 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman | 2016-05-18 16:30:52 -0700 |
| commit | ef62adae82524c745640850f62ab0dfe0b580c9f (patch) | |
| tree | 4a1b53545933d6653a1fa604c8cb6e5925aa097d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b0e97bce153a416c4de4841078fba57b69de10f5 (diff) | |
greybus: operation: fix broken activation logic
An operation should only be added to the connection active list if the
connection is in the enabled state, or if it is in the enabled_tx state
and the operation is not incoming.
This fixes a race where an early or late incoming request could be added
to the active list while the connection is being enabled or disabled,
something which could lead to use-after-free issues or worse.
Note that the early connection-state checks in the receive path
limited the impact of this bug.
Fixes: e903a2ce7379 ("connection: add unidirectional enabled state")
Reported-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
