Message ID | 1410702475-28826-4-git-send-email-eli@mellanox.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Hi, Le dimanche 14 septembre 2014 à 16:47 +0300, Eli Cohen a écrit : > Clear the reserved field of struct ib_uverbs_async_event_desc which is > copied to user space. > This one could be applied right now on v3.17 and others. > Signed-off-by: Eli Cohen <eli@mellanox.com> Reviewed-by: Yann Droneaud <ydroneaud@opteya.com> Cc: stable@vger.kernel.org Regards. > --- > drivers/infiniband/core/uverbs_main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c > index c73b22a257fe..b21af1eaf503 100644 > --- 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); -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, Please add commit 377b513485fd ("IB/core: Avoid leakage from kernel to user space") to -stable. It can be applied to v2.6.32 and later. Regards.
On Fri, Mar 27, 2015 at 01:42:44PM +0100, Yann Droneaud wrote: > Hi, > > Please add commit 377b513485fd ("IB/core: Avoid leakage from kernel to > user space") to -stable. It can be applied to v2.6.32 and later. > > Regards. > > -- > Yann Droneaud > OPTEYA > > > -- > To unsubscribe from this list: send the line "unsubscribe stable" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Thanks, I'm queuing it for the 3.16 kernel. Cheers, -- Luís -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 03/27/2015, 01:42 PM, Yann Droneaud wrote: > Hi, > > Please add commit 377b513485fd ("IB/core: Avoid leakage from kernel to > user space") to -stable. It can be applied to v2.6.32 and later. Now pushed to 3.12. Thanks.
On Fri, 2015-03-27 at 13:42 +0100, Yann Droneaud wrote: > Hi, > > Please add commit 377b513485fd ("IB/core: Avoid leakage from kernel to > user space") to -stable. It can be applied to v2.6.32 and later. Queued up for 3.2, thanks. Ben.
On 2015/3/27 20:42, Yann Droneaud worte: > Hi, > > Please add commit 377b513485fd ("IB/core: Avoid leakage from kernel to > user space") to -stable. It can be applied to v2.6.32 and later. > Queued up for 3.4. Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index c73b22a257fe..b21af1eaf503 100644 --- 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);
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> --- drivers/infiniband/core/uverbs_main.c | 1 + 1 file changed, 1 insertion(+)