]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Prevent leak of reserved field
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 1 Aug 2017 06:41:35 +0000 (09:41 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Aug 2017 18:24:05 +0000 (14:24 -0400)
commit4bf0d4e2d22b7d97d1e64df0bafc3b8ad8fbf72a
tree4d99e9f004c4b655dc0b06b9bc175edba6cc3d4d
parentf40c5bc00fb591de4bbea44afd8e693779dcbcb9
RDMA/uverbs: Prevent leak of reserved field

initialize to zero the response structure to prevent
the leakage of "resp.reserved" field.

drivers/infiniband/core/uverbs_cmd.c:1178 ib_uverbs_resize_cq() warn:
check that 'resp.reserved' doesn't leak information

Fixes: f8f8402cad64 ("IB: Add userspace support for resizing CQs")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c