Re: [PATCH RFC 03/38] netfilter: xt_recent: don't remove the proc entries under a spinlock
From: Florian Westphal
Date: Mon Nov 02 2026 - 13:22:30 EST
Christian Brauner <brauner@xxxxxxxxxx> 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.