Hi Aurelien, > The issue has been reported upstream with a patch [1], but it is still > under review. If you can test it and send a Tested-by: that would help > the patch to get accepted faster.
I tested v4 on QEMU 11.1.1 (riscv64), using a custom-configured kernel built from Debian linux 7.2.6-1 sources and calling the kernel's strnlen() directly. With Zbb enabled, a 63-byte string with count=SIZE_MAX returned 8 before the patch. With v4 applied, the same call correctly returned 63. With count=1000, it returned 63 both before and after the patch. The alignment and word/page-boundary cases I checked also returned the expected results after applying v4. With Zbb disabled, I did not observe incorrect results either before or after the patch. I have sent my TB to the upstream v4 thread. I do not have access to a V100, so I have not verified the reported ACPI boot errors on that hardware. -- Troy Mitchell

