Bug 106441 - PPTP/GRE expectation entries not removed from the expectation table
Summary: PPTP/GRE expectation entries not removed from the expectation table
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Netfilter/Iptables (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: networking_netfilter-iptables@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 22:25 UTC by anthony.lineham
Modified: 2016-02-15 20:42 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.16.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Proposed fix (1002 bytes, patch)
2015-10-21 22:25 UTC, anthony.lineham
Details | Diff

Description anthony.lineham 2015-10-21 22:25:22 UTC
Created attachment 190761 [details]
Proposed fix

The PPTP conntrack helper makes use of conntrack's expectation table to create entries for the GRE flow that will carry the tunnel traffic. Once the GRE flow begins, the expectation table entries are supposed to be removed. However, it was failing to find one of the expectation entries due to the tuple structure used for the search not being initialized. Uninitialized fields in the structure meant that hashing and matching failed. With a high number of tunnels being set up in  a short space of time, this lead to an accumulation of old expectation entries. Because the expectation table is limited in size (proportional to the connection tracking table, which is proportional to the device RAM) the accumulated entries could fill the table, limiting the number of GRE flows that were able to be handled. (Note that the accumulated entries time out eventually.)

Attached is a patch which initializes the structure correctly.
Comment 1 Alexey Dobriyan 2015-11-06 22:08:04 UTC
please send netfilter patches to netfilter-devel@vger.kernel.org
Comment 2 anthony.lineham 2015-11-08 19:42:22 UTC
(In reply to Alexey Dobriyan from comment #1)
> please send netfilter patches to netfilter-devel@vger.kernel.org

Thanks for the comment, Alexey. I'm new to this process. Could you tell me if its ok to just email a link to this report with some introduction, or should I put all the content from here into the patch?

Thanks
Comment 3 Alexey Dobriyan 2015-11-08 19:48:53 UTC
Links will be ignored.

Send plaintext patch (not an attachment, not a HTML) to maintainers
(see MAINTAINERS file), Cc mailing list.

Patch should contain Signed-off-by line (attached doesn't).

When inserting patch into email make sure tabs don't turn into spaces.
Comment 4 Pablo Neira Ayuso 2015-11-08 19:59:48 UTC
To speed up this submission, I can submit myself your patch to netfilter-devel@vger.kernel.org.

But I'll have to add:

Signed-off-by: Anthony Lineham <anthony.lineham@alliedtelesis.co.nz>

to this patch.

Any objection to that? You'll be Cc'ed in that submission to netfilter-devel@vger.kernel.org.

Thanks.
Comment 5 anthony.lineham 2015-11-08 20:10:53 UTC
(In reply to Pablo Neira Ayuso from comment #4)
Thanks Pablo, that would be a great help!

Yes, please add my sign-off.

Note You need to log in before you can comment on or make changes to this bug.