Patch "IB/IWPM: Fix a potential skb leak" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
IB/IWPM: Fix a potential skb leak
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ib-iwpm-fix-a-potential-skb-leak.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
5ed935e861a4cbf2158ad3386d6d26edd60d2658Mon Sep 17 00:00:00 2001
From: Mark Bloch <[email protected]>
Date: Fri, 6 May 2016 22:45:24 +0300
Subject: IB/IWPM: Fix a potential skb leak
From: Mark Bloch <[email protected]>
commit 5ed935e861a4cbf2158ad3386d6d26edd60d2658 upstream.
In case ibnl_put_msg fails in send_nlmsg_done, the function returns with -ENOMEM without freeing.
This patch fixes this behavior.
--- drivers/infiniband/core/iwpm_util.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/core/iwpm_util.c +1 -0
@@ -634,6 +634,7 @@ static int send_nlmsg_done(struct sk_bufif (!(ibnl_put_msg (skb, &nlh,0 ,0 , nl_client,RDMA_NL_IWPM_MAPINFO ,NLM_F_MULTI ))) {pr_warn ("%s Unable to put NLMSG_DONE\n" , __func__); +dev_kfree_skb (skb);return -ENOMEM ; } nlh->nlmsg_type =NLMSG_DONE ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ib-iwpm-fix-a-potential-skb-leak.patchqueue-4.4/ib-sa-use-correct-free-function.patch