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: <aW8zWxjpVMSTFPYM@smile.fi.intel.com>
Date: Tue, 20 Jan 2026 09:48:43 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Feng Jiang <jiangfeng@...inos.cn>
Cc: pjw@...nel.org, palmer@...belt.com, aou@...s.berkeley.edu,
	alex@...ti.fr, akpm@...ux-foundation.org, kees@...nel.org,
	andy@...nel.org, ebiggers@...nel.org, martin.petersen@...cle.com,
	ardb@...nel.org, charlie@...osinc.com, conor.dooley@...rochip.com,
	ajones@...tanamicro.com, linus.walleij@...aro.org,
	nathan@...nel.org, linux-riscv@...ts.infradead.org,
	linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org,
	Joel Stanley <joel@....id.au>
Subject: Re: [PATCH v3 5/8] lib/string_kunit: extend benchmarks to strnlen
 and chr searches

On Tue, Jan 20, 2026 at 02:58:49PM +0800, Feng Jiang wrote:
> Extend the string benchmarking suite to include strnlen(), strchr(),
> and strrchr().
> 
> For character search functions (strchr and strrchr), the benchmark

strchr() and strrchr()

> targets the null terminator. This ensures the entire string is scanned,

NUL character

(Also check terminology everywhere: NULL — is for NULL pointers, NUL is for
 '\0' characters.)

> providing a consistent measure of full-length processing efficiency
> comparable to strlen().

Acked-by: Andy Shevchenko <andy@...nel.org>

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ