Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1310318

Bug#1148364: riscv64: strnlen() returns a truncated length for very large count, breaking ACPI name resolution (AE_AML_NAME_NOT_FOUND flood at boot)

From Troy Mitchell <me@troy-y.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1148364: riscv64: strnlen() returns a truncated length for very large count, breaking ACPI name resolution (AE_AML_NAME_NOT_FOUND flood at boot)
Date 2026-09-22 08:30 +0200
Message-ID <NG2aR-15gA-1@gated-at.bofh.it> (permalink)
References <NEZ5n-vQv-1@gated-at.bofh.it> <NF01s-wmw-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#1148364: riscv64: strnlen() returns a truncated length for very large count, breaking ACPI name resolution (AE_AML_NAME_NOT_FOUND flood at boot) Aurelien Jarno <aurel32@debian.org> - 2026-09-19 12:00 +0200
  Bug#1148364: riscv64: strnlen() returns a truncated length for very large count, breaking ACPI name resolution (AE_AML_NAME_NOT_FOUND flood at boot) Troy Mitchell <me@troy-y.org> - 2026-09-22 08:30 +0200

csiph-web