aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-26prctl: generalize PR_SET_MDWE support check to be per-archZev Weiss1-2/+5
2024-02-07getrusage: use sig->stats_lock rather than lock_task_sighand()Oleg Nesterov1-3/+13
2024-02-07getrusage: move thread_group_cputime_adjusted() outside of lock_task_sighand()Oleg Nesterov1-15/+19
2023-11-18prctl: Disable prctl(PR_SET_MDWE) on pariscHelge Deller1-0/+4
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-21/+20
2023-10-06mm: add a NO_INHERIT flag to the PR_SET_MDWE prctlFlorent Revest1-6/+26
2023-10-04getrusage: use __for_each_thread()Oleg Nesterov1-3/+1
2023-10-04getrusage: add the "signal_struct *sig" local variableOleg Nesterov1-18/+19
2023-07-17prctl: move PR_GET_AUXV out of PR_MCE_KILLMiguel Ojeda1-5/+5
2023-06-08riscv: Add prctl controls for userspace vector managementAndy Chiu1-0/+12
2023-05-02mm/ksm: unmerge and clear VM_MERGEABLE when setting PR_SET_MEMORY_MERGE=0David Hildenbrand1-9/+3
2023-04-21mm: add new api to enable ksm per processStefan Roesch1-0/+27
2023-04-18prctl: add PR_GET_AUXV to copy auxv to userspaceJosh Triplett1-0/+15
2023-04-18kernel/sys.c: fix and improve control flow in __sys_setres[ug]id()Ondrej Mosnacek1-29/+40
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-0/+33
2023-02-02mm: implement memory-deny-write-execute as a prctlJoey Gouly1-0/+33
2023-01-21prlimit: do_prlimit needs to have a speculation checkGreg Kroah-Hartman1-0/+2
2022-10-10Merge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-0/+3
2022-10-09Merge tag 'ucount-rlimits-cleanups-for-v5.19' of git://git.kernel.org/pub/scm...Linus Torvalds1-1/+1
2022-09-29utsname: contribute changes to RNGJason A. Donenfeld1-0/+3
2022-05-18ucounts: Split rlimit and ucount values and max valuesAlexey Gladkov1-1/+1
2022-04-22arm64/sme: Implement vector length configuration prctl()sMark Brown1-0/+12
2022-03-08prlimit: do not grab the tasklist_lockBarret Rhoden1-11/+14
2022-03-08prlimit: make do_prlimit() staticBarret Rhoden1-57/+59
2022-03-05mm: refactor vm_area_struct::anon_vma_name usage codeSuren Baghdasaryan1-7/+12
2022-02-17ucounts: Move RLIMIT_NPROC handling after set_userEric W. Biederman1-5/+14
2022-02-17rlimit: Fix RLIMIT_NPROC enforcement failure caused by capability calls in se...Eric W. Biederman1-2/+1
2022-01-20Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-8/+8
2022-01-20kernel/sys.c: only take tasklist_lock for get/setpriority(PRIO_PGRP)Davidlohr Bueso1-8/+8
2022-01-15mm: add a field to store names for private anonymous memoryColin Cross1-0/+63
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-7/+0
2021-09-08prctl: allow to setup brk for et_dyn executablesCyrill Gorcunov1-7/+0
2021-09-04Merge tag 'denywrite-for-5.15' of git://github.com/davidhildenbrand/linuxLinus Torvalds1-32/+1
2021-09-03kernel/fork: factor out replacing the current MM exe_fileDavid Hildenbrand1-32/+1
2021-08-12set_user: add capability check when rlimit(RLIMIT_NPROC) exceedsRan Xiaokai1-1/+2
2021-06-28Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+13
2021-05-12sched: prctl() core-scheduling interfaceChris Hyser1-0/+5
2021-05-07kernel/sys.c: fix typoXiaofeng Cao1-7/+7
2021-04-30Reimplement RLIMIT_NPROC on top of ucountsAlexey Gladkov1-1/+1
2021-04-30Add a reference to ucounts for each credAlexey Gladkov1-0/+12
2021-04-13arm64: Introduce prctl(PR_PAC_{SET,GET}_ENABLED_KEYS)Peter Collingbourne1-0/+16
2021-03-14prctl: fix PR_SET_MM_AUXV kernel stack leakAlexey Dobriyan1-1/+1
2021-02-25Merge tag 'kbuild-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-1/+1
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2021-02-16kbuild: simplify access to the kernel's versionSasha Levin1-1/+1
2021-01-29fs: Remove dcookies supportViresh Kumar1-1/+0
2021-01-24fs: add file and path permissions helpersChristian Brauner1-1/+1
2020-12-02kernel: Implement selective syscall userspace redirectionGabriel Krisman Bertazi1-0/+5
2020-10-25kernel/sys.c: fix prototype of prctl_get_tid_address()Rasmus Villemoes1-3/+3
2020-10-25Merge tag 'safesetid-5.10' of git://github.com/micah-morton/linuxLinus Torvalds1-5/+5
2020-10-16kernel/sys.c: replace do_brk with do_brk_flags in comment of prctl_set_mm_map()Liao Pingfang1-1/+1
2020-10-13LSM: Signal to SafeSetID when setting group IDsThomas Cedeno1-5/+5
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-19prctl: exe link permission error changed from -EINVAL to -EPERMNicolas Viennot1-1/+1
2020-07-19prctl: Allow local CAP_CHECKPOINT_RESTORE to change /proc/self/exeNicolas Viennot1-4/+7
2020-06-14Merge tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-mort...Linus Torvalds1-1/+14
2020-06-14security: Add LSM hooks to set*gid syscallsThomas Cedeno1-1/+14
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-2/+2
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-9/+9
2020-06-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2020-06-02mm/writeback: replace PF_LESS_THROTTLE with PF_LOCAL_THROTTLENeilBrown1-1/+1
2020-04-25compat sysinfo(2): don't bother with field-by-field copyoutAl Viro1-16/+17
2020-03-03sys/sysinfo: Respect boottime inside time namespaceCyril Hrubis1-0/+2
2020-01-28prctl: PR_{G,S}ET_IO_FLUSHER to support controlling memory reclaimMike Christie1-0/+25
2019-12-04kernel/sys.c: avoid copying possible padding bytes in copy_to_userJoe Perches1-1/+3
2019-11-15y2038: rusage: use __kernel_old_timevalArnd Bergmann1-2/+2
2019-09-17Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-13/+3
2019-09-16Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-14/+2
2019-08-28posix-cpu-timers: Get rid of zero checksThomas Gleixner1-9/+0
2019-08-28rlimit: Rewrite non-sensical RLIMIT_CPU commentThomas Gleixner1-4/+3
2019-08-20arm64: Tighten the PR_{SET, GET}_TAGGED_ADDR_CTRL prctl() unused argumentsCatalin Marinas1-0/+4
2019-08-06arm64: Introduce prctl() options to control the tagged user addresses ABICatalin Marinas1-0/+12
2019-07-22x86/mpx: Remove MPX APIsDave Hansen1-14/+2
2019-06-01prctl_set_mm: downgrade mmap_sem to read lockMichal Koutný1-2/+9
2019-06-01prctl_set_mm: refactor checks from validate_prctl_mapMichal Koutný1-26/+25
2019-05-14kernel/sys.c: prctl: fix false positive in validate_prctl_map()Cyrill Gorcunov1-1/+1
2019-03-07Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2019-03-07kernel/sys: annotate implicit fall throughMathieu Malaterre1-0/+1
2019-01-25LSM: add SafeSetID module that gates setid callsMicah Morton1-5/+5
2019-01-14kernel/sys.c: Clarify that UNAME26 does not generate unique versions anymoreJonathan Neuschäfer1-1/+2
2019-01-03Remove 'type' argument from access_ok() functionLinus Torvalds1-1/+1
2018-12-13arm64: add prctl control for resetting ptrauth keysKristina Martsenko1-0/+8
2018-09-20kernel/sys.c: remove duplicated includeYueHaibing1-3/+0
2018-08-24Merge branch 'userns-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-50/+45
2018-08-11sys: don't hold uts_sem while accessing userspace memoryJann Horn1-50/+45
2018-06-19sysinfo: Remove get_monotonic_boottime()Arnd Bergmann1-2/+2
2018-06-07mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_structYang Shi1-2/+8
2018-05-25kernel/sys.c: fix potential Spectre v1 issueGustavo A. R. Silva1-0/+5
2018-05-03nospec: Allow getting/setting on non-current taskKees Cook1-4/+5
2018-05-03prctl: Add speculation control prctlsThomas Gleixner1-0/+22
2018-04-02kernel: add ksys_setsid() helper; remove in-kernel call to sys_setsid()Dominik Brodowski1-1/+6
2018-04-02kernel: provide ksys_*() wrappers for syscalls called by kernel/uid16.cDominik Brodowski1-8/+50
2018-04-02kernel: add do_getpgid() helper; remove internal call to sys_getpgid()Dominik Brodowski1-2/+7
2017-12-14fix typo in assignment of fs default overflow gidWolffhardt Schwabe1-1/+1
2017-11-15Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-0/+12
2017-11-03arm64/sve: Add prctl controls for userspace vector length managementDave Martin1-0/+12
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-07-20prctl: Allow local CAP_SYS_ADMIN changing exe_fileKirill Tkhai1-6/+2
2017-07-12fix a braino in compat_sys_getrlimit()Al Viro1-1/+1
2017-07-10mm: make PR_SET_THP_DISABLE immediately activeMichal Hocko1-3/+3
2017-07-06Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-1/+99
2017-06-09getrlimit()/setrlimit(): move compat to nativeAl Viro1-0/+48
2017-06-09times(2): move compat to nativeAl Viro1-1/+27
2017-05-27take compat_sys_old_getrlimit() to native syscallAl Viro1-0/+24
2017-05-21wait4(2)/waitid(2): separate copying rusage to userlandAl Viro1-10/+6
2017-05-05Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-2/+1
2017-04-21rlimit: Properly call security_task_setrlimitEric W. Biederman1-2/+1
2017-03-06prlimit,security,selinux: add a security hook for prlimitStephen Smalley1-12/+18
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 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-02-23Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-0/+22
2017-02-03prctl: propagate has_child_subreaper flag to every descendantPavel Tikhomirov1-0/+22
2017-02-01sched/cputime: Convert task/group cputime to nsecsFrederic Weisbecker1-8/+8
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-12Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-10/+0
2016-12-12prctl: remove one-shot limitation for changing exe linkStanislav Kinsburskiy1-10/+0
2016-11-16posix-timers: Make them configurableNicolas Pitre1-1/+2
2016-05-23prctl: make PR_SET_THP_DISABLE wait for mmap_sem killableMichal Hocko1-1/+2
2016-03-17timer: convert timer_slack_ns from unsigned long to u64John Stultz1-1/+4
2016-01-20prctl: take mmap sem for writing to protect against othersMateusz Guzik1-10/+10
2015-11-06pidns: fix set/getpriority and ioprio_set/get in PRIO_USER modeBen Segall1-2/+2
2015-07-10vfs: Commit to never having exectuables on proc and sysfs.Eric W. Biederman1-2/+1
2015-06-25prctl: more prctl(PR_SET_MM_*) checksAlexey Dobriyan1-67/+91
2015-06-09x86/mpx: Clean up the code by not passing a task pointer around when unnecessaryDave Hansen1-4/+4
2015-04-17prctl: avoid using mmap_sem for exe_file serializationDavidlohr Bueso1-19/+28
2015-04-15kernel: conditionally support non-root users, groups and capabilitiesIulia Manda1-0/+2
2015-02-28kernel/sys.c: fix UNAME26 for 4.0Jon DeVree1-1/+2
2015-02-21Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linusLinus Torvalds1-0/+12
2015-02-12MIPS,prctl: add PR_[GS]ET_FP_MODE prctl options for MIPSPaul Burton1-0/+12
2015-01-22x86, mpx: Strictly enforce empty prctl() argsDave Hansen1-0/+4
2014-11-18x86, mpx: On-demand kernel allocation of bounds tablesDave Hansen1-0/+12
2014-10-13Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-2/+0
2014-10-09kernel/sys.c: compat sysinfo syscall: fix undefined behaviorScotty Bauer1-1/+1
2014-10-09kernel/sys.c: whitespace fixesvishnu.ps1-128/+137
2014-10-09mm: use VM_BUG_ON_MM where possibleSasha Levin1-1/+1
2014-10-09prctl: PR_SET_MM -- introduce PR_SET_MM_MAP operationCyrill Gorcunov1-1/+189
2014-10-09prctl: PR_SET_MM -- factor out mmap_sem when updating mm::exe_fileCyrill Gorcunov1-10/+11
2014-10-09mm: use may_adjust_brk helperCyrill Gorcunov1-7/+4
2014-09-08time, signal: Protect resource use statistics with seqlockRik van Riel1-2/+0
2014-07-18sched: move no_new_privs into new atomic flagsKees Cook1-2/+2
2014-05-22sched: Consolidate open coded implementations of nice level frobbing into nic...Dongsheng Yang1-3/+3
2014-04-07mm, thp: add VM_INIT_DEF_MASK and PRCTL_THP_DISABLEAlex Thorlton1-0/+15
2014-02-22sys: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICEDongsheng Yang1-4/+4
2014-01-23kernel/sys.c: k_getrusage() can use while_each_thread()Oleg Nesterov1-2/+1
2014-01-23exec: kill task_struct->did_execOleg Nesterov1-3/+2
2013-11-13kernel/sys.c: remove obsolete #include <linux/kexec.h>Geert Uytterhoeven1-1/+0
2013-08-30userns: Kill nsown_capable it makes the wrong thing easyEric W. Biederman1-10/+10
2013-07-09reboot: move shutdown/reboot related functions to kernel/reboot.cRobin Holt1-331/+0
2013-07-09reboot: remove -stable friendly PF_THREAD_BOUND defineRobin Holt1-5/+0
2013-07-03exit.c: unexport __set_special_pids()Oleg Nesterov1-1/+12
2013-07-03kernel/sys.c:do_sysinfo(): use get_monotonic_boottime()Oleg Nesterov1-2/+1
2013-07-03kernel/sys.c: sys_reboot(): fix malformed panic messageliguang1-1/+1
2013-06-12reboot: rigrate shutdown/reboot to boot cpuRobin Holt1-3/+26
2013-05-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+14
2013-04-30kernel/sys.c: make prctl(PR_SET_MM) generally availableAmnon Shiloh1-8/+2
2013-04-30kernel/timer.c: move some non timer related syscalls to kernel/sys.cStephen Rothwell1-0/+211
2013-04-08PM / reboot: call syscore_shutdown() after disable_nonboot_cpus()Huacai Chen1-1/+2
2013-03-22poweroff: change orderly_poweroff() to use schedule_work()Oleg Nesterov1-25/+32
2013-03-03switch getrusage() to COMPAT_SYSCALL_DEFINEAl Viro1-0/+14
2013-02-27usermodehelper: cleanup/fix __orderly_poweroff() && argv_free()Oleg Nesterov1-8/+2
2013-02-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-4/+4
2013-02-25Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-2/+3
2013-02-22new helper: file_inode(file)Al Viro1-4/+4
2013-02-21sys_prctl(): coding-style cleanupAndrew Morton1-145/+143
2013-02-21sys_prctl(): arg2 is unsigned long which is never < 0Chen Gang1-1/+3
2012-12-26userns: Allow unprivileged rebootLi Zefan1-2/+3
2012-11-28cputime: Rename thread_group_times to thread_group_cputime_adjustedFrederic Weisbecker1-3/+3
2012-10-19use clamp_t in UNAME26 fixKees Cook1-1/+1
2012-10-19kernel/sys.c: fix stack memory content leak via UNAME26Kees Cook1-5/+7
2012-10-06poweroff: fix bug in orderly_poweroff()hongfeng1-1/+1
2012-10-06kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()Shawn Guo1-0/+1
2012-09-26switch simple cases of fget_light to fdgetAl Viro1-8/+8
2012-09-26switch prctl_set_mm_exe_file() to fget_light()Al Viro1-4/+4
2012-07-30kernel/sys.c: avoid argv_free(NULL)Andrew Morton1-19/+25
2012-07-30prctl: remove redunant assignment of "error" to zeroSasikantha babu1-11/+2
2012-07-11c/r: prctl: less paranoid prctl_set_mm_exe_file()Konstantin Khlebnikov1-6/+10
2012-06-20c/r: prctl: Move PR_GET_TID_ADDRESS to a proper placeCyrill Gorcunov1-3/+3
2012-06-07c/r: prctl: drop VMA flags test on PR_SET_MM_ stack data assignmentCyrill Gorcunov1-14/+0
2012-06-07c/r: prctl: add ability to get clear_tid_addressCyrill Gorcunov1-0/+13
2012-06-07c/r: prctl: add minimal address test to PR_SET_MMCyrill Gorcunov1-1/+1
2012-06-07c/r: prctl: update prctl_set_mm_exe_file() after mm->num_exe_file_vmas removalKonstantin Khlebnikov1-12/+19
2012-05-31c/r: prctl: add ability to set new mm_struct::exe_fileCyrill Gorcunov1-0/+56
2012-05-31c/r: prctl: extend PR_SET_MM to set up more mm_struct entriesCyrill Gorcunov1-51/+83
2012-05-31kmod: convert two call sites to call_usermodehelper_fns()Boaz Harrosh1-11/+8
2012-05-31sethostname/setdomainname: notify userspace when there is a change in uts_ker...Sasikantha babu1-2/+2
2012-05-23Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-92/+174
2012-05-03userns: Convert ptrace, kill, set_priority permission checks to work with kui...Eric W. Biederman1-10/+8
2012-05-03userns: Convert setting and getting uid and gid system calls to use kuid and ...Eric W. Biederman1-67/+149
2012-05-03userns: Store uid and gid values in struct cred with kuid_t and kgid_t typesEric W. Biederman1-17/+9
2012-04-14seccomp: add system call filtering using BPFWill Drewry1-1/+1
2012-04-14Add PR_{GET,SET}_NO_NEW_PRIVS to prevent execve from granting privsAndy Lutomirski1-0/+10
2012-04-07userns: Disassociate user_struct from the user_namespace.Eric W. Biederman1-11/+23
2012-04-07userns: Add kuid_t and kgid_t and associated infrastructure in uidgid.hEric W. Biederman1-2/+0
2012-04-07userns: Use cred->user_ns instead of cred->user->user_nsEric W. Biederman1-4/+4
2012-04-07userns: Remove unnecessary cast to struct user_struct when copying cred->user.Eric W. Biederman1-2/+2