Re: Suggested Patch is not working for 22851 Bugzilla issue

From: Linus Torvalds
Date: Wed Nov 20 2019 - 14:46:21 EST


On Wed, Nov 20, 2019 at 10:39 AM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> Yes, as Michal mentions, there were legitimate binaries that expected to
> overlap mappings

I'm not sure they were really overlapping as much as "the ELF sections
were in a bad order and we don't do the whole "optimize loading"
thing.

It's one of those things that *might* be fixed by first creating a
"simplified/combined map of the ELF sections", and them using mmap()
on that simplified one. But that code is nasty and hairy.

Linus