[PATCH v5 1/2] selftests: run tests on nommu architecture
David Hildenbrand (Arm)
david at kernel.org
Mon Oct 12 03:53:08 PDT 2026
On 10/6/26 10:56, Hajime Tazaki wrote:
> Architectures lacking MMU don't support fork(2) syscall and only
> vfork(2) is available with limitations. Thus, we cannot run kselftest
> on nommu architecture as is.
>
> This commit addresses this issue with the following changes:
>
> - Detect NOMMU at runtime from the MmapCopy field in /proc/meminfo
> and avoid timeout, which requires fork(2).
> - Document how to build and run the NOMMU tests, including the procfs
> prerequisite for runtime detection.
>
> Build and run the tests with:
>
> $ make ARCH=um O=build kselftest-all TARGETS=nommu
> $ make ARCH=um O=build kselftest-install TARGETS=nommu
> $ ./build/kselftest/kselftest_install/run_kselftest.sh -p -c nommu
>
> Cc: Shuah Khan <shuah at kernel.org>
> Cc: Jonathan Corbet <corbet at lwn.net>
> Cc: Kees Cook <kees at kernel.org>
> Cc: Andy Lutomirski <luto at amacapital.net>
> Cc: Will Drewry <wad at chromium.org>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Brendan Jackman <brendan.jackman at linux.dev>
> Cc: Hangbin Liu <liuhangbin at gmail.com>
> Cc: "Ricardo B. Marliere" <rbm at suse.com>
> Cc: linux-kselftest at vger.kernel.org
> Cc: linux-um at lists.infradead.org
> Cc: linux-mm at kvack.org
> Cc: linux-doc at vger.kernel.org
> Closes: https://sashiko.dev/#/patchset/20260813063401.1786548-1-thehajime%40gmail.com
> Signed-off-by: Hajime Tazaki <thehajime at gmail.com>
>
Acked-by: David Hildenbrand (Arm) <david at kernel.org>
--
Cheers,
David
More information about the linux-um
mailing list