Re: [PATCH] vhost: Take a reference on the task that is reference in struct vhost_task.

2025-09-21 Thread Michael S. Tsirkin
On Sun, Sep 21, 2025 at 04:56:20PM -0400, Michael S. Tsirkin wrote: > Subject: that is reference -> that is referenced to note i fixed it for now. just dropped "that is referenced" completely. shorter. > On Thu, Sep 18, 2025 at 08:11:44PM +0200, Sebastian Andrzej Siewior wrote: > > vhost_task_cre

Re: [PATCH] vhost: Take a reference on the task that is reference in struct vhost_task.

2025-09-21 Thread Michael S. Tsirkin
Subject: that is reference -> that is referenced On Thu, Sep 18, 2025 at 08:11:44PM +0200, Sebastian Andrzej Siewior wrote: > vhost_task_create() creates a task and keeps a reference to its > task_struct. That task may exit early via a signal and its task_struct > will be released. > A pending vho

Re: [PATCH] vhost: Take a reference on the task that is reference in struct vhost_task.

2025-09-19 Thread Sean Christopherson
On Thu, Sep 18, 2025, Sebastian Andrzej Siewior wrote: > vhost_task_create() creates a task and keeps a reference to its > task_struct. That task may exit early via a signal and its task_struct > will be released. > A pending vhost_task_wake() will then attempt to wake the task and > access a task_

[PATCH] vhost: Take a reference on the task that is reference in struct vhost_task.

2025-09-18 Thread Sebastian Andrzej Siewior
vhost_task_create() creates a task and keeps a reference to its task_struct. That task may exit early via a signal and its task_struct will be released. A pending vhost_task_wake() will then attempt to wake the task and access a task_struct which is no longer there. Acquire a reference on the task