All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Cc: Florian Westphal <fw@strlen.de>,
	stable@vger.kernel.org, g.nault@alphalink.fr,
	gregkh@linuxfoundation.org, pablo@netfilter.org
Subject: Re: [PATCH 4.9.y v2] netfilter: nat: Revert "netfilter: nat: convert nat bysrc hash to rhashtable" hash to rhashtable"
Date: Wed, 15 Nov 2017 12:30:11 +0100	[thread overview]
Message-ID: <20171115113011.GS5512@breakpoint.cc> (raw)
In-Reply-To: <18a37317-fd72-ffa3-bb81-59adfd519a58@dd-wrt.com>

Sebastian Gottschall <s.gottschall@dd-wrt.com> wrote:
> your patch is not clean

Please stop top-posting.

> patching file net/netfilter/nf_nat_core.c
> Hunk #7 succeeded at 550 (offset 6 lines).
> Hunk #8 FAILED at 672.
> Hunk #9 succeeded at 819 (offset 10 lines).
> Hunk #10 succeeded at 852 (offset 10 lines).
> Hunk #11 succeeded at 872 (offset 10 lines).
> 
> nf_nat_cleanup_conntrack is wrong
> 
> your patch
> 
> @@ -672,9 +645,11 @@ EXPORT_SYMBOL_GPL(nf_nat_l3proto_unregister);
> ᅵ/* No one using conntrack by the time this called. */
> ᅵstatic void nf_nat_cleanup_conntrack(struct nf_conn *ct)
> ᅵ{
> -ᅵᅵᅵᅵᅵᅵ if (ct->status & IPS_SRC_NAT_DONE)
> -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ rhltable_remove(&nf_nat_bysource_table, &ct->nat_bysource,
> -ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ nf_nat_bysource_params);
> +ᅵᅵᅵᅵᅵᅵ if (ct->status & IPS_SRC_NAT_DONE) {
> +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ spin_lock_bh(&nf_nat_lock);
> +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ hlist_del_rcu(&ct->nat_bysource);
> +ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ spin_unlock_bh(&nf_nat_lock);
> +ᅵᅵᅵᅵᅵᅵ }
> ᅵ}

It assumes
git cherry-pick 6e699867f84c0f358fed233fe6162173aca28e04

to get the IPS_SRC_NAT_DONE test.

  reply	other threads:[~2017-11-15 11:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-15 10:15 [PATCH 4.9.y v2] netfilter: nat: Revert "netfilter: nat: convert nat bysrc hash to rhashtable" hash to rhashtable" Florian Westphal
2017-11-15 11:15 ` Sebastian Gottschall
2017-11-15 11:30   ` Florian Westphal [this message]
2017-11-15 14:52     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171115113011.GS5512@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=g.nault@alphalink.fr \
    --cc=gregkh@linuxfoundation.org \
    --cc=pablo@netfilter.org \
    --cc=s.gottschall@dd-wrt.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.