aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
AgeCommit message (Expand)AuthorFilesLines
2024-11-03Merge tag 'timers-urgent-2024-11-03' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-0/+2
2024-10-28fork: only invoke khugepaged, ksm hooks if no errorLorenzo Stoakes1-5/+2
2024-10-28fork: do not invoke uffd on fork if error occursLorenzo Stoakes1-1/+4
2024-10-27posix-cpu-timers: Clear TICK_DEP_BIT_POSIX_TIMER on cloneBenjamin Segall1-0/+2
2024-09-29close_range(): fix the logics in descriptor table trimmingAl Viro1-18/+14
2024-09-25Merge tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2024-09-21Merge tag 'sched_ext-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-5/+12
2024-09-21Merge tag 'mm-stable-2024-09-20-02-31' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-2/+2
2024-09-18Merge tag 'cgroup-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+0
2024-09-17Revert "uprobes: use vm_special_mapping close() functionality"Oleg Nesterov1-0/+1
2024-09-09uprobes: use vm_special_mapping close() functionalitySven Schnelle1-1/+0
2024-09-04Merge branch 'bpf/master' into for-6.12Tejun Heo1-3/+22
2024-09-01mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig optionsDavid Hildenbrand1-2/+2
2024-08-21Revert "pidfd: prevent creation of pidfds for kthreads"Christian Brauner1-22/+3
2024-08-12pidfd: prevent creation of pidfds for kthreadsChristian Brauner1-3/+22
2024-08-11kernel/fork.c: get estimated free pages by memblock apiWei Yang1-1/+1
2024-07-30cgroup/cpuset: Remove cpuset_slab_spread_rotorXiu Jianfeng1-1/+0
2024-07-30Merge tag 'v6.11-rc1' into for-6.12Tejun Heo1-39/+25
2024-07-29posix-timers: Convert timer list to hlistThomas Gleixner1-1/+1
2024-07-24sysctl: treewide: constify the ctl_table argument of proc_handlersJoel Granados1-1/+1
2024-07-21Merge tag 'mm-nonmm-stable-2024-07-21-15-07' of git://git.kernel.org/pub/scm/...Linus Torvalds1-3/+4
2024-07-21Merge tag 'mm-stable-2024-07-21-14-50' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-9/+9
2024-07-16Merge tag 'linux_kselftest-kunit-6.11-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds1-0/+3
2024-07-16Merge tag 'asm-generic-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-3/+5
2024-07-10kernel/fork.c: put set_max_threads()/task_struct_whitelist() in __init sectionWei Yang1-2/+2
2024-07-10kernel/fork.c: get totalram_pages from memblock to calculate max_threadsWei Yang1-1/+2
2024-07-10clone3: drop __ARCH_WANT_SYS_CLONE3 macroArnd Bergmann1-3/+5
2024-07-04get_task_mm: check PF_KTHREAD locklessOleg Nesterov1-6/+5
2024-06-24fork: use this_cpu_try_cmpxchg() in try_release_thread_stack_to_cache()Uros Bizjak1-3/+4
2024-06-18sched_ext: Add boilerplate for extensible scheduler classTejun Heo1-0/+2
2024-06-18sched: Allow sched_cgroup_fork() to fail and introduce sched_cancel_fork()Tejun Heo1-5/+10
2024-06-14kunit: test: Add vm_mmap() allocation resource managerKees Cook1-0/+3
2024-06-03fs: don't block i_writecount during execChristian Brauner1-23/+3
2024-04-25mm: rename mm_put_huge_zero_page to mm_put_huge_zero_folioMatthew Wilcox (Oracle)1-1/+1
2024-04-16fork: defer linking file vma until vma is fully initializedMiaohe Lin1-16/+17
2024-03-11Merge tag 'rcu.next.v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/bo...Linus Torvalds1-0/+1
2024-03-11Merge tag 'vfs-6.9.pidfd' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-127/+20
2024-03-01pidfd: add pidfsChristian Brauner1-11/+2
2024-02-28pidfd: move struct pidfd_fopsChristian Brauner1-110/+0
2024-02-25rcu-tasks: Initialize data to eliminate RCU-tasks/do_exit() deadlocksPaul E. McKenney1-0/+1
2024-02-10pidfd: change pidfd_send_signal() to respect PIDFD_THREADOleg Nesterov1-2/+0
2024-02-06pidfd: clone: allow CLONE_THREAD | CLONE_PIDFD togetherOleg Nesterov1-3/+4
2024-02-02pidfd_poll: report POLLHUP when pid_task() == NULLOleg Nesterov1-15/+7
2024-02-02pidfd: implement PIDFD_THREAD flag for pidfd_open()Oleg Nesterov1-7/+31
2024-02-02pidfd: cleanup the usage of __pidfd_prepare's flagsOleg Nesterov1-6/+3
2024-02-02fork: Using clone_flags for legacy clone checkWang Jinchao1-2/+2
2024-01-24exec: Distinguish in_execve from in_execKees Cook1-0/+1
2024-01-18Merge tag 'iommu-updates-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2024-01-10Merge tag 'header_cleanup-2024-01-10' of https://evilpiepirate.org/git/bcachefsLinus Torvalds1-0/+2
2024-01-09Merge tag 'mm-nonmm-stable-2024-01-09-10-33' of git://git.kernel.org/pub/scm/...Linus Torvalds1-27/+1
2024-01-05mm/mglru: add CONFIG_LRU_GEN_WALKS_MMUKinsey Ho1-1/+1
2023-12-27rseq: Split out rseq.h from sched.hKent Overstreet1-0/+1
2023-12-20kernel/fork.c: add missing includeKent Overstreet1-0/+1
2023-12-20fork: remove redundant TASK_UNINTERRUPTIBLEKevin Hao1-1/+1
2023-12-12iommu: Change kconfig around IOMMU_SVAJason Gunthorpe1-1/+1
2023-12-10arch: remove ARCH_TASK_STRUCT_ALLOCATORHeiko Carstens1-6/+0
2023-12-10arch: remove ARCH_THREAD_STACK_ALLOCATORHeiko Carstens1-20/+0
2023-12-10fork: use __mt_dup() to duplicate maple tree in dup_mmap()Peng Zhang1-11/+29
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-3/+0
2023-11-02Merge tag 'mm-stable-2023-11-01-14-33' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-6/+2
2023-11-01Merge tag 'docs-6.7' of git://git.lwn.net/linuxLinus Torvalds1-4/+11
2023-11-01Merge tag 'asm-generic-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2023-10-19file: convert to SLAB_TYPESAFE_BY_RCUChristian Brauner1-3/+1
2023-10-18mm: drop the assumption that VM_SHARED always implies writableLorenzo Stoakes1-1/+1
2023-10-10fork: Fix kernel-docMatthew Wilcox (Oracle)1-4/+11
2023-10-06mm: add a NO_INHERIT flag to the PR_SET_MDWE prctlFlorent Revest1-1/+1
2023-10-04kill task_struct->thread_groupOleg Nesterov1-3/+0
2023-10-04mm: remove remnants of SPLIT_RSS_COUNTINGMateusz Guzik1-4/+0
2023-09-11arch: Remove Itanium (IA-64) architectureArd Biesheuvel1-1/+1
2023-09-01Merge tag 'percpu-for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/d...Linus Torvalds1-11/+4
2023-08-29Merge tag 'mm-nonmm-stable-2023-08-28-22-48' of git://git.kernel.org/pub/scm/...Linus Torvalds1-13/+9
2023-08-25kernel/fork: group allocation/free of per-cpu counters for mm structMateusz Guzik1-11/+4
2023-08-21kernel/fork: stop playing lockless games for exe_file replacementMateusz Guzik1-13/+9
2023-07-13kernel/fork: beware of __put_task_struct() calling contextWander Lairson Costa1-0/+8
2023-07-08fork: lock VMAs of the parent process when forkingSuren Baghdasaryan1-0/+1
2023-06-28Merge tag 'mm-nonmm-stable-2023-06-24-19-23' of git://git.kernel.org/pub/scm/...Linus Torvalds1-7/+3
2023-06-09fork: optimize memcg_charge_kernel_stack() a bitHaifeng Xu1-7/+3
2023-06-07Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-1/+1
2023-06-02bpf: Fix UAF in task local storageKP Singh1-1/+1
2023-06-01fork, vhost: Use CLONE_THREAD to fix freezer/ps regressionMike Christie1-8/+5
2023-04-30Merge tag 'iommu-updates-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+1
2023-04-28Merge tag 'trace-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds1-0/+2
2023-04-28Merge tag 'sched-core-2023-04-27' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+8
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-13/+150
2023-04-24Merge tag 'v6.4/pidfd.file' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-11/+87
2023-04-24Merge tag 'v6.4/kernel.user_worker' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-4/+21
2023-04-21sched: Fix performance regression introduced by mm_cidMathieu Desnoyers1-1/+8
2023-04-18sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-0/+1
2023-04-18mm: fix memory leak on mm_init error handlingMathieu Desnoyers1-0/+1
2023-04-16sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changesAndrew Morton1-0/+3
2023-04-14Merge branches 'iommu/fixes', 'arm/allwinner', 'arm/exynos', 'arm/mediatek', ...Joerg Roedel1-0/+1
2023-04-05sched/numa: apply the scan delay to every new vmaMel Gorman1-0/+2
2023-04-05mm: separate vma->lock from vm_area_structSuren Baghdasaryan1-14/+59
2023-04-05mm/mmap: free vm_area_struct without call_rcu in exit_mmapSuren Baghdasaryan1-1/+1
2023-04-05kernel/fork: assert no VMA readers during its destructionSuren Baghdasaryan1-0/+3
2023-04-05mm: add per-VMA lock and helper functions to control itSuren Baghdasaryan1-0/+4
2023-04-05mm: rcu safe VMA freeingMichel Lespinasse1-1/+19
2023-04-05mm: enable maple tree RCU mode by defaultLiam R. Howlett1-0/+3
2023-04-03fork: use pidfd_prepare()Christian Brauner1-11/+2
2023-04-03pid: add pidfd_prepare()Christian Brauner1-0/+85
2023-03-31iommu/sva: Move PASID helpers to sva codeJacob Pan1-0/+1
2023-03-29tracing/user_events: Track fork/exec/exit for mm lifetimeBeau Belgrave1-0/+2
2023-03-28lazy tlb: shoot lazies, non-refcounting lazy tlb mm reference handling schemeNicholas Piggin1-0/+65
2023-03-25Merge tag 'xfs-6.3-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-5/+0
2023-03-19fork: remove use of percpu_counter_sum_allDave Chinner1-5/+0
2023-03-12fork: allow kernel code to call copy_processMike Christie1-1/+1
2023-03-12fork: Add kernel_clone_args flag to ignore signalsMike Christie1-0/+3
2023-03-12fork: add kernel_clone_args flag to not dup/clone filesMike Christie1-2/+8
2023-03-12fork/vm: Move common PF_IO_WORKER behavior to new flagMike Christie1-0/+3
2023-03-12kernel: Allow a kernel thread's name to be set in copy_processMike Christie1-1/+6
2023-03-08fork: allow CLONE_NEWTIME in clone3 flagsTobias Klauser1-1/+1
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-13/+10
2023-02-20Merge tag 'sched-core-2023-02-20' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+7
2023-02-09mm: replace VM_LOCKED_CLEAR_MASK with VM_LOCKED_MASKSuren Baghdasaryan1-1/+1
2023-02-09kernel/fork: convert vma assignment to a memcpySuren Baghdasaryan1-1/+1
2023-02-09kernel/fork: convert forking to using the vmi iteratorLiam R. Howlett1-11/+8
2023-02-03blk-cgroup: store a gendisk to throttle in struct task_structChristoph Hellwig1-1/+1
2022-12-27sched: Introduce per-memory-map concurrency IDMathieu Desnoyers1-1/+7
2022-12-17Merge tag 'x86_mm_for_6.2_v2' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-19/+18
2022-12-15x86/mm: Use mm_alloc() in poking_init()Peter Zijlstra1-5/+0
2022-12-15mm: Move mm_cachep initialization to mm_init()Peter Zijlstra1-14/+18
2022-12-13Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+20
2022-12-12Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2022-12-12Merge tag 'execve-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-9/+0
2022-12-02seccomp: Move copy_seccomp() to no failure path.Kuniyuki Iwashima1-6/+11
2022-11-30percpu_counter: add percpu_counter_sum_all interfaceShakeel Butt1-0/+5
2022-11-30mm: convert mm's rss stats into percpu_counterShakeel Butt1-1/+15
2022-11-18stackprotector: move get_random_canary() into stackprotector.hJason A. Donenfeld1-1/+1
2022-10-25fs/exec: switch timens when a task gets a new mmAndrei Vagin1-9/+0
2022-10-12Merge tag 'mm-nonmm-stable-2022-10-11' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+0
2022-10-11fork: remove duplicate included header filesXu Panda1-1/+0
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-36/+43
2022-10-10Merge tag 'sched-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-3/+2
2022-10-09Merge tag 'ucount-rlimits-cleanups-for-v5.19' of git://git.kernel.org/pub/scm...Linus Torvalds1-6/+6
2022-10-09Merge tag 'signal-for-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+2
2022-10-03kmsan: handle task creation and exitingAlexander Potapenko1-0/+2
2022-10-03hugetlb: add vma based lock for pmd sharingMike Kravetz1-4/+2
2022-09-26mm: remove the vma linked listLiam R. Howlett1-18/+1
2022-09-26fork: use VMA iteratorMatthew Wilcox (Oracle)1-2/+5
2022-09-26mm: remove vmacacheLiam R. Howlett1-5/+0
2022-09-26mm: remove rb tree.Liam R. Howlett1-8/+0
2022-09-26kernel/fork: use maple tree for dup_mmap() during forkingLiam R. Howlett1-2/+13
2022-09-26mm: start tracking VMAs with maple treeLiam R. Howlett1-3/+17
2022-09-26mm: multi-gen LRU: support page table walksYu Zhao1-0/+9
2022-09-20Merge tag 'execve-v6.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-4/+1
2022-09-13Revert "fs/exec: allow to unshare a time namespace on vfork+exec"Andrei Vagin1-4/+1
2022-09-07freezer,sched: Rewrite core freezer logicPeter Zijlstra1-3/+2
2022-09-05IB/core: Fix a nested dead lock as part of ODP flowYishai Hadas1-0/+1
2022-08-05Merge tag 'trace-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-0/+14
2022-08-02Merge tag 'rcu.2022.07.26a' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+1
2022-07-30rv/include: Add deterministic automata monitor definition via C macrosDaniel Bristot de Oliveira1-0/+14
2022-07-20signal: Guarantee that SIGNAL_GROUP_EXIT is set on process exitEric W. Biederman1-0/+2
2022-06-20rcu-tasks: Add data structures for lightweight grace periodsPaul E. McKenney1-0/+1
2022-06-15fs/exec: allow to unshare a time namespace on vfork+execAndrei Vagin1-1/+4
2022-06-03Merge tag 'kthread-cleanups-for-v5.19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-8/+38
2022-05-26Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-3/+1
2022-05-23Merge tag 'x86_splitlock_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux...Linus Torvalds1-0/+5
2022-05-19mm: khugepaged: make khugepaged_enter() void functionYang Shi1-3/+1
2022-05-18ucounts: Split rlimit and ucount values and max valuesAlexey Gladkov1-6/+6
2022-05-07fork: Explicitly set PF_KTHREADEric W. Biederman1-0/+3
2022-05-07fork: Generalize PF_IO_WORKER handlingEric W. Biederman1-8/+8
2022-05-07fork: Explicity test for idle tasks in copy_threadEric W. Biederman1-0/+9
2022-05-07fork: Pass struct kernel_clone_args into copy_threadEric W. Biederman1-2/+2
2022-05-06kthread: Don't allocate kthread_struct for init and umhEric W. Biederman1-2/+20
2022-05-01mm: Fix PASID use-after-free issueFenghua Yu1-1/+1
2022-04-27x86/split_lock: Make life miserable for split lockersTony Luck1-0/+5
2022-03-24kasan, arm64: reset pointer tags of vmapped stacksAndrey Konovalov1-5/+6
2022-03-24kasan, fork: reset pointer tags of vmapped stacksAndrey Konovalov1-0/+2
2022-03-24Merge tag 'net-next-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-0/+3
2022-03-22Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-0/+3
2022-03-21Merge tag 'core-core-2022-03-21' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-97/+166
2022-03-21Merge tag 'x86-pasid-2022-03-21' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-8/+7
2022-03-17rethook: Add a generic return hookMasami Hiramatsu1-0/+3
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-2/+2
2022-02-22fork: Use IS_ENABLED() in account_kernel_stack()Sebastian Andrzej Siewior1-4/+4
2022-02-22fork: Only cache the VMAP stack in finish_task_switch()Sebastian Andrzej Siewior1-13/+63
2022-02-22fork: Move task stack accounting to do_exit()Sebastian Andrzej Siewior1-12/+23
2022-02-22fork: Move memcg_charge_kernel_stack() into CONFIG_VMAP_STACKSebastian Andrzej Siewior1-33/+36
2022-02-22fork: Don't assign the stack pointer in dup_task_struct()Sebastian Andrzej Siewior1-31/+16
2022-02-22fork, IA64: Provide alloc_thread_stack_node() for IA64Sebastian Andrzej Siewior1-0/+17
2022-02-22fork: Duplicate task_struct before stack allocationSebastian Andrzej Siewior1-5/+4
2022-02-22fork: Redo ifdefs around task stack handlingSebastian Andrzej Siewior1-35/+39
2022-02-20Merge tag 'sched_urgent_for_v5.17_rc5' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+12
2022-02-20Merge tag 'pidfd.v5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-4/+3
2022-02-19sched: Fix yet more sched_fork() racesPeter Zijlstra1-1/+12
2022-02-17ucounts: Enforce RLIMIT_NPROC not RLIMIT_NPROC+1Eric W. Biederman1-5/+5
2022-02-15sched: Define and initialize a flag to identify valid PASID in the taskPeter Zijlstra1-0/+4
2022-02-15iommu/sva: Assign a PASID to mm on PASID allocation and free it on mm exitFenghua Yu1-0/+1
2022-02-14kernel/fork: Initialize mm's PASIDFenghua Yu1-8/+2
2022-02-14mm: Change CONFIG option for mm->pasid fieldFenghua Yu1-1/+1
2022-02-11copy_process(): Move fd_install() out of sighand->siglock critical sectionWaiman Long1-4/+3
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-12/+8
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+3
2022-01-15mm: move anon_vma declarations to linux/mm_inline.hArnd Bergmann1-0/+1
2022-01-15mm: add a field to store names for private anonymous memoryColin Cross1-0/+2
2022-01-08exit: Remove profile_handoff_taskEric W. Biederman1-3/+1
2022-01-08kthread: Generalize pf_io_worker so it can point to struct kthreadEric W. Biederman1-7/+1
2021-12-20fork: Rename bad_fork_cleanup_threadgroup_lock to bad_fork_cleanup_delayacctEric W. Biederman1-3/+3
2021-12-20fork: Stop protecting back_fork_cleanup_cgroup_lock with CONFIG_NUMAEric W. Biederman1-1/+1
2021-12-13kthread: Ensure struct kthread is present for all kthreadsEric W. Biederman1-0/+4