IB/core: Avoid leakage from kernel to user space
commit43318c2ee17c9c5cb41cecc810d1c1b9a53c3588
authorEli Cohen <eli@dev.mellanox.co.il>
Sun, 14 Sep 2014 13:47:52 +0000 (14 16:47 +0300)
committerWilly Tarreau <w@1wt.eu>
Sun, 24 May 2015 08:10:52 +0000 (24 10:10 +0200)
treec32910d25233a314159f237449438a6105f964f6
parentabe59a6ab4dc7f438e44e2307c378828b0b06c5a
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: Ben Hutchings <ben@decadent.org.uk>
Cc: Yann Droneaud <ydroneaud@opteya.com>
(cherry picked from commit 852acc0151014ba9731e2f5f2f3df3b6a8960d40)
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/infiniband/core/uverbs_main.c