[PATCH v7 0/8] riscv: optimize string functions and add kunit tests
Feng Jiang
jiangfeng at kylinos.cn
Sun Feb 1 17:28:06 PST 2026
On 2026/1/31 17:52, Andy Shevchenko wrote:
> On Fri, Jan 30, 2026 at 09:37:36AM -0800, Kees Cook wrote:
>> On Fri, Jan 30, 2026 at 10:50:10AM +0800, Feng Jiang wrote:
>>> This series provides optimized implementations of strnlen(), strchr(),
>>> and strrchr() for the RISC-V architecture. The strnlen() implementation
>>> is derived from the existing optimized strlen(). For strchr() and
>>> strrchr(), the current versions use simple byte-by-byte assembly logic,
>>> which will serve as a baseline for future Zbb-based optimizations.
>>
>> I'm happy with the Kunit elements here, so unless Andy has other
>> feedback, please feel free to take this via the riscv tree. (Or if riscv
>> maintainers would prefer, I can take it via string.)
>
> I have an impression that I already gave some tag. Why aren't not here?
>
I apologize for the confusion.
In v6, following Kees Cook's suggestion, I introduced a significant change to
the correctness test logic—using vmalloc() and page-boundary alignment to
detect over-reads. Since this part of the code was substantially rewritten,
I felt it was more responsible to drop the previous Acked-by and Tested-by
tags for the affected patches.
I would be very grateful if you could take a quick look at the new test
implementation in v7. If you are satisfied with the changes, I would be
honored to add your tags back.
--
With Best Regards,
Feng Jiang
More information about the linux-riscv
mailing list