Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Baldwin
Date: Thursday, November 20, 2008 - 3:47 pm

On Thursday 20 November 2008 04:30:57 pm Paul B. Mahol wrote:
for
serialize
on
kldload/kldstat/kldunload

So this is actually due to a bug in the module code.  If you have two modules 
like this:

DECLARE_MODULE(foo, SI_SUB_DRIVERS, SI_ORDER_FIRST);
DECLARE_MODULE(bar, SI_SUB_DRIVERS, SI_ORDER_SECOND);

The SI_* constants ensure that foo's module handler is called before bar's 
module handler for MOD_LOAD.  However, we don't enforce a reverse order (bar 
then foo) for MOD_UNLOAD.  In fact, the order of MOD_UNLOAD events is random 
and has no relation to the SI_* constants. :(

What is happening here is that one of the 'bar' modules in libiconv.ko is 
getting unloaded after 'foo' gets unloaded and using a destroyed lock (you 
get a panic if you run with INVARIANTS).

-- 
John Baldwin
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Wed Nov 19, 1:10 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Thu Nov 20, 2:30 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Thu Nov 20, 3:31 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Thu Nov 20, 3:47 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Thu Nov 20, 4:26 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Jaakko Heinonen, (Fri Nov 21, 12:40 am)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Fri Nov 21, 4:57 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Fri Dec 5, 10:06 am)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Fri Dec 5, 1:56 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Fri Dec 5, 2:08 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Fri Dec 5, 2:54 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Tue Dec 9, 2:02 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Tue Dec 9, 4:15 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Tue Dec 9, 4:16 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Tue Dec 9, 4:56 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Tue Dec 9, 5:28 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Wed Dec 10, 10:22 am)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Wed Dec 10, 12:50 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, John Baldwin, (Wed Dec 10, 12:50 pm)
Re: [PATCH] MPSAFE/LOOKUP_SHARED cd9660, Paul B. Mahol, (Wed Dec 10, 4:54 pm)