af_iucv: wrong mapping of sent and confirmed skbs
Subsystems (4)
PATCH 1/1 af_iucv: wrong mapping of sent and confirmed skbs
From: Ursula Braun <[email protected]>
When sending data through IUCV a MESSAGE COMPLETE interrupt signals that sent data memory can be freed or reused again. With commit f9c41a62bba3f3f7ef3541b2a025e3371bcbba97 "af_iucv: fix recvmsg by replacing skb_pull() function" the MESSAGE COMPLETE callback iucv_callback_txdone() identifies the wrong skb as being confirmed, which leads to data corruption. This patch fixes the skb mapping logic in iucv_callback_txdone().
--- net/iucv/af_iucv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/iucv/af_iucv.c +1 -1
@@ -1830,7 +1830,7 @@ static void iucv_callback_txdone(structspin_lock_irqsave (&list->lock, flags);while (list_skb != (struct sk_buff *)list) { -if (msg->tag !=IUCV_SKB_CB (list_skb)->tag) { +if (msg->tag ==IUCV_SKB_CB (list_skb)->tag) { this = list_skb;break ; }
From: Frank Blaschka <[email protected]>
Date: Tue, 13 May 2014 14:38:02 +0200
Quoted 10 lines
From: Ursula Braun <[email protected]>
When sending data through IUCV a MESSAGE COMPLETE interrupt signals that sent data memory can be freed or reused again. With commit
f9c41a62bba3f3f7ef3541b2a025e3371bcbba97"af_iucv: fix recvmsg by replacingskb_pull()function" the MESSAGE COMPLETE callbackiucv_callback_txdone()identifies the wrong skb as being confirmed, which leads to data corruption. This patch fixes the skb mapping logic iniucv_callback_txdone().
Quoted 2 lines
Signed-off-by Ursula Braun <[email protected]>Signed-off-by Frank Blaschka <[email protected]>
Applied, thank you.