lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <mknmd2234xviy6lv632hruk2sgc4senbrodlkt4xju6w7lo6zr@l5ky5h4uxddz>
Date: Fri, 9 May 2025 15:35:43 +0200
From: Michal Koutný <mkoutny@...e.com>
To: Joel Savitz <jsavitz@...hat.com>
Cc: linux-kernel@...r.kernel.org, Tejun Heo <tj@...nel.org>, 
	Johannes Weiner <hannes@...xchg.org>, Christian Brauner <brauner@...nel.org>, 
	Al Viro <viro@...iv.linux.org.uk>, cgroups@...r.kernel.org
Subject: Re: [PATCH v2 2/2] include/cgroup: separate {get,put}_cgroup_ns
 no-op case

On Thu, May 08, 2025 at 02:49:30PM -0400, Joel Savitz <jsavitz@...hat.com> wrote:
> When CONFIG_CGROUPS is not selected, {get,put}_cgroup_ns become no-ops
> and therefore it is not necessary to compile in the code for changing
> the reference count.
> 
> When CONFIG_CGROUP is selected, there is no valid case where
> either of {get,put}_cgroup_ns() will be called with a NULL argument.
> 
> Signed-off-by: Joel Savitz <jsavitz@...hat.com>
> ---
>  include/linux/cgroup.h | 26 ++++++++++++++------------
>  1 file changed, 14 insertions(+), 12 deletions(-)

Acked-by: Michal Koutný <mkoutny@...e.com>

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ