Re: [PATCH] proc: prevent a task from writing on its own /proc/*/mem

From: Kees Cook
Date: Sun May 27 2018 - 10:41:43 EST


On Sat, May 26, 2018 at 6:33 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> Thus commit f511c0b17b08 "Yes, people use FOLL_FORCE ;)"
>
> Side note, that very sam ecommit f511c0b17b08 is also the explanation for
> why the patch under discussion now seems broken.
>
> People really do use "write to /proc/self/mem" as a way to keep the
> mappings read-only, but have a way to change them when required.

Ah! Yes, that is the commit I was trying to find. Thanks!

-Kees

--
Kees Cook
Pixel Security