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 <[email protected]>
> Cc: Jonathan Corbet <[email protected]>
> Cc: Kees Cook <[email protected]>
> Cc: Andy Lutomirski <[email protected]>
> Cc: Will Drewry <[email protected]>
> Cc: Mark Brown <[email protected]>
> Cc: Brendan Jackman <[email protected]>
> Cc: Hangbin Liu <[email protected]>
> Cc: "Ricardo B. Marliere" <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Closes: 
> https://sashiko.dev/#/patchset/20260813063401.1786548-1-thehajime%40gmail.com
> Signed-off-by: Hajime Tazaki <[email protected]>
> 

Acked-by: David Hildenbrand (Arm) <[email protected]>

-- 
Cheers,

David

Reply via email to