From: Cong Wang <xiyou.wangc...@gmail.com> Date: Sun, 25 Aug 2019 10:01:32 -0700
> 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: itug...@yahoo.com > Cc: Jamal Hadi Salim <j...@mojatatu.com> > Cc: Jiri Pirko <j...@resnulli.us> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Applied and queued up for -stable, thanks.