Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator
Andrew Morton <[email protected]>
| Newsgroups | gmane.comp.file-systems.jfs.general |
|---|---|
| Message-ID | <20150325145523.94d1033b93cd5c1010df93bf__29331.2814007097$1427320559$gmane$org@linux-foundation.org> |
On Tue, 24 Mar 2015 16:10:01 -0700 (PDT) David Rientjes <[email protected]> wrote: > Elements backed by the slab allocator are poisoned when added to a > mempool's reserved pool. > > It is also possible to poison elements backed by the page allocator > because the mempool layer knows the allocation order. > > This patch extends mempool element poisoning to include memory backed by > the page allocator. > > This is only effective for configs with CONFIG_DEBUG_SLAB or > CONFIG_SLUB_DEBUG_ON. > Maybe mempools should get KASAN treatment (as well as this)? ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/