summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2023-09-29 06:24:33 +0300
committerKees Cook <keescook@chromium.org>2023-10-04 05:48:44 +0300
commitf9c0a39d95301a36baacfd3495374c6128d662fa (patch)
treedf22e1570e2c97f33e272fd5aaa62be52fe56d24 /mm
parentd5ca24f639588811af57ceac513183fa2004bd3a (diff)
downloadlinux-f9c0a39d95301a36baacfd3495374c6128d662fa.tar.xz
binfmt_elf: Only report padzero() errors when PROT_WRITE
Errors with padzero() should be caught unless we're expecting a pathological (non-writable) segment. Report -EFAULT only when PROT_WRITE is present. Additionally add some more documentation to padzero(), elf_map(), and elf_load(). Cc: Eric Biederman <ebiederm@xmission.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: linux-fsdevel@vger.kernel.org Cc: linux-mm@kvack.org Suggested-by: Eric Biederman <ebiederm@xmission.com> Tested-by: Pedro Falcato <pedro.falcato@gmail.com> Signed-off-by: Sebastian Ott <sebott@redhat.com> Link: https://lore.kernel.org/r/20230929032435.2391507-5-keescook@chromium.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions