Florian Westphal
bcba40bd36
netfilter: conntrack: convert to refcount_t api
...
commit 7197743776 upstream.
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 >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-04-27 14:39:01 +02:00
..
2022-02-23 12:03:21 +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
2022-04-27 14:39:01 +02: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-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
2019-05-30 11:26:32 -07:00
2021-11-25 09:48:38 +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-08-02 10:24:38 +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-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2022-04-20 09:34:10 +02: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
2022-04-20 09:34:09 +02: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
2022-04-27 14:38:53 +02: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
2020-07-03 14:34:53 -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
2022-02-23 12:03:12 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-12-22 09:32:40 +01:00
2021-08-30 20:29:03 -07: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-07-29 22:17:37 +01:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2021-12-22 09:32:41 +01:00
2021-10-01 14:59:10 -07:00
2021-09-04 10:49:46 +01:00
2021-12-14 10:57:10 +01:00
2020-07-16 16:48:34 -07:00
2022-01-05 12:42:33 +01:00
2022-02-23 12:03:12 +01:00
2021-05-31 22:44:56 -07:00
2021-07-29 22:17:37 +01:00
2020-07-16 16:48:34 -07:00
2022-02-01 17:27:13 +01:00
2020-02-19 17:49:48 -08:00
2021-11-18 19:16:10 +01:00
2021-11-18 19:16:10 +01:00
2021-07-29 22:17:37 +01:00
2020-10-29 11:45:47 -07:00
2020-11-10 17:00:28 -08:00
2020-07-16 16:48:34 -07:00
2021-07-29 22:17:37 +01:00
2022-01-11 15:35:14 +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
2022-04-20 09:34:10 +02:00
2020-07-16 16:48:34 -07:00
2021-04-08 14:14:42 -07:00