Not to be fixed
Created: Jun 6, 2016
Updated: Jun 16, 2016
Resolved Date: Jun 9, 2016
Found In Version: 8.0
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Test
Some LTP test cases fail with use of the secure kernel.
Some LTP test cases rely on normal functionality in the kernel, which is not secure. Effectively, these test cases use similar functions that attackers might use as part of an attack to compromise the system. The secure kernel provides enhancements to remove this vulnerable behavior from the system, so the LTP test cases that rely on it fail to run on the secure kernel.
Specific failing test cases include (but are not limited to): thp04, dealing with transparent huge pages; process_vm_readv and process_vm_writev, dealing with reading and writing overlapping memory locations and system call argument checking.
To enable the insecure functionality that the tests rely on, you can either use the standard kernel or use the normal menuconfig method of removing the specific PAX features that prevent the test cases from running. This is not recommended.
/lpg-build/cdc/fast_prod/wrlinux80/WRL80_GIT/wrlinux-8/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=secure --enable-rootfs=secure-core --with-layer=/lpg-build/cdc/WASSP_LINUX_80/testcases/wrlinux/wr-testing/ltp --enable-test=yes --enable-internet-download=yes --enable-jobs=32 --enable-parallel-pkgbuilds=32 --enable-reconfig=yes
make
Target:
/opt/ltp/wrLinux_ltp/wr-runltp -f mm
Or
/opt/ltp/wrLinux_ltp/wr-runltp -f mm-s thp04_1