Cong Wang
7735cce0c5
kernel: net_sched: fix a NULL pointer deref in ipt action
...
The net pointer in struct xt_tgdtor_param is not explicitly
initialized therefore is still NULL when dereferencing it.
So we have to find a way to pass the correct net pointer to
ipt_destroy_target().
The best way I find is just saving the net pointer inside the per
netns struct tcf_idrinfo, which could make this patch smaller.
Fixes: 0c66dc1ea3f0 ("netfilter: conntrack: register hooks in netns when needed by ruleset")
Reported-and-tested-by: Tony Ambardar <itugrok@xxxxxxxxx>
Cc: Jamal Hadi Salim <jhs@xxxxxxxxxxxx>
Cc: Jiri Pirko <jiri@xxxxxxxxxxx>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
[Backport for kernel v4.19 and v4.14]
[Bug Link: https://bugzilla.kernel.org/show_bug.cgi?id=204681 ]
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2019-09-01 18:38:04 +02:00
..
2017-12-16 22:11:19 +01:00
2019-08-09 18:30:29 +02:00
2019-06-12 15:04:09 +02:00
2018-07-22 17:16:30 +02:00
2017-12-16 22:11:19 +01:00
2019-08-14 18:23:08 +02:00
2019-08-28 13:08:20 +02:00
2019-06-20 15:48:48 +02:00
2019-06-20 15:48:48 +02:00
2018-02-19 16:01:44 +01:00
2018-02-19 16:01:44 +01:00
2018-04-09 07:16:48 +02:00
2018-04-09 07:16:48 +02:00
2018-04-09 07:16:48 +02:00
2018-05-12 23:14:07 +02:00
2018-05-12 23:53:44 +02:00
2018-07-27 15:55:01 +02:00
2018-07-27 15:55:01 +02:00
2018-07-27 22:16:24 +02:00
2018-12-03 10:34:12 +01:00
2018-12-03 10:34:12 +01:00
2017-12-16 22:11:19 +01:00
2017-12-16 22:11:19 +01:00
2019-01-10 16:47:43 +01:00
2019-01-10 16:47:43 +01:00
2018-09-10 09:28:55 +02:00
2018-07-11 20:59:05 +02:00
2019-08-06 11:52:47 +02:00
2019-01-14 02:20:40 +02:00
2019-03-16 19:59:02 +01:00
2019-03-16 19:59:02 +01:00
2019-03-16 19:59:02 +01:00
2019-03-16 19:59:02 +01:00
2019-03-16 19:59:02 +01:00
2018-09-22 23:59:10 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2019-08-06 11:52:47 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2019-08-06 11:52:47 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2018-05-08 09:42:07 +02:00
2019-05-21 09:45:15 +02:00
2018-05-08 09:42:07 +02:00
2019-05-21 09:45:15 +02:00
2019-03-05 13:19:43 +01:00
2019-03-05 13:19:43 +01:00
2019-08-06 11:52:47 +02:00
2019-03-05 13:19:43 +01:00
2019-08-06 11:52:47 +02:00
2019-08-06 11:52:47 +02:00
2019-03-05 13:19:43 +01:00
2018-05-08 09:42:07 +02:00
2019-05-21 09:45:15 +02:00
2018-05-08 09:42:07 +02:00
2018-07-11 16:02:24 +02:00
2018-05-08 09:42:07 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2019-05-02 12:59:26 +02:00
2018-09-22 21:20:55 +02:00
2018-09-22 21:20:55 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2018-09-22 21:20:55 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2019-05-21 09:45:15 +02:00
2018-02-21 20:12:42 +01:00
2019-05-21 09:45:15 +02:00
2018-05-08 09:42:07 +02:00
2018-09-22 21:20:55 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2019-05-02 12:59:26 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-09-22 21:20:55 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2019-05-21 09:45:15 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-03-23 20:56:34 +01:00
2018-05-08 09:42:07 +02:00
2018-05-08 09:42:07 +02:00
2018-06-05 10:18:58 +02:00
2019-05-21 09:45:15 +02:00
2018-06-14 11:25:24 +02:00
2019-09-01 18:38:04 +02:00
2019-09-01 18:38:04 +02:00
2018-12-15 12:50:06 +01:00
2019-03-05 23:10:09 +01:00
2019-02-01 11:41:00 +01:00
2019-04-04 11:19:33 +02:00
2019-06-17 06:53:07 +02:00
2019-04-11 19:21:55 +02:00