]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: fix use after free of skb
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 16 Nov 2015 21:44:53 +0000 (22:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 19:39:29 +0000 (14:39 -0500)
commitf4d2b334f4f2c0b450a4195cf7e14b89f3682985
tree6e043089d86b6615264dfc22e07fc326b3a9ef13
parente82927cd7f2192e8da5452a139dca28c9589ae11
ipvlan: fix use after free of skb

ipvlan_handle_frame is a rx_handler, and when it returns a value other
than RX_HANDLER_CONSUMED (here, NET_RX_DROP aka RX_HANDLER_ANOTHER),
__netif_receive_skb_core expects that the skb still exists and will
process it further, but we just freed it.

Fixes: a346ddd1a0fb ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c