Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754092AbbKBPkt (ORCPT ); Mon, 2 Nov 2015 10:40:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbbKBPko (ORCPT ); Mon, 2 Nov 2015 10:40:44 -0500 Date: Mon, 2 Nov 2015 17:36:54 +0100 From: Oleg Nesterov To: Dmitry Vyukov Cc: Roland McGrath , Andrew Morton , amanieu@gmail.com, pmoore@redhat.com, Ingo Molnar , vdavydov@parallels.com, qiaowei.ren@intel.com, dave@stgolabs.net, palmer@dabbelt.com, LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin Subject: Re: WARNING in task_participate_group_stop Message-ID: <20151102163654.GA18804@redhat.com> References: <20151102151333.GA17152@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151102151333.GA17152@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 965 Lines: 26 On 11/02, Oleg Nesterov wrote: > > On 11/02, Dmitry Vyukov wrote: > > > > But I wasn't able > > to figure out what's the root cause (why task does not have > > JOBCTL_STOP_PENDING) and maybe the same WARNING can be triggered > > without root and/or with other than init process. So still posting it > > here. > > Yes I think you are right. SIGSTOP can race with SIGKILL which (unlike SIGCONT) > doesn't clear JOBCTL_STOP_DEQUEUED/PENDING/etc. I was wrong... I forgot that complete_signal(SIGKILL) sets SIGNAL_GROUP_EXIT. Unless SIGNAL_UNKILLABLE is set, and this is what makes init "special". So it seems that everything is clear. Except I can't understand why your test-case doesn't work for me ;) It should. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/