diff options
author | Kees Cook <[email protected]> | 2023-09-28 20:24:33 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2023-10-03 19:48:44 -0700 |
commit | f9c0a39d95301a36baacfd3495374c6128d662fa (patch) | |
tree | df22e1570e2c97f33e272fd5aaa62be52fe56d24 /tools/perf/util/trace-event-scripting.c | |
parent | d5ca24f639588811af57ceac513183fa2004bd3a (diff) |
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 <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Suggested-by: Eric Biederman <[email protected]>
Tested-by: Pedro Falcato <[email protected]>
Signed-off-by: Sebastian Ott <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions