Florian Westphal
90fd131afc
netfilter: nf_tables: move dumper state allocation into ->start
...
Shaochun Chen points out we leak dumper filter state allocations
stored in dump_control->data in case there is an error before netlink sets
cb_running (after which ->done will be called at some point).
In order to fix this, add .start functions and do the allocations
there.
->done is going to clean up, and in case error occurs before
->start invocation no cleanups need to be done anymore.
Reported-by: shaochun chen <cscnull@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-07-24 00:36:33 +02:00
..
2018-06-06 14:01:00 +02:00
2018-06-16 07:39:34 +09:00
2018-05-23 16:37:11 -04:00
2018-07-06 19:31:53 +02:00
2018-07-06 19:31:53 +02:00
2018-06-26 18:28:57 +02:00
2018-03-20 13:44:14 +01:00
2017-06-19 19:13:21 +02:00
2018-03-05 23:15:43 +01:00
2018-07-09 18:04:11 +02:00
2018-03-20 13:44:14 +01:00
2018-05-16 07:24:30 +02:00
2018-04-17 10:59:43 +02:00
2018-04-24 10:29:14 +02:00
2018-01-08 18:01:05 +01:00
2018-01-08 18:01:26 +01:00
2018-06-18 14:15:12 +02:00
2018-04-24 10:29:14 +02:00
2017-08-24 18:52:32 +02:00
2017-04-26 09:30:22 +02:00
2018-03-30 11:41:18 -04:00
2018-06-12 19:31:07 +02:00
2017-07-24 13:24:46 +02:00
2018-07-20 15:31:44 +02:00
2018-01-08 18:01:02 +01:00
2018-03-27 13:18:09 -04:00
2018-01-08 18:01:02 +01:00
2018-04-27 00:39:29 +02:00
2018-01-08 18:01:02 +01:00
2018-06-12 16:19:22 -07:00
2018-04-24 10:29:14 +02:00
2017-04-26 09:30:22 +02:00
2018-05-06 21:51:37 -04:00
2018-03-30 11:41:18 -04:00
2018-05-16 07:24:30 +02:00
2018-04-24 10:29:14 +02:00
2017-04-26 09:30:22 +02:00
2018-03-20 13:44:14 +01:00
2017-05-29 11:32:36 +02:00
2018-04-24 10:29:07 +02:00
2018-04-24 10:28:45 +02:00
2018-06-01 09:47:36 +02:00
2018-05-23 09:14:05 +02:00
2016-12-04 20:45:33 +01:00
2018-03-27 13:18:09 -04:00
2018-06-26 16:48:40 +02:00
2017-04-06 22:01:38 +02:00
2018-06-12 16:19:22 -07:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-05-29 00:25:40 +02:00
2018-04-24 10:29:12 +02:00
2013-02-19 02:48:05 +01:00
2018-05-07 00:02:11 +02:00
2018-01-10 15:32:15 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 07:24:30 +02:00
2018-07-24 00:36:33 +02:00
2018-06-12 19:30:11 +02:00
2018-07-06 19:31:53 +02:00
2017-07-31 20:41:57 +02:00
2018-05-24 00:52:35 +02:00
2018-06-12 16:19:22 -07:00
2018-03-27 13:18:09 -04:00
2018-06-06 18:39:49 -07:00
2018-06-18 14:13:24 +02:00
2018-06-12 19:28:18 +02:00
2017-05-15 12:51:41 +02:00
2016-11-09 23:42:23 +01:00
2018-06-12 19:28:18 +02:00
2018-01-08 18:01:01 +01:00
2018-07-09 16:06:19 +02:00
2018-06-12 20:07:07 +02:00
2018-06-03 00:02:11 +02:00
2018-06-03 09:31:58 -04:00
2016-01-03 21:04:23 +01:00
2018-06-12 19:12:48 +02:00
2018-04-27 00:00:56 +02:00
2016-11-03 11:52:34 +01:00
2017-07-31 19:01:40 +02:00
2017-03-13 13:45:36 +01:00
2018-04-24 10:29:09 +02:00
2018-06-01 10:35:47 +02:00
2018-06-01 09:38:40 +02:00
2018-07-17 20:48:24 +02:00
2018-05-23 09:50:28 +02:00
2018-06-07 16:14:00 -04:00
2018-07-17 20:48:24 +02:00
2018-01-10 15:32:08 +01:00
2018-06-03 09:31:58 -04:00
2018-04-24 10:29:12 +02:00
2018-06-01 09:38:40 +02:00
2018-04-24 10:29:09 +02:00
2017-08-28 17:42:56 +02:00
2017-04-07 18:24:47 +02:00
2017-09-04 13:25:09 +02:00
2017-05-15 12:51:41 +02:00
2018-01-10 15:32:08 +01:00
2017-03-06 18:22:12 +01:00
2017-03-06 18:22:12 +01:00
2018-04-27 00:00:55 +02:00
2018-07-06 19:31:53 +02:00
2018-07-18 17:09:53 +02:00
2018-07-18 17:12:05 +02:00
2018-06-12 19:12:45 +02:00
2018-01-08 18:10:53 +01:00
2018-06-12 16:19:22 -07:00
2018-02-14 21:05:37 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-03-05 23:15:43 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-03-20 13:27:17 +01:00
2018-06-12 19:35:52 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-06-01 10:14:51 +02:00
2016-11-03 10:56:21 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:38 +01:00
2018-05-16 07:24:30 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:37 +01:00
2018-03-26 12:07:48 -04:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:39 +01:00
2018-03-05 23:15:50 +01:00
2016-11-03 10:56:21 +01:00
2015-05-14 13:00:27 +02:00
2016-12-06 21:48:20 +01:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-03-05 23:15:43 +01:00
2018-04-19 13:02:44 +02:00
2018-02-14 21:05:35 +01:00
2018-05-07 00:02:11 +02:00
2017-03-02 08:42:31 +01:00
2018-02-14 21:05:38 +01:00
2017-01-18 20:32:43 +01:00
2018-02-14 21:05:37 +01:00
2017-01-09 17:24:55 +01:00
2018-03-05 23:15:44 +01:00
2018-03-05 23:15:44 +01:00
2018-06-06 11:15:43 -07:00
2018-04-24 10:29:12 +02:00
2017-11-02 11:10:55 +01:00
2017-07-01 09:08:41 -07:00
2018-02-14 21:05:38 +01:00
2018-06-06 14:00:54 +02:00
2018-06-03 00:02:01 +02:00
2018-02-14 21:05:38 +01:00
2018-01-31 14:59:24 +01:00
2018-03-30 11:04:12 +02:00
2018-02-14 21:05:38 +01:00
2015-08-17 21:33:06 -07:00
2016-07-03 10:55:07 +02:00
2018-03-30 10:59:23 -04:00
2018-03-20 13:44:14 +01:00
2018-07-06 14:32:44 +02:00
2016-06-23 13:26:49 +02:00