cgroup changes for v4.11-rc2
Subsystems (2)
Tejun Heo
maintainerHello, Linus.
Three cgroup fixes. Nothing critical.
* The pids controller could trigger suspicious RCU warning spuriously. Fixed.
* In the debug controller, %p -> %pK to protect kernel pointer from getting exposed.
* Documentation formatting fix.
Thanks.
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201:
Linux 4.11-rc1 (2017-03-05 12:59:56 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.11-fixes
for you to fetch changes up to b6a6759daf55dade2b65089957832759d502acfb:
cgroups: censor kernel pointer in debug files (2017-03-06 15:16:03 -0500)
----------------------------------------------------------------
Kees Cook (1):
cgroups: censor kernel pointer in debug files
Tejun Heo (1):
cgroup/pids: remove spurious suspicious RCU usage warning
Tobias Klauser (1):
cgroup: Fix indenting in PID controller documentation
Documentation/cgroup-v2.txt | 11 ++++++----- kernel/cgroup/cgroup-v1.c | 2 +- kernel/cgroup/pids.c | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-)
Documentation/cgroup-v2.txt +6 -5
@@ -1142,16 +1142,17 @@ used by the kernel. pids.max - A read-write single value file which exists on non-root cgroups. The - default is "max". + A read-write single value file which exists on non-root + cgroups. The default is "max". - Hard limit of number of processes. + Hard limit of number of processes. pids.current - A read-only single value file which exists on all cgroups. + A read-only single value file which exists on all cgroups. - The number of processes currently in the cgroup and its descendants. + The number of processes currently in the cgroup and its + descendants. Organisational operations are not blocked by cgroup policies, so it is possible to have pids.current > pids.max. This can be done by either
kernel/cgroup/cgroup-v1.c +1 -1
@@ -1329,7 +1329,7 @@ static int cgroup_css_links_read(struct seq_file *seq, void *v)struct task_struct *task;int count =0 ; -seq_printf (seq,"css_set %p\n" , cset); +seq_printf (seq,"css_set %pK\n" , cset);list_for_each_entry (task, &cset->tasks, cg_list) {if (count++ >MAX_TASKS_SHOWN_PER_CSS )
kernel/cgroup/pids.c +1 -1
@@ -229,7 +229,7 @@ static int pids_can_fork(struct task_struct *task)/* Only log the first time events_limit is incremented. */ if (atomic64_inc_return (&pids->events_limit) ==1 ) {pr_info ("cgroup: fork rejected by pids controller in " ); -pr_cont_cgroup_path (task_cgroup (current, pids_cgrp_id)); +pr_cont_cgroup_path (css->cgroup);pr_cont ("\n" ); }cgroup_file_notify (&pids->events_file);
Signature · 1 line
tejun