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: <Z1KR55ggLyTzPys/@visitorckw-System-Product-Name>
Date: Fri, 6 Dec 2024 13:55:51 +0800
From: Kuan-Wei Chiu <visitorckw@...il.com>
To: mengensun88@...il.com
Cc: akpm@...ux-foundation.org, linux@...ssschuh.net,
	joel.granados@...nel.org, avagin@...gle.com,
	linux-kernel@...r.kernel.org, MengEn Sun <mengensun@...cent.com>
Subject: Re: ucounts: Move kfree() out of critical zone protected by
 ucounts_lock

Hi MengEn,

On Fri, Dec 06, 2024 at 12:13:47PM +0800, mengensun88@...il.com wrote:
> From: MengEn Sun <mengensun@...cent.com>
> 
> Although kfree is a non-sleep function, it is possible to enter a
> long chain of calls probabilistically, so it looks better to move
> kfree from alloc_ucounts() out of the critical zone of ucounts_lock.
> 
> Reviewed-by: YueHong Wu <yuehongwu@...cent.com>
> Signed-off-by: MengEn Sun <mengensun@...cent.com>
> ---
>  kernel/ucount.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
It's a common convention to prefix your subject line with [PATCH] to
let others know it's a patch. Additionally, when resending a patch
without changes, consider adding RESEND to the subject line, e.g.,
[PATCH RESEND] ucounts: Move kfree() out of critical zone protected by
ucounts_lock.

See: https://www.kernel.org/doc/html/v6.12/process/submitting-patches.html#include-patch-in-the-subject

Regards,
Kuan-Wei

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ