Re: [PATCH bpf-next v9 1/5] bpf: Introduce task_file open-coded iterator kfuncs

From: Linus Torvalds
Date: Thu Jan 30 2025 - 11:37:53 EST


On Thu, 30 Jan 2025 at 08:04, Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
> I deeply dislike that this allows bpf programs to iterate through
> another tasks files more than what is already possible with the
> task_file_seq_* bpf api.

Ack. This needs to just die.

There is no excuse for this, and no, CRIU is absolutely *not* that excuse.

In fact, CRIU is a huge red flag, and has caused endless issues before.

We should absolutely not add special BPF interfaces for CRIU. It only
leads to pain and misery.

Linus