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-04-08 14:23:57 +02:00
2021-11-18 19:17:06 +01:00
2022-04-13 20:59:23 +02:00
2022-01-27 11:02:57 +01:00
2022-03-16 14:23:38 +01:00
2022-04-08 14:22:53 +02:00
2022-04-27 14:39:01 +02:00
2021-11-25 09:48:24 +01:00
2022-04-27 14:38:57 +02:00
2022-04-20 09:34:04 +02:00
2022-04-20 09:34:18 +02:00
2022-02-01 17:27:07 +01:00
2021-12-08 09:04:41 +01:00
2022-03-11 12:22:34 +01:00
2022-04-08 14:24:17 +02:00
2022-04-08 14:22:59 +02:00
2022-01-27 11:04:15 +01:00
2022-04-27 14:38:50 +02:00
2022-01-27 11:03:27 +01:00
2022-03-11 12:22:31 +01:00
2021-11-18 19:17:21 +01:00
2022-02-23 12:03:17 +01:00
2022-04-08 14:24:18 +02:00
2021-11-18 19:16:45 +01:00
2021-12-14 10:57:11 +01:00
2022-04-08 14:24:13 +02:00
2021-11-25 09:48:41 +01:00
2022-01-05 12:42:34 +01:00
2022-04-27 14:38:50 +02:00
2021-11-18 19:17:06 +01:00
2022-03-08 19:12:39 +01:00
2022-04-08 14:22:59 +02:00
2022-03-08 19:12:40 +01:00
2022-01-20 09:13:13 +01:00
2021-11-25 09:49:08 +01:00
2022-01-11 15:35:11 +01:00
2022-02-01 17:27:15 +01:00
2022-03-16 14:23:46 +01:00
2022-01-27 11:04:41 +01:00
2022-03-23 09:16:42 +01:00
2021-12-29 12:28:49 +01:00
2021-11-25 09:48:42 +01:00
2022-04-13 20:59:03 +02:00
2022-03-08 19:12:32 +01:00
2022-03-08 19:12:38 +01:00
2022-04-27 14:38:51 +02:00
2021-12-08 09:04:41 +01:00
2022-02-08 18:34:12 +01:00
2022-04-13 20:59:26 +02:00
2022-01-05 12:42:33 +01:00
2022-04-27 14:38:57 +02:00
2021-12-14 10:57:22 +01:00
2022-02-01 17:27:05 +01:00
2022-04-13 20:59:28 +02:00
2021-11-18 19:17:14 +01:00
2022-02-23 12:03:12 +01:00
2022-02-16 12:56:09 +01:00
2022-04-13 20:59:13 +02:00
2022-02-16 12:56:09 +01:00
2022-04-08 14:24:09 +02:00
2022-03-02 11:48:06 +01:00
2022-01-27 11:04:15 +01:00
2022-03-08 19:12:42 +01:00
2022-03-16 14:23:46 +01:00
2022-04-08 14:23:37 +02:00
2022-02-01 17:27:10 +01:00
2022-02-08 18:34:05 +01:00
2022-01-27 11:04:44 +01:00
2021-11-18 19:17:14 +01:00
2021-11-25 09:48:45 +01:00
2022-02-01 17:27:01 +01:00
2022-02-01 17:27:15 +01:00
2022-04-08 14:23:01 +02:00
2022-01-27 11:03:52 +01:00
2022-04-08 14:23:06 +02:00
2021-11-18 19:16:58 +01:00
2022-04-27 14:38:58 +02:00
2021-11-18 19:17:12 +01:00
2022-04-08 14:23:50 +02:00
2021-12-08 09:04:47 +01:00
2022-04-08 14:24:13 +02:00
2022-04-08 14:23:40 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-01-27 11:03:21 +01:00
2021-11-21 13:44:12 +01:00
2022-02-16 12:56:19 +01:00
2022-04-08 14:24:17 +02:00
2022-03-02 11:47:51 +01:00
2021-11-25 09:48:34 +01:00
2022-04-20 09:34:13 +02:00
2022-03-16 14:23:43 +01:00
2021-12-29 12:28:43 +01:00
2022-03-16 14:23:43 +01:00
2022-03-08 19:12:38 +01:00
2021-12-14 10:57:15 +01:00
2022-03-16 14:23:44 +01:00