]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
act_csum: fix possible use after free
authorEric Dumazet <edumazet@google.com>
Fri, 12 Apr 2013 18:07:47 +0000 (11:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2013 19:25:41 +0000 (15:25 -0400)
commitd14a489a411937fb9420fe2b05168ee9e1e06c9c
tree1284608cf158d4b47a9aa877c8ee6a450fa502a0
parent3619eb8541a6548f6e27b75aaa96cd53c4d9f3ef
act_csum: fix possible use after free

tcf_csum_skb_nextlayer() / pskb_may_pull() can change skb->head, so we
must be careful not keeping pointers to previous headers.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Grégoire Baron <baronchon@n7mm.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_csum.c