aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
AgeCommit message (Expand)AuthorFilesLines
2020-12-16Merge branch 'parisc-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-2/+2
2020-12-15Merge branch 'exec-update-lock-for-v5.11' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-6/+6
2020-12-15Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-21/+18
2020-12-10exec: Transform exec_update_mutex into a rw_semaphoreEric W. Biederman1-6/+6
2020-12-10exec: Move io_uring_task_cancel after the point of no returnEric W. Biederman1-5/+5
2020-12-10exec: Simplify unshare_filesEric W. Biederman1-4/+1
2020-12-10exec: Move unshare_files to fix posix file locking during execEric W. Biederman1-14/+15
2020-12-10exec: Don't open code get_close_on_execEric W. Biederman1-2/+1
2020-12-02kernel: Implement selective syscall userspace redirectionGabriel Krisman Bertazi1-0/+3
2020-11-11parisc: Make user stack size configurableHelge Deller1-2/+2
2020-10-16Merge tag 'powerpc-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-2/+15
2020-10-15Merge tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-131/+1
2020-10-05fs/kernel_read_file: Split into separate source fileKees Cook1-132/+0
2020-10-05fs/kernel_read_file: Split into separate include fileScott Branden1-0/+1
2020-10-05fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enumKees Cook1-3/+4
2020-09-30io_uring: don't rely on weak ->files referencesJens Axboe1-0/+6
2020-09-16mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching raceNicholas Piggin1-2/+15
2020-08-12mm/gup: remove task_struct pointer for all gup codePeter Xu1-1/+1
2020-08-12exec: move path_noexec() check earlierKees Cook1-8/+4
2020-08-12exec: move S_ISREG() check earlierKees Cook1-2/+12
2020-08-12exec: change uselib(2) IS_SREG() failure to EACCESKees Cook1-2/+1
2020-08-12exec: use force_uaccess_begin during exec and exitChristoph Hellwig1-1/+6
2020-07-21exec: Implement kernel_execveEric W. Biederman1-2/+86
2020-07-21exec: Factor bprm_stack_limits out of prepare_arg_pagesEric W. Biederman1-11/+12
2020-07-21exec: Factor bprm_execve out of do_execve_commonEric W. Biederman1-50/+58
2020-07-21exec: Move bprm_mm_init into alloc_bprmEric W. Biederman1-8/+8
2020-07-21exec: Move initialization of bprm->filename into alloc_bprmEric W. Biederman1-28/+33
2020-07-21exec: Factor out alloc_bprmEric W. Biederman1-10/+19
2020-07-04exec: Remove do_execve_fileEric W. Biederman1-29/+9
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-8/+8
2020-06-08exec: use flush_icache_user_range in read_codeChristoph Hellwig1-1/+1
2020-06-08exec: only build read_code when neededChristoph Hellwig1-0/+3
2020-06-04Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-14/+38
2020-06-04exec: open code copy_string_kernelChristoph Hellwig1-9/+34
2020-06-04exec: simplify the copy_strings_kernel calling conventionChristoph Hellwig1-7/+6
2020-06-04Merge branch 'exec-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds1-143/+173
2020-06-04Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds1-5/+1
2020-05-29exec: Compute file based creds only onceEric W. Biederman1-37/+26
2020-05-29exec: Add a per bprm->file version of per_clearEric W. Biederman1-2/+4
2020-05-21exec: Remove recursion from search_binary_handlerEric W. Biederman1-18/+33
2020-05-21exec: Generic execfd supportEric W. Biederman1-0/+15
2020-05-21exec: Move the call of prepare_binprm into search_binary_handlerEric W. Biederman1-7/+5
2020-05-21exec: Allow load_misc_binary to call prepare_binprm unconditionallyEric W. Biederman1-7/+12
2020-05-21exec: Convert security_bprm_set_creds into security_bprm_repopulate_credsEric W. Biederman1-4/+4
2020-05-20exec: Factor security_bprm_creds_for_exec out of security_bprm_set_credsEric W. Biederman1-1/+5
2020-05-18Merge f87d1c955916 ("exec: Move would_dump into flush_old_exec")Eric W. Biederman1-2/+2
2020-05-17exec: Move would_dump into flush_old_execEric W. Biederman1-2/+2
2020-05-11exec: Set the point of no return soonerEric W. Biederman1-7/+5
2020-05-11exec: Move handling of the point of no return to the top levelEric W. Biederman1-9/+12
2020-05-11exec: Run sync_mm_rss before taking exec_update_mutexEric W. Biederman1-1/+2
2020-05-09exec: Fix spelling of search_binary_handler in a commentEric W. Biederman1-1/+1
2020-05-09exec: Move the comment from above de_thread to above unshare_sighandEric W. Biederman1-6/+6
2020-05-07exec: Rename flush_old_exec begin_new_execEric W. Biederman1-2/+2
2020-05-07exec: Move most of setup_new_exec into flush_old_execEric W. Biederman1-41/+44
2020-05-07exec: In setup_new_exec cache current in the local variable meEric W. Biederman1-11/+12
2020-05-07exec: Merge install_exec_creds into setup_new_execEric W. Biederman1-30/+26
2020-05-07exec: Rename the flag called_exec_mmap point_of_no_returnEric W. Biederman1-6/+6
2020-05-07exec: Make unlocking exec_update_mutex explictEric W. Biederman1-3/+3
2020-04-28exec: Remove BUG_ON(has_group_leader_pid)Eric W. Biederman1-1/+0
2020-04-28proc: Ensure we see the exit of each process tid exactly onceEric W. Biederman1-4/+1
2020-04-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-25/+55
2020-04-01signal: Extend exec_id to 64bitsEric W. Biederman1-1/+1
2020-03-25exec: Add exec_update_mutex to replace cred_guard_mutexEric W. Biederman1-3/+19
2020-03-25exec: Move exec_mmap right after de_thread in flush_old_execEric W. Biederman1-12/+12
2020-03-25exec: Move cleanup of posix timers on exec out of de_threadEric W. Biederman1-5/+5
2020-03-25exec: Factor unshare_sighand out of de_thread and call it separatelyEric W. Biederman1-13/+26
2020-03-25exec: Only compute current once in flush_old_execEric W. Biederman1-4/+5
2020-02-10firmware_loader: load files from the mount namespace of initTopi Miettinen1-0/+26
2020-01-31Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+5
2020-01-31execve: warn if process starts with executable stackAlexey Dobriyan1-0/+5
2020-01-30Merge tag 'mpx-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/da...Linus Torvalds1-1/+0
2020-01-23mm: remove arch_bprm_mm_init() hookDave Hansen1-1/+0
2019-12-03Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2019-11-30Merge tag 'notifications-pipe-prep-20191115' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+0
2019-11-20exit/exec: Seperate mm_release()Thomas Gleixner1-1/+1
2019-11-13time: Rename tsk->real_start_time to ->start_boottimePeter Zijlstra1-1/+1
2019-10-23pipe: Reduce #inclusion of pipe_fs_i.hDavid Howells1-1/+0
2019-09-25sched/membarrier: Fix p->mm->membarrier_state racy loadMathieu Desnoyers1-1/+1
2019-07-25sched/fair: Don't free p->numa_faults with concurrent readersJann Horn1-1/+1
2019-07-08Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2019-05-27signal: Remove task parameter from force_sigsegvEric W. Biederman1-1/+1
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-14fs/exec.c: move ->recursion_depth out of critical sectionsAlexey Dobriyan1-1/+3
2019-03-07exec: increase BINPRM_BUF_SIZE to 256Oleg Nesterov1-1/+1
2019-03-07fs/exec.c: replace opencoded set_mask_bits()Vineet Gupta1-6/+1
2019-03-06Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-2/+2
2019-02-18exec: Fix mem leak in kernel_read_fileYueHaibing1-1/+1
2019-02-04sched/core: Convert sighand_struct.count to refcount_tElena Reshetova1-2/+2
2019-01-05Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2019-01-04fs/: remove caller signal_pending branch predictionsDavidlohr Bueso1-2/+2
2019-01-04exec: separate MM_ANONPAGES and RLIMIT_STACK accountingOleg Nesterov1-53/+52
2018-12-10exec: make prepare_bprm_creds staticChanho Min1-1/+1
2018-12-04Revert "exec: make de_thread() freezable"Rafael J. Wysocki1-3/+2
2018-11-19exec: make de_thread() freezableChanho Min1-2/+3
2018-10-10vfs: require i_size <= SIZE_MAX in kernel_read_file()Eric Biggers1-4/+4
2018-08-21Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+1
2018-07-26mm: fix vma_is_anonymous() false-positivesKirill A. Shutemov1-0/+1
2018-07-21mm: make vm_area_alloc() initialize core fieldsLinus Torvalds1-3/+1
2018-07-21mm: use helper functions for allocating and freeing vm_area structsLinus Torvalds1-2/+2
2018-07-21pid: Implement PIDTYPE_TGIDEric W. Biederman1-0/+1
2018-06-10Merge branch 'core-rseq-for-linus' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+1
2018-06-06rseq: Introduce restartable sequences system callMathieu Desnoyers1-0/+1
2018-05-23umh: introduce fork_usermode_blob() helperAlexei Starovoitov1-9/+29
2018-04-11exec: pin stack limit during execKees Cook1-12/+15
2018-04-11exec: introduce finalize_exec() before start_thread()Kees Cook1-0/+6
2018-04-11exec: pass stack rlimit into mm layout functionsKees Cook1-1/+7
2018-03-19exec: Set file unwritable before LSM checkKees Cook1-3/+3
2018-01-03exec: Weaken dumpability for secureexecKees Cook1-2/+7
2017-12-17Revert "exec: avoid RLIMIT_STACK races with prlimit()"Kees Cook1-6/+1
2017-12-14exec: avoid gcc-8 warning for get_task_commArnd Bergmann1-4/+3
2017-11-29exec: avoid RLIMIT_STACK races with prlimit()Kees Cook1-1/+6
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-1/+1
2017-10-19membarrier: Provide register expedited private commandMathieu Desnoyers1-0/+1
2017-10-03exec: load_script: kill the onstack interp[BINPRM_BUF_SIZE] arrayOleg Nesterov1-1/+1
2017-09-14vfs: constify path argument to kernel_read_file_from_pathMimi Zohar1-1/+1
2017-09-14Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-21/+3
2017-09-13mm: treewide: remove GFP_TEMPORARY allocation flagMichal Hocko1-2/+2
2017-09-04fs: fix kernel_read prototypeChristoph Hellwig1-4/+3
2017-09-04fs: move kernel_read to fs/read_write.cChristoph Hellwig1-17/+0
2017-08-01exec: Consolidate pdeath_signal clearingKees Cook1-4/+3
2017-08-01exec: Use sane stack rlimit under secureexecKees Cook1-0/+12
2017-08-01exec: Consolidate dumpability logicKees Cook1-6/+5
2017-08-01exec: Use secureexec for clearing pdeath_signalKees Cook1-2/+1
2017-08-01exec: Use secureexec for setting dumpabilityKees Cook1-1/+1
2017-08-01LSM: drop bprm_secureexec hookKees Cook1-2/+0
2017-08-01commoncap: Refactor to remove bprm_secureexec hookKees Cook1-0/+7
2017-08-01binfmt: Introduce secureexec flagKees Cook1-0/+2
2017-08-01exec: Correct comments about "point of no return"Kees Cook1-3/+13
2017-08-01exec: Rename bprm->cred_prepared to called_set_credsKees Cook1-1/+1
2017-07-07exec: Limit arg stack to at most 75% of _STK_LIMKees Cook1-5/+6
2017-06-23fs/exec.c: account for argv/envp pointersKees Cook1-4/+24
2017-03-20x86/arch_prctl: Add ARCH_[GET|SET]_CPUIDKyle Huey1-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 for new header dependencies before moving code to <lin...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 for new header dependencies before moving code to <lin...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, cgroups: Remove the threadgroup_change_*() wrapperyIngo Molnar1-3/+3
2017-02-14vfs: Use upper filesystem inode in bprm_fill_uid()Vivek Goyal1-1/+1
2017-01-24exec: Remove LSM_UNSAFE_PTRACE_CAPEric W. Biederman1-6/+2
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-22fs: exec: apply CLOEXEC before changing dumpable task flagsAleksa Sarai1-2/+8
2016-12-14Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2016-12-14mm: add locked parameter to get_user_pages_remote()Lorenzo Stoakes1-1/+1
2016-12-14Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-3/+18
2016-11-22exec: Ensure mm->user_ns contains the execed filesEric W. Biederman1-2/+17
2016-11-22ptrace: Capture the ptracer's creds not PT_PTRACE_CAPEric W. Biederman1-1/+1
2016-11-16posix-timers: Make them configurableNicolas Pitre1-0/+2
2016-10-19mm: replace get_user_pages_remote() write/force parameters with gup_flagsLorenzo Stoakes1-2/+7
2016-08-04Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ger...Linus Torvalds1-0/+33
2016-08-02firmware: support loading into a pre-allocated bufferStephen Boyd1-3/+6
2016-07-25elf_fdpic_transfer_args_to_stack(): make it genericNicolas Pitre1-0/+33
2016-06-24fs: Treat foreign mounts as nosuidAndy Lutomirski1-1/+1
2016-05-23exec: make exec path waiting for mmap_sem killableMichal Hocko1-2/+8
2016-05-23exec: remove the no longer needed remove_arg_zero()->free_arg_page()Oleg Nesterov1-7/+0
2016-05-19Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/...Linus Torvalds1-8/+21
2016-05-17exec: clarify reasoning for euid/egid resetKees Cook1-1/+6
2016-05-01vfs: forbid write access when reading a file into memoryDmitry Kasatkin1-8/+21
2016-03-20Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+6
2016-02-21vfs: define kernel_copy_file_from_fd()Mimi Zohar1-0/+16
2016-02-21security: define kernel_read_file hookMimi Zohar1-0/+4
2016-02-21vfs: define kernel_read_file_from_pathMimi Zohar1-0/+19
2016-02-18vfs: define kernel_read_file_id enumerationMimi Zohar1-2/+2
2016-02-18vfs: define a generic function to read a file from the kernelMimi Zohar1-0/+53
2016-02-16mm/gup: Introduce get_user_pages_remote()Dave Hansen1-2/+6
2016-01-22wrappers for ->i_mutex accessAl Viro1-2/+2
2016-01-04don't carry MAY_OPEN in op->acc_modeAl Viro1-2/+2
2015-07-10vfs: Commit to never having exectuables on proc and sysfs.Eric W. Biederman1-2/+8
2015-05-12parisc,metag: Fix crashes due to stack randomization on stack-grows-upwards a...Helge Deller1-0/+3
2015-04-19fs: take i_mutex during prepare_binprm for set[ug]id executablesJann Horn1-28/+48
2015-04-17fs/exec.c:de_thread: move notify_count write under lockKirill Tkhai1-1/+5
2015-04-17prctl: avoid using mmap_sem for exe_file serializationDavidlohr Bueso1-0/+6
2015-01-23fs: create proper filename objects using getname_kernel()Paul Moore1-2/+8
2014-12-13syscalls: implement execveat() system callDavid Drysdale1-13/+100
2014-11-18fs: Do not include mpx.h in exec.cDave Hansen1-1/+0
2014-11-18x86, mpx: On-demand kernel allocation of bounds tablesDave Hansen1-0/+2
2014-10-09handle suicide on late failure exits in execve() in search_binary_handler()Al Viro1-6/+11
2014-08-08fork/exec: cleanup mm initializationVladimir Davydov1-4/+0
2014-07-18seccomp: implement SECCOMP_FILTER_FLAG_TSYNCKees Cook1-1/+1
2014-07-18sched: move no_new_privs into new atomic flagsKees Cook1-2/+2
2014-06-06perf: Differentiate exec() and non-exec() comm eventsAdrian Hunter1-3/+3
2014-06-06perf: Fix perf_event_comm() vs. exec() assumptionPeter Zijlstra1-0/+1
2014-05-15metag: Reduce maximum stack size to 256MBJames Hogan1-3/+3
2014-04-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2014-04-07exec: kill bprm->tcomm[], simplify the "basename" logicOleg Nesterov1-19/+2
2014-04-07mm: per-thread vma cachingDavidlohr Bueso1-1/+4
2014-04-03fs, kernel: permit disabling the uselib syscallJosh Triplett1-0/+2
2014-04-01read_code(): go through vfs_read() instead of calling the method directlyAl Viro1-1/+1
2014-03-06fs/compat: convert to COMPAT_SYSCALL_DEFINEHeiko Carstens1-3/+3
2014-02-05execve: use 'struct filename *' for executable name passingLinus Torvalds1-24/+21
2014-01-23fs/exec.c: call arch_pick_mmap_layout() only onceRichard Weinberger1-1/+0
2014-01-23exec: avoid propagating PF_NO_SETAFFINITY into userspace childZhang Yi1-2/+2
2014-01-23exec: kill task_struct->did_execOleg Nesterov1-1/+0
2014-01-23exec: move the final allow_write_access/fput into free_bprm()Oleg Nesterov1-15/+5
2014-01-23exec:check_unsafe_exec: kill the dead -EAGAIN and clear_in_exec logicOleg Nesterov1-21/+8
2014-01-23exec:check_unsafe_exec: use while_each_thread() rather than next_thread()Oleg Nesterov1-1/+2
2014-01-23coredump: make __get_dumpable/get_dumpable inline, kill fs/coredump.hOleg Nesterov1-18/+0
2014-01-23coredump: kill MMF_DUMPABLE and MMF_DUMP_SECURELYOleg Nesterov1-15/+6
2014-01-23coredump: set_dumpable: fix the theoretical race with itselfOleg Nesterov1-34/+15