linux/drivers/infiniband
Colin Ian King 6becfe913b RDMA/bnxt_re: Fix uninitialized struct bit field rsvd1
The bit field rsvd1 in resp is not being initialized and garbage data is
being copied from the stack back to userspace via the ib_copy_to_udata
call. Fix this by setting the entire struct resp to zero; this will ensure
that further new bit fields in the future will be zero'd too.

Link: https://lore.kernel.org/r/20210623182437.163801-1-colin.king@canonical.com
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 879740517d ("RDMA/bnxt_re: Update ABI to pass wqe-mode to user space")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
[jgg: remove extra zeroing]
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-06-24 09:16:42 -03:00
..
core Linux 5.13-rc7 2021-06-22 14:43:51 -03:00
hw RDMA/bnxt_re: Fix uninitialized struct bit field rsvd1 2021-06-24 09:16:42 -03:00
sw RDMA/rxe: Fix redundant skb_put_zero 2021-06-22 15:38:53 -03:00
ulp IB/isert: Align target max I/O size to initiator size 2021-06-24 09:07:53 -03:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile