[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250226190322.GL8995@redhat.com>
Date: Wed, 26 Feb 2025 20:03:23 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Christian Brauner <brauner@...nel.org>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
"Michael S. Tsirkin" <mst@...hat.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [GIT PULL] KVM changes for Linux 6.14
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.
Powered by blists - more mailing lists