All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Wanhui Fu <fuwh1120@163.com>
Cc: pablo@netfilter.org, phil@nwl.cc, coreteam@netfilter.org,
	netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next] netfilter: xt_TPROXY: enable defrag after protocol validation
Date: Sat, 5 Dec 2026 07:04:42 +0100	[thread overview]
Message-ID: <axOo0qs5VMxSWoXY@strlen.de> (raw)
In-Reply-To: <20261204140044.1822125-1-fuwh1120@163.com>

Wanhui Fu <fuwh1120@163.com> wrote:
> Both tproxy_tg4_check() and tproxy_tg6_check() enable defragmentation
> before validating the rule protocol. If protocol validation fails,
> the target destructor is not called, leaving the defragmentation
> user count elevated.
> 
> Move protocol validation before enabling defragmentation to avoid
> leaking references on rejected rules.
> 
> Found by a self-developed static analysis tool and compile-test passed.

Acked-by: Florian Westphal <fw@strlen.de>

      reply	other threads:[~2026-12-05  6:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:00 [PATCH nf-next] netfilter: xt_TPROXY: enable defrag after protocol validation Wanhui Fu
2026-12-05  6:04 ` Florian Westphal [this message]

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=axOo0qs5VMxSWoXY@strlen.de \
    --to=fw@strlen.de \
    --cc=coreteam@netfilter.org \
    --cc=fuwh1120@163.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=phil@nwl.cc \
    /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.