Pablo Neira Ayuso
83731671d9
netfilter: ctnetlink: fix regression in expectation handling
...
This patch fixes a regression (introduced by myself in commit 19abb7b:
netfilter: ctnetlink: deliver events for conntracks changed from
userspace) that results in an expectation re-insertion since
__nf_ct_expect_check() may return 0 for expectation timer refreshing.
This patch also removes a unnecessary refcount bump that
pretended to avoid a possible race condition with event delivery
and expectation timers (as said, not needed since we hold a
reference to the object since until we finish the expectation
setup). This also merges nf_ct_expect_related_report() and
nf_ct_expect_related() which look basically the same.
Reported-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-04-06 17:47:20 +02:00
..
2009-02-01 00:45:17 -08:00
2009-02-18 16:29:08 +01:00
2009-04-06 17:09:43 +02:00
2009-03-16 17:10:36 +01:00
2008-11-03 18:21:05 -08:00
2009-02-01 00:45:17 -08:00
2009-03-26 22:45:23 -07:00
2008-11-18 11:56:20 +01:00
2009-04-06 17:47:20 +02:00
2008-07-26 17:50:05 -07:00
2008-11-25 18:23:03 +01:00
2008-01-31 19:28:07 -08:00
2009-02-01 00:45:17 -08:00
2008-01-31 19:28:07 -08:00
2009-03-25 21:05:46 +01:00
2009-03-28 23:55:57 -07:00
2008-04-14 11:15:52 +02:00
2009-02-01 00:45:17 -08:00
2009-03-26 22:45:23 -07:00
2009-03-26 15:23:24 -07:00
2009-03-25 21:53:39 +01:00
2009-02-18 16:28:35 +01:00
2009-03-25 21:53:39 +01:00
2009-03-25 21:53:39 +01:00
2009-03-26 22:45:23 -07:00
2009-03-25 21:53:39 +01:00
2009-03-25 21:53:39 +01:00
2009-03-25 18:24:48 +01:00
2008-11-17 16:01:42 +01:00
2008-11-17 16:01:42 +01:00
2009-03-25 21:05:46 +01:00
2008-11-17 16:01:42 +01:00
2008-10-08 11:35:00 +02:00
2009-03-23 13:16:53 +01:00
2008-10-08 11:35:00 +02:00
2008-10-08 11:35:11 +02:00
2009-02-04 16:55:27 -08:00
2009-03-24 13:24:36 -07:00
2008-07-19 22:34:43 -07:00
2009-03-23 13:21:06 +01:00
2009-03-24 13:24:36 -07:00
2008-10-08 11:35:19 +02:00
2009-03-29 13:46:01 -07:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:20 +02:00
2009-03-25 21:05:46 +01:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:20 +02:00
2008-12-14 23:19:02 -08:00
2008-10-08 11:35:18 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00
2009-02-24 15:30:29 +01:00
2008-10-08 11:35:20 +02:00
2009-02-18 18:39:31 +01:00
2009-02-18 18:38:40 +01:00
2008-10-31 00:54:29 -07:00
2009-02-20 10:55:14 +01:00
2008-10-08 11:35:18 +02:00
2009-03-16 15:35:29 +01:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:18 +02:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:18 +02:00
2008-11-04 14:21:08 +01:00
2008-10-20 03:34:51 -07:00
2008-10-08 11:35:20 +02:00
2008-11-14 10:39:25 +11:00
2009-03-25 17:31:52 +01:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:18 +02:00
2009-03-16 15:35:29 +01:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:20 +02:00
2009-02-24 14:53:12 +01:00
2009-02-09 14:34:56 -08:00
2008-10-08 11:35:19 +02:00
2008-12-07 23:53:46 -08:00
2008-10-08 11:35:19 +02:00
2009-03-16 15:35:29 +01:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00
2009-01-12 21:18:36 -08:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00