projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
900a6d7
)
IB/core: Avoid leakage from kernel to user space
author
Eli Cohen
<eli@dev.mellanox.co.il>
Sun, 14 Sep 2014 13:47:52 +0000
(16:47 +0300)
committer
Roland Dreier
<roland@purestorage.com>
Thu, 9 Oct 2014 07:08:40 +0000
(
00:08
-0700)
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>
drivers/infiniband/core/uverbs_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/uverbs_main.c
b/drivers/infiniband/core/uverbs_main.c
index c73b22a257fe3c92c9398e5318acbc4ffa569b90..b21af1eaf5030c8b00003ccf102c79e5d3c8aef8 100644
(file)
--- a/
drivers/infiniband/core/uverbs_main.c
+++ b/
drivers/infiniband/core/uverbs_main.c
@@
-477,6
+477,7
@@
static void ib_uverbs_async_handler(struct ib_uverbs_file *file,
entry->desc.async.element = element;
entry->desc.async.event_type = event;
+ entry->desc.async.reserved = 0;
entry->counter = counter;
list_add_tail(&entry->list, &file->async_file->event_list);