v3
2026-09-26
让kselftest支持nommu平台 · v3
为 kselftest 增加 nommu 支持,修改 runner 并新增 nommu 下 mmap/mremap 行为测试。
原始补丁链接
子 Patch(3)
1/3
selftests: kselftest: avoid cd - in runner
The kselftest runner currently uses cd - to restore its working directory after running a test. This is not supported by the minimal BusyBox hush shell used by some NOMMU targets. Store the origina
2/3
selftests: run tests on nommu architecture
Architectures lacks MMU doesn’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 w
3/3
selftests/nommu: add nommu mmap and mremap behavior tests
Introduce a kselftest utility to validate memory mapping capabilities under nommu kernels, aligned with Documentation/admin-guide/mm/nommu-mmap.rst. The test implements basic checks into a generic ar