On Tue, Dec 01, 2026 at 04:58:14PM +0800, zhuorao yang wrote:
> Two CPUs can add the helper extension to the same unconfirmed conntrack > when shared skbs are evaluated concurrently. nf_ct_ext_add() then calls > krealloc() on the same ct->ext from both CPUs. If the first call moves > the extension allocation, the second call can double-free the old one. > > Serialize nf_ct_helper_ext_add() with the conntrack lock. The lock also > covers publishing IPS_HELPER_BIT and initializing the expectation list, > so a concurrent caller observes a fully initialized helper extension.
Thanks for your yet another duplicated patch. Please, follow up the mailing list before posting duplicated patches. Talking to the chat bot is not sufficient, you have to keep track on the mailing list.