Re: [PATCH bpf] bpf: Fix soft lockup in fd_array_map_free()
From: Alexei Starovoitov
Date: Thu Nov 12 2026 - 16:51:41 EST
On Thu Nov 12, 2026 at 12:20 PM UTC, Li Jinyue wrote:
> fd_array_map_free() walks all map entries to assert that the map is
> empty before its memory is freed. max_entries is not bounded, and the
> free runs from the bpf_map_free_deferred work item, so with a large
> max_entries the scan occupies the CPU for a long time without a
> scheduling point:
>
> watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [kworker/u8:5:8894]
> Workqueue: events_unbound bpf_map_free_deferred
> epc : fd_array_map_free+0x7c/0xea
I don't think you root caused it correctly.
pw-bot: cr