diff options
| author | Todd Kjos <tkjos@google.com> | 2017-05-24 13:33:28 -0700 |
|---|---|---|
| committer | Todd Kjos <tkjos@google.com> | 2017-07-13 15:13:57 +0000 |
| commit | 0f32aeb35f8b8c3d07f1c03062cc195590145d35 (patch) | |
| tree | 3ac7ad4b69ac7cd07efe62bae9a6ebeae227b581 /tools/perf/scripts/python | |
| parent | 42e1ca789418a06b5ed727f527bb0f329bc28c26 (diff) | |
FROMLIST: binder: use atomic for transaction_log index
(from https://patchwork.kernel.org/patch/9817807/)
The log->next index for the transaction log was
not protected when incremented. This led to a
case where log->next++ resulted in an index
larger than ARRAY_SIZE(log->entry) and eventually
a bad access to memory.
Fixed by making the log index an atomic64 and
converting to an array by using "% ARRAY_SIZE(log->entry)"
Also added "complete" field to the log entry which is
written last to tell the print code whether the
entry is complete
Bug: 62038227
Test: tested manually
Change-Id: I1bb1c1a332a6ac458a626f5bedd05022b56b91f2
Signed-off-by: Todd Kjos <tkjos@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
