diff options
| author | Todd Kjos <tkjos@google.com> | 2017-05-09 08:31:32 -0700 |
|---|---|---|
| committer | Todd Kjos <tkjos@google.com> | 2017-07-13 15:11:05 +0000 |
| commit | 6ea6027115718c27e01e4459901c7938492cfa8f (patch) | |
| tree | 4e0d1f280ba78f2c05ff1d29345925a1c1691c06 /tools/perf/scripts/python | |
| parent | 9b9340c58afa2cf2a76ae06f3019ad631e6f7799 (diff) | |
FROMLIST: binder: avoid race conditions when enqueuing txn
(from https://patchwork.kernel.org/patch/9817813/)
Currently, the transaction complete work item is queued
after the transaction. This means that it is possible
for the transaction to be handled and a reply to be
enqueued in the current thread before the transaction
complete is enqueued, which violates the protocol
with userspace who may not expect the transaction
complete. Fixed by always enqueing the transaction
complete first.
Also, once the transaction is enqueued, it is unsafe
to access since it might be freed. Currently,
t->flags is accessed to determine whether a sync
wake is needed. Changed to access tr->flags
instead.
Change-Id: I6c01566e167a39cf17c9027c3817618182e56975
Signed-off-by: Todd Kjos <tkjos@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
