Felix Fietkau
0ff90b6c20
netfilter: nf_flow_offload: fix use-after-free and a resource leak
...
flow_offload_del frees the flow, so all associated resource must be
freed before.
Since the ct entry in struct flow_offload_entry was allocated by
flow_offload_alloc, it should be freed by flow_offload_free to take care
of the error handling path when flow_offload_add fails.
While at it, make flow_offload_del static, since it should never be
called directly, only from the gc step
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-02-07 11:55:52 +01:00
..
2018-02-01 14:41:46 -05:00
2018-01-31 14:31:10 -08:00
2018-01-10 15:32:16 +01:00
2018-02-02 13:21:48 +01:00
2018-01-08 18:11:10 +01:00
2018-01-19 14:02:18 +01:00
2018-01-31 14:31:10 -08:00
2018-01-19 14:10:53 +01:00
2018-01-08 18:01:05 +01:00
2018-01-08 18:01:26 +01:00
2018-01-19 18:39:49 +01:00
2018-01-08 18:00:54 +01:00
2018-01-08 18:01:02 +01:00
2018-01-08 18:01:02 +01:00
2018-01-08 18:01:02 +01:00
2018-01-08 18:11:05 +01:00
2018-01-08 18:01:02 +01:00
2018-01-08 16:47:14 +01:00
2018-01-19 14:10:53 +01:00
2018-02-07 00:58:57 +01:00
2018-02-07 11:55:52 +01:00
2018-01-08 18:01:06 +01:00
2018-01-19 14:10:53 +01:00
2018-01-10 15:32:15 +01:00
2018-01-19 14:10:53 +01:00
2018-02-07 00:58:57 +01:00
2018-01-10 15:32:11 +01:00
2018-01-10 15:32:11 +01:00
2018-01-19 18:39:49 +01:00
2017-12-04 11:30:09 +01:00
2018-01-19 18:39:49 +01:00
2018-01-19 14:10:53 +01:00
2018-01-19 14:10:53 +01:00
2018-01-19 18:39:49 +01:00
2018-01-08 18:01:01 +01:00
2018-01-19 18:39:49 +01:00
2018-01-10 15:32:08 +01:00
2018-01-19 14:10:04 +01:00
2017-12-11 13:46:04 +01:00
2018-02-07 00:58:57 +01:00
2018-01-10 15:32:08 +01:00
2018-01-10 15:32:08 +01:00
2018-01-10 15:32:08 +01:00
2018-01-10 15:32:08 +01:00
2018-01-10 15:32:08 +01:00
2018-01-08 18:01:26 +01:00
2017-12-11 09:58:38 -05:00
2018-01-08 18:10:53 +01:00
2018-02-02 12:45:16 +01:00
2018-01-08 18:01:26 +01:00
2018-01-06 17:13:21 -08:00
2018-02-02 18:26:37 +01:00
2018-01-08 18:01:22 +01:00
2018-01-19 14:10:53 +01:00
2018-01-31 14:59:24 +01:00
2018-01-19 14:02:18 +01:00
2018-01-31 14:59:24 +01:00
2018-01-31 14:59:24 +01:00
2018-01-31 14:59:24 +01:00
2017-12-06 09:01:18 +01:00
2017-11-30 09:54:26 -05:00
2018-02-07 00:58:57 +01:00
2018-01-08 18:11:12 +01:00
2018-01-31 14:59:24 +01:00
2018-01-08 18:01:26 +01:00