[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151117.144021.316419372483860209.davem@davemloft.net>
Date: Tue, 17 Nov 2015 14:40:21 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sd@...asysnail.net
Cc: netdev@...r.kernel.org, maheshb@...gle.com
Subject: Re: [PATCH net] ipvlan: fix leak in ipvlan_rcv_frame
From: Sabrina Dubroca <sd@...asysnail.net>
Date: Mon, 16 Nov 2015 22:34:26 +0100
> Pass a **skb to ipvlan_rcv_frame so that if skb_share_check returns a
> new skb, we actually use it during further processing.
>
> It's safe to ignore the new skb in the ipvlan_xmit_* functions, because
> they call ipvlan_rcv_frame with local == true, so that dev_forward_skb
> is called and always takes ownership of the skb.
>
> Fixes: 2ad7bf363841 ("ipvlan: Initial check-in of the IPVLAN driver.")
> Signed-off-by: Sabrina Dubroca <sd@...asysnail.net>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists