* ioremap doesn't increment page->count, but iounmap decrements it
@ 2001-01-09 17:35 Timur Tabi
0 siblings, 0 replies; only message in thread
From: Timur Tabi @ 2001-01-09 17:35 UTC (permalink / raw)
To: Linux Kernel Mailing list, Linux MM mailing list
I just discovered an oddity in 2.2.18pre15. When ioremap() is used to map
reserved pages (of real RAM), it does not increment the "count" field for the
page it remaps (i.e. page->count). However, when you call iounmap on that
memory, that function decrements page->count. Since the count was originally
zero, it gets decremented to -1, and that's when things start to go bad.
I get the feeling that if I remap reserved memory, I'm not supposed to ever
unmap it. But that means that my driver will have a memory leak. Can someone
help me out?
--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please direct the reply to the mailing list only. Don't send another copy to me.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-09 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-09 17:35 ioremap doesn't increment page->count, but iounmap decrements it Timur Tabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox