public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test6 module autoloading and reference counting broken?
Date: Fri, 10 Oct 2003 15:25:20 +1000	[thread overview]
Message-ID: <20031010232125.5C6692C01A@lists.samba.org> (raw)
In-Reply-To: Your message of "Fri, 03 Oct 2003 14:30:52 +0200." <16253.27644.578089.345998@gargle.gargle.HOWL>

In message <16253.27644.578089.345998@gargle.gargle.HOWL> you write:
> FYI,
> 
> I'm seeing incorrect reference counting behaviour and module
> loading semi-failures in 2.6.0-test6.
> 
> I have a misc char driver module which announces an alias
> via a MODULE_ALIAS("char-major-10-<nnn>") declaration.
> 
> The first attempt by user-space to open the device node fails
> with ENODEV. However, afterwards the module _is_ loaded and its
> use count is 1 even though the user-space open() failed.

Sounds like a refcount bug somewhere (in your module, maybe?).
There's nothing magic about modules loaded via kmod, even via
aliases, unless there's a bug in drivers/char/misc.c...

Puzzled,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

  reply	other threads:[~2003-10-10 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-03 12:30 2.6.0-test6 module autoloading and reference counting broken? Mikael Pettersson
2003-10-10  5:25 ` Rusty Russell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-11  9:56 Mikael Pettersson

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=20031010232125.5C6692C01A@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    /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