summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Mera <dev@michaelmera.com>2017-05-01 15:41:16 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-15 17:42:06 +0200
commit45c679be34ac44ad24bc7abf60193b9f43a83490 (patch)
tree57f1b4e3fef5e9273c3f84d4bad60c43db6d562a /tools/perf/scripts/python
parentd803aa2fe665f2dca0e46cefca982ad5c537ca7e (diff)
IB/ocrdma: fix out of bounds access to local buffer
commit 062d0f22a30c39840ea49b72cfcfc1aa4cc538fa upstream. In write to debugfs file 'resource_stats' the local buffer 'tmp_str' is written at index 'count-1' where 'count' is the size of the write, so potentially 0. This patch filters odd values for the write size/position to avoid this type of problem. Signed-off-by: Michael Mera <dev@michaelmera.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions