From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdHaBK3 (ORCPT ); Wed, 30 Aug 2017 21:10:29 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:33196 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbdHaBK2 (ORCPT ); Wed, 30 Aug 2017 21:10:28 -0400 Date: Wed, 30 Aug 2017 18:10:24 -0700 From: Tejun Heo To: Neeraj Upadhyay Cc: lizefan@huawei.com, mingo@kernel.org, longman@redhat.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, sramana@codeaurora.org, prsood@codeaurora.org Subject: Re: [PATCH] cgroup: Fix potential race between cgroup_exit and cpuset_attach Message-ID: <20170831011024.GC491396@devbig577.frc2.facebook.com> References: <1504097630-32690-1-git-send-email-neeraju@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1504097630-32690-1-git-send-email-neeraju@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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() > > 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