aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cgroup.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-18cgroup: don't call cgroup1_pidlist_destroy_all() for v2Xiu Jianfeng1-1/+2
2024-01-18Merge tag 'driver-core-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-29/+6
2024-01-08Merge tag 'cgroup-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-15/+30
2023-12-15kernfs: Convert kernfs_path_from_node_locked() from strlcpy() to strscpy()Kees Cook1-2/+2
2023-12-15kernel/cgroup: use kernfs_create_dir_ns()Max Kellermann1-27/+4
2023-11-14sched: psi: fix unprivileged polling against cgroupsJohannes Weiner1-12/+0
2023-11-09cgroup: Add annotation for holding namespace_sem in current_cgns_cgroup_from_...Yafang Shao1-0/+5
2023-11-09cgroup: Eliminate the need for cgroup_mutex in proc_cgroup_show()Yafang Shao1-5/+7
2023-11-09cgroup: Make operations on the cgroup root_list RCU safeYafang Shao1-7/+16
2023-11-09cgroup: Remove unnecessary list_empty()Yafang Shao1-4/+3
2023-11-02Merge tag 'mm-stable-2023-11-01-14-33' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+14
2023-10-31Merge tag 'net-next-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-6/+12
2023-10-19cgroup: Prepare for using css_task_iter_*() in BPFChuyi Zhou1-6/+12
2023-10-18hugetlb: memcg: account hugetlb-backed memory in memory controllerNhat Pham1-1/+14
2023-10-09cgroup: use legacy_name for cgroup v1 disable infoKamalesh Babulal1-1/+1
2023-10-04cgroup: add cgroup_favordynmods= command-line optionLuiz Capitulino1-4/+14
2023-09-18cgroup: Avoid extra dereference in css_populate_dir()Kamalesh Babulal1-2/+2
2023-09-18cgroup: Check for ret during cgroup1_base_files cft additionKamalesh Babulal1-2/+4
2023-09-02cgroup: fix build when CGROUP_SCHED is not enabledLinus Torvalds1-14/+14
2023-09-01Merge tag 'cgroup-for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-44/+41
2023-08-17cgroup: Avoid -Wstringop-overflow warningsGustavo A. R. Silva1-2/+2
2023-08-03cgroup: fix obsolete function name in cgroup_destroy_locked()Miaohe Lin1-1/+1
2023-08-02cgroup: fix obsolete function name above css_free_rwork_fn()Miaohe Lin1-1/+1
2023-08-02cgroup: clean up printk()Kamalesh Babulal1-2/+2
2023-07-21cgroup: fix obsolete comment above cgroup_create()Miaohe Lin1-2/+1
2023-07-19Merge tag 'v6.5-rc2' into sched/core, to pick up fixesIngo Molnar1-1/+1
2023-07-17cgroup: remove cgrp->kn check in css_populate_dir()Kamalesh Babulal1-1/+1
2023-07-17cgroup: fix obsolete function nameMiaohe Lin1-1/+1
2023-07-17cgroup: use cached local variable parent in for loopMiaohe Lin1-1/+1
2023-07-13sched: add throttled time stat for throttled childrenJosh Don1-0/+34
2023-07-11cgroup: put cgroup_tryget_css() inside CONFIG_CGROUP_SCHEDMiaohe Lin1-22/+22
2023-07-10cgroup: fix obsolete comment above for_each_css()Miaohe Lin1-1/+1
2023-07-10cgroup: minor cleanup for cgroup_extra_stat_show()Miaohe Lin1-4/+5
2023-07-10cgroup: remove unneeded return value of cgroup_rm_cftypes_locked()Miaohe Lin1-6/+3
2023-07-10sched/psi: use kernfs polling functions for PSI trigger pollingSuren Baghdasaryan1-1/+1
2023-06-27Merge tag 'cgroup-for-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-62/+10
2023-06-27Merge tag 'sched-core-2023-06-27' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-0/+12
2023-06-22Revert "cgroup: Avoid -Wstringop-overflow warnings"Tejun Heo1-6/+0
2023-06-21cgroup: Avoid -Wstringop-overflow warningsGustavo A. R. Silva1-0/+6
2023-06-21cgroup: remove obsolete comment on cgroup_on_dfl()Miaohe Lin1-2/+0
2023-06-12cgroup: Do not corrupt task iteration when rebinding subsystemXiu Jianfeng1-3/+17
2023-06-12cgroup: remove unused task_cgroup_path()Miaohe Lin1-39/+0
2023-06-05cgroup: make cgroup_is_threaded() and cgroup_is_thread_root() staticMiaohe Lin1-2/+2
2023-06-05cgroup: Replace the css_set call with cgroup_getGaosheng Cui1-1/+1
2023-06-05cgroup: remove unused macro for_each_e_css()Miaohe Lin1-15/+0
2023-05-24cgroup: Update out-of-date comment in cgroup_migrate()Xiu Jianfeng1-3/+3
2023-05-22cgroup: always put cset in cgroup_css_set_put_forkJohn Sperbeck1-9/+8
2023-05-08sched/cpuset: Keep track of SCHED_DEADLINE task in cpusetsJuri Lelli1-0/+4
2023-05-08psi: remove 500ms min window size limitation for triggersSuren Baghdasaryan1-0/+12
2023-04-29Merge tag 'cgroup-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-30/+30
2023-04-28Merge tag 'sched-core-2023-04-27' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2023-04-26Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-2/+12
2023-04-20cgroup_get_from_fd(): switch to fdget_raw()Al Viro1-6/+4
2023-04-05sched/psi: Allow unprivileged polling of N*2s periodDomenico Cerasuolo1-1/+1
2023-03-17cgroup: bpf: use cgroup_lock()/cgroup_unlock() wrappersKamalesh Babulal1-30/+30
2023-03-14cgroup: Make current_cgns_cgroup_dfl() safe to call after exit_task_namespace()Tejun Heo1-2/+12
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-1/+1
2022-12-13Merge tag 'net-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-0/+1
2022-12-12Merge tag 'cgroup-for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-2/+6
2022-11-23cgroup: remove rcu_read_lock()/rcu_read_unlock() in critical section of spin_...Ran Tian1-2/+0
2022-11-02Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-0/+1
2022-10-31cgroup: cgroup refcnt functions should be exported when CONFIG_DEBUG_CGROUP_REFTejun Heo1-0/+1
2022-10-28cgroup: Implement DEBUG_CGROUP_REFTejun Heo1-0/+5
2022-10-25bpf: Implement cgroup storage available to non-cgroup-attached bpf progsYonghong Song1-0/+1
2022-10-17Merge tag 'cgroup-for-6.1-rc1-fixes' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-20/+79
2022-10-14Merge tag 'sched-psi-2022-10-14' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-9/+95
2022-10-11mm: cgroup: fix comments for get from fd/file helpersYosry Ahmed1-1/+3
2022-10-11cgroup: add cgroup_v1v2_get_from_[fd/file]()Yosry Ahmed1-6/+44
2022-10-10Revert "cgroup: enable cgroup_get_from_file() on cgroup1"Tejun Heo1-0/+5
2022-10-10cgroup: Reorganize css_set_lock and kernfs path processingMichal Koutný1-13/+27
2022-10-10Merge tag 'cgroup-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-55/+90
2022-10-07Merge tag 'driver-core-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+20
2022-09-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+4
2022-09-23cgroup: use strscpy() is more robust and saferye xingchen1-1/+1
2022-09-23cgroup: simplify code in cgroup_apply_controlWilliam Dean1-5/+1
2022-09-23cgroup: Make cgroup_get_from_id() prettierTejun Heo1-9/+10
2022-09-23Merge branch 'for-6.0-fixes' into for-6.1Tejun Heo1-0/+4
2022-09-23cgroup: cgroup_get_from_id() must check the looked-up kn is a directoryMing Lei1-1/+4
2022-09-12Merge 6.0-rc5 into driver-core-nextGreg Kroah-Hartman1-24/+56
2022-09-09sched/psi: Per-cgroup PSI accounting disable/re-enable interfaceChengming Zhou1-6/+64
2022-09-09sched/psi: Consolidate cgroup_psi()Chengming Zhou1-5/+5
2022-09-09sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressureChengming Zhou1-0/+27
2022-09-09sched/psi: Don't create cgroup PSI files when psi_disabledChengming Zhou1-0/+3
2022-09-09Merge branch 'driver-core/driver-core-next'Peter Zijlstra1-0/+20
2022-09-06cgroup: Remove CFTYPE_PRESSURETejun Heo1-27/+37
2022-09-06cgroup: Improve cftype add/rm error handlingTejun Heo1-7/+20
2022-09-04cgroup: Remove data-race around cgrp_dfl_visibleTejun Heo1-2/+2
2022-09-01cgroup: Implement cgroup_file_show()Tejun Heo1-0/+20
2022-08-26cgroup: Use cgroup_attach_{lock,unlock}() from cgroup_attach_task_all()Tetsuo Handa1-2/+2
2022-08-26Merge branch 'for-6.0-fixes' into for-6.1Tejun Heo1-24/+56
2022-08-26cgroup: Homogenize cgroup_get_from_id() return valueMichal Koutný1-2/+2
2022-08-26cgroup: cgroup: Honor caller's cgroup NS when resolving cgroup idMichal Koutný1-2/+13
2022-08-26cgroup: Honor caller's cgroup NS when resolving pathMichal Koutný1-1/+5
2022-08-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-24/+56
2022-08-23cgroup: Fix race condition at rebind_subsystems()Jing-Ting Wu1-0/+1
2022-08-17cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlockTejun Heo1-23/+54
2022-08-15sched/psi: Remove unused parameter nbytes of psi_trigger_create()Hao Jia1-1/+1
2022-08-15cgroup: Replace cgroup->ancestor_ids[] with ->ancestors[]Tejun Heo1-4/+3
2022-08-09cgroup: enable cgroup_get_from_file() on cgroup1Yosry Ahmed1-5/+0
2022-08-03Merge tag 'cgroup-for-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-51/+85
2022-07-28cgroup: Skip subtree root in cgroup_update_dfl_csses()Waiman Long1-0/+9
2022-07-27cgroup: remove "no" prefixed mount optionsTejun Heo1-20/+4
2022-07-23cgroup: Make !percpu threadgroup_rwsem operations optionalTejun Heo1-7/+36
2022-07-22cgroup: Add "no" prefixed mount optionsTejun Heo1-5/+15
2022-07-22cgroup: Elide write-locking threadgroup_rwsem when updating csses on an empty...Tejun Heo1-3/+13
2022-06-27cgroup.c: remove redundant check for mixable cgroup in cgroup_migrate_vet_dstLin Feng1-4/+0
2022-06-16cgroup: Use separate src/dst nodes when preloading css_sets for migrationTejun Heo1-14/+23
2022-06-16cgroup.c: add helper __cset_cgroup_from_root to cleanup duplicated codesLin Feng1-31/+27
2022-06-07psi: dont alloc memory for psi by defaultChen Wandun1-4/+4
2022-05-19cgroup: remove the superfluous judgmentShida Zhang1-1/+1
2022-05-18cgroup: Make cgroup_debug staticXiu Jianfeng1-1/+1
2022-03-28Merge tag 'driver-core-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+2
2022-03-23Merge branch 'for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-0/+2
2022-02-28Merge 5.17-rc6 into driver-core-nextGreg Kroah-Hartman1-3/+22
2022-02-23kernfs: move struct kernfs_root out of the public view.Greg Kroah-Hartman1-2/+2
2022-02-22Merge branch 'for-5.17-fixes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+14
2022-02-22cgroup: clarify cgroup_css_set_fork()Christian Brauner1-0/+14
2022-01-18psi: Fix uaf issue when psi trigger is destroyed while being polledSuren Baghdasaryan1-3/+8
2022-01-12cgroup: Fix cgroup_can_fork() and cgroup_post_fork() kernel-doc commentYang Li1-0/+2
2022-01-11Merge branch 'for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-3/+3
2022-01-10Merge tag '5.17-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-0/+1
2022-01-06cgroup: Use open-time cgroup namespace for process migration perm checksTejun Heo1-9/+19
2022-01-06cgroup: Allocate cgroup_file_ctx for kernfs_open_file->privTejun Heo1-19/+34
2022-01-06cgroup: Use open-time credentials for process migraton perm checksTejun Heo1-1/+8
2021-12-16add missing bpf-cgroup.h includesJakub Kicinski1-0/+1
2021-12-14cgroup: return early if it is already on preloaded listWei Yang1-2/+2
2021-11-29cgroup: get the wrong css for css_alloc() during cgroup_init_subsys()Wei Yang1-1/+1
2021-11-02Merge branch 'for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-64/+56
2021-11-01cgroup: bpf: Move wrapper for __cgroup_bpf_*() to kernel/bpf/cgroup.cHe Fengqing1-38/+0
2021-10-25cgroup: reduce dependency on cgroup_mutexShakeel Butt1-22/+29
2021-10-22cgroup: Fix memory leak caused by missing cgroup_bpf_offlineQuanyang Wang1-1/+3
2021-09-28bpf, cgroup: Assign cgroup in cgroup_sk_alloc when called from interruptDaniel Borkmann1-5/+12
2021-09-20cgroup: Make rebind_subsystems() disable v2 controllers all at onceWaiman Long1-4/+27
2021-09-13bpf, cgroups: Fix cgroup v2 fallback on v1/v2 mixed modeDaniel Borkmann1-40/+10
2021-08-30cgroup: Avoid compiler warnings with no subsystemsKees Cook1-6/+20
2021-07-16cgroup: remove cgroup_mount from commentszhaoxiaoqiang111-1/+0
2021-07-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-0/+25
2021-07-01Merge branch 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-16/+164
2021-06-29loop: charge i/o to mem and blk cgDan Schatzberg1-0/+1
2021-06-10scsi: cgroup: Add cgroup_get_from_id()Muneendra Kumar1-0/+26
2021-06-08cgroup: make per-cgroup pressure stall tracking configurableSuren Baghdasaryan1-0/+48
2021-06-04cgroup: Fix kernel-docYang Li1-1/+1
2021-05-24Merge branch 'for-5.13-fixes' into for-5.14Tejun Heo1-12/+9
2021-05-24cgroup: fix spelling mistakesZhen Lei1-4/+4
2021-05-20cgroup: disable controllers at parse timeShakeel Butt1-8/+5
2021-05-10cgroup: inline cgroup_task_freeze()Roman Gushchin1-1/+2
2021-05-10cgroup: introduce cgroup.killChristian Brauner1-14/+113
2021-04-30cgroup: rstat: support cgroup1Johannes Weiner1-13/+21
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2021-02-22Merge branch 'for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-41/+14
2021-01-24namei: make permission helpers idmapped mount awareChristian Brauner1-1/+1
2021-01-19cgroup: fix psi monitor for root cgroupOdin Ugedal1-1/+3
2021-01-15cgroup: cgroup.{procs,threads} factor out common partsMichal Koutný1-41/+14
2020-12-28Merge branch 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-15/+15
2020-12-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-12/+0
2020-12-15cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchyRoman Gushchin1-7/+0
2020-12-15mm: memcg: deprecate the non-hierarchical modeRoman Gushchin1-5/+0
2020-12-14Merge tag 'fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brau...Linus Torvalds1-1/+1
2020-11-25cgroup/cgroup.c: replace 'of->kn->priv' with of_cft()Hui Su1-4/+4
2020-11-25kernel: cgroup: Mundane spelling fixes throughout the fileBhaskar Chowdhury1-11/+11
2020-09-30cgroup: Zero sized write should be no-opJouni Roivas1-0/+3
2020-09-30cgroup: remove redundant kernfs_activate in cgroup_setup_root()Wei Yang1-1/+0
2020-08-19cgroup: Use generic ns_common::countKirill Tkhai1-1/+1
2020-07-07cgroup: fix cgroup_sk_alloc() for sk_clone_lock()Cong Wang1-12/+19
2020-06-06Merge branch 'for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-9/+1
2020-05-28cgroup: add cpu.stat file to root cgroupBoris Burkov1-1/+0
2020-05-26cgroup: Remove stale commentsZefan Li1-8/+1
2020-04-28bpf: Refactor bpf_link update handlingAndrii Nakryiko1-27/+0
2020-04-03Merge branch 'for-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-91/+270
2020-04-02mm: memcontrol: recursive memory.low protectionJohannes Weiner1-1/+16
2020-03-30bpf: Implement bpf_prog replacement for an active bpf_cgroup_linkAndrii Nakryiko1-0/+27
2020-03-30bpf: Implement bpf_link-based cgroup BPF program attachmentAndrii Nakryiko1-5/+9
2020-03-16cgroupfs: Support user xattrsDaniel Xu1-1/+2
2020-03-12Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netLinus Torvalds1-0/+4
2020-03-12Merge branch 'for-5.6-fixes' into for-5.7Tejun Heo1-3/+3
2020-03-10cgroup: memcg: net: do not associate sock with unrelated cgroupShakeel Butt1-0/+4
2020-03-04cgroup: fix psi_show() crash on 32bit ino archsQian Cai1-3/+3
2020-02-12clone3: allow spawning processes into cgroupsChristian Brauner1-23/+168
2020-02-12cgroup: add cgroup_may_write() helperChristian Brauner1-7/+17
2020-02-12cgroup: refactor fork helpersChristian Brauner1-18/+26
2020-02-12cgroup: add cgroup_get_from_file() helperChristian Brauner1-11/+19
2020-02-12cgroup: unify attach permission checkingChristian Brauner1-14/+25
2020-02-12cgroup.c: Use built-in RCU list checkingMadhuparna Bhowmik1-1/+2
2020-02-12cgroup: Clean up css_set task traversalMichal Koutný1-33/+28
2020-02-12cgroup: Iterate tasks that did not finish do_exit()Michal Koutný1-7/+16
2020-02-12cgroup: cgroup_procs_next should increase position indexVasily Averin1-3/+7
2020-02-10Merge branch 'for-5.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-5/+8
2020-02-08Merge branch 'merge.nfs-fs_parse.1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-9/+4
2020-02-07fs_parse: fold fs_parameter_desc/fs_parameter_specAl Viro1-8/+4
2020-02-07fs_parser: remove fs_parameter_description name fieldEric Sandeen1-1/+0
2020-01-30cgroup: init_tasks shouldn't be linked to the root cgroupTejun Heo1-5/+8
2020-01-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-2/+3
2020-01-15cgroup: Prevent double killing of css when enabling threaded cgroupMichal Koutný1-5/+6
2019-12-19bpf: Support replacing cgroup-bpf program in MULTI modeAndrey Ignatov1-2/+3
2019-11-25Merge branch 'for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-223/+102
2019-11-14cgroup: fix incorrect WARN_ON_ONCE() in cgroup_setup_root()Tejun Heo1-1/+1
2019-11-12cgroup: use cgrp->kn->id as the cgroup IDTejun Heo1-51/+25
2019-11-12kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id()Tejun Heo1-1/+1
2019-11-12kernfs: convert kernfs_node->id from union kernfs_node_id to u64Tejun Heo1-2/+1
2019-11-10cgroup: don't put ERR_PTR() into fc->rootAl Viro1-2/+3