From patchwork Wed Jul 30 05:09:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yiding X-Patchwork-Id: 67675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42E9CC87FCC for ; Wed, 30 Jul 2025 05:09:37 +0000 (UTC) Received: from esa8.hc1455-7.c3s2.iphmx.com (esa8.hc1455-7.c3s2.iphmx.com [139.138.61.253]) by mx.groups.io with SMTP id smtpd.web11.28104.1753852172345868004 for ; Tue, 29 Jul 2025 22:09:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@fujitsu.com header.s=fj2 header.b=HERCiNck; spf=pass (domain: fujitsu.com, ip: 139.138.61.253, mailfrom: liuyd.fnst@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1753852172; x=1785388172; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KOcWQs5nerdHK+HRDu6XH26GpTJ7Sk86O3edVL+LUvI=; b=HERCiNckW6DXlWMdxAC3vTZoXEpcob8O4uOJzRNtBEgzQK1r3Tx64Tgn 4QEdq7vqaADMjzfBdHmIqQzJOIDw2Q1Pz3y0rDHYK3W5U4+APfeU0mfoy AYgOVQ9nyH6184qB7fVC4JJQ3SZgga6K/XPo9QjQDkNFXfpr+n9VKgAGG n1pg/Di5tBKPx9fM+Osz+PLwdF31/UqXoh1y4KDScoeM0oI+3EzohSMo0 1CZlP0foE1koBvBLySZOSVMMKNEu69iU7nTmuEUeuxXVM9B++FSlTMBTH 7PyVGfN66rZCgbgwD3yHCMizgacih4DqsZrDUD+oYaGOim1Ko+Tdhb3EJ Q==; X-CSE-ConnectionGUID: 1wLmU/A+THaMOzp5e5QpYw== X-CSE-MsgGUID: //wmUCZCTK+CS+VtxlW6Cw== X-IronPort-AV: E=McAfee;i="6800,10657,11506"; a="195838257" X-IronPort-AV: E=Sophos;i="6.16,350,1744038000"; d="scan'208";a="195838257" Received: from unknown (HELO az2nlsmgr3.o.css.fujitsu.com) ([20.61.8.234]) by esa8.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2025 14:09:30 +0900 Received: from az2nlsmgm1.o.css.fujitsu.com (unknown [10.150.26.203]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2nlsmgr3.o.css.fujitsu.com (Postfix) with ESMTPS id 77E2B1000366 for ; Wed, 30 Jul 2025 05:09:30 +0000 (UTC) Received: from edo.cn.fujitsu.com (edo.cn.fujitsu.com [10.167.33.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2nlsmgm1.o.css.fujitsu.com (Postfix) with ESMTPS id DBA4EC0424F for ; Wed, 30 Jul 2025 05:09:29 +0000 (UTC) Received: from G08FNSTD190088.g08.fujitsu.local (unknown [10.193.129.116]) by edo.cn.fujitsu.com (Postfix) with ESMTP id 67C671A0071; Wed, 30 Jul 2025 13:09:26 +0800 (CST) From: Liu Yiding To: Ross Burton Cc: Mathieu Dubois-Briand , openembedded-core@lists.openembedded.org, Liu Yiding Subject: [OE-core] [PATCH v3 1/2] ltp: upgrade 20250130 -> 20250530 Date: Wed, 30 Jul 2025 13:09:16 +0800 Message-ID: <20250730050918.393-1-liuyd.fnst@fujitsu.com> X-Mailer: git-send-email 2.49.0.windows.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 30 Jul 2025 05:09:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/221100 Changelog: https://github.com/linux-test-project/ltp/releases/tag/20250530 Signed-off-by: Liu Yiding --- ...-__clear_cache-declaration-for-clang.patch | 6 +- ...001-Remove-OOM-tests-from-runtest-mm.patch | 8 +-- ...cve-2015-3290-Disable-AVX-for-x86_64.patch | 42 ----------- ...01-kernel-kvm-don-t-hardcode-objcopy.patch | 69 ------------------- .../ltp/{ltp_20250130.bb => ltp_20250530.bb} | 4 +- 5 files changed, 8 insertions(+), 121 deletions(-) delete mode 100644 meta/recipes-extended/ltp/ltp/0001-cve-2015-3290-Disable-AVX-for-x86_64.patch delete mode 100644 meta/recipes-extended/ltp/ltp/0001-kernel-kvm-don-t-hardcode-objcopy.patch rename meta/recipes-extended/ltp/{ltp_20250130.bb => ltp_20250530.bb} (97%) diff --git a/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch b/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch index ade6a52b63..c95d7220cd 100644 --- a/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch +++ b/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch @@ -1,4 +1,4 @@ -From 2d384f268791ecd5ff0f26c8137dd4de0a1c4566 Mon Sep 17 00:00:00 2001 +From 859d27dd6dfc6e9d26ae9a05f4b32ac45b911887 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 10 Jun 2024 22:52:56 -0700 Subject: [PATCH] Add __clear_cache declaration for clang @@ -19,10 +19,10 @@ Cc: Hui Min Mina Chou 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c -index a84ba6476..856e22ff3 100644 +index 1dde9e87b..6a6f5fe5e 100644 --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c -@@ -21,6 +21,7 @@ +@@ -19,6 +19,7 @@ #if defined(__clang__) #pragma clang optimize off diff --git a/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch b/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch index 5b6c780bec..936e23ebda 100644 --- a/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch +++ b/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch @@ -1,4 +1,4 @@ -From 768159aa53257d247645a12518778f50b8fdf578 Mon Sep 17 00:00:00 2001 +From 7096737fbbe19d0765f0a8c62ef7667bf4875780 Mon Sep 17 00:00:00 2001 From: "Mingde (Matthew) Zeng" Date: Wed, 29 Jul 2020 08:47:09 -0400 Subject: [PATCH] Remove OOM tests from runtest/mm @@ -14,12 +14,12 @@ Signed-off-by: Petr Vorel 1 file changed, 6 deletions(-) diff --git a/runtest/mm b/runtest/mm -index 6a8cd0b9d..8ce3f4416 100644 +index 5566a7742..8014d509b 100644 --- a/runtest/mm +++ b/runtest/mm -@@ -76,12 +76,6 @@ ksm07 ksm07 - +@@ -70,12 +70,6 @@ ksm07 ksm07 cpuset01 cpuset01 + cpuset02 cpuset02 -oom01 oom01 -oom02 oom02 diff --git a/meta/recipes-extended/ltp/ltp/0001-cve-2015-3290-Disable-AVX-for-x86_64.patch b/meta/recipes-extended/ltp/ltp/0001-cve-2015-3290-Disable-AVX-for-x86_64.patch deleted file mode 100644 index c6fae88eb9..0000000000 --- a/meta/recipes-extended/ltp/ltp/0001-cve-2015-3290-Disable-AVX-for-x86_64.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 28d823a63ee29f5d72c2aba781a06a7e2651cadc Mon Sep 17 00:00:00 2001 -From: Siddhesh Poyarekar -Date: Mon, 7 Apr 2025 06:24:47 -0400 -Subject: [PATCH] cve-2015-3290: Disable AVX for x86_64 - -When the input compiler enables AVX, stack realignment requirements -causes gcc to fail to omit %rbp use, due to which the test fails to -clobber %rbp in inline asm. Disable AVX to build the test on x86_64 so -that the test continues working. - -Link: https://lore.kernel.org/ltp/20250407102448.2605506-2-siddhesh@gotplt.org/ - -Upstream-Status: Backport [https://github.com/linux-test-project/ltp/commit/28d823a63ee29f5d72c2aba781a06a7e2651cadc] - -Reviewed-by: Martin Doucha -Reviewed-by: Petr Vorel -Signed-off-by: Siddhesh Poyarekar - ---- - testcases/cve/Makefile | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/testcases/cve/Makefile b/testcases/cve/Makefile -index 01b9b9ccb..98c38e908 100644 ---- a/testcases/cve/Makefile -+++ b/testcases/cve/Makefile -@@ -22,6 +22,12 @@ ifneq (,$(filter $(HOST_CPU),x86 x86_64)) - meltdown: CFLAGS += -msse2 - endif - -+# The test needs to clobber %rbp, which requires frame pointer omission. Also -+# for x86_64, disable AVX since that could sometimes require a stack -+# realignment, which gets in the way of frame pointer omission. - cve-2015-3290: CFLAGS += -pthread -fomit-frame-pointer -+ifeq ($(HOST_CPU),x86_64) -+cve-2015-3290: CFLAGS += -mno-avx -+endif - - include $(top_srcdir)/include/mk/generic_leaf_target.mk --- -2.37.3 - diff --git a/meta/recipes-extended/ltp/ltp/0001-kernel-kvm-don-t-hardcode-objcopy.patch b/meta/recipes-extended/ltp/ltp/0001-kernel-kvm-don-t-hardcode-objcopy.patch deleted file mode 100644 index 256c8eaa34..0000000000 --- a/meta/recipes-extended/ltp/ltp/0001-kernel-kvm-don-t-hardcode-objcopy.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 0a42a8ee0ae8c6f1e603c1836b7c9c7fab0ca3a8 Mon Sep 17 00:00:00 2001 -From: Ross Burton -Date: Thu, 27 Feb 2025 12:38:50 +0000 -Subject: [PATCH] kernel/kvm: don't hardcode objcopy - -testcases/kernel/kvm uses objcopy to contruct a payload binary, but in -cross builds the host objcopy may not know how to handle target -binaries: - - CC testcases/kernel/kvm/lib_host.o - objcopy: Unable to recognise the format of the input file `kvm_svm03-payload.elf' - make[3]: *** [ltp/testcases/kernel/kvm/Makefile:67: kvm_svm03-payload.o] Error 1 - -This is trivially fixed by searching for an objcopy tool (so -host-prefixed in cross builds) and using that instead. - -Upstream-Status: Backport [a3942c0a5f9b4463e8320e80cd8522a2e008bfd2] -Signed-off-by: Ross Burton ---- - configure.ac | 1 + - include/mk/config.mk.in | 1 + - testcases/kernel/kvm/Makefile | 4 ++-- - 3 files changed, 4 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 344b2ae2c..0f2b6f332 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -30,6 +30,7 @@ AC_PROG_RANLIB - AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)]) - AC_PROG_STRIP - AC_PROG_YACC -+AC_CHECK_TOOL([OBJCOPY], [objcopy], [:]) - - m4_ifndef([PKG_CHECK_EXISTS], - [m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])]) -diff --git a/include/mk/config.mk.in b/include/mk/config.mk.in -index 2b7c8a071..4c3da304f 100644 ---- a/include/mk/config.mk.in -+++ b/include/mk/config.mk.in -@@ -11,6 +11,7 @@ AR := @AR@ - CC := @CC@ - LEX := @LEX@ - RANLIB := @RANLIB@ -+OBJCOPY := @OBJCOPY@ - STRIP := @STRIP@ - YACC := @YACC@ - -diff --git a/testcases/kernel/kvm/Makefile b/testcases/kernel/kvm/Makefile -index 07bdd9705..e93528a33 100644 ---- a/testcases/kernel/kvm/Makefile -+++ b/testcases/kernel/kvm/Makefile -@@ -60,11 +60,11 @@ include $(top_srcdir)/include/mk/generic_leaf_target.mk - %-payload.o: %.c lib_guest.o $(ARCH_OBJ) - ifdef VERBOSE - $(CC) $(GUEST_CPPFLAGS) $(GUEST_CFLAGS) $(GUEST_LDFLAGS) -o $*-payload.elf $^ $(GUEST_LDLIBS) -- objcopy -O binary -j .init.boot -j .text -j .data -j .init -j .preinit_array -j .init_array --gap-fill=0 $*-payload.elf $*-payload.bin -+ $(OBJCOPY) -O binary -j .init.boot -j .text -j .data -j .init -j .preinit_array -j .init_array --gap-fill=0 $*-payload.elf $*-payload.bin - $(KVM_LD) -z noexecstack -r -T $(abs_srcdir)/linker/payload.lds --oformat=$(BIN_FORMAT) -o $@ $*-payload.bin - else - @$(CC) $(GUEST_CPPFLAGS) $(GUEST_CFLAGS) $(GUEST_LDFLAGS) -o $*-payload.elf $^ $(GUEST_LDLIBS) -- @objcopy -O binary -j .init.boot -j .text -j .data -j .init -j .preinit_array -j .init_array --gap-fill=0 $*-payload.elf $*-payload.bin -+ @$(OBJCOPY) -O binary -j .init.boot -j .text -j .data -j .init -j .preinit_array -j .init_array --gap-fill=0 $*-payload.elf $*-payload.bin - @$(KVM_LD) -z noexecstack -r -T $(abs_srcdir)/linker/payload.lds --oformat=$(BIN_FORMAT) -o $@ $*-payload.bin - @echo KVM_CC $(target_rel_dir)$@ - endif --- -2.43.0 - diff --git a/meta/recipes-extended/ltp/ltp_20250130.bb b/meta/recipes-extended/ltp/ltp_20250530.bb similarity index 97% rename from meta/recipes-extended/ltp/ltp_20250130.bb rename to meta/recipes-extended/ltp/ltp_20250530.bb index 8de13c6000..9ea5de10ee 100644 --- a/meta/recipes-extended/ltp/ltp_20250130.bb +++ b/meta/recipes-extended/ltp/ltp_20250530.bb @@ -24,13 +24,11 @@ TUNE_CCARGS:remove:x86-64 = "-mfpmath=sse" CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__" CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" -SRCREV = "a7c31dff7edc089a32e990765e12952cc4d7666a" +SRCREV = "14331e1ecfcd63426c9d270d88b7bad9f60c6d64" SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ file://0001-Remove-OOM-tests-from-runtest-mm.patch \ file://0001-Add-__clear_cache-declaration-for-clang.patch \ - file://0001-kernel-kvm-don-t-hardcode-objcopy.patch \ - file://0001-cve-2015-3290-Disable-AVX-for-x86_64.patch \ file://0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch \ " From patchwork Wed Jul 30 05:09:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yiding X-Patchwork-Id: 67674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 419DBC87FC9 for ; Wed, 30 Jul 2025 05:09:37 +0000 (UTC) Received: from esa10.hc1455-7.c3s2.iphmx.com (esa10.hc1455-7.c3s2.iphmx.com [139.138.36.225]) by mx.groups.io with SMTP id smtpd.web10.28078.1753852172535830704 for ; Tue, 29 Jul 2025 22:09:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@fujitsu.com header.s=fj2 header.b=Jt0/ry1X; spf=pass (domain: fujitsu.com, ip: 139.138.36.225, mailfrom: liuyd.fnst@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1753852172; x=1785388172; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sK5geDHhz8/9pe+lEhCKXn1M/BPmT/RG0eN1WyHX4nA=; b=Jt0/ry1XqbSkMBPa6xrxPHSTZ4RLoC0wkTlP82x8L7nDwDwOjSzHM0jC 13eBwOskhZz3JmRS/NuEgSCJ8ntNjJ1Ku9j/h/97NDdjU8gKDxugI3xR7 SeGYOuxtDoCBpcph4c50SrHjk+p14XyzWBA5dF3FiBHLbyJlkyF3sIigq hZNl/DZC/248+FlXEh28/4UVH5f2bzNOsCw8lsAJ5DiOelkUY0wizaiDF CnvXIkEqpoOedpJ7L+C3mrcFGC7YIrHUhE8MwUZ96JS2eX0mQYKxZIc74 y9KeTnovhDEMkVVOI84Xk1we9y+Niin69VWO1zPKiIU9yYKO0BJm8RYrh w==; X-CSE-ConnectionGUID: cxKk6cO4Qmu7Tbi8PKWalw== X-CSE-MsgGUID: LKYqLBUyTkyEJ7avTgWXoQ== X-IronPort-AV: E=McAfee;i="6800,10657,11506"; a="195275986" X-IronPort-AV: E=Sophos;i="6.16,350,1744038000"; d="scan'208";a="195275986" Received: from unknown (HELO az2nlsmgr2.o.css.fujitsu.com) ([20.61.8.234]) by esa10.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2025 14:09:31 +0900 Received: from az2nlsmgm1.o.css.fujitsu.com (unknown [10.150.26.203]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2nlsmgr2.o.css.fujitsu.com (Postfix) with ESMTPS id CE63048E for ; Wed, 30 Jul 2025 05:09:30 +0000 (UTC) Received: from edo.cn.fujitsu.com (edo.cn.fujitsu.com [10.167.33.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2nlsmgm1.o.css.fujitsu.com (Postfix) with ESMTPS id 3FB8BC04253 for ; Wed, 30 Jul 2025 05:09:30 +0000 (UTC) Received: from G08FNSTD190088.g08.fujitsu.local (unknown [10.193.129.116]) by edo.cn.fujitsu.com (Postfix) with ESMTP id 2E9E91A0074; Wed, 30 Jul 2025 13:09:27 +0800 (CST) From: Liu Yiding To: Ross Burton Cc: Mathieu Dubois-Briand , openembedded-core@lists.openembedded.org, Liu Yiding Subject: [OE-core] [PATCH v3 2/2] oeqa/runtime/ltp: Drop ipc that is moved into syscalls in new version Date: Wed, 30 Jul 2025 13:09:17 +0800 Message-ID: <20250730050918.393-2-liuyd.fnst@fujitsu.com> X-Mailer: git-send-email 2.49.0.windows.1 In-Reply-To: <20250730050918.393-1-liuyd.fnst@fujitsu.com> References: <20250730050918.393-1-liuyd.fnst@fujitsu.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 30 Jul 2025 05:09:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/221101 ipc has been moved into syscalls upstream commit: https://github.com/linux-test-project/ltp/commit/80fd2d673bc0fd8514190a061219c24933b6f03f Signed-off-by: Liu Yiding --- meta/lib/oeqa/runtime/cases/ltp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/runtime/cases/ltp.py b/meta/lib/oeqa/runtime/cases/ltp.py index e81360670c..0ffdbe23e4 100644 --- a/meta/lib/oeqa/runtime/cases/ltp.py +++ b/meta/lib/oeqa/runtime/cases/ltp.py @@ -57,7 +57,7 @@ class LtpTestBase(OERuntimeTestCase): class LtpTest(LtpTestBase): - ltp_groups = ["math", "syscalls", "dio", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple", "cve", "crypto", "ima", "net.nfs", "net_stress.ipsec_icmp", "net.ipv6", "numa", "uevent", "ltp-aiodio.part1", "ltp-aiodio.part2", "ltp-aiodio.part3", "ltp-aiodio.part4"] + ltp_groups = ["math", "syscalls", "dio", "mm", "sched", "nptl", "pty", "containers", "controllers", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple", "cve", "crypto", "ima", "net.nfs", "net_stress.ipsec_icmp", "net.ipv6", "numa", "uevent", "ltp-aiodio.part1", "ltp-aiodio.part2", "ltp-aiodio.part3", "ltp-aiodio.part4"] ltp_fs = ["fs", "fs_bind"] # skip kernel cpuhotplug