Marcelo Ricardo Leitner
bcb74e132a
net/sched: act_ct: fix ref leak when switching zones
...
When switching zones or network namespaces without doing a ct clear in
between, it is now leaking a reference to the old ct entry. That's
because tcf_ct_skb_nfct_cached() returns false and
tcf_ct_flow_table_lookup() may simply overwrite it.
The fix is to, as the ct entry is not reusable, free it already at
tcf_ct_skb_nfct_cached().
Reported-by: Florian Westphal <fw@strlen.de>
Fixes: 2f131de361f6 ("net/sched: act_ct: Fix flow table lookup after ct clear or switching zones")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-03-26 17:00:51 -07:00
..
2022-03-02 22:16:10 -08:00
2022-03-03 14:38:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-03-26 17:00:51 -07:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:47 +00: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-19 14:08:48 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-02-28 11:11:35 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2021-12-19 14:08:47 +00:00
2021-12-19 14:08:48 +00:00
2022-03-16 19:59:36 -07:00
2022-02-17 11:44:20 -08:00
2021-08-02 10:24:38 +01:00
2022-03-03 14:38:48 +00:00
2021-08-02 10:24:38 +01:00
2021-08-02 10:24:38 +01:00
2022-03-11 08:28:27 -08:00
2021-08-02 10:24:38 +01:00
2021-12-19 14:08:48 +00: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-12-19 14:08:48 +00: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
2022-02-14 13:36:36 +00:00
2021-10-18 12:54:41 +01:00
2020-07-16 16:48:34 -07:00
2022-01-07 08:41:29 -08: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-12-13 12:30:23 +00: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-12-31 14:35:40 +00:00
2022-02-14 13:36:36 +00: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
2022-01-25 20:00:02 -08: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
2022-01-04 12:36:51 +00: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