Re: [PATCH] mm, mempool: kasan: poison mempool elements
David Rientjes <[email protected]>
| Newsgroups | gmane.comp.file-systems.jfs.general |
|---|---|
| Message-ID | <alpine.DEB.2.10.1504031906170.8970__46709.1935607188$1428113228$gmane$org@chino.kir.corp.google.com> |
On Fri, 3 Apr 2015, Andrey Ryabinin wrote: > Mempools keep allocated objects in reserved for situations > when ordinary allocation may not be possible to satisfy. > These objects shouldn't be accessed before they leave > the pool. > This patch poison elements when get into the pool > and unpoison when they leave it. This will let KASan > to detect use-after-free of mempool's elements. > > Signed-off-by: Andrey Ryabinin <[email protected]> Tested-by: David Rientjes <[email protected]> ------------------------------------------------------------------------------ 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/