aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
AgeCommit message (Expand)AuthorFilesLines
2023-10-03binfmt_elf: Only report padzero() errors when PROT_WRITEKees Cook1-9/+23
2023-10-03binfmt_elf: Use elf_load() for libraryKees Cook1-20/+4
2023-09-29binfmt_elf: Use elf_load() for interpreterKees Cook1-45/+1
2023-09-29binfmt_elf: elf_bss no longer used by load_elf_binary()Kees Cook1-5/+1
2023-09-29binfmt_elf: Support segments with 0 filesz and misaligned startsEric W. Biederman1-63/+48
2023-06-28Merge branch 'expand-stack'Linus Torvalds1-3/+3
2023-06-27mm: always expand the stack with the mmap write lock heldLinus Torvalds1-1/+1
2023-06-24mm: make find_extend_vma() fail if write lock not heldLiam R. Howlett1-3/+3
2023-06-23binfmt_elf: fix comment typo s/reset/regset/Baruch Siach1-1/+1
2023-05-16coredump, vmcore: Set p_align to 4 for PT_NOTEFangrui Song1-1/+1
2023-04-27Merge tag 'mm-nonmm-stable-2023-04-27-16-01' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+1
2023-04-13binfmt_elf: remove MODULE_LICENSE in non-modulesNick Alcock1-1/+0
2023-04-08ELF: fix all "Elf" typosAlexey Dobriyan1-1/+1
2023-01-31Merge tag 'v6.2-rc6' into sched/core, to pick up fixesIngo Molnar1-2/+2
2023-01-05elfcore: Add a cprm parameter to elf_core_extra_{phdrs,data_size}Catalin Marinas1-2/+2
2022-12-27rseq: Introduce feature size and alignment ELF auxiliary vector entriesMathieu Desnoyers1-0/+5
2022-12-12Merge tag 'pull-elfcore' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-220/+51
2022-11-24[elf] get rid of get_note_info_size()Al Viro1-6/+1
2022-11-24[elf] unify regset and non-regset casesAl Viro1-192/+38
2022-11-24[elf][non-regset] use elf_core_copy_task_regs() for dumper as wellAl Viro1-1/+1
2022-11-24[elf][non-regset] uninline elf_core_copy_task_fpregs() (and lose pt_regs argu...Al Viro1-3/+2
2022-11-17binfmt_elf: replace IS_ERR() with IS_ERR_VALUE()Bo Liu1-3/+3
2022-10-25binfmt_elf: simplify error handling in load_elf_phdrs()Rolf Eike Beer1-8/+2
2022-10-25binfmt_elf: fix documented return value for load_elf_phdrs()Rolf Eike Beer1-1/+1
2022-10-25binfmt: Fix whitespace issuesKees Cook1-7/+7
2022-10-25fs/binfmt_elf: Fix memory leak in load_elf_binary()Li Zetao1-1/+2
2022-10-23[elf][regset] simplify thread list handling in fill_note_info()Al Viro1-12/+10
2022-10-23[elf][regset] clean fill_note_info() a bitAl Viro1-9/+2
2022-10-23kill coredump_params->regsAl Viro1-2/+2
2022-04-15revert "fs/binfmt_elf: use PT_LOAD p_align values for static PIE"Andrew Morton1-2/+2
2022-04-15revert "fs/binfmt_elf: fix PT_LOAD p_align values for loaders"Andrew Morton1-1/+1
2022-03-21Merge tag 'execve-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-70/+83
2022-03-18binfmt_elf: Don't write past end of notes for regset gapRick Edgecombe1-10/+14
2022-03-08coredump: Use the vma snapshot in fill_files_noteEric W. Biederman1-12/+12
2022-03-08coredump/elf: Pass coredump_params into fill_note_infoEric W. Biederman1-11/+11
2022-03-08coredump: Snapshot the vmas in do_coredumpEric W. Biederman1-13/+7
2022-03-03binfmt_elf: Introduce KUnit testKees Cook1-0/+4
2022-03-01fs/binfmt_elf: Refactor load_elf_binary functionAkira Kawata1-8/+6
2022-03-01fs/binfmt_elf: Fix AT_PHDR for unusual ELF filesAkira Kawata1-6/+18
2022-03-01binfmt: move more stuff undef CONFIG_COREDUMPAlexey Dobriyan1-0/+2
2022-03-01ELF: fix overflow in total mapping size calculationAlexey Dobriyan1-12/+11
2022-03-01Merge tag 'binfmt_elf-v5.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-7/+18
2022-03-01binfmt_elf: Avoid total_mapping_size for ET_EXECKees Cook1-7/+18
2022-02-11fs/binfmt_elf: fix PT_LOAD p_align values for loadersMike Rapoport1-1/+1
2022-01-20fs/binfmt_elf: use PT_LOAD p_align values for static PIEH.J. Lu1-2/+2
2022-01-20fs/binfmt_elf: replace open-coded string copy with get_task_commYafang Shao1-1/+1
2021-11-09Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-10/+23
2021-11-09ELF: simplify STACK_ALLOC macroAlexey Dobriyan1-1/+1
2021-11-09binfmt_elf: reintroduce using MAP_FIXED_NOREPLACEKees Cook1-9/+22
2021-11-03Merge branch 'per_signal_struct_coredumps-for-v5.16' of git://git.kernel.org/...Linus Torvalds1-2/+2
2021-10-08coredump: Limit coredumps to a single thread groupEric W. Biederman1-2/+2
2021-10-03elf: don't use MAP_FIXED_NOREPLACE for elf interpreter mappingsChen Jingwen1-1/+1
2021-09-03binfmt: remove in-tree usage of MAP_DENYWRITEDavid Hildenbrand1-2/+2
2021-09-03binfmt: don't use MAP_DENYWRITE when loading shared libraries via uselib()David Hildenbrand1-1/+1
2021-06-29Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-06-29binfmt: remove in-tree usage of MAP_EXECUTABLEDavid Hildenbrand1-1/+1
2021-06-18sched: Change task_struct::statePeter Zijlstra1-3/+5
2021-03-08coredump: don't bother with do_truncate()Al Viro1-3/+1
2021-02-21Merge branch 'parisc-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+4
2021-02-15binfmt_misc: pass binfmt_misc flags to the interpreterLaurent Vivier1-1/+4
2021-01-06elf_prstatus: collect the common part (everything before pr_reg) into a structAl Viro1-4/+4
2021-01-04binfmt_elf: partially sanitize PRSTATUS_SIZE and SET_PR_FPVALIDAl Viro1-8/+5
2020-12-15Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+2
2020-12-14Merge tag 'x86_cleanups_for_v5.11' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-2/+2
2020-12-10coredump: Document coredump code exclusively used by cell spufsEric W. Biederman1-0/+2
2020-10-29fs: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-1/+1
2020-10-26elf: Expose ELF header on arch_setup_additional_pages()Gabriel Krisman Bertazi1-1/+1
2020-10-26elf: Expose ELF header in compat_start_thread()Gabriel Krisman Bertazi1-1/+1
2020-10-18binfmt_elf: take the mmap lock around find_extend_vma()Jann Horn1-0/+3
2020-10-16binfmt_elf, binfmt_elf_fdpic: use a VMA list snapshotJann Horn1-78/+22
2020-10-16coredump: rework elf/elf_fdpic vma_dump_size() into common helperJann Horn1-120/+0
2020-10-16coredump: refactor page range dumping into common helperJann Horn1-20/+2
2020-10-16fs/binfmt_elf: use PT_LOAD p_align values for suitable start addressChris Kennelly1-0/+25
2020-07-27kill elf_fpxregs_tAl Viro1-30/+0
2020-07-27introduction of regset ->get() wrappers, switching ELF coredumps to thoseAl Viro1-28/+26
2020-06-10Merge branch 'uaccess.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-8/+8
2020-06-04Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-4/+0
2020-06-04fs/binfmt_elf: remove redundant elf_map ifndefAnthony Iliopoulos1-4/+0
2020-06-04Merge branch 'exec-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds1-4/+3
2020-06-03binfmt_elf: don't bother with __{put,copy_to}_user()Al Viro1-8/+8
2020-06-01Merge branch 'work.set_fs-exec' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-19/+2
2020-06-01Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-6/+139
2020-05-28fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()Alexander Potapenko1-1/+1
2020-05-21exec: Generic execfd supportEric W. Biederman1-2/+2
2020-05-07exec: Rename flush_old_exec begin_new_execEric W. Biederman1-1/+1
2020-05-07exec: Merge install_exec_creds into setup_new_execEric W. Biederman1-1/+0
2020-05-05binfmt_elf: remove the set_fs(KERNEL_DS) in elf_core_dumpChristoph Hellwig1-15/+1
2020-05-05binfmt_elf: remove the set_fs in fill_siginfo_noteEric W. Biederman1-4/+1
2020-05-05Merge branch 'for-next/bti-user' into for-next/btiWill Deacon1-6/+139
2020-04-07fs/binfmt_elf.c: don't free interpreter's ELF pheaders on common pathAlexey Dobriyan1-1/+1
2020-04-07fs/binfmt_elf.c: allocate less for static executableAlexey Dobriyan1-9/+10
2020-04-07fs/binfmt_elf.c: delete "loc" variableAlexey Dobriyan1-17/+15
2020-04-07mm/vma: replace all remaining open encodings with is_vm_hugetlb_page()Anshuman Khandual1-1/+2
2020-03-16elf: Allow arch to tweak initial mmap prot flagsDave Martin1-6/+12
2020-03-16ELF: Add ELF program property parsing supportDave Martin1-0/+127
2020-01-31fs/binfmt_elf.c: coredump: allow process with empty address space to coredumpAlexey Dobriyan1-1/+9
2020-01-31fs/binfmt_elf.c: coredump: delete duplicated overflow checkAlexey Dobriyan1-2/+0
2020-01-31fs/binfmt_elf.c: coredump: allocate core ELF header on stackAlexey Dobriyan1-11/+5
2020-01-31fs/binfmt_elf.c: make BAD_ADDR() unlikelyAlexey Dobriyan1-1/+1
2020-01-31fs/binfmt_elf.c: better codegen around current->mmAlexey Dobriyan1-24/+28
2020-01-31fs/binfmt_elf.c: don't copy ELF header aroundAlexey Dobriyan1-28/+27
2020-01-31fs/binfmt_elf.c: fix ->start_code calculationAlexey Dobriyan1-1/+1
2020-01-31fs/binfmt_elf.c: smaller code generation around auxv vector fillAlexey Dobriyan1-7/+8
2019-12-04fs/binfmt_elf.c: extract elf_read() functionAlexey Dobriyan1-25/+24
2019-12-04fs/binfmt_elf.c: delete unused "interp_map_addr" argumentAlexey Dobriyan1-6/+1
2019-11-15y2038: elfcore: Use __kernel_old_timeval for process timesArnd Bergmann1-6/+6
2019-10-06elf: don't use MAP_FIXED_NOREPLACE for elf executable mappingsLinus Torvalds1-10/+3
2019-09-26binfmt_elf: Do not move brk for INTERP-less ET_EXECKees Cook1-1/+2
2019-09-24mm, fs: move randomize_stack_top from fs to mmAlexandre Ghiti1-20/+0
2019-07-16fs/binfmt_elf.c: delete stale commentAlexey Dobriyan1-1/+0
2019-05-21treewide: Add SPDX license identifier for more missed filesThomas Gleixner1-0/+1
2019-05-14binfmt_elf: move brk out of mmap when doing direct loader execKees Cook1-0/+11
2019-05-14elf: init pt_regs pointer laterAlexey Dobriyan1-1/+2
2019-05-14fs/binfmt_elf.c: extract PROT_* calculationsAlexey Dobriyan1-14/+16
2019-05-14fs//binfmt_elf.c: move variables initialization closer to their usageAlexey Dobriyan1-8/+8
2019-05-14fs/binfmt_elf.c: save 1 indent levelAlexey Dobriyan1-57/+54
2019-05-14fs/binfmt_elf.c: delete trailing "return;" in functions returning "void"Alexey Dobriyan1-4/+0
2019-05-14fs/binfmt_elf.c: free PT_INTERP filename ASAPAlexey Dobriyan1-9/+11
2019-05-14fs/binfmt_elf.c: make scope of "pos" variable smallerAlexey Dobriyan1-1/+2
2019-05-14fs/binfmt_elf.c: remove unneeded initialization of mm->start_stackAndrew Morton1-2/+0
2019-03-07fs/binfmt_elf.c: spread const a littleAlexey Dobriyan1-5/+3
2019-03-07fs/binfmt_elf.c: use list_for_each_entry()Alexey Dobriyan1-10/+5
2019-03-07fs/binfmt_elf.c: don't be afraid of overflowAlexey Dobriyan1-6/+3
2018-10-03signal: Distinguish between kernel_siginfo and siginfoEric W. Biederman1-3/+3
2018-08-13Merge tag 'mips_4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/l...Linus Torvalds1-1/+1
2018-07-19binfmt_elf: Respect error return from `regset->active'Maciej W. Rozycki1-1/+1
2018-07-14fs, elf: make sure to page align bss in load_elf_libraryOscar Salvador1-3/+2
2018-06-15coredump: fix spam with zero VMA processAlexey Dobriyan1-8/+9
2018-06-12treewide: Use array_size() in vmalloc()Kees Cook1-1/+1
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-1/+1
2018-04-20fs, elf: don't complain MAP_FIXED_NOREPLACE unless -EEXIST errorTetsuo Handa1-4/+4
2018-04-11elf: enforce MAP_FIXED on overlaying elf segmentsMichal Hocko1-3/+10
2018-04-11fs, elf: drop MAP_FIXED usage from elf_mapMichal Hocko1-4/+9
2018-04-11exec: introduce finalize_exec() before start_thread()Kees Cook1-0/+1
2018-02-06elf: fix NT_FILE integer overflowAlexey Dobriyan1-0/+2
2017-11-16Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-armLinus Torvalds1-2/+13
2017-11-03regset: Add support for dynamically sized regsetsDave Martin1-5/+5
2017-10-02Merge branch 'fdpic' of http://git.linaro.org/people/nicolas.pitre/linux into...Russell King1-2/+13
2017-09-14Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-10/+13
2017-09-10binfmt_elf: don't attempt to load FDPIC binariesNicolas Pitre1-2/+13
2017-09-07Merge tag 'secureexec-v4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2017-09-04fs: fix kernel_read prototypeChristoph Hellwig1-10/+13
2017-08-16x86/elf: Remove the unnecessary ADDR_NO_RANDOMIZE checksOleg Nesterov1-2/+1
2017-08-01binfmt: Introduce secureexec flagKees Cook1-1/+1
2017-07-10binfmt_elf: safely increment argv pointersKees Cook1-11/+9
2017-07-10binfmt_elf: use ELF_ET_DYN_BASE only for PIEKees Cook1-8/+51
2017-03-02sched/headers: Prepare to move cputime functionality from <linux/sched.h> int...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-22powerpc: do not make the entire heap executableDenys Vlasenko1-8/+22
2017-02-01fs/binfmt: Convert obsolete cputime type to nsecsFrederic Weisbecker1-16/+10
2017-02-01sched/cputime: Convert task/group cputime to nsecsFrederic Weisbecker1-2/+9
2017-02-01sched/cputime: Introduce special task_cputime_t() API to return old-typed cpu...Frederic Weisbecker1-3/+3
2017-01-14coredump: Ensure proper size of sparse core filesDave Kleikamp1-0/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-12binfmt_elf: use vmalloc() for allocation of vma_fileszJason Baron1-2/+4
2016-09-14x86/coredump: Use pr_reg size, rather that TIF_IA32 flagDmitry Safonov1-15/+8
2016-08-31binfmt_elf: switch to new creds when switching to new mmLinus Torvalds1-1/+1
2016-08-02binfmt_elf: fix calculations for bss paddingKees Cook1-16/+18
2016-06-07coredump: fix dumping through pipesMateusz Guzik1-1/+1
2016-05-27mm: remove more IS_ERR_VALUE abusesLinus Torvalds1-6/+5
2016-05-23mm, elf: handle vm_brk errorMichal Hocko1-2/+5
2016-05-18Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-05-12coredump: get rid of coredump_params->writtenOmar Sandoval1-1/+1
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-1/+1
2016-02-27mm: ASLR: use get_random_long()Daniel Cashman1-1/+1
2016-01-20ELF: Also pass any interpreter's file header to `arch_check_elf'Maciej W. Rozycki1-1/+5
2015-11-11Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-6/+6
2015-11-11binfmt_elf: Correct `arch_check_elf's descriptionMaciej W. Rozycki1-1/+1
2015-11-11binfmt_elf: Don't clobber passed executable's file headerMaciej W. Rozycki1-5/+5
2015-11-09coredump: add DAX filtering for ELF coredumpsRoss Zwisler1-0/+10
2015-07-04Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2015-06-23vfs: add file_path() helperMiklos Szeredi1-2/+2
2015-05-28fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappingsAndrew Morton1-1/+1
2015-04-14mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZEKees Cook1-3/+1
2015-04-14mm: split ET_DYN ASLR from mmap ASLRKees Cook1-14/+4
2015-04-14fs/binfmt_elf.c: fix bug in loading of PIE binariesMichael Davidson1-1/+8
2015-02-19x86, mm/ASLR: Fix stack randomization on 64-bit systemsHector Marco-Gisbert1-2/+3
2014-12-11Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linusLinus Torvalds1-62/+176
2014-12-10fs/binfmt_elf.c: fix internal inconsistency relating to vma dump sizeJungseung Lee1-18/+22
2014-11-24binfmt_elf: allow arch code to examine PT_LOPROC ... PT_HIPROC headersPaul Burton1-2/+103
2014-11-24binfmt_elf: load interpreter program headers earlierPaul Burton1-18/+18
2014-11-24binfmt_elf: Hoist ELF program header loading to a functionPaul Burton1-43/+56
2014-10-09handle suicide on late failure exits in execve() in search_binary_handler()Al Viro1-20/+5
2014-06-05Merge branch 'x86/vdso' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/...Linus Torvalds1-0/+8
2014-06-04fs/binfmt_elf.c: fix bool assignementsFabian Frederick1-2/+2
2014-05-20mm, fs: Add vm_ops->name as an alternative to arch_vma_nameAndy Lutomirski1-0/+8
2014-04-07exec: kill the unnecessary mm->def_flags setting in load_elf_binary()Alex Thorlton1-4/+0
2014-04-03fs, kernel: permit disabling the uselib syscallJosh Triplett1-1/+8
2014-01-23fs: binfmt_elf: remove unused defines INTERPRETER_NONE and INTERPRETER_ELFTodor Minchev1-3/+0
2013-11-09elf{,_fdpic} coredump: get rid of pointless if (siginfo->si_signo)Al Viro1-18/+15
2013-11-09constify do_coredump() argumentAl Viro1-2/+2
2013-11-09constify copy_siginfo_to_user{,32}()Al Viro1-1/+1
2013-11-09new helper: dump_align()Al Viro1-8/+2
2013-11-09dump_skip(): dump_seek() replacement taking coredump_paramsAl Viro1-2/+2
2013-11-09binfmt_elf: count notes towards coredump limitAl Viro1-3/+0
2013-11-09switch elf_coredump_extra_notes_write() to dump_emit()Al Viro1-4/+3
2013-11-09binfmt_elf: convert writing actual dump pages to dump_emit()Al Viro1-11/+3
2013-11-09switch elf_core_write_extra_data() to dump_emit()Al Viro1-1/+3