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


Groups > linux.kernel > #1723763

Re: [PATCH] cgroup: Fix potential race between cgroup_exit and cpuset_attach

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] cgroup: Fix potential race between cgroup_exit and cpuset_attach
Date 2017-08-31 03:20 +0200
Message-ID <ukmjg-7nc-3@gated-at.bofh.it> (permalink)
References <ukaL9-8rd-61@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Wed, Aug 30, 2017 at 06:23:50PM +0530, Neeraj Upadhyay wrote:
> cpuset_hotplug_workfn()
>   cgroup_transfer_tasks()
>     cgroup_migrate()
>       cgroup_migrate_execute()
>           <TASK EXIT>
>           list_del_init(&task->cg_list)
>         cpuset_attach()
>           cgroup_taskset_first(tset, &css) // css is not set
>           guarantee_online_mems(cs, ...) // data abort

I don't think this can happen anymore.  We lock out task exits during
migration and don't call migration callbacks if there's no tasks to
migrate.

Thanks.

-- 
tejun

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


Thread

[PATCH] cgroup: Fix potential race between cgroup_exit and cpuset_attach Neeraj Upadhyay <neeraju@codeaurora.org> - 2017-08-30 15:00 +0200
  Re: [PATCH] cgroup: Fix potential race between cgroup_exit and  cpuset_attach Tejun Heo <tj@kernel.org> - 2017-08-31 03:20 +0200

csiph-web