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] [day] [month] [year] [list]
Message-ID: <20260208201047.104667-1-sj@kernel.org>
Date: Sun,  8 Feb 2026 12:10:46 -0800
From: SeongJae Park <sj@...nel.org>
To: Alejandro Colomar <alx@...nel.org>
Cc: SeongJae Park <sj@...nel.org>,
	linux-kernel@...r.kernel.org,
	linux-mm@...ck.org,
	Kees Cook <kees@...nel.org>,
	Christopher Bazley <chris.bazley.wg14@...il.com>,
	Rasmus Villemoes <linux@...musvillemoes.dk>,
	Marco Elver <elver@...gle.com>,
	Michal Hocko <mhocko@...e.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Al Viro <viro@...iv.linux.org.uk>,
	Alexander Potapenko <glider@...gle.com>,
	Dmitry Vyukov <dvyukov@...gle.com>,
	Jann Horn <jannh@...gle.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	"Maciej W. Rozycki" <macro@...am.me.uk>
Subject: Re: [PATCH v6 4/4] mm: Use ARRAY_END() instead of open-coding it

On Thu, 11 Dec 2025 11:44:04 +0100 Alejandro Colomar <alx@...nel.org> wrote:

> There aren't any bugs in this code; it's purely cosmetic.
> 
> By using ARRAY_END(), we prevent future issues, in case the code is
> modified; it has less moving parts.  Also, it should be more readable
> (and perhaps more importantly, greppable), as there are several ways of
> writing an expression that gets the end of an array, which are unified
> by this API name.
> 
> Cc: Kees Cook <kees@...nel.org>
> Cc: Linus Torvalds <torvalds@...ux-foundation.org>
> Signed-off-by: Alejandro Colomar <alx@...nel.org>

Reviewed-by: SeongJae Park <sj@...nel.org>


Thanks,
SJ

[...]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ