Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1602678

Re: [PATCH 2/2] kthread, cgroup: close race window where new kthreads can be migrated to non-root cgroups

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] kthread, cgroup: close race window where new kthreads can be migrated to non-root cgroups
Date 2017-03-16 18:20 +0100
Message-ID <tlHea-1vE-13@gated-at.bofh.it> (permalink)
References <tlqmZ-6ih-3@gated-at.bofh.it> <tlqmZ-6ih-1@gated-at.bofh.it> <tlFvH-gv-9@gated-at.bofh.it> <tlG8q-LZ-15@gated-at.bofh.it> <tlGrL-X3-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Thu, Mar 16, 2017 at 05:17:57PM +0100, Oleg Nesterov wrote:
> But this also means that __cgroup_procs_write() will always fail if
> this task is a kernel thread which was not created by kthread_create().
> 
> Currently you can use kernel_thread() (although you shouldn't) and it
> can be migrated, this won't work after your patch.

I see what you mean now.  The only users seem to be init/main.c and
kernel/kmod.c.  I'll see if there's a way we can do this only for
kthread_create() users.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] kthread, cgroup: close race window where new kthreads  can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 00:20 +0100
  Re: [PATCH 2/2] kthread, cgroup: close race window where new         kthreads can be migrated to non-root cgroups Oleg Nesterov <oleg@redhat.com> - 2017-03-16 16:30 +0100
    Re: [PATCH 2/2] kthread, cgroup: close race window where new         kthreads can be migrated to non-root cgroups Oleg Nesterov <oleg@redhat.com> - 2017-03-16 16:50 +0100
      Re: [PATCH 2/2] kthread, cgroup: close race window where new  kthreads can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 17:10 +0100
        Re: [PATCH 2/2] kthread, cgroup: close race window where new         kthreads can be migrated to non-root cgroups Oleg Nesterov <oleg@redhat.com> - 2017-03-16 17:40 +0100
          Re: [PATCH 2/2] kthread, cgroup: close race window where new  kthreads can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 18:50 +0100
    Re: [PATCH 2/2] kthread, cgroup: close race window where new  kthreads can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 17:10 +0100
      Re: [PATCH 2/2] kthread, cgroup: close race window where new         kthreads can be migrated to non-root cgroups Oleg Nesterov <oleg@redhat.com> - 2017-03-16 17:30 +0100
        Re: [PATCH 2/2] kthread, cgroup: close race window where new  kthreads can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 18:20 +0100
  [PATCH v2] cgroup, kthread: close race window where new kthreads can  be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-16 22:10 +0100
    Re: [PATCH v2] cgroup, kthread: close race window where new         kthreads can be migrated to non-root cgroups Oleg Nesterov <oleg@redhat.com> - 2017-03-17 15:00 +0100
      Re: [PATCH v2] cgroup, kthread: close race window where new kthreads  can be migrated to non-root cgroups Tejun Heo <tj@kernel.org> - 2017-03-17 15:50 +0100

csiph-web