All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] does ioremap() cause memory leak?
@ 2017-12-21  8:55 ` Xishi Qiu
  0 siblings, 0 replies; 8+ messages in thread
From: Xishi Qiu @ 2017-12-21  8:55 UTC (permalink / raw)
  To: Toshi Kani, H. Peter Anvin, Thomas Gleixner, Ingo Molnar
  Cc: LKML, Linux MM, Xishi Qiu

When we use iounmap() to free the mapping, it calls unmap_vmap_area() to clear page table,
but do not free the memory of page table, right?

So when use ioremap() to mapping another area(incluce the area before), it may use
large mapping(e.g. ioremap_pmd_enabled()), so the original page table memory(e.g. pte memory)
will be lost, it cause memory leak, right?

Thanks,
Xishi Qiu

--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-02  1:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21  8:55 [RFC] does ioremap() cause memory leak? Xishi Qiu
2017-12-21  8:55 ` Xishi Qiu
2017-12-23  5:32 ` Xishi Qiu
2017-12-23  5:32   ` Xishi Qiu
2017-12-23  5:32   ` Xishi Qiu
2018-01-02  1:39   ` Hanjun Guo
2018-01-02  1:39     ` Hanjun Guo
2018-01-02  1:39     ` Hanjun Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.