Re: [GIT PULL] KVM changes for Linux 6.14

From: Oleg Nesterov
Date: Wed Feb 26 2025 - 14:04:12 EST


Sorry, didn't have time to actually read this patch, but after a quick
glance...

On 02/26, Christian Brauner wrote:
>
> @@ -3949,7 +3955,7 @@ static int proc_task_readdir(struct file *file, struct dir_context *ctx)
> tid = (int)(intptr_t)file->private_data;
> file->private_data = NULL;
> for (task = first_tid(proc_pid(inode), tid, ctx->pos - 2, ns);
> - task;
> + task && !(task->flags & PF_USER_WORKER);

unless I am totally confused this looks "obviously wrong".

proc_task_readdir() should not stop if it sees a PF_USER_WORKER task, this
check should go into first_tid/next_tid.

Oleg.