Skip to content

vhost: Fix freezer/ps regressions

Mike Christie lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 48 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3signal: Don't always put SIGKILL in shared_pendingkernel/signal.c+8 -01 reply
2/3signal: Don't exit for PF_USER_WORKER taskskernel/signal.c+2 -20 replies
3/3fork, vhost: Use CLONE_THREAD to fix freezer/ps regressiondrivers/vhost/vhost.c include/linux/sched/task.h kernel/fork.c +2 more+25 -2347 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] vhost: Fix freezer/ps regressions

The following patches made over Linus's tree fix the 2 bugs:

1. vhost worker task shows up as a process forked from the parent that did VHOST_SET_OWNER ioctl instead of a process under root/kthreadd. This was causing breaking scripts.
2. vhost_tasks didn't disable or add support for freeze requests.

The following patches fix these issues by making the vhost_task task a thread under the process that did the VHOST_SET_OWNER and uses get_signal() to handle freeze and SIGSTOP/KILL signals which is required when using CLONE_THREAD (really CLONE_THREAD requires CLONE_SIGHAND which requires SIGKILL/STOP to be supported).