Skip to content

rework of userspace expectation support

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am 20110412215458.3145.40830.stgit@decadence

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: CT: allow to set userspace helper status flaginclude/linux/netfilter/nf_conntrack_common.h include/linux/netfilter/xt_CT.h net/netfilter/nf_conntrack_helper.c +1 more+23 -40 replies
2/2netfilter: nf_ct_expect: rework userspace expectation supportinclude/net/netfilter/nf_conntrack_expect.h net/netfilter/nf_conntrack_expect.c net/netfilter/nf_conntrack_netlink.c+25 -440 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] rework of userspace expectation support

Hi Patrick,

The following patches rework the userspace expectation support to fix one problematic scenario: if the master conntrack vanishes while there are still userspace expectations, we hit an oops in the destroy event path for expectations.

The idea to fix this is to extend the iptables CT target to explicit allocate the helper extension for conntracks that are suppose to behave as master for user-space expectations.

In the case of the userspace FTP helper, people would need to add the following rule:

iptables -A PREROUTING -t raw \
	-p tcp --dport 21 -j CT --userspace-helper

Thus, we can store the list of expectations that belong to one master, and delete them in case that the master vanishes.

---

Pablo Neira Ayuso (2):
netfilter: CT: allow to set userspace helper status flag
netfilter: nf_ct_expect: rework userspace expectation support

 include/linux/netfilter/nf_conntrack_common.h |    4 ++
 include/linux/netfilter/xt_CT.h               |    3 +
 include/net/netfilter/nf_conntrack_expect.h   |    1 
 net/netfilter/nf_conntrack_expect.c           |   63 ++++++++-----------------
 net/netfilter/nf_conntrack_helper.c           |   12 +++++
 net/netfilter/nf_conntrack_netlink.c          |    5 ++
 net/netfilter/xt_CT.c                         |    8 ++-
 7 files changed, 48 insertions(+), 48 deletions(-)