aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2017-03-17 16:49:19 +0200
committerHerbert Xu <[email protected]>2017-03-24 22:03:00 +0800
commit42d5c176b76e190a4a3e0dfeffdae661755955b6 (patch)
treedb6d2bd1e87eb5df0aea49129add8ee419e4ccc7 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentb189817cf7894e03fd3700acd923221d3007259e (diff)
crypto: s5p-sss - Close possible race for completed requests
Driver is capable of handling only one request at a time and it stores it in its state container struct s5p_aes_dev. This stored request must be protected between concurrent invocations (e.g. completing current request and scheduling new one). Combination of lock and "busy" field is used for that purpose. When "busy" field is true, the driver will not accept new request thus it will not overwrite currently handled data. However commit 28b62b145868 ("crypto: s5p-sss - Fix spinlock recursion on LRW(AES)") moved some of the write to "busy" field out of a lock protected critical section. This might lead to potential race between completing current request and scheduling a new one. Effectively the request completion might try to operate on new crypto request. Cc: <[email protected]> # v4.10.x Fixes: 28b62b145868 ("crypto: s5p-sss - Fix spinlock recursion on LRW(AES)") Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions