From a68add8f78d2cff598d06630782f9dbe94dafafc Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Thu, 22 Aug 2024 12:31:59 +0200 Subject: [PATCH] LTP: set LTP_TAINT_EXPECTED It's needed for runtests: commands, syscalls, kernel_misc. For all tests on o3 only 0x3000 is needed: * Out of tree module was loaded (0x1000, 1 << 12) * Unsigned module was loaded (0x2000, 1 << 13) but we set: 0x13801 * Proprietary module was loaded ( 0x1, 1 << 0) * Workaround for platform firmware bug (0x800, 1 << 11) * Out of tree module was loaded (0x1000, 1 << 12) * Unsigned module was loaded (0x2000, 1 << 13) * Externally supported module was loaded or auxiliary taint (0x10000, 1 << 16) The additional modules might be needed in the future for PPC/s390x drivers (so far it's needed only for SLES, but that may change). Signed-off-by: Petr Vorel --- job_groups/opensuse_tumbleweed_aarch64.yaml | 4 + job_groups/opensuse_tumbleweed_kernel.yaml | 84 +++++++++++++++------ job_groups/opensuse_tumbleweed_riscv64.yaml | 2 + 3 files changed, 69 insertions(+), 21 deletions(-) diff --git a/job_groups/opensuse_tumbleweed_aarch64.yaml b/job_groups/opensuse_tumbleweed_aarch64.yaml index 3b29f53a..de16d426 100644 --- a/job_groups/opensuse_tumbleweed_aarch64.yaml +++ b/job_groups/opensuse_tumbleweed_aarch64.yaml @@ -606,6 +606,8 @@ scenarios: machine: aarch64-HD20G - jeos-ltp-commands: machine: aarch64-HD20G + settings: + LTP_TAINT_EXPECTED: '0x13801' - jeos-ltp-containers: machine: aarch64-HD20G - jeos-ltp-cve: @@ -616,6 +618,8 @@ scenarios: machine: aarch64-HD20G - jeos-ltp-syscalls: machine: aarch64-HD20G + settings: + LTP_TAINT_EXPECTED: '0x13801' - jeos-ltp-syscalls-ipc: machine: aarch64-HD20G - zdup_twjeos2twnext_aarch64: diff --git a/job_groups/opensuse_tumbleweed_kernel.yaml b/job_groups/opensuse_tumbleweed_kernel.yaml index f8cec3a7..4ebe26bf 100644 --- a/job_groups/opensuse_tumbleweed_kernel.yaml +++ b/job_groups/opensuse_tumbleweed_kernel.yaml @@ -61,7 +61,9 @@ scenarios: settings: KOTD_REPO: 'https://download.opensuse.org/repositories/Kernel:/HEAD/ARM/' - ltp_cve_kotd - - ltp_syscalls_kotd + - ltp_syscalls_kotd: + settings: + LTP_TAINT_EXPECTED: '0x13801' - extra_tests_kernel - bpftools - io_uring @@ -76,7 +78,9 @@ scenarios: - ltp_aiodio_part4 - ltp_can - ltp_capability - - ltp_commands + - ltp_commands: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_containers - ltp_controllers - ltp_cpuhotplug @@ -95,7 +99,9 @@ scenarios: - ltp_ima - ltp_input - ltp_ipc - - ltp_kernel_misc + - ltp_kernel_misc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_lvm - ltp_math - ltp_mm @@ -125,8 +131,12 @@ scenarios: priority: 50 - ltp_pty - ltp_sched - - ltp_syscalls - - ltp_syscalls_debug_pagealloc + - ltp_syscalls: + settings: + LTP_TAINT_EXPECTED: '0x13801' + - ltp_syscalls_debug_pagealloc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_syscalls_ipc - ltp_tracing - ltp_uevent @@ -188,7 +198,9 @@ scenarios: i586: opensuse-Tumbleweed-LegacyX86-NET-i586: - install_ltp+opensuse+LegacyX86-NET - - ltp_commands + - ltp_commands: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_crypto - ltp_cve - ltp_ipc @@ -198,14 +210,18 @@ scenarios: - ltp_net_tcp_cmds - ltp_openposix: priority: 50 - - ltp_syscalls + - ltp_syscalls: + settings: + LTP_TAINT_EXPECTED: '0x13801' ppc64le: opensuse-Tumbleweed-DVD-ppc64le: - install_ltp_kotd+opensuse+DVD: settings: KOTD_REPO: 'https://download.opensuse.org/repositories/Kernel:/HEAD/PPC/' - ltp_cve_kotd - - ltp_syscalls_kotd + - ltp_syscalls_kotd: + settings: + LTP_TAINT_EXPECTED: '0x13801' - extra_tests_kernel - bpftools - io_uring @@ -221,7 +237,9 @@ scenarios: - ltp_aiodio_part4 - ltp_can - ltp_capability - - ltp_commands + - ltp_commands: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_containers - ltp_controllers - ltp_cpuhotplug @@ -240,7 +258,9 @@ scenarios: - ltp_ima - ltp_input - ltp_ipc - - ltp_kernel_misc + - ltp_kernel_misc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_lvm - ltp_math - ltp_mm @@ -270,8 +290,12 @@ scenarios: priority: 50 - ltp_pty - ltp_sched - - ltp_syscalls - - ltp_syscalls_debug_pagealloc + - ltp_syscalls: + settings: + LTP_TAINT_EXPECTED: '0x13801' + - ltp_syscalls_debug_pagealloc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_syscalls_ipc - ltp_tracing - ltp_uevent @@ -291,14 +315,20 @@ scenarios: opensuse-Tumbleweed-DVD-s390x: - ltp_controllers - ltp_cve - - ltp_crypto_pty_commands - - ltp_kernel_misc + - ltp_crypto_pty_commands: + settings: + LTP_TAINT_EXPECTED: '0x13801' + - ltp_kernel_misc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_lvm - ltp_net_features - ltp_net_nfs - ltp_net_stress_ipsec_icmp - ltp_net_stress_ipsec_tcp - - ltp_syscalls + - ltp_syscalls: + settings: + LTP_TAINT_EXPECTED: '0x13801' - kernel-live-patching: settings: INSTALL_LTP: '' @@ -306,7 +336,9 @@ scenarios: opensuse-Tumbleweed-DVD-x86_64: - install_ltp_kotd+opensuse+DVD - ltp_cve_kotd - - ltp_syscalls_kotd + - ltp_syscalls_kotd: + settings: + LTP_TAINT_EXPECTED: '0x13801' - extra_tests_kernel - bpftools - io_uring @@ -324,7 +356,9 @@ scenarios: - ltp_aiodio_part4 - ltp_can - ltp_capability - - ltp_commands + - ltp_commands: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_containers - ltp_controllers - ltp_cpuhotplug @@ -344,7 +378,9 @@ scenarios: - ltp_ima - ltp_input - ltp_ipc - - ltp_kernel_misc + - ltp_kernel_misc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_lvm - ltp_math - ltp_mm @@ -376,10 +412,16 @@ scenarios: - ltp_power_management_tests_exclusive - ltp_pty - ltp_sched - - ltp_syscalls - - ltp_syscalls_debug_pagealloc + - ltp_syscalls: + settings: + LTP_TAINT_EXPECTED: '0x13801' + - ltp_syscalls_debug_pagealloc: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_syscalls_ipc - - ltp_syscalls_m32 + - ltp_syscalls_m32: + settings: + LTP_TAINT_EXPECTED: '0x13801' - ltp_tracing - ltp_uevent - ltp_watchqueue diff --git a/job_groups/opensuse_tumbleweed_riscv64.yaml b/job_groups/opensuse_tumbleweed_riscv64.yaml index 80c1c41a..a8e98181 100644 --- a/job_groups/opensuse_tumbleweed_riscv64.yaml +++ b/job_groups/opensuse_tumbleweed_riscv64.yaml @@ -28,6 +28,7 @@ scenarios: - jeos-ltp-commands: settings: EXCLUDE_MODULES: libzypp_config + LTP_TAINT_EXPECTED: '0x13801' - jeos-ltp-containers: settings: EXCLUDE_MODULES: libzypp_config @@ -38,3 +39,4 @@ scenarios: settings: EXCLUDE_MODULES: libzypp_config LTP_ENV: 'TMPDIR=/var/tmp,LTP_TIMEOUT_MUL=2,LTP_RUNTIME_MUL=2' + LTP_TAINT_EXPECTED: '0x13801'