]> 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)
commit3de602dcab16ad900e2f5843ff67f8ba07391616
tree29a3479d6cb2ea8d8a5bf574b44e3993afb23e67
parentbd425ae7d7bd2fb897ab3b429ac1a8c1189f1173
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 ddd75e1f0e57 (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: ddd75e1f0e57 (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