aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
AgeCommit message (Expand)AuthorFilesLines
2025-04-21fs: remove uselib() system callChristian Brauner1-60/+0
2025-04-03rseq: Eliminate useless task_work on execveMathieu Desnoyers1-1/+2
2025-03-25exec: fix the racy usage of fs_struct->in_execOleg Nesterov1-6/+9
2025-02-24binfmt: Remove loader from linux_binprm structYonatan Goldschmidt1-2/+0
2025-01-28treewide: const qualify ctl_tables where applicableJoel Granados1-1/+1
2025-01-26Merge tag 'mm-stable-2025-01-26-14-59' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-11/+3
2025-01-23Merge tag 'fsnotify_hsm_for_v6.14-rc1' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-4/+4
2025-01-22Merge tag 'AT_EXECVE_CHECK-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-2/+18
2025-01-20Merge tag 'execve-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-27/+36
2025-01-13mm: abstract get_arg_page() stack expansion and mmap read lockLorenzo Stoakes1-11/+3
2024-12-18exec: Add a new AT_EXECVE_CHECK flag to execveat(2)Mickaël Salaün1-2/+18
2024-12-16exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) caseKees Cook1-3/+26
2024-12-16exec: Make sure task->comm is always NUL-terminatedKees Cook1-6/+6
2024-12-11fs: don't block write during exec on pre-content watched filesAmir Goldstein1-4/+4
2024-11-29exec: remove legacy custom binfmt modules autoloadingNir Lichtman1-15/+1
2024-11-29exec: move warning of null argv to be next to the relevant codenir@lichtman.org1-3/+3
2024-11-27Revert "fs: don't block i_writecount during exec"Christian Brauner1-8/+15
2024-11-25Merge tag 'mm-nonmm-stable-2024-11-24-02-05' of git://git.kernel.org/pub/scm/...Linus Torvalds1-10/+0
2024-11-05get rid of __get_task_comm()Yafang Shao1-10/+0
2024-10-14sched: Improve cache locality of RSEQ concurrency IDs for intermittent workloadsMathieu Desnoyers1-1/+1
2024-09-21Merge tag 'mm-stable-2024-09-20-02-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-75/+6
2024-09-19Merge tag 'parisc-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+2
2024-09-09parisc: Fix stack start for ADDR_NO_RANDOMIZE personalityHelge Deller1-1/+2
2024-09-01mm: move vma_shrink(), vma_expand() to internal headerLorenzo Stoakes1-75/+6
2024-08-30exec: don't WARN for racy path_noexec checkMateusz Guzik1-19/+12
2024-08-13exec: Fix ToCToU between perm check and set-uid/gid usageKees Cook1-1/+7
2024-07-24sysctl: treewide: constify the ctl_table argument of proc_handlersJoel Granados1-1/+1
2024-07-23Merge tag 'execve-v6.11-rc1-fix1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2024-07-22execve: Move KUnit tests to tests/ subdirectoryKees Cook1-1/+1
2024-07-16Merge tag 'execve-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+42
2024-07-13exec: Avoid pathological argc, envc, and bprm->p valuesKees Cook1-1/+9
2024-07-13execve: Keep bprm->argmin behind CONFIG_MMUKees Cook1-6/+20
2024-06-19exec: Add KUnit test for bprm_stack_limits()Kees Cook1-0/+13
2024-06-03fs: don't block i_writecount during execChristian Brauner1-11/+3
2024-05-19Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-0/+11
2024-04-25mm/ksm: fix ksm exec support for prctlJinjiang Tu1-0/+11
2024-04-11tracing: Add sched_prepare_exec tracepointMarco Elver1-0/+8
2024-03-27Merge tag 'execve-v6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+1
2024-03-21exec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack()Max Filippov1-0/+1
2024-03-12Merge tag 'execve-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-8/+3
2024-03-11Merge tag 'vfs-6.9.pidfd' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-1/+0
2024-03-09exec: Simplify remove_arg_zero() error pathKees Cook1-7/+3
2024-02-23exec: Delete unnecessary statements in remove_arg_zero()Li kunyu1-1/+0
2024-02-02pidfd: kill the no longer needed do_notify_pidfd() in de_thread()Oleg Nesterov1-5/+0
2024-02-02pidfd: implement PIDFD_THREAD flag for pidfd_open()Oleg Nesterov1-1/+5
2024-01-24Merge tag 'execve-v6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-9/+30
2024-01-24uselib: remove use of __FMODE_EXECLinus Torvalds1-1/+1
2024-01-24exec: Distinguish in_execve from in_execKees Cook1-0/+1
2024-01-22exec: Fix error handling in begin_new_exec()Bernd Edlinger1-0/+3
2024-01-22exec: Add do_close_execat() helperKees Cook1-6/+26
2024-01-22exec: remove useless commentAskar Safin1-3/+0
2024-01-20execve: open the executable file before doing anything elseLinus Torvalds1-34/+35
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2024-01-10Merge tag 'header_cleanup-2024-01-10' of https://evilpiepirate.org/git/bcachefsLinus Torvalds1-0/+1
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-27rseq: Split out rseq.h from sched.hKent Overstreet1-0/+1
2023-12-10introduce for_other_threads(p, t)Oleg Nesterov1-2/+1
2023-10-04mm/mremap: allow moves within the same VMA for stack movesJoel Fernandes (Google)1-1/+1
2023-10-04mm: remove remnants of SPLIT_RSS_COUNTINGMateusz Guzik1-2/+0
2023-08-29Merge tag 'mm-nonmm-stable-2023-08-28-22-48' of git://git.kernel.org/pub/scm/...Linus Torvalds1-2/+2
2023-08-21kernel/fork: stop playing lockless games for exe_file replacementMateusz Guzik1-2/+2
2023-08-18mm: set up vma iterator for vma_iter_prealloc() callsLiam R. Howlett1-0/+1
2023-06-29Merge tag 'fsnotify_for_v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-5/+0
2023-06-28Merge branch 'expand-stack'Linus Torvalds1-16/+22
2023-06-27mm: always expand the stack with the mmap write lock heldLinus Torvalds1-2/+2
2023-06-24execve: expand new process stack manually ahead of timeLinus Torvalds1-16/+21
2023-06-24mm: make find_extend_vma() fail if write lock not heldLiam R. Howlett1-2/+3
2023-06-12fsnotify: move fsnotify_open() hook into do_dentry_open()Amir Goldstein1-5/+0
2023-06-09mm/gup: remove vmas parameter from get_user_pages_remote()Lorenzo Stoakes1-1/+1
2023-04-28Merge tag 'trace-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds1-0/+2
2023-03-29tracing/user_events: Track fork/exec/exit for mm lifetimeBeau Belgrave1-0/+2
2023-03-28lazy tlb: introduce lazy tlb mm refcount helper functionsNicholas Piggin1-1/+1
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-10/+10
2023-02-20Merge tag 'sched-core-2023-02-20' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-0/+4
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-2/+2
2023-02-09mm/mmap: don't use __vma_adjust() in shift_arg_pages()Liam R. Howlett1-2/+2
2023-02-09mm: don't use __vma_adjust() in __split_vma()Liam R. Howlett1-2/+2
2023-02-09mm: add vma iterator to vma_adjust() argumentsLiam R. Howlett1-7/+4
2023-02-09mm: change mprotect_fixup to vma iteratorLiam R. Howlett1-1/+4
2023-01-19fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmapChristian Brauner1-4/+4
2023-01-19fs: port privilege checking helpers to mnt_idmapChristian Brauner1-2/+1
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-2/+3
2022-12-27sched: Introduce per-memory-map concurrency IDMathieu Desnoyers1-0/+4
2022-12-12Merge tag 'fs.vfsuid.conversion.v6.2' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-8/+8
2022-12-12Merge tag 'execve-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-10/+24
2022-11-17exec: Remove FOLL_FORCE for stack setupKees Cook1-1/+1
2022-10-29Merge tag 'mm-hotfixes-stable-2022-10-28' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-1/+1
2022-10-28mm: multi-gen LRU: move lru_gen_add_mm() out of IRQ-off regionSebastian Andrzej Siewior1-1/+1
2022-10-26fs: use type safe idmapping helpersChristian Brauner1-8/+8
2022-10-25exec: simplify initial stack size expansionRolf Eike Beer1-8/+5
2022-10-25binfmt: Fix whitespace issuesKees Cook1-1/+1
2022-10-25exec: Add comments on check_unsafe_exec() fs countingKees Cook1-0/+12
2022-10-25fs/exec: switch timens when a task gets a new mmAndrei Vagin1-0/+5
2022-10-25exec: Copy oldsighand->action under spin-lockBernd Edlinger1-2/+2
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-6/+8
2022-10-09Merge tag 'ucount-rlimits-cleanups-for-v5.19' of git://git.kernel.org/pub/scm...Linus Torvalds1-1/+1
2022-10-06Merge tag 'pull-file_inode' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+1
2022-09-27a.out: Remove the a.out implementationEric W. Biederman1-2/+1
2022-09-26exec: use VMA iterator instead of linked listMatthew Wilcox (Oracle)1-3/+6
2022-09-26mm: remove vmacacheLiam R. Howlett1-3/+0
2022-09-26mm: multi-gen LRU: support page table walksYu Zhao1-0/+2
2022-09-13Revert "fs/exec: allow to unshare a time namespace on vfork+exec"Andrei Vagin1-7/+0
2022-09-01bprm_fill_uid(): don't open-code file_inode()Al Viro1-2/+1
2022-08-19Merge tag 'execve-v6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-7/+7
2022-08-16exec: Replace kmap{,_atomic}() with kmap_local_page()Fabio M. De Francesco1-7/+7
2022-08-09posix-cpu-timers: Cleanup CPU timers before freeing them during execThadeu Lima de Souza Cascardo1-0/+3
2022-08-02Merge tag 'execve-v5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-6/+9
2022-07-27exec: Call kmap_local_page() in copy_string_kernel()Fabio M. De Francesco1-5/+1
2022-07-11fix race between exit_itimers() and /proc/pid/timersOleg Nesterov1-1/+1
2022-07-01exec: Fix a spelling mistakeZhang Jiaming1-1/+1
2022-06-15fs/exec: allow to unshare a time namespace on vfork+execAndrei Vagin1-0/+7
2022-06-03Merge tag 'kthread-cleanups-for-v5.19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-3/+5
2022-05-18ucounts: Split rlimit and ucount values and max valuesAlexey Gladkov1-1/+1
2022-05-13mm/mprotect: use mmu_gatherNadav Amit1-1/+5
2022-05-07fork: Stop allowing kthreads to call execveEric W. Biederman1-3/+3
2022-05-06kthread: Don't allocate kthread_struct for init and umhEric W. Biederman1-2/+4
2022-03-28Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+0
2022-03-23Merge tag 'asm-generic-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-6/+0
2022-03-10tracehook: Remove tracehook.hEric W. Biederman1-1/+0
2022-03-01exec: cleanup commentsTom Rix1-3/+3
2022-03-01exec: Force single empty string when argv is emptyKees Cook1-1/+25
2022-02-25uaccess: remove CONFIG_SET_FSArnd Bergmann1-6/+0
2022-01-22fs/coredump: move coredump sysctls into its own fileXiaoming Ni1-55/+0
2022-01-22fs: move fs/exec.c sysctls into its own fileLuis Chamberlain1-0/+90
2022-01-20Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+3
2022-01-20fs/exec: replace strncpy with strscpy_pad in __get_task_commYafang Shao1-1/+2
2022-01-20fs/exec: replace strlcpy with strscpy_pad in __set_task_commYafang Shao1-1/+1
2022-01-08signal: Remove the helper signal_group_exitEric W. Biederman1-1/+1
2022-01-08signal: Rename group_exit_task group_exec_taskEric W. Biederman1-4/+4
2021-12-13kthread: Ensure struct kthread is present for all kthreadsEric W. Biederman1-0/+2
2021-11-10Merge branch 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+1
2021-10-29signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)Eric W. Biederman1-1/+1
2021-10-06exec: Check for a pending fatal signal instead of core_stateEric W. Biederman1-8/+6
2021-09-04Merge tag 'denywrite-for-5.15' of git://github.com/davidhildenbrand/linuxLinus Torvalds1-1/+3
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+5
2021-09-03mm/pagemap: add mmap_assert_locked() annotations to find_vma*()Luigi Rizzo1-0/+2
2021-09-03mm: remove flush_kernel_dcache_pageChristoph Hellwig1-3/+3
2021-09-03kernel/fork: always deny write access to current MM exe_fileDavid Hildenbrand1-1/+3
2021-08-23namei: add getname_uflags()Dmitry Kadashev1-6/+2
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+0
2021-07-01exec: remove checks in __register_bimfmt()Alexey Dobriyan1-3/+0
2021-04-30Reimplement RLIMIT_NPROC on top of ucountsAlexey Gladkov1-1/+1
2021-04-30Add a reference to ucounts for each credAlexey Gladkov1-0/+4
2021-02-24fs: delete repeated words in commentsRandy Dunlap1-2/+2
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-4/+8
2021-01-29tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()Will Deacon1-1/+1
2021-01-29tlb: mmu_gather: Remove unused start/end arguments from tlb_finish_mmu()Will Deacon1-1/+1
2021-01-24exec: handle idmapped mountsChristian Brauner1-2/+5
2021-01-24would_dump: handle idmapped mountsChristian Brauner1-3/+3
2021-01-24namei: make permission helpers idmapped mount awareChristian Brauner1-1/+1
2021-01-24capability: handle idmapped mountsChristian Brauner1-1/+2
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