android_kernel_oneplus_msm8998/drivers/infiniband/hw
Michael Mera 45c679be34 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>
2018-08-15 17:42:06 +02:00
..
cxgb3
cxgb4 iw_cxgb4: correctly enforce the max reg_mr depth 2018-07-17 11:31:44 +02:00
mlx4 IB/mlx4: Mark user MR as writable if actual virtual memory is writable 2018-08-15 17:42:06 +02:00
mlx5 RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure 2018-05-30 07:48:54 +02:00
mthca
nes
ocrdma IB/ocrdma: fix out of bounds access to local buffer 2018-08-15 17:42:06 +02:00
qib IB/qib: Fix DMA api warning with debug kernel 2018-07-03 11:21:29 +02:00
usnic
Makefile