1
0
Fork 0
alistair23-linux/drivers/infiniband/hw/efa
Gal Pressman a672f38f5f RDMA/efa: Clear the admin command buffer prior to its submission
[ Upstream commit 64c264872b ]

We cannot rely on the entry memcpy as we only copy the actual size of the
command, the rest of the bytes must be memset to zero.

Currently providing non-zero memory will not have any user visible impact.
However, since admin commands are extendable (in a backwards compatible
way) everything beyond the size of the command must be cleared to prevent
issues in the future.

Fixes: 0420e54256 ("RDMA/efa: Implement functions that submit and complete admin commands")
Link: https://lore.kernel.org/r/20191112092608.46964-1-galpress@amazon.com
Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Firas JahJah <firasj@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:45:28 +01:00
..
Kconfig RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00
Makefile RDMA/efa: Add driver to Kconfig/Makefile 2019-05-07 12:47:47 -03:00
efa.h RDMA/efa: Expose device statistics 2019-07-29 13:51:52 -04:00
efa_admin_cmds_defs.h
efa_admin_defs.h
efa_com.c RDMA/efa: Clear the admin command buffer prior to its submission 2019-12-31 16:45:28 +01:00
efa_com.h RDMA/efa: Remove unneeded admin commands abort flow 2019-05-29 13:14:14 -03:00
efa_com_cmd.c RDMA/efa: Fix incorrect error print 2019-09-16 14:25:43 -03:00
efa_com_cmd.h RDMA/efa: Expose device statistics 2019-07-29 13:51:52 -04:00
efa_common_defs.h
efa_main.c RDMA/efa: Expose device statistics 2019-07-29 13:51:52 -04:00
efa_regs_defs.h
efa_verbs.c RDMA/efa: Use existing FIELD_SIZEOF macro 2019-08-27 13:01:15 -03:00