Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755993Ab0KXWle (ORCPT ); Wed, 24 Nov 2010 17:41:34 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:57609 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693Ab0KXWld (ORCPT ); Wed, 24 Nov 2010 17:41:33 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=wJOZDGRqybBZATi65vurrP0IApkbh8WoeoRrLF8oxYbJxaLDkemSsCQRhATM/sp88W yAiIChSQpGv57WNm8rquNyolPvfRqakltOUgSTJuzeYZj0rJ+hnlOnUSbYLdEctXz6pk z9ybcOnMrwG/JKwBexzeTIUcQE6+2ltYoPA8Y= Message-ID: <4CED9498.9080900@suse.cz> Date: Wed, 24 Nov 2010 23:41:28 +0100 From: Jiri Slaby User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6 MIME-Version: 1.0 To: Sergey Lapin CC: linux-kernel@vger.kernel.org Subject: Re: ldisc problems with 2.6.32-2.6.37-rc2 (at least) References: <20101124135249.GA7282@build.ihdev.net> <4CED2251.3020708@suse.cz> <20101124170326.GB7282@build.ihdev.net> <4CED6ACF.9000402@suse.cz> <4CED6B53.50408@suse.cz> <20101124215339.GA8691@build.ihdev.net> <4CED8B86.6070607@suse.cz> <20101124222617.GC8691@build.ihdev.net> In-Reply-To: <20101124222617.GC8691@build.ihdev.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1974 Lines: 54 On 11/24/2010 11:26 PM, Sergey Lapin wrote: > On Wed, Nov 24, 2010 at 11:02:46PM +0100, Jiri Slaby wrote: >> On 11/24/2010 10:53 PM, Sergey Lapin wrote: >>> Initially I run it, everything is ok. >>> Then I run it and get error and backtrace. >>> And if I run it again, everything is ok again, repeatedly. Probably some resources are properly >>> set up in error condition, and not in normal condition. >>> >>> I use ARM machine for testing and x86, bug is architecture-independent. >>> >>> addr2lines: >>> c01bc110 drivers/tty/tty_ldisc.c:499 >> >> Got it. Does this fixes the warning? >> --- a/drivers/tty/tty_ldisc.c >> +++ b/drivers/tty/tty_ldisc.c >> @@ -454,6 +454,8 @@ static int tty_ldisc_open(struct tty_struct *tty, >> struct tty_ldisc *ld) >> /* BTM here locks versus a hangup event */ >> WARN_ON(!tty_locked()); >> ret = ld->ops->open(tty); >> + if (ret) >> + clear_bit(TTY_LDISC_OPEN, &tty->flags); >> return ret; >> } >> return 0; >> >> thanks, >> -- >> js >> suse labs > This one fixes this particular backtrace, but now we have another one, which happens less often > only every 3 times of executing problem and never on ENOMEM case: > > ------------[ cut here ]------------ > WARNING: at drivers/tty/tty_ldisc.c:475 tty_ldisc_close+0x24/0x64() So this one appeared only after the patch was applied. That means, close is called even if open fails. Crap. Will look into that later. > ENOMEM case is one which still wonders me, especially why it happens every second run. For some reason X25 ldisc fails. Could you verify that it doesn't happen with some other ldisc? thanks. -- js suse labs -- 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/