android_kernel_samsung_sm8650/drivers/infiniband/hw
Kees Cook c2ed5611af iw_cxgb4: Use memset_startat() for cpl_t5_pass_accept_rpl
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.

Use memset_startat() so memset() doesn't get confused about writing beyond
the destination member that is intended to be the starting point of
zeroing through the end of the struct. Additionally, since everything
appears to perform a roundup (including allocation), just change the size
of the struct itself and add a build-time check to validate the expected
size.

Link: https://lore.kernel.org/r/20211213223331.135412-13-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-12-14 20:21:22 -04:00
..
bnxt_re RDMA/bnxt_re: Fix endianness warning for req.pkey 2021-12-06 19:56:30 -04:00
cxgb4 iw_cxgb4: Use memset_startat() for cpl_t5_pass_accept_rpl 2021-12-14 20:21:22 -04:00
efa RDMA/efa: Add support for dmabuf memory regions 2021-10-28 08:58:26 -03:00
hfi1 Linux 5.16-rc5 2021-12-14 20:18:48 -04:00
hns Linux 5.16-rc5 2021-12-14 20:18:48 -04:00
irdma Linux 5.16-rc5 2021-12-14 20:18:48 -04:00
mlx4 Linux 5.16-rc5 2021-12-14 20:18:48 -04:00
mlx5 RDMA/mlx5: Use memset_after() to zero struct mlx5_ib_mr 2021-12-14 20:21:22 -04:00
mthca IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_mr.c' 2021-11-25 13:29:06 -04:00
ocrdma RDMA/ocrdma: Simplify code in 'ocrdma_search_mmap()' 2021-11-29 14:33:55 -04:00
qedr RDMA/qedr: Fix reporting max_{send/recv}_wr attrs 2021-12-07 14:59:26 -04:00
qib Linux 5.15 2021-11-01 14:49:20 -03:00
usnic RDMA/usnic: Clean up usnic_ib_alloc_pd() 2021-11-19 12:02:30 -04:00
vmw_pvrdma RDMA/pvrdma: Use non-atomic bitmap functions when possible 2021-11-29 14:33:56 -04:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00