public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Fulghum <paulkf@microgate.com>
To: Bob Copeland <email@bobcopeland.com>
Cc: paulus@samba.org, Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.16-rc5 pppd oops on disconnects
Date: Sat, 11 Mar 2006 15:57:14 -0600	[thread overview]
Message-ID: <441347BA.5050408@microgate.com> (raw)
In-Reply-To: <b6c5339f0603111221k2d0afce5hcfd485713ba17338@mail.gmail.com>

Bob Copeland wrote:

 > dmesg follows...
 >
 > usb 1-2: USB disconnect, address 6
 > acm_disconnect intf=ce99f720 acm=ce24eca0 usb_dev=ce24f4b8
 > acm_disconnect acm->used=1 acm->dev=ce24f4b8 acm->tty=cd254af8
 > acm_disconnect intf=cefb6760 acm=00000000 usb_dev=ce24f4b8
 > acm_tty_close tty=cd254af8 filp=ce96511c acm=ce24eca0
 > acm_tty_close acm->used=1 acm->dev=00000000
 > Unable to handle kernel paging request at virtual address 6b6b6bfb

 > ...

 >  [<c017585e>] sysfs_hash_and_remove+0x34/0x10a


OK, the cdc-acm driver disconnect/close seems to behave correctly
as I first thought. tty_unregister_device is only called once. The reference
counting is correct. acm->tty still needs to be set to NULL on the final
close, but that is not the problem you are seeing.

I'm looking again at the sysfs stuff as both acm_disconnect
and tty_unregister_device (called from acm_tty_close) remove sysfs entries.
There may be some interaction of entries (name space
collision?) such that acm_disconnect releases a sysfs entry
that tty_unregister_device tries to release again (hence the slab poisoning
flagging a reference to already released memory). I'm not
familiar with this so it may take me a while.

Feel free to bug others about this, I don't mean to interfere
if someone else has a better idea.

Thanks for your persistence,
Paul









  reply	other threads:[~2006-03-11 21:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10 14:25 2.6.16-rc5 pppd oops on disconnects Bob Copeland
2006-03-10 17:22 ` Paul Fulghum
2006-03-10 18:48   ` Bob Copeland
2006-03-10 19:25     ` Paul Fulghum
2006-03-11 15:09       ` Bob Copeland
2006-03-11 17:56         ` Paul Fulghum
2006-03-11 20:21           ` Bob Copeland
2006-03-11 21:57             ` Paul Fulghum [this message]
2006-03-12 16:26             ` Paul Fulghum
2006-03-12 17:58               ` Bob Copeland
2006-03-12 20:09                 ` [linux-usb-devel] " Oliver Neukum
2006-03-12 21:30                   ` Bob Copeland
2006-03-13  2:21                 ` Paul Fulghum
2006-03-12  5:35 ` Greg KH
2006-03-12 16:31   ` Bob Copeland

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=441347BA.5050408@microgate.com \
    --to=paulkf@microgate.com \
    --cc=email@bobcopeland.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox