Re: [PATCH 0/5] 4.14 backports of fixes for "CoW after fork() issue"

From: Linus Torvalds
Date: Wed Apr 07 2021 - 12:09:49 EST


On Wed, Apr 7, 2021 at 6:22 AM Vlastimil Babka <vbabka@xxxxxxx> wrote:
>
> 1) Ignore the issue (outside of Android at least). The security model of zygote
> is unusual. Where else a parent of fork() doesn't trust the child, which is the
> same binary?

Agreed. I think this is basically an android-only issue (with
_possibly_ some impact on crazy "pin-and-fork" loads), and doesn't
necessarily merit a backport at all.

If Android people insist on using very old kernels, knowing that they
do things that are questionable with those old kernels, at some point
it's just _their_ problem.

Linus