netfilter: WARN about wrong usage of sequence number adjustments
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 16 Dec 2013 16:09:41 +0000 (17:09 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 27 Dec 2013 03:29:54 +0000 (12:29 +0900)
commitdb12cf27435356017e7ab375ef5e82a1cc749384
treea21542095f2c2b27ea1c6d7737512f4bfc280478
parent443d20fd188208aa4df2118ad49f9168e411016d
netfilter: WARN about wrong usage of sequence number adjustments

Since commit 41d73ec053d2 (netfilter: nf_conntrack: make sequence
number adjustments usuable without NAT), the sequence number extension
is dynamically allocated.

Instead of dying, give a WARN splash, in case of wrong usage of the
seqadj code, e.g. when forgetting to allocate via nfct_seqadj_ext_add().

Wrong usage have been seen in the IPVS code path.

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/nf_conntrack_seqadj.c