Re: [PATCH RFC 19/38] proc: resume readdir after the last name it returned

From: Christian Brauner

Date: Fri Nov 06 2026 - 09:24:10 EST


On Thu, 5 Nov 2026 17:44:23 +0100, Jann Horn wrote:
> On Mon, Nov 2, 2026 at 3:26 PM Christian Brauner <brauner@xxxxxxxxxx> wrote:
> > [...]
>
> Reviewed-by: Jann Horn <jannh@xxxxxxxxxx>
>
> > [...]
>
> (For both this and the proc_sys version, you could instead do the
> cursor allocation at the start of readdir() so that you can return a
> proper error if it fails, but I guess it doesn't really matter and
> that would complicate the code a bit more...)

I did consider this and didn't think it was worth it. If we can allocate
a cursor we just start from the beginning.