]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:13:55 +0000 (13:13 +0200)
commit71f1579b06baaef567e763b85dbd69453a25753a
tree069e611d3ab3a2b11cce7be68baee9763cc93369
parent1ef840f5d8195897c80d40eb9f822ee6e91f9f4a
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: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/core/uverbs_main.c