summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imx/imx-ldb.c
diff options
context:
space:
mode:
authorAdrian Salido <salidoa@google.com>2017-04-18 11:44:33 -0700
committerGreg Hackmann <ghackmann@google.com>2018-08-31 18:25:40 +0000
commit7e85a4b796e80a224b48a524d1efb0485d8b0602 (patch)
treeb294d56b579946fed615e68715683f9cb9485a0d /drivers/gpu/drm/imx/imx-ldb.c
parent5e24b4e4d3724968a1c106e9dae091ef4dfc578e (diff)
ANDROID: 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 (cherry picked from commit 7116d306da66de0de21e982024b4d3a3056f4461)
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
0 files changed, 0 insertions, 0 deletions