From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304AbbKBRKQ (ORCPT ); Mon, 2 Nov 2015 12:10:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49502 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbbKBRKN (ORCPT ); Mon, 2 Nov 2015 12:10:13 -0500 Date: Mon, 2 Nov 2015 19:06:24 +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: <20151102180624.GA24361@redhat.com> References: <20151102151333.GA17152@redhat.com> <20151102163654.GA18804@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151102163654.GA18804@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 On 11/02, Oleg Nesterov wrote: > > 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". and I think this should be fixed anyway, if nothing else to make this logic more correct. I'll try to recheck this all later. > So it seems that everything is clear. Except I can't understand why your > test-case doesn't work for me ;) It should. Damn. Sorry Dmitry it actually works. Just I didn't see the output from pr_warn()'s on the serial console due to the wrong console_loglevel. Oleg.