From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756002AbZERPiS (ORCPT ); Mon, 18 May 2009 11:38:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752485AbZERPiH (ORCPT ); Mon, 18 May 2009 11:38:07 -0400 Received: from mx2.redhat.com ([66.187.237.31]:39155 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbZERPiE (ORCPT ); Mon, 18 May 2009 11:38:04 -0400 Date: Mon, 18 May 2009 17:31:15 +0200 From: Oleg Nesterov To: Ingo Molnar Cc: "Rafael J. Wysocki" , Jonathan Corbet , Martin Bammer , Jeff Garzik , Kumar Gala , Andrew Morton , Linux Kernel Mailing List , Adrian Bunk , Linus Torvalds , Natalie Protasevich , Kernel Testers List , Network Development , Linux ACPI , Linux PM List , Linux SCSI List , Linux Wireless List , DRI Subject: Re: 2.6.30-rc6: Reported regressions from 2.6.29 Message-ID: <20090518153115.GA22133@redhat.com> References: <_AjETDMbIoL.A.DcH.RYzDKB@chimera> <20090517073327.GC1583@elte.hu> <20090518145725.GB18607@redhat.com> <20090518151102.GA6241@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090518151102.GA6241@elte.hu> 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 05/18, Ingo Molnar wrote: > > * Oleg Nesterov wrote: > > > On 05/17, Ingo Molnar wrote: > > > > > > > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13107 > > > > Subject : LTP 20080131 causes defunct processes w/2.6.30-rc1 > > > > Submitter : Kumar Gala > > > > Date : 2009-04-09 15:43 (38 days old) > > > > First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b3bfa0cba867f23365b81658b47efd906830879b > > > > References : http://marc.info/?l=linux-kernel&m=123929187208953&w=4 > > > > http://lkml.org/lkml/2009/4/10/193 > > > > Handled-By : Sukadev Bhattiprolu > > > > > > Oleg says in that thread that it's as-designed, and followup > > > questions were not replied to (yet). > > > > Yes, I think this is false alarm. Perhaps I missed something, and > > I am waiting for more info from Kumar, but it looks like ltp was > > already changed to skip the "{ PTRACE_ATTACH, 1, EPERM }" test on > > kernels after 2.6.25 > > Btw., why did the patch (and the revert) make any difference to the > test? Timing differences look improbable. Because before this series /sbin/init always ignored SIGSTOP. Now, ptracer does PTRACE_ATTACH and exits without clearing the pending SIGSTOP. init dequeues this signal and becomes TASK_STOPPED. Consider: $ sleep 1000 & [1] 875 $ grep State: /proc/`pidof sleep`/status State: S (sleeping) $ perl -e 'syscall 101, 16, 0+shift, 0,0' `pidof sleep` # just PTRACE_ATTACH + exit [1]+ Stopped sleep 1000 $ grep State: /proc/`pidof sleep`/status State: T (stopped) This is the "normal" behaviour, afaics the same happens with init now. Oleg.