LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Dave Young" <hidave.darkstar@gmail.com>
To: "Alon Bar-Lev" <alon.barlev@gmail.com>
Cc: linux-kernel@vger.kernel.org, marcel@holtmann.org,
	bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] [BUG] rfcomm]
Date: Mon, 5 Nov 2007 13:08:10 +0800	[thread overview]
Message-ID: <a8e1da0711042108r7cea1a46s8d8b93795c314119@mail.gmail.com> (raw)
In-Reply-To: <200710231950.31313.alon.barlev@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 11231 bytes --]

On 10/24/07, Alon Bar-Lev <alon.barlev@gmail.com> wrote:
>
> Hello,
>
> I have this issue for long time (At least from linux-2.6.18).
> I think it is about time I report this... :)
>
> When coming out of suspend (uswsusp or suspend2) if rfcomm was
> active it creates this dump.
>
> If you need any more info I will be glad to provide.
>
> Best Regards,
> Alon Bar-Lev.
>
> ---
>
> Oct 23 17:51:33 alon1 acpid: received event "button/power PWRF 00000080 00000001"
> Oct 23 17:51:33 alon1 acpid: notifying client 7903[0:0]
> Oct 23 17:51:33 alon1 acpid: notifying client 7804[0:0]
> Oct 23 17:51:33 alon1 acpid: executing action "/etc/acpi/default.sh button/power PWRF 00000080 00000001"
> Oct 23 17:52:13 alon1 ntpd[8186]: synchronized to 192.115.25.179, stratum 2
> Oct 23 17:52:16 alon1 swsusp: Marking nosave pages: 000000000009f000 - 0000000000100000
> Oct 23 17:52:16 alon1 swsusp: Basic memory bitmaps created
> Oct 23 19:41:22 alon1 pppd[25041]: Hangup (SIGHUP)
> Oct 23 19:41:22 alon1 pppd[25041]: Modem hangup
> Oct 23 19:41:22 alon1 pppd[25041]: Connect time 384.5 minutes.
> Oct 23 19:41:22 alon1 pppd[25041]: Sent 512470 bytes, received 1546102 bytes.
> Oct 23 19:41:22 alon1 pppd[25041]: Connection terminated.
> Oct 23 19:41:40 alon1 Stopping tasks ... done.
> Oct 23 19:41:40 alon1 Shrinking memory...   - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | done (224831 pages freed)
> Oct 23 19:41:40 alon1 Freed 899324 kbytes in 14.70 seconds (61.17 MB/s)
> Oct 23 19:41:40 alon1 Suspending console(s)
> Oct 23 19:41:40 alon1 usbfs 2-2:1.0: no suspend for driver usbfs?
> Oct 23 19:41:40 alon1 pnp: Device 00:0c disabled.
> Oct 23 19:41:40 alon1 eth0: Going into suspend...
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:02:02.0 disabled
> Oct 23 19:41:40 alon1 ACPI handle has no context!
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:02:01.0 disabled
> Oct 23 19:41:40 alon1 ACPI handle has no context!
> Oct 23 19:41:40 alon1 radeonfb (0000:01:00.0): suspending for event: 1...
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:00:1f.5 disabled
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:00:1d.7 disabled
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:00:1d.2 disabled
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:00:1d.1 disabled
> Oct 23 19:41:40 alon1 ACPI: PCI interrupt for device 0000:00:1d.0 disabled
> Oct 23 19:41:40 alon1 swsusp: critical section:
> Oct 23 19:41:40 alon1 swsusp: Need to copy 126188 pages
> Oct 23 19:41:40 alon1 Intel machine check architecture supported.
> Oct 23 19:41:40 alon1 Intel machine check reporting enabled on CPU#0.
> Oct 23 19:41:40 alon1 ACPI: PCI Interrupt 0000:00:1d.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:40 alon1 PCI: Setting latency timer of device 0000:00:1d.0 to 64
> Oct 23 19:41:40 alon1 usb usb1: root hub lost power or was reset
> Oct 23 19:41:40 alon1 ACPI: PCI Interrupt 0000:00:1d.1[B] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:40 alon1 PCI: Setting latency timer of device 0000:00:1d.1 to 64
> Oct 23 19:41:40 alon1 usb usb2: root hub lost power or was reset
> Oct 23 19:41:40 alon1 ACPI: PCI Interrupt 0000:00:1d.2[C] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:40 alon1 PCI: Setting latency timer of device 0000:00:1d.2 to 64
> Oct 23 19:41:40 alon1 usb usb3: root hub lost power or was reset
> Oct 23 19:41:40 alon1 ACPI: PCI Interrupt 0000:00:1d.7[D] -> Link [LNKH] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:40 alon1 PCI: Setting latency timer of device 0000:00:1d.7 to 64
> Oct 23 19:41:40 alon1 usb usb4: root hub lost power or was reset
> Oct 23 19:41:40 alon1 ehci_hcd 0000:00:1d.7: debug port 1
> Oct 23 19:41:40 alon1 PCI: cache line size of 32 is not supported by device 0000:00:1d.7
> Oct 23 19:41:40 alon1 PCI: Setting latency timer of device 0000:00:1e.0 to 64
> Oct 23 19:41:40 alon1 ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:00:1f.5 at offset 1 (was 2900007, writing 2900003)
> Oct 23 19:41:42 alon1 ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:42 alon1 PCI: Setting latency timer of device 0000:00:1f.5 to 64
> Oct 23 19:41:42 alon1 radeonfb (0000:01:00.0): resuming from state: 1...
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.0 at offset f (was 3c0010b, writing 5c0010b)
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.0 at offset 3 (was 824008, writing 82a810)
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 2100107, writing 2100007)
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.1 at offset f (was 3c0020b, writing 5c0020b)
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.1 at offset 3 (was 824008, writing 82a810)
> Oct 23 19:41:42 alon1 PM: Writing back config space on device 0000:02:00.1 at offset 1 (was 2100107, writing 2100007)
> Oct 23 19:41:42 alon1 ACPI: PCI Interrupt 0000:02:01.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:42 alon1 eth0: Coming out of suspend...
> Oct 23 19:41:42 alon1 ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
> Oct 23 19:41:42 alon1 pnp: Device 00:0c activated.
> Oct 23 19:41:42 alon1 ipw2200: Radio disabled by module parameter.
> Oct 23 19:41:42 alon1 hda: selected mode 0x45
> Oct 23 19:41:42 alon1 hdc: selected mode 0x42
> Oct 23 19:41:42 alon1 Restarting tasks ... <6>usb 2-2: USB disconnect, address 4
> Oct 23 19:41:42 alon1 done.
> Oct 23 19:41:42 alon1 usb 3-1: USB disconnect, address 4
> Oct 23 19:41:42 alon1 usb 3-2: USB disconnect, address 3
> Oct 23 19:41:42 alon1 usb 3-1: new full speed USB device using uhci_hcd and address 5
> Oct 23 19:41:42 alon1 usb 3-1: configuration #1 chosen from 1 choice
> Oct 23 19:41:42 alon1 usb 3-2: new full speed USB device using uhci_hcd and address 6
> Oct 23 19:41:42 alon1 usb 3-2: configuration #1 chosen from 1 choice
> Oct 23 19:41:42 alon1 general protection fault: 0000 [#1]
> Oct 23 19:41:42 alon1 PREEMPT
> Oct 23 19:41:42 alon1 hcid[7849]: HCI dev 0 down
> Oct 23 19:41:42 alon1 Modules linked in: ppp_deflate zlib_deflate zlib_inflate bsd_comp ppp_async hci_usb vmnet(P) vmmon(P) rfcomm l2cap radeon drm ipv6 autofs4 nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat ipt_REJECT xt_tcpudp ipt_LOG xt_limit xt_state nf_conntrack_ipv4 nf_conntrack iptable_filter ip_tables x_tables aes crypto_algapi ieee80211_crypt_ccmp snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device sd_mod scsi_mod bluetooth ppp_generic slhc ioatdma cfq_iosched cpufreq_powersave cpufreq_ondemand cpufreq_conservative acpi_cpufreq freq_table ecryptfs dazuko commoncap apm thermal processor fan button battery ac hdaps thinkpad_acpi hwmon nvram af_packet nls_cp1255 nls_iso8859_1 nls_utf8 nls_base pcmcia ipw2200 ieee80211 ieee80211_crypt firmware_class e1000 snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd soundcore yenta_socket snd_page_alloc rsrc_nonstatic pcmcia_core nsc_ircc i
>  de_cd irda crc_ccitt ehci_hcd cdrom uhci_hcd intel_agp agpgart psmouse usbcore i2c_i801 rtc unix evdev ext3 jbd ext2 mbcache loop ide_disk piix ide_core
> Oct 23 19:41:42 alon1 CPU:    0
> Oct 23 19:41:42 alon1 EIP:    0060:[<c01c575b>]    Tainted: P        VLI
> Oct 23 19:41:42 alon1 EFLAGS: 00210202   (2.6.23-gentoo #4)
> Oct 23 19:41:42 alon1 EIP is at _atomic_dec_and_lock+0xb/0x40
> Oct 23 19:41:42 alon1 eax: fffffffe   ebx: fffffffe   ecx: 00000000   edx: e1ae8000
> Oct 23 19:41:42 alon1 esi: fffffffe   edi: f672aec0   ebp: dffefac8   esp: e1ae9e50
> Oct 23 19:41:42 alon1 ds: 007b   es: 007b   fs: 0000  gs: 0033  ss: 0068
> Oct 23 19:41:42 alon1 Process pppd (pid: 25041, ti=e1ae8000 task=f61bbab0 task.ti=e1ae8000)
> Oct 23 19:41:42 alon1 Stack: c017f8bc f65f5468 c01ab7cd 00000000 ffffffff ffffffff fffffffe f4c32754
> Oct 23 19:41:42 alon1 00000000 fffffffe 00000000 df7244c0 f65f5468 f672aec0 c02fb514 c01c6c7b
> Oct 23 19:41:42 alon1 f67f37c0 c02fb514 f672aec0 f67f37c0 f67f37c0 00000000 f65f5400 00000000
> Oct 23 19:41:42 alon1 Call Trace:
> Oct 23 19:41:42 alon1 [<c017f8bc>] dput+0x1c/0x160
> Oct 23 19:41:42 alon1 [<c01ab7cd>] sysfs_move_dir+0x15d/0x1d0
> Oct 23 19:41:42 alon1 [<c01c6c7b>] kobject_move+0x9b/0x120
> Oct 23 19:41:42 alon1 [<c0238191>] device_move+0x51/0x110
> Oct 23 19:41:42 alon1 [<f9c4ed91>] rfcomm_tty_close+0x51/0xa0 [rfcomm]
> Oct 23 19:41:42 alon1 [<c01dd646>] release_dev+0x146/0x6a0
> Oct 23 19:41:42 alon1 [<c015bd60>] handle_mm_fault+0x160/0x6b0
> Oct 23 19:41:42 alon1 [<c01ddbaf>] tty_release+0xf/0x20
> Oct 23 19:41:42 alon1 [<c016eac1>] __fput+0x91/0x190
> Oct 23 19:41:42 alon1 [<c016bdf7>] filp_close+0x47/0x80
> Oct 23 19:41:42 alon1 [<c016d298>] sys_close+0x78/0xe0
> Oct 23 19:41:42 alon1 [<c01040ae>] sysenter_past_esp+0x5f/0x85
> Oct 23 19:41:42 alon1 =======================
> Oct 23 19:41:42 alon1 Code: 39 f5 7f b6 8d 46 ff 8b 14 24 89 02 8b 44 24 04 83 c4 08 5b 5e 5f 5d c3 90 90 90 90 90 90 90 90 89 e2 81 e2 00 e0 ff ff ff 42 14 <ff> 08 0f 94 c2 84 d2 b9 01 00 00 00 74 07 89 c8 c3 8d 74 26 00
> Oct 23 19:41:42 alon1 EIP: [<c01c575b>] _atomic_dec_and_lock+0xb/0x40 SS:ESP 0068:e1ae9e50
> Oct 23 19:41:42 alon1 note: pppd[25041] exited with preempt_count 1
> Oct 23 19:41:42 alon1 swsusp: Basic memory bitmaps freed
> Oct 23 19:41:42 alon1 usb 2-2: new full speed USB device using uhci_hcd and address 5
> Oct 23 19:41:42 alon1 usb 2-2: configuration #1 chosen from 1 choice
> Oct 23 19:41:42 alon1 pcscd[8214]: segfault at 00000000 eip b7fb07ff esp b760fe30 error 4
> Oct 23 19:41:42 alon1 /etc/init.d/net.ppp0[2070]: status: crashed
> Oct 23 19:41:45 alon1 hcid[7849]: Stopping security manager 0
> Oct 23 19:41:45 alon1 hcid[7849]: Device hci0 has been disabled
> Oct 23 19:41:45 alon1 hcid[7849]: HCI dev 0 unregistered
> Oct 23 19:41:45 alon1 hcid[7849]: Unregister path: /org/bluez/hci0
> Oct 23 19:41:49 alon1 /etc/init.d/bluetooth[2135]: status: crashed
> Oct 23 19:41:54 alon1 fbcondecor: console 1 using theme 'livecd-2007.0'
> Oct 23 19:41:54 alon1 fbcondecor: switched decor state to 'on' on console 1
> Oct 23 19:42:00 alon1 agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
> Oct 23 19:42:00 alon1 agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
> Oct 23 19:42:00 alon1 agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
> Oct 23 19:42:00 alon1 [drm] Loading R300 Microcode
> Oct 23 19:42:06 alon1 acpid: action exited with status 0
> Oct 23 19:42:06 alon1 acpid: completed event "button/power PWRF 00000080 00000001"
> Oct 23 19:42:06 alon1 acpid: client connected from 7804[0:0]
> Oct 23 19:42:06 alon1 acpid: 1 client rule loaded
>
Hi,
I managed to produce this bug last weekend. I debugged it and found a
rfcomm_dev refcnt BUG.
please try the patch of attachment, sorry for attachement because of
my gmail/mutt configuration problem.

I post it in below thread:
http://lkml.org/lkml/2007/11/4/207

[-- Attachment #2: diff.rfcomm --]
[-- Type: application/octet-stream, Size: 742 bytes --]

Signed-off-by: Dave Young <hidave.darkstar@gmail.com> 

---
net/bluetooth/rfcomm/tty.c |    7 -------
1 file changed, 7 deletions(-)

diff -upr linux/net/bluetooth/rfcomm/tty.c linux.new/net/bluetooth/rfcomm/tty.c
--- linux/net/bluetooth/rfcomm/tty.c	2007-11-05 11:28:49.000000000 +0800
+++ linux.new/net/bluetooth/rfcomm/tty.c	2007-11-05 11:30:59.000000000 +0800
@@ -1018,13 +1018,6 @@ static void rfcomm_tty_hangup(struct tty
 		return;
 
 	rfcomm_tty_flush_buffer(tty);
-
-	if (test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) {
-		if (rfcomm_dev_get(dev->id) == NULL)
-			return;
-		rfcomm_dev_del(dev);
-		rfcomm_dev_put(dev);
-	}
 }
 
 static int rfcomm_tty_read_proc(char *buf, char **start, off_t offset, int len, int *eof, void *unused)

  parent reply	other threads:[~2007-11-05  5:08 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-23 17:50 Alon Bar-Lev
2007-10-23 17:55 ` Marcel Holtmann
2007-10-23 17:57   ` Alon Bar-Lev
2007-10-23 18:26     ` Marcel Holtmann
2007-10-23 18:28       ` Alon Bar-Lev
2007-10-23 22:10     ` Rafael J. Wysocki
2007-10-23 18:06   ` Jiri Kosina
2007-10-23 18:25     ` Marcel Holtmann
2007-10-23 18:27       ` Alon Bar-Lev
2007-10-23 18:30         ` Marcel Holtmann
2007-10-23 18:55           ` Alon Bar-Lev
2007-10-24  8:43             ` Cornelia Huck
2007-10-23 18:28       ` Jiri Kosina
2007-10-24  9:56         ` Pavel Machek
2007-11-05  5:08 ` Dave Young [this message]
2007-11-05 15:46   ` [Bluez-devel] " Alon Bar-Lev
2007-11-06  1:48     ` Dave Young
2007-11-06  2:49       ` Dave Young
2007-11-06  5:49         ` Alon Bar-Lev
2008-02-11 15:57           ` [BUG] rfcomm Alon Bar-Lev
2008-02-11 22:48             ` Frederik Deweerdt
2008-02-13  7:58             ` Andrew Morton
2008-02-13 16:58               ` Mark Lord
2008-02-15  3:28               ` Dave Young
2008-02-15 23:13                 ` Dave Young
2008-02-16 21:49                   ` Alon Bar-Lev
2008-02-20 10:36                     ` Dave Young
2008-02-20 11:16                       ` [Bluez-devel] " Stefan Seyfried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8e1da0711042108r7cea1a46s8d8b93795c314119@mail.gmail.com \
    --to=hidave.darkstar@gmail.com \
    --cc=alon.barlev@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --subject='Re: [Bluez-devel] [BUG] rfcomm]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).