Files
twx-linux/drivers
Michael Mera 45c679be34 IB/ocrdma: fix out of bounds access to local buffer
commit 062d0f22a3 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>
2018-08-15 17:42:06 +02:00
..
2018-08-06 16:24:36 +02:00
2018-07-22 14:25:52 +02:00
…
…
…
…
…
…
2018-06-16 09:54:26 +02:00
…
2018-08-09 12:19:28 +02:00
2018-02-25 11:03:51 +01:00
2018-06-13 16:15:28 +02:00
…
…
…
…
…
2018-07-25 10:18:17 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…