Re: [PATCH bpf-next v2] bpf: Fix mmap_lock leak in irq_work path

Sanghyun Park <[email protected]> Tue, 4 Aug 2026 10:08:21 +0900
Newsgroups org.kernel.vger.bpf,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Mon, Aug 3, 2026 at 5:44 PM UTC, Andrii Nakryiko
<[email protected]> wrote:
>
> I'm just not sure that re-queueing works if irq_work_is_busy() returns
> true, please double check. If that doesn't work, then we can miss the
> irq_work callback, which would be bad.

I see your point. I double-checked this, and re-queueing seems to work.

However, keeping the irq_work_is_busy() check only adds one flag read, so the
performance impact is quite negligible. I'll keep both checks in a conservative
manner.