]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: correct usage/allocation of seqadj ext in ipvs
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 16 Dec 2013 16:09:47 +0000 (17:09 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 27 Dec 2013 03:30:02 +0000 (12:30 +0900)
commit1320715931112abfd4db36dc639623810018f7eb
tree29a3479d6cb2ea8d8a5bf574b44e3993afb23e67
parent7869684f16fc8d8c4aa278e99fb5ac0058ceaf08
ipvs: correct usage/allocation of seqadj ext in ipvs

The IPVS FTP helper ip_vs_ftp could trigger an OOPS in nf_ct_seqadj_set,
after commit ba5ae6fa1734 (netfilter: nf_conntrack: make sequence number
adjustments usuable without NAT).

This is because, the seqadj ext is now allocated dynamically, and the
IPVS code didn't handle this situation.  Fix this in the IPVS nfct
code by invoking the alloc function nfct_seqadj_ext_add().

Fixes: ba5ae6fa1734 (netfilter: nf_conntrack: make sequence number adjustments usuable without NAT)
Suggested-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_nfct.c