ipvs: correct usage/allocation of seqadj ext in ipvs
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 26 Jan 2015 11:08:45 +0000 (12:08 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 14:04:50 +0000 (15:04 +0100)
commit0dc051e586000710b98014be998ac2e1a7fde76b
tree4f9df32d6ab90158d69216558739b2542e655873
parentfd4e00fa8f869c3f71d5b704f0dc6532c923ebe5
ipvs: correct usage/allocation of seqadj ext in ipvs

[ upstream commit b25adce1606427fd88da08f5203714cada7f6a98 ]

The IPVS FTP helper ip_vs_ftp could trigger an OOPS in nf_ct_seqadj_set,
after commit 41d73ec053d2 (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().

Cc: <stable@vger.kernel.org> # 3.12.x
Fixes: 41d73ec053d2 (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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/netfilter/ipvs/ip_vs_nfct.c