All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nft v2 0/2] netfilter: fix expectation reference leaks
@ 2026-05-07 14:04 Li Xiasong
  2026-05-07 14:04 ` [PATCH nft v2 1/2] netfilter: nf_conntrack_sip: get helper before allocating expectation Li Xiasong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Li Xiasong @ 2026-05-07 14:04 UTC (permalink / raw)
  To: netfilter-devel
  Cc: Pablo Neira Ayuso, Florian Westphal, Phil Sutter, coreteam,
	yuehaibing, zhangchangzhong, weiyongjun1

this series fixes two expectation reference leaks in netfilter.

The first patch simplifies SIP REGISTER handling by validating helper
availability before expectation allocation, removing an early-return
leak path.

The second patch adds a missing nf_ct_expect_put() in nft_ct expectation
object evaluation to balance the allocation reference.

Changes in v2:
  - Patch 2/2: in process_register_request(), check helper before
    nf_ct_expect_alloc() as suggested.

Link to v1:
  - https://lore.kernel.org/netfilter-devel/20260506121618.578443-1-lixiasong1@huawei.com/

Li Xiasong (2):
  netfilter: nf_conntrack_sip: get helper before allocating expectation
  netfilter: nft_ct: fix missing expect put in obj eval

 net/netfilter/nf_conntrack_sip.c | 8 ++++----
 net/netfilter/nft_ct.c           | 2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-07 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 14:04 [PATCH nft v2 0/2] netfilter: fix expectation reference leaks Li Xiasong
2026-05-07 14:04 ` [PATCH nft v2 1/2] netfilter: nf_conntrack_sip: get helper before allocating expectation Li Xiasong
2026-05-07 14:04 ` [PATCH nft v2 2/2] netfilter: nft_ct: fix missing expect put in obj eval Li Xiasong
2026-05-07 18:16 ` [PATCH nft v2 0/2] netfilter: fix expectation reference leaks Florian Westphal

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.