Subject: malloc_type_{attach|detach}
To: None <>
From: Jaromir Dolecek <>
List: tech-kern
Date: 04/04/2003 15:49:25

even through I've modified smbfs LKM code to call the malloc type
attach/detach function, I still occassionally see a kernel panic
from unrelated malloc call when I try to load/unload the smbfs LKM.

It appears the functions are not protected from interrupts, so
there is a race where interrupt can come in during time when
the structures are not consistent.

What should be done? Should the functions call splhigh() before
accessing kmemstatistics, or should the caller take care of that?

Jaromir Dolecek <>  
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-