IB/core: Avoid leakage from kernel to user space
authorEli Cohen <eli@dev.mellanox.co.il>
Sun, 14 Sep 2014 13:47:52 +0000 (16:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:47 +0000 (10:10 +0200)
commit3af9e9334102d7436bb509c8d3d99c695190c58f
tree1d27be4c374748bc287909797f0b26a5168b5928
parent75a518b09f0939ad5d5bf12e91b9faec12c66d10
IB/core: Avoid leakage from kernel to user space

commit 377b513485fd885dea1083a9a5430df65b35e048 upstream.

Clear the reserved field of struct ib_uverbs_async_event_desc which is
copied to user space.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/uverbs_main.c