diff options
author | Kees Cook <keescook@chromium.org> | 2021-06-16 13:37:44 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-21 21:04:54 -0300 |
commit | 4bf5cc63192b9f1adf44525c3da06056b4cf7925 (patch) | |
tree | 42f292c7ba9d009a2919d826132eabfa05bb0eb0 /drivers/infiniband/sw/rxe/rxe_mr.c | |
parent | rnbd/rtrs-clt: Query and use max_segments from rtrs-clt. (diff) | |
download | linux-dev-4bf5cc63192b9f1adf44525c3da06056b4cf7925.tar.xz linux-dev-4bf5cc63192b9f1adf44525c3da06056b4cf7925.zip |
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>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_mr.c')
0 files changed, 0 insertions, 0 deletions