Pablo Neira Ayuso
02a3231b6d
netfilter: nf_conntrack_expect: store netns and zone in expectation
...
__nf_ct_expect_find() and nf_ct_expect_find_get() are called under
rcu_read_lock() but they dereference the master conntrack via
exp->master.
Since the expectation does not hold a reference on the master conntrack,
this could be dying conntrack or different recycled conntrack than the
real master due to SLAB_TYPESAFE_RCU.
Store the netns, the master_tuple and the zone in struct
nf_conntrack_expect as a safety measure.
This patch is required by the follow up fix not to dump expectations
that do not belong to this netns.
Signed-off-by: Florian Westphal <fw@strlen.de >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2026-03-26 13:24:40 +01:00
..
2025-07-10 15:27:32 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-14 08:05:47 -07:00
2026-02-21 17:09:51 -08:00
2026-03-18 17:41:00 -07:00
2026-03-19 14:44:25 -04:00
2026-02-21 17:09:51 -08:00
2026-03-12 18:33:52 -07:00
2026-02-21 17:09:51 -08:00
2026-03-19 17:16:02 +01:00
2026-03-11 10:18:56 +01:00
2026-03-24 20:56:02 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-11-04 12:36:51 +01:00
2026-02-21 17:09:51 -08:00
2026-03-16 19:29:45 -07:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-24 15:16:28 +01:00
2026-03-26 13:18:31 +01:00
2026-02-21 17:09:51 -08:00
2026-02-23 17:26:55 -08:00
2026-03-24 15:16:28 +01:00
2026-02-21 17:09:51 -08:00
2025-04-15 17:54:56 -07:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2026-03-18 09:09:58 +01:00
2026-03-16 19:29:45 -07:00
2026-03-10 11:38:36 +01:00
2026-03-12 19:25:59 -07:00
2026-03-19 09:37:48 -07:00
2026-03-06 17:34:48 -08:00
2026-03-26 13:24:40 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-03-19 16:56:18 -07:00
2024-04-26 12:20:01 +02:00
2026-03-20 18:37:31 -07:00
2026-03-23 17:07:19 -07:00
2026-03-16 19:29:45 -07:00
2026-02-21 01:02:28 -08:00
2026-02-26 08:00:13 -08:00
2026-02-21 17:09:51 -08:00
2026-03-03 12:57:06 +01:00
2026-02-21 17:09:51 -08:00
2026-03-12 19:23:59 -07:00
2026-03-06 17:49:52 -08:00
2026-03-17 12:09:16 +01:00
2026-02-21 17:09:51 -08:00
2026-03-19 13:47:15 +01:00
2026-03-20 18:59:30 -07:00
2025-11-13 12:35:38 -08:00
2026-03-18 14:27:11 -07:00
2026-02-21 01:02:28 -08:00
2026-03-11 18:56:28 -07:00
2026-02-26 08:00:13 -08:00
2026-03-12 13:37:18 -07:00
2026-02-26 08:00:13 -08:00
2026-03-06 12:41:59 +01:00
2026-02-21 01:02:28 -08:00
2026-02-28 08:55:11 -08:00
2026-03-24 15:16:28 +01:00
2025-11-26 13:45:23 -07:00
2025-10-17 16:29:26 -07:00
2024-10-08 15:16:59 +02:00
2025-09-18 12:32:06 +02:00
2026-02-24 11:27:29 +01:00
2024-06-13 10:50:52 +02:00