mirror_ubuntu-kernels/drivers/infiniband/hw
Kees Cook 4bf5cc6319 IB/mlx4: Avoid field-overflowing memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring array fields.

Use the ether_addr_copy() helper instead, as already done for smac.

Link: https://lore.kernel.org/r/20210616203744.1248551-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-06-21 21:04:54 -03:00
..
bnxt_re RDMA/bnxt_re: Update ABI to pass wqe-mode to user space 2021-06-21 20:58:52 -03:00
cxgb4 RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
efa RDMA: Split the alloc_hw_stats() ops to port and device variants 2021-06-16 20:58:29 -03:00
hfi1 RDMA: Fix kernel-doc warnings about wrong comment 2021-06-21 20:32:50 -03:00
hns RDMA: Fix kernel-doc warnings about wrong comment 2021-06-21 20:32:50 -03:00
irdma RDMA: Split the alloc_hw_stats() ops to port and device variants 2021-06-16 20:58:29 -03:00
mlx4 IB/mlx4: Avoid field-overflowing memcpy() 2021-06-21 21:04:54 -03:00
mlx5 RDMA/mlx5: Enable Relaxed Ordering by default for kernel ULPs 2021-06-21 12:33:08 -03:00
mthca RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
ocrdma RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
qedr RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
qib RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
usnic RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
vmw_pvrdma RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00