[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1eef3qx2i.fsf@fess.ebiederm.org>
Date: Wed, 21 Apr 2021 14:03:49 -0500
From: ebiederm@...ssion.com (Eric W. Biederman)
To: David Hildenbrand <david@...hat.com>
Cc: linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Kees Cook <keescook@...omium.org>,
Greg Ungerer <gerg@...ux-m68k.org>,
Mike Rapoport <rppt@...nel.org>,
Catalin Marinas <catalin.marinas@....com>,
Kevin Brodsky <Kevin.Brodsky@....com>,
Michal Hocko <mhocko@...e.com>,
Feng Tang <feng.tang@...el.com>,
Don Zickus <dzickus@...hat.com>, x86@...nel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH v1 0/3] perf/binfmt/mm: remove in-tree usage of MAP_EXECUTABLE
David Hildenbrand <david@...hat.com> writes:
> Stumbling over the history of MAP_EXECUTABLE, I noticed that we still
> have some in-tree users that we can get rid of.
>
> A good fit for the whole series could be Andrew's tree.
In general this looks like a good cleanup.
Acked-by: "Eric W. Biederman" <ebiederm@...ssion.com>
As far as I can see we can go after MAP_DENYWRITE the same way.
Today deny_write_access in open_exec is what causes -ETXTBSY
when attempting to write to file that is current executing.
Do you have any plans to look at that?
Eric
> Cc: Thomas Gleixner <tglx@...utronix.de>
> Cc: Ingo Molnar <mingo@...hat.com>
> Cc: Borislav Petkov <bp@...en8.de>
> Cc: "H. Peter Anvin" <hpa@...or.com>
> Cc: Alexander Viro <viro@...iv.linux.org.uk>
> Cc: Peter Zijlstra <peterz@...radead.org>
> Cc: Arnaldo Carvalho de Melo <acme@...nel.org>
> Cc: Mark Rutland <mark.rutland@....com>
> Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
> Cc: Jiri Olsa <jolsa@...hat.com>
> Cc: Namhyung Kim <namhyung@...nel.org>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Cc: Kees Cook <keescook@...omium.org>
> Cc: "Eric W. Biederman" <ebiederm@...ssion.com>
> Cc: Greg Ungerer <gerg@...ux-m68k.org>
> Cc: Mike Rapoport <rppt@...nel.org>
> Cc: Catalin Marinas <catalin.marinas@....com>
> Cc: Kevin Brodsky <Kevin.Brodsky@....com>
> Cc: Michal Hocko <mhocko@...e.com>
> Cc: Feng Tang <feng.tang@...el.com>
> Cc: Don Zickus <dzickus@...hat.com>
> Cc: x86@...nel.org
> Cc: linux-fsdevel@...r.kernel.org
> Cc: linux-mm@...ck.org
>
> David Hildenbrand (3):
> perf: MAP_EXECUTABLE does not indicate VM_MAYEXEC
> binfmt: remove in-tree usage of MAP_EXECUTABLE
> mm: ignore MAP_EXECUTABLE in ksys_mmap_pgoff()
>
> arch/x86/ia32/ia32_aout.c | 4 ++--
> fs/binfmt_aout.c | 4 ++--
> fs/binfmt_elf.c | 2 +-
> fs/binfmt_elf_fdpic.c | 11 ++---------
> fs/binfmt_flat.c | 2 +-
> include/linux/mman.h | 2 ++
> kernel/events/core.c | 2 --
> mm/mmap.c | 2 +-
> mm/nommu.c | 2 +-
> 9 files changed, 12 insertions(+), 19 deletions(-)
Powered by blists - more mailing lists