Re: owner field in `struct fs'

From: Philipp Rumpf (prumpf@uzix.org)
Date: Mon Jun 26 2000 - 10:23:53 EST


On Mon, Jun 26, 2000 at 11:15:44AM +0100, David Woodhouse wrote:
> prumpf@uzix.org said:
> > Yes. schedule() out of a zero-refcount module is a bug. In fact,
> > it's quite easy to make it a BUG() as well:
>
> That's nice but not sufficient - just _being_ in a zero-refcount module is a
> bug, if you don't have the BKL or the unload_lock.

Most of this thread is/was about how you can make it perfectly legal (if
you synchronize things across all CPUs for module unload). Right now I
agree it's always a bug but I don't think anyone disagrees the current
(pre-inc/dec use count in upper layer) mechanisms are broken.

        Philipp

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:09 EST