On Fri, May 19, 2017 at 11:27 AM, Andy Lutomirski <l...@kernel.org> wrote: > One thing I've pondered: can we make some debugging mode (kmemleak, > perhaps?) check that freed memory is RW at the time it's freed? I > once wrote some buggy code that freed an R page and caused an OOPS > much later, and this bug here seems likely to be some code that frees > RWX memory.
Which begs for even more checks: nothing should ever make a page RWX. Either R, RW, or RX only... (or X too I guess, in the future). -Kees -- Kees Cook Pixel Security