Re: [PATCH bpf-next v3 1/2] bpf: Implement dtor for struct file BTF ID
Alexei Starovoitov <[email protected]>
| Newsgroups | dev.linux.lists.sashiko,org.kernel.vger.bpf |
|---|---|
| Message-ID | <CAADnVQJEXDh6=rKfUjuR_zjCcXfMAXUaXcXTWgUAx1-mWe_e-w@mail.gmail.com> |
On Fri, Apr 24, 2026 at 4:20 PM Justin Suess <[email protected]> wrote: > > > So either: > > 1. allocating memory for a new irq_work on the fly, which is an > operation that can fail. So if we're under memory pressure the > element never gets freed. > > 2. preallocate an irq work for every element ahead of time. obviously that's not what I was referring to. irq_work is rarely used directly like that. The common pattern is: defer_free() { if (llist_add(head + s->offset, &df->objects)) irq_work_queue(&df->work); but before going there. Please enumerate "other dtors broken in NMI". What exactly is broken? What is the sequence of events? All map types with kptrs? or particular ones?