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: <71d406fb-9fb1-44a9-912a-7a0d270b9577@web.de>
Date: Mon, 24 Nov 2025 13:50:23 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Kees Cook <kees@...nel.org>, cocci@...ia.fr,
 linux-hardening@...r.kernel.org, linux-mm@...ck.org,
 Julia Lawall <Julia.Lawall@...ia.fr>, Nicolas Palix <nicolas.palix@...g.fr>
Cc: LKML <linux-kernel@...r.kernel.org>, linux-doc@...r.kernel.org,
 llvm@...ts.linux.dev, Alexander Lobakin <aleksander.lobakin@...el.com>,
 Alexander Potapenko <glider@...gle.com>,
 Andrew Morton <akpm@...ux-foundation.org>, Bill Wendling <morbo@...gle.com>,
 Christoph Lameter <cl@...ux.com>, David Rientjes <rientjes@...gle.com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
 "Gustavo A. R. Silva" <gustavoars@...nel.org>,
 Harry Yoo <harry.yoo@...cle.com>, Jakub Kicinski <kuba@...nel.org>,
 Jan Hendrik Farr <kernel@...rr.cc>, Jann Horn <jannh@...gle.com>,
 Jonathan Corbet <corbet@....net>, Joonsoo Kim <iamjoonsoo.kim@....com>,
 Justin Stitt <justinstitt@...gle.com>,
 Linus Torvalds <torvalds@...ux-foundation.org>,
 Marco Elver <elver@...gle.com>, Matthew Wilcox <willy@...radead.org>,
 Miguel Ojeda <ojeda@...nel.org>, Nathan Chancellor <nathan@...nel.org>,
 Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
 Pekka Enberg <penberg@...nel.org>, Peter Zijlstra <peterz@...radead.org>,
 Przemek Kitszel <przemyslaw.kitszel@...el.com>,
 Randy Dunlap <rdunlap@...radead.org>,
 Roman Gushchin <roman.gushchin@...ux.dev>, Sasha Levin <sashal@...nel.org>,
 Tony Ambardar <tony.ambardar@...il.com>,
 Vegard Nossum <vegard.nossum@...cle.com>, Vlastimil Babka <vbabka@...e.cz>,
 Yafang Shao <laoar.shao@...il.com>
Subject: Re: [cocci] [PATCH v5 4/4] coccinelle: Add kmalloc_objs conversion
 script

> Finds and converts sized kmalloc-family of allocations into the
> typed kmalloc_obj-family of allocations.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc7#n94


…
> +++ b/scripts/coccinelle/api/kmalloc_objs.cocci
> @@ -0,0 +1,168 @@
…
> +// Comments:
…

* Please omit such an empty information line.

* Would a field like “Keywords” become helpful?


> +virtual patch

Will additional operation modes become relevant after clarification of implementation details?


…
> +def alloc_array(name):
> +	func = "FAILED_RENAME"
> +	if name == "kmalloc_array":
> +		func = "kmalloc_objs"
…

* I suggest to avoid duplicate variable assignments.

* How do you think about to collaborate with the Python data structure “dictionary”?


…
> +type TYPE;
> +TYPE *P;
> +TYPE INST;
> +expression VAR;
> +expression GFP;
…

Such repetition of SmPL key words can eventually be also avoided.

Regards,
Markus



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ