]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix a use after free
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 17 Oct 2014 06:03:08 +0000 (14:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Oct 2014 20:21:53 +0000 (16:21 -0400)
commitdf05c06ea25dbf67a01757cb1e5878dcd2859537
treeb49a5aed5e318b3be08c23025889522b9db48602
parent1538a526d23c7b3c32741ced3d8b6fe6089b7366
openvswitch: fix a use after free

pskb_may_pull() called by arphdr_ok can change skb->data, so put the arp
setting after arphdr_ok to avoid the use the freed memory

Fixes: 0abe9d86e5170 ("openvswitch: Eliminate memset() from flow_extract.")
Cc: Jesse Gross <jesse@nicira.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c