From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751874Ab1JIG7v (ORCPT ); Sun, 9 Oct 2011 02:59:51 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:59527 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244Ab1JIG7u convert rfc822-to-8bit (ORCPT ); Sun, 9 Oct 2011 02:59:50 -0400 MIME-Version: 1.0 In-Reply-To: <4E5FF216.2020207@suse.cz> References: <20110828131502.GA2580@redhat.com> <4E5FF216.2020207@suse.cz> Date: Sun, 9 Oct 2011 14:59:49 +0800 Message-ID: Subject: Re: WARNING: at drivers/tty/tty_ldisc.c:766 tty_ldisc_reinit+0x52/0x90() [3.0] From: Dave Young To: Jiri Slaby Cc: Dave Jones , Linux Kernel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 2, 2011 at 4:59 AM, Jiri Slaby wrote: > On 08/28/2011 03:15 PM, Dave Jones wrote: >> >> Just saw this on a box that was recieving an rsync while I ssh'd in. >> The ssh session hung. > > Yes, could you apply the attached debug patch and post a dmesg output? I see this problem as well, the debug patch reports the refcount is 2 You can produce the WARN as below: in xterm run: exec 0<>/dev/console 1<>/dev/console 2<>/dev/console > >> WARNING: at drivers/tty/tty_ldisc.c:766 tty_ldisc_reinit+0x52/0x90() >> Hardware name: >> Modules linked in: nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc >> p4_clockmod freq_table speedstep_lib nf_conntrack_ipv4 nf_defrag_ipv4 >> xt_state nf_conntrack microcode serio_raw snd_hda_codec_realtek i2c_i801 >> snd_hda_intel snd_hda_codec iTCO_wdt snd_hwdep iTCO_vendor_support snd_seq >> snd_seq_device snd_pcm snd_timer snd r8169 soundcore mii snd_page_alloc >> pata_sil680 i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last >> unloaded: mperf] >> Pid: 1381, comm: sshd Not tainted 2.6.40-4.fc15.x86_64.debug #1 >> Call Trace: >>  [] warn_slowpath_common+0x83/0x9b >>  [] warn_slowpath_null+0x1a/0x1c >>  [] tty_ldisc_reinit+0x52/0x90 >>  [] tty_ldisc_hangup+0x13f/0x1e1 >>  [] __tty_hangup+0x111/0x35f >>  [] tty_vhangup+0xe/0x10 >>  [] pty_close+0x128/0x132 >>  [] tty_release+0x1d8/0x4dc >>  [] ? lock_release_holdtime.part.8+0x6b/0x72 >>  [] ? native_sched_clock+0x34/0x36 >>  [] fput+0x127/0x1f5 >>  [] filp_close+0x70/0x7b >>  [] sys_close+0xf6/0x13b >>  [] system_call_fastpath+0x16/0x1b > > > > -- > js > suse labs > -- Regards Dave