Re: [PATCH nf] netfilter: nf_tables: unconditionally flush pending work before notifier

From: Hillf Danton
Date: Wed Jul 03 2024 - 08:22:31 EST


On Wed, 3 Jul 2024 12:52:15 +0200 Florian Westphal <fw@xxxxxxxxx>
> Hillf Danton <hdanton@xxxxxxxx> wrote:
> > Given trans->table goes thru the lifespan of trans, your proposal is a bandaid
> > if trans outlives table.
>
> trans must never outlive table.
>
What is preventing trans from being freed after closing sock, given
trans is freed in workqueue?

close sock
queue work