Skip to content

kthread: pass in user and check RLIMIT_NPROC

Mike Christie lkml oe-kbuild-all virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kthread: allow caller to pass in user_structinclude/linux/kthread.h include/linux/sched/task.h kernel/kthread.c+56 -91 reply
2/3kernel/fork, cred.c: allow copy_process to take userinclude/linux/cred.h kernel/cred.c kernel/fork.c+13 -93 replies
3/3vhost: pass kthread user to check RLIMIT_NPROCdrivers/vhost/vhost.c+3 -21 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichael S. TsirkinStefan Hajnoczi
SeriesA-b A-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] kthread: pass in user and check RLIMIT_NPROC

The vhost driver will create a kthread when userspace does a VHOST_SET_OWNER ioctl, but the thread is charged to the kthreadd thread. We can then end up violating the userspace process's RLIMIT_NPROC. This patchset allows drivers to pass in the user to charge/check.

The patches were made over Linus's current tree.

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization