Florian Westphal
7197743776
netfilter: conntrack: convert to refcount_t api
...
Convert nf_conn reference counting from atomic_t to refcount_t based api.
refcount_t api provides more runtime sanity checks and will warn on
certain constructs, e.g. refcount_inc() on a zero reference count, which
usually indicates use-after-free.
For this reason template allocation is changed to init the refcount to
1, the subsequenct add operations are removed.
Likewise, init_conntrack() is changed to set the initial refcount to 1
instead refcount_inc().
This is safe because the new entry is not (yet) visible to other cpus.
Signed-off-by: Florian Westphal <fw@strlen.de >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2022-01-09 23:30:13 +01:00
..
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2022-01-09 23:30:13 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-10-18 12:54:41 +01:00
2021-08-02 10:24:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-07 20:45:00 -08:00
2021-10-18 12:54:41 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-19 13:19:30 +01:00
2021-08-02 10:24:38 +01:00
2021-08-17 00:45:07 +02:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-10-29 14:03:22 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2020-07-13 17:20:40 -07:00
2020-11-10 17:00:28 -08:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2021-10-27 18:20:29 -07:00
2021-02-06 11:15:28 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-05-31 22:44:56 -07:00
2020-12-09 15:49:29 -08:00
2020-11-27 14:36:02 -08:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2020-07-16 16:48:34 -07:00
2021-08-19 18:09:18 -07:00
2021-10-18 12:54:41 +01:00
2020-11-23 17:27:04 -08:00
2021-03-10 15:47:52 -08:00
2020-07-16 16:48:34 -07:00
2021-10-18 12:54:41 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-11-26 11:10:20 -08:00
2021-10-01 14:59:10 -07:00
2021-10-20 15:24:36 -07:00
2021-12-09 08:01:00 -08:00
2020-07-16 16:48:34 -07:00
2021-04-29 15:31:53 -07:00
2021-12-07 20:44:58 -08:00
2021-10-27 12:06:52 -07:00
2021-10-18 12:54:41 +01:00
2020-07-16 16:48:34 -07:00
2021-10-28 14:34:03 +01:00
2020-02-19 17:49:48 -08:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-11-15 13:23:23 +00:00
2020-11-10 17:00:28 -08:00
2020-07-16 16:48:34 -07:00
2021-10-18 12:54:41 +01:00
2021-10-18 12:54:41 +01:00
2021-03-10 15:47:52 -08:00
2021-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-11-09 19:16:23 -08:00
2021-10-19 12:24:51 +01:00
2021-04-08 14:14:42 -07:00