Patch "HSI: ssi_protocol: double free in ssip_pn_xmit()" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
HSI: ssi_protocol: double free in ssip_pn_xmit()
to the 3.18-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:
hsi-ssi_protocol-double-free-in-ssip_pn_xmit.patch
and it can be found in the queue-3.18 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 foo@baz Thu Mar 22 15:16:04 CET 2018
From: Dan Carpenter <[email protected]>
Date: Fri, 21 Apr 2017 13:39:09 +0300
Subject: HSI: ssi_protocol: double free in ssip_pn_xmit()
From: Dan Carpenter <[email protected]>
[ Upstream commit 3026050179a3a9a6f5c892c414b5e36ecf092081 ]
If skb_pad() fails then it frees skb and we don't need to free it again at the end of the function.
--- drivers/hsi/clients/ssi_protocol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/hsi/clients/ssi_protocol.c +3 -2
@@ -976,7 +976,7 @@ static int ssip_pn_xmit(struct sk_buff * goto drop;/* Pad to 32-bits - FIXME: Revisit*/ if ((skb->len &3 ) &&skb_pad (skb,4 - (skb->len &3 ))) - goto drop; + goto inc_dropped;/* * Modem sends Phonet messages over SSI with its own endianess...
@@ -1028,8 +1028,9 @@ static int ssip_pn_xmit(struct sk_buff * drop2:hsi_free_msg (msg); drop: - dev->stats.tx_dropped++;dev_kfree_skb (skb); +inc_dropped: + dev->stats.tx_dropped++;return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/mmc-host-omap_hsmmc-checking-for-null-instead-of-is_err.patch queue-3.18/hsi-ssi_protocol-double-free-in-ssip_pn_xmit.patch queue-3.18/cifs-small-underflow-in-cnvrtdosunixtm.patch