OpenCloudOS-Kernel/drivers/infiniband/hw/bnxt_re
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
..
Kconfig RDMA/bnxt_re: Depend on bnxt ethernet driver and not blindly select it 2021-04-19 14:57:03 -03:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
bnxt_re.h RDMA/bnxt_re: Move device to error state upon device crash 2021-03-26 10:37:01 -03:00
hw_counters.c RDMA: Split the alloc_hw_stats() ops to port and device variants 2021-06-16 20:58:29 -03:00
hw_counters.h RDMA: Split the alloc_hw_stats() ops to port and device variants 2021-06-16 20:58:29 -03:00
ib_verbs.c RDMA/bnxt_re: Fix uninitialized struct bit field rsvd1 2021-06-24 09:16:42 -03:00
ib_verbs.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
main.c RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
qplib_fp.c RDMA/bnxt_re: Fix error return code in bnxt_qplib_cq_process_terminal() 2021-04-12 15:11:00 -03:00
qplib_fp.h RDMA/bnxt_re: Update ABI to pass wqe-mode to user space 2021-06-21 20:58:52 -03:00
qplib_rcfw.c RDMA/bnxt_re: Move device to error state upon device crash 2021-03-26 10:37:01 -03:00
qplib_rcfw.h RDMA/bnxt_re: Move device to error state upon device crash 2021-03-26 10:37:01 -03:00
qplib_res.c RDMA/bnxt_re: Enable global atomic ops if platform supports 2021-06-03 16:59:11 -03:00
qplib_res.h RDMA/bnxt_re: Update ABI to pass wqe-mode to user space 2021-06-21 20:58:52 -03:00
qplib_sp.c RDMA/bnxt_re: Enable global atomic ops if platform supports 2021-06-03 16:59:11 -03:00
qplib_sp.h RDMA/bnxt_re: Enable global atomic ops if platform supports 2021-06-03 16:59:11 -03:00
roce_hsi.h RDMA/bnxt_re: Add helper data structures 2020-07-20 16:32:50 -03:00