All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ovidiu Panait <ovidiu.panait@windriver.com>
Cc: stable@vger.kernel.org, tj@kernel.org, mkoutny@suse.com
Subject: Re: [PATCH 5.10 0/5] cgroup: backports for CVE-2021-4197
Date: Mon, 11 Apr 2022 16:42:12 +0200	[thread overview]
Message-ID: <YlQ+REbLLewnuCBO@kroah.com> (raw)
In-Reply-To: <20220407072135.32441-1-ovidiu.panait@windriver.com>

On Thu, Apr 07, 2022 at 10:21:30AM +0300, Ovidiu Panait wrote:
> CVE-2021-4197 patchset consists of:
> [1] 1756d7994ad8 ("cgroup: Use open-time credentials for process migraton perm checks")
> [2] 0d2b5955b362 ("cgroup: Allocate cgroup_file_ctx for kernfs_open_file->priv")
> [3] e57457641613 ("cgroup: Use open-time cgroup namespace for process migration perm checks")
> [4] b09c2baa5634 ("selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644")
> [5] 613e040e4dc2 ("selftests: cgroup: Test open-time credential usage for migration checks")
> [6] bf35a7879f1d ("selftests: cgroup: Test open-time cgroup namespace usage for migration checks")
> 
> Commits [2] and [3] are already preent in 5.10-stable, this patchset includes
> backports for the other commits.
> 
> Backport summary
> ----------------
> 1756d7994ad8 ("cgroup: Use open-time credentials for process migraton perm checks")
> 	* Refactoring commit da70862efe006 ("cgroup: cgroup.{procs,threads}
> 	  factor out common parts") is not present in kernel versions < 5.12,
> 	  so the original changes to __cgroup_procs_write() had to be applied
> 	  in both cgroup_threads_write() and cgroup_procs_write() functions.
> 
> c2e46f6b3e35 ("selftests/cgroup: Fix build on older distros")
> 	* This extra commit was added to fix the following selftest build
> 	  failure, applies cleanly:
> 	  ...
> 	  cgroup_util.c: In function ‘clone_into_cgroup’:
> 	  group_util.c:343:4: error: ‘struct clone_args’ has no member named ‘cgroup’
> 	  343 |   .cgroup = cgroup_fd,
> 	  |    ^~~~~~
> 
> All other selftest changes are clean cherry-picks.
> 
> Testing
> -------
> The newly introduced selftests (test_cgcore_lesser_euid_open() and
> test_cgcore_lesser_ns_open()) pass with this series applied:
> 
> root@intel-x86-64:~# ./test_core
> ok 1 test_cgcore_internal_process_constraint
> ok 2 test_cgcore_top_down_constraint_enable
> ok 3 test_cgcore_top_down_constraint_disable
> ok 4 test_cgcore_no_internal_process_constraint_os
> ok 5 test_cgcore_parent_becomes_threaded
> ok 6 test_cgcore_invalid_domain
> ok 7 test_cgcore_populated
> ok 8 test_cgcore_proc_migration
> ok 9 test_cgcore_thread_migration
> ok 10 test_cgcore_destroy
> ok 11 test_cgcore_lesser_euid_open
> ok 12 test_cgcore_lesser_ns_open
> 
> 
> Sachin Sant (1):
>   selftests/cgroup: Fix build on older distros
> 
> Tejun Heo (4):
>   cgroup: Use open-time credentials for process migraton perm checks
>   selftests: cgroup: Make cg_create() use 0755 for permission instead of
>     0644
>   selftests: cgroup: Test open-time credential usage for migration
>     checks
>   selftests: cgroup: Test open-time cgroup namespace usage for migration
>     checks
> 
>  kernel/cgroup/cgroup-v1.c                    |   7 +-
>  kernel/cgroup/cgroup.c                       |  17 +-
>  tools/testing/selftests/cgroup/cgroup_util.c |   6 +-
>  tools/testing/selftests/cgroup/test_core.c   | 165 +++++++++++++++++++
>  4 files changed, 188 insertions(+), 7 deletions(-)
> 
> -- 
> 2.25.1
> 

All now queued up, thanks.

greg k-h

      parent reply	other threads:[~2022-04-11 14:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07  7:21 [PATCH 5.10 0/5] cgroup: backports for CVE-2021-4197 Ovidiu Panait
2022-04-07  7:21 ` [PATCH 5.10 1/5] cgroup: Use open-time credentials for process migraton perm checks Ovidiu Panait
2022-04-07  7:21 ` [PATCH 5.10 2/5] selftests/cgroup: Fix build on older distros Ovidiu Panait
2022-04-07  7:21 ` [PATCH 5.10 3/5] selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644 Ovidiu Panait
2022-04-07  7:21 ` [PATCH 5.10 4/5] selftests: cgroup: Test open-time credential usage for migration checks Ovidiu Panait
2022-04-07  7:21 ` [PATCH 5.10 5/5] selftests: cgroup: Test open-time cgroup namespace " Ovidiu Panait
2022-04-11 14:42 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YlQ+REbLLewnuCBO@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=mkoutny@suse.com \
    --cc=ovidiu.panait@windriver.com \
    --cc=stable@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.