[PATCH RFC 03/38] netfilter: xt_recent: don't remove the proc entries under a spinlock

Florian Westphal fw at strlen.de
Mon Nov 2 06:41:03 PST 2026


Christian Brauner <brauner at kernel.org> wrote:
> recent_proc_net_exit() removes the proc entries of all tables with
> recent_lock held. remove_proc_entry() waits until nobody calls into the
> entry anymore, and reading one of them takes recent_lock in
> recent_seq_start() while procfs has the entry pinned. So when a reader
> gets there while the network namespace goes away, the exit path sleeps
> with a spinlock held and bh disabled, waiting for a reader that spins
> on that very lock:

Yes, but note that this change is already part of a pending nf -> net
merge request.



More information about the linux-um mailing list