diff options
author | Adrian Salido <salidoa@google.com> | 2017-04-18 11:44:33 -0700 |
---|---|---|
committer | Dennis Cagle <dcagle@codeaurora.org> | 2017-08-21 16:02:39 -0700 |
commit | 761ef1a0a0b63dfa8bb9b2221da6a44278b1179f (patch) | |
tree | 78f310d90901149534948173c00586f89128c44d /net/ipv4/tcp_output.c | |
parent | 3fe1011f7ece09019a4c3cccbeeff3e3ea15526f (diff) |
tracing: fix race condition reading saved tgids
Commit 939c7a4f04fc ("tracing: Introduce saved_cmdlines_size file")
introduced ability to change saved cmdlines size. This resized saved
command lines but missed resizing tgid mapping as well.
Another issue is that when the resize happens, it removes saved command
lines and reallocates new memory for it. This introduced a race
condition when reading the global savecmd as this can be freed in the
middle of accessing it causing a use after free access. Fix this by
implementing locking.
Signed-off-by: Adrian Salido <salidoa@google.com>
Bug: 36007735
Change-Id: I334791ac35f8bcbd34362ed112aa624275a46947
Git-repo: https://android.googlesource.com/kernel/common
Git-commit: 7116d306da66de0de21e982024b4d3a3056f4461
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions