From patchwork Fri Jan 9 21:03:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Eatmon X-Patchwork-Id: 78395 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 689C1D26D9C for ; Fri, 9 Jan 2026 21:04:02 +0000 (UTC) Received: from PH7PR06CU001.outbound.protection.outlook.com (PH7PR06CU001.outbound.protection.outlook.com [52.101.201.10]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.20261.1767992635834207210 for ; Fri, 09 Jan 2026 13:03:56 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ti.com header.s=selector1 header.b=Eyq3AreF; spf=permerror, err=parse error for token &{10 18 spf.protection.outlook.com}: limit exceeded (domain: ti.com, ip: 52.101.201.10, mailfrom: reatmon@ti.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S0Dq/zBN4gYMeUFnvtpC9E79i3BTqIa/8CsSFlfRluD5T/J/Edm36j/ucvwH8NNGNahfozQ5JFmVeBoNuxr6/cWmdyHEfcqv5TnbfHlF7EDUqIW5u+kodb7CUAANJbDXfP82iMtfO/Ccpa4budfq78ATMLw5AtmRunoO+lD5R7ePDEPLB6PkOwaer0A67lp7iWw0ImpT4QZIUcU5UuXRe8Ma4fd7g9wRz4HcY2eYMEe2FW6Ne62PGTQfAJPL8rmATJlQ1kgSH10oboS49qgyDT4I5zKLbrvmaEicjrkpm+5xenwUxMI9Oza0YT9UJAYUqu9HnoXlAnzRHLxHfG1Bzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/aOWyqvJG5gzX9ALkEKW6+y9vyXvc/FzIHZ+FWZZQq8=; b=ItDfTU78r/BIyK7JcE25KoqPwiFO27Q2j5ezY4ykC3tnrwXUx4Zix5VVmkdvGTO0gTVmr+1sbl3MYmj7FTRmLqQal0g3oTZtJLZV+yga55QC7aiN2B26almq8PVbZ/l1yBKjkx4PO+zDRN9qplm1a/Pk8le/prWWJVEBSNHQiLcbELXx8tLoqfHifwjTQEYpb5ydY5WBlJ9iLROiJOVA73kM/SJliTG6aGsGi0JZgsG/jyttw+nijgG4Y85u93wddNqvefzIxCpxNcDRLcWVChJ8oDYI2VLMQn+huaDPCmwduvxIPeeZd1Tz/CRz2ZzygSxnd3XoQ2HPhQ/If8Eqlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.194) smtp.rcpttodomain=lists.yoctoproject.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/aOWyqvJG5gzX9ALkEKW6+y9vyXvc/FzIHZ+FWZZQq8=; b=Eyq3AreFBE5uCuzxp0ndvcJJWTxufh6lOj1G9l1ADFeg4qfL8lA+ijlf+C8c8SwXGV8wqDo3SWwlWn7P+u3LWEb8uH63EA5mTzAg38DmMaApdNwIP6B7XWbOJ+GNYYE5KRRo+0PzGropruxmJAfoePdjEv9XydiQv+QD4nnA6FY= Received: from CH0PR03CA0428.namprd03.prod.outlook.com (2603:10b6:610:10e::23) by PH0PR10MB7099.namprd10.prod.outlook.com (2603:10b6:510:26d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9499.5; Fri, 9 Jan 2026 21:03:49 +0000 Received: from CH1PEPF0000AD76.namprd04.prod.outlook.com (2603:10b6:610:10e:cafe::f4) by CH0PR03CA0428.outlook.office365.com (2603:10b6:610:10e::23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9499.4 via Frontend Transport; Fri, 9 Jan 2026 21:03:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.194; helo=lewvzet200.ext.ti.com; pr=C Received: from lewvzet200.ext.ti.com (198.47.23.194) by CH1PEPF0000AD76.mail.protection.outlook.com (10.167.244.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9520.1 via Frontend Transport; Fri, 9 Jan 2026 21:03:49 +0000 Received: from DLEE213.ent.ti.com (157.170.170.116) by lewvzet200.ext.ti.com (10.4.14.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 9 Jan 2026 15:03:47 -0600 Received: from DLEE203.ent.ti.com (157.170.170.78) by DLEE213.ent.ti.com (157.170.170.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 9 Jan 2026 15:03:47 -0600 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE203.ent.ti.com (157.170.170.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Fri, 9 Jan 2026 15:03:47 -0600 Received: from grumpy (grumpy.dhcp.ti.com [128.247.81.229]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 609L3lJ3655101; Fri, 9 Jan 2026 15:03:47 -0600 Received: from reatmon by grumpy with local (Exim 4.97) (envelope-from ) id 1veJe7-000000026h0-2Eu7; Fri, 09 Jan 2026 15:03:47 -0600 From: Ryan Eatmon To: Praneeth Bajjuri , Denys Dmytriyenko , Subject: [meta-arago][scarthgap][PATCH] ltp-ddt: Version bump to 20250930 Date: Fri, 9 Jan 2026 15:03:47 -0600 Message-ID: <20260109210347.502225-1-reatmon@ti.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD76:EE_|PH0PR10MB7099:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dd09bd8-e2bb-41ab-259c-08de4fc29648 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|34020700016|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: wTfuSxW0vv8bdDNe6/0XSKdZPb31qqqR2ROwGEEUxjBPzFmsBArnBSx0Td2SpbqMQu2jq3if3yWjmrnQJU6DcVg80SnwKJkHUtaBeQz/MykYm3Mpe8a/CYBjPoQ5SiBiHsciY1I2t0BtivAKkeGeQR/sJ4SkjqY8ujJ1afNxIKhXQcbxiiXG0D+wrqvC1iaAq8rfB5ya3/LXC6zhtPCR3Ia5zO3TUZmD9wRKv25JBa0bAk5xXQMnaU6nfw/Me3HtDEg2VjPN6jeW6zUFnPgNZxEVcTObRWkXCfll3YuyYHEyuAopNv9oKzXOAVCDTtyFeS7/y6XoFQUpInunzggphky4idWS86Ma+9FwXb4QEfncCFpcTxEiEMc5VCV/Zomp/JaKvXEGjNu78ZQEFsKdZBjwdvG7F57AXxxHjkMHPOcsFVKXNd4qVVQxIuuTVD4QEaMc1BgHp8vH2bCaRDqCFzcnVHEIk+tfQl9jKpkywuDn3X291RkV4eRkF1+VEfiFop3/8JHB4KGELDpGzVb+3csD6aWbqsY3wG5CENrji1RZzLWq5/u7IjKR+f6phZ5vGM2yrQaNzKCUmRPpvo74UXjeIOCEeHl0VY8gsvxMp66JHaRbOXSZQnkJrzwc3tvm/9ICRmy/rHul61gRxhBk4x5sUsp9+AgyEsshIIeMOrJwkJ4o/C4VwO59sUccJ18aMfalk6Ihu/w8+d+eX8MQ5fqJEluhkz74+R6LXbR1tMC4C5jsTlNKGB8v19gb1vTOH9T1XJcDlsZCisa/iOEkPiB3veefrHr0bqYYnMkp0wgiZ2V8nYWgnGCoUn/XnOkELbgnZ5mx01QsfDuOpIE4qVeqlz1mGmpLj5ea/Zii9gOLR6GcwSCq1lYduXKf3yQ5cyJ2xF7TK9PsCIkIVfVgk7w+c3Rqb3YlTgvAfGe0qBsnWCY+CSFUm69+eQ9KJyp7P1w0eC0HJklPGf8BQI08RSb5ZgGM3j8uJ/6MB2Cg8WhzmU5mr2d58xXgrUYpqRcpDyhMd7QJoSUjdiRzfg/2BErMi7XUhMRC4zg0zhBptuEOib4Vr99l/pNtD1qUCe66TnHpgNTNVsQdsOA+xMOXVhIrbYTZPtFNk04uXOLRFf5y7vatam2LJHeK3g4XUGxeh/eITjlCnrKWmDMsKGtP7Cal/zkr6tM37P/N78W4nZ8aH5WOiYHBwQV82f3mC5hCc3kSSvcn4vnwi0Yzrex494gxmURPLnTHGb/JZBAjwqSEjf3HMWJ6mZ4chHHZimdVsKGUOBXFAG8m38VUrmvCMxvGnRWMciFM43fQsxd4AlCbxUE91M41/ENoaVLN/IA6XrnQFbnOz2tJ3WLGK0jub7esee4S0BU3Qlv9gzoiJ6WZY3hVtSFOB5O2cW8OzUMr6iQ2+dPMgZY7xhh79XjtlG0zqDtn48HBhDedHNWyq5vWAv15el6I+uZI5vwroKlaUbLzECg8mwCPvDlOAAwn2UqrUHr9xMQbqFFRc8oqEppJqqTMbt0LWbMRtzP4IefE X-Forefront-Antispam-Report: CIP:198.47.23.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet200.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(34020700016)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2026 21:03:49.5747 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1dd09bd8-e2bb-41ab-259c-08de4fc29648 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.194];Helo=[lewvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD76.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB7099 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 09 Jan 2026 21:04:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16949 ltp-ddt repo has been rebased on top of 20250930, update the recipe to match. Signed-off-by: Ryan Eatmon --- ...-__clear_cache-declaration-for-clang.patch | 32 +++ ...001-Remove-OOM-tests-from-runtest-mm.patch | 32 +++ ...8-Skip-semctl08-when-__USE_TIME64_RE.patch | 45 ++++ ...6ead3d6ef504c82551b12306e751d23ddb45.patch | 193 ++++++++++++++++++ ...tp-ddt_20250130.bb => ltp-ddt_20250930.bb} | 4 +- .../{ltp_20250130.inc => ltp_20250930.inc} | 14 +- 6 files changed, 314 insertions(+), 6 deletions(-) create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch rename meta-arago-test/recipes-devtools/ltp-ddt/{ltp-ddt_20250130.bb => ltp-ddt_20250930.bb} (91%) rename meta-arago-test/recipes-devtools/ltp-ddt/{ltp_20250130.inc => ltp_20250930.inc} (92%) diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch new file mode 100644 index 00000000..24e8762f --- /dev/null +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch @@ -0,0 +1,32 @@ +From a2ce04cb82d545f3dbab71de7fa55eaad3df3063 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 + +__clear_cache was enabled on RISCV recently with 7352ba02390116f1cd6a9b583860ba28aa0a1b7a +however it fails to compile with clang19 on RISCV +With this error + + hugemmap15.c:51:2: error: call to undeclared function '__clear_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 51 | __clear_cache(p, p + COPY_SIZE); + | ^ + +Upstream-Status: Submitted [https://lists.linux.it/pipermail/ltp/2024-June/038762.html] +Signed-off-by: Khem Raj +Cc: Hui Min Mina Chou +--- + testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c +index 1dde9e87b..6a6f5fe5e 100644 +--- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c ++++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c +@@ -19,6 +19,7 @@ + + #if defined(__clang__) + #pragma clang optimize off ++ void __clear_cache(void *start, void *end); + #endif + + #define _GNU_SOURCE diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch new file mode 100644 index 00000000..860b2f12 --- /dev/null +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch @@ -0,0 +1,32 @@ +From bb9146dd322af98a7bb96ad0d84ec376589c6cde 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 + +Disable OOM tests, as they might cause oeqa ssh connection lost + +Upstream-Status: Inappropriate [oe-core specific] +Signed-off-by: Mingde (Matthew) Zeng +[ pvorel: rebased for 20210927 ] +Signed-off-by: Petr Vorel +--- + runtest/mm | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/runtest/mm b/runtest/mm +index 41d624ad8..1e8c22638 100644 +--- a/runtest/mm ++++ b/runtest/mm +@@ -69,12 +69,6 @@ ksm07 ksm07 + cpuset01 cpuset01 + cpuset02 cpuset02 + +-oom01 oom01 +-oom02 oom02 +-oom03 oom03 +-oom04 oom04 +-oom05 oom05 +- + swapping01 swapping01 -i 5 + + thp01 thp01 -I 120 diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch new file mode 100644 index 00000000..364e203e --- /dev/null +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch @@ -0,0 +1,45 @@ +From 09364a758df9d89a0968894376f82f636441addb Mon Sep 17 00:00:00 2001 +From: Jiaying Song +Date: Fri, 23 May 2025 15:17:49 +0800 +Subject: [PATCH] syscalls/semctl08: Skip semctl08 when __USE_TIME64_REDIRECTS + is defined + +When __USE_TIME64_REDIRECTS is defined, glibc redirects struct semid_ds to a +64-bit time-safe version that omits the sem_otime_high and sem_ctime_high +fields. As a result, the case becomes invalid and leads to incorrect behavior. + +This patch adds a check to skip the test when __USE_TIME64_REDIRECTS is +defined, ensuring the test only runs when semid_ds structurally matches +semid64_ds and the *_high fields are accessible. + +Upstream-Status: Submitted [https://lists.linux.it/pipermail/ltp/2025-May/043647.html] + +Signed-off-by: Jiaying Song +--- + testcases/kernel/syscalls/ipc/semctl/semctl08.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl08.c b/testcases/kernel/syscalls/ipc/semctl/semctl08.c +index f4549adf4..28776f266 100644 +--- a/testcases/kernel/syscalls/ipc/semctl/semctl08.c ++++ b/testcases/kernel/syscalls/ipc/semctl/semctl08.c +@@ -12,7 +12,11 @@ + #include "tst_test.h" + #include "libnewipc.h" + +-#ifdef HAVE_SEMID64_DS_TIME_HIGH ++#if !defined(HAVE_SEMID64_DS_TIME_HIGH) ++TST_TEST_TCONF("test requires struct semid64_ds to have the time_high fields"); ++#elif defined(__USE_TIME64_REDIRECTS) ++TST_TEST_TCONF("test requires __USE_TIME64_REDIRECTS to be undefined"); ++#else + + static void run(void) + { +@@ -49,6 +53,4 @@ static struct tst_test test = { + .test_all = run, + .needs_tmpdir = 1, + }; +-#else +-TST_TEST_TCONF("test requires struct semid64_ds to have the time_high fields"); + #endif diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch new file mode 100644 index 00000000..1c06e254 --- /dev/null +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch @@ -0,0 +1,193 @@ +From 2d066ead3d6ef504c82551b12306e751d23ddb45 Mon Sep 17 00:00:00 2001 +From: Wei Gao +Date: Sun, 14 Dec 2025 02:15:20 +0000 +Subject: [PATCH] listmount04.c: Update struct mnt_id_req support for kernel >= 6.18 + +Kernel change from v6.18-rc7 +78f0e33cd6c93 ("fs/namespace: correctly handle errors returned by grab_requested_mnt_ns") +causes the test failure with following error message: +listmount04.c:128: TFAIL: invalid mnt_id_req.spare expected EINVAL: EBADF (9) + +The fix require following changes: + +* struct mnt_id_req got new member mnt_ns_fd in v6.18-rc7. That is +fixed in a fallback defintion in lapi/. If the fallback is used is now +done via typedef (that requires also update in statmount.h). + +* New kernels (>= 6.18) have also different errno. This is fixed by +runtime check. + +Link: https://lore.kernel.org/ltp/20251214021541.3256-1-wegao@suse.com/ +Reviewed-by: Petr Vorel +Reviewed-by: Li Wang +Reviewed-by: Cyril Hrubis +Signed-off-by: Wei Gao +[ pvorel: Shorten TCONF, rewrite commit message ] +Signed-off-by: Petr Vorel +--- + configure.ac | 2 +- + include/lapi/mount.h | 10 +++-- + .../kernel/syscalls/listmount/listmount.h | 2 +- + .../kernel/syscalls/listmount/listmount04.c | 37 +++++++++++++++++-- + .../kernel/syscalls/statmount/statmount.h | 2 +- + 5 files changed, 44 insertions(+), 9 deletions(-) + +Upstream-Status: Backport + +Index: ltp-20250930/configure.ac +=================================================================== +--- ltp-20250930.orig/configure.ac ++++ ltp-20250930/configure.ac +@@ -262,7 +262,7 @@ AC_CHECK_TYPES([struct cachestat_range], + AC_CHECK_TYPES([struct cachestat],,,[#include ]) + + # Defined in , but include/lapi/mount.h includes */ +-AC_CHECK_TYPES([struct mnt_id_req],,,[#include ]) ++AC_CHECK_MEMBERS([struct mnt_id_req.mnt_ns_fd],,,[#include ]) + AC_CHECK_TYPES([struct statmount],,,[#include ]) + AC_CHECK_MEMBERS([struct statmount.mnt_ns_id],,,[#include + #include ]) +Index: ltp-20250930/include/lapi/mount.h +=================================================================== +--- ltp-20250930.orig/include/lapi/mount.h ++++ ltp-20250930/include/lapi/mount.h +@@ -45,14 +45,18 @@ + # define MS_NOSYMFOLLOW 256 + #endif + +-#ifndef HAVE_STRUCT_MNT_ID_REQ +-struct mnt_id_req { ++struct mnt_id_req_fallback { + uint32_t size; +- uint32_t spare; ++ uint32_t mnt_ns_fd; + uint64_t mnt_id; + uint64_t param; + uint64_t mnt_ns_id; + }; ++ ++#ifndef HAVE_STRUCT_MNT_ID_REQ_MNT_NS_FD ++typedef struct mnt_id_req_fallback mnt_id_req; ++#else ++typedef struct mnt_id_req mnt_id_req; + #endif + + #ifndef HAVE_STRUCT_STATMOUNT +Index: ltp-20250930/testcases/kernel/syscalls/listmount/listmount.h +=================================================================== +--- ltp-20250930.orig/testcases/kernel/syscalls/listmount/listmount.h ++++ ltp-20250930/testcases/kernel/syscalls/listmount/listmount.h +@@ -15,7 +15,7 @@ + static inline ssize_t listmount(uint64_t mnt_id, uint64_t last_mnt_id, + uint64_t list[], size_t num, unsigned int flags) + { +- struct mnt_id_req req = { ++ mnt_id_req req = { + .size = MNT_ID_REQ_SIZE_VER0, + .mnt_id = mnt_id, + .param = last_mnt_id, +Index: ltp-20250930/testcases/kernel/syscalls/listmount/listmount04.c +=================================================================== +--- ltp-20250930.orig/testcases/kernel/syscalls/listmount/listmount04.c ++++ ltp-20250930/testcases/kernel/syscalls/listmount/listmount04.c +@@ -14,14 +14,18 @@ + + #define _GNU_SOURCE + ++#include "config.h" + #include "tst_test.h" + #include "lapi/mount.h" + #include "lapi/syscalls.h" + + #define MNT_SIZE 32 ++#define BEFORE_6_18 1 ++#define AFTER_6_18 2 + +-static struct mnt_id_req *request; ++static mnt_id_req *request; + static uint64_t mnt_ids[MNT_SIZE]; ++static int kver; + + static struct tcase { + int req_usage; +@@ -34,6 +38,7 @@ static struct tcase { + uint64_t flags; + int exp_errno; + char *msg; ++ int kver; + } tcases[] = { + { + .req_usage = 0, +@@ -79,6 +84,18 @@ static struct tcase { + .nr_mnt_ids = MNT_SIZE, + .exp_errno = EINVAL, + .msg = "invalid mnt_id_req.spare", ++ .kver = BEFORE_6_18, ++ }, ++ { ++ .req_usage = 1, ++ .size = MNT_ID_REQ_SIZE_VER0, ++ .spare = -1, ++ .mnt_id = LSMT_ROOT, ++ .mnt_ids = mnt_ids, ++ .nr_mnt_ids = MNT_SIZE, ++ .exp_errno = EBADF, ++ .msg = "invalid mnt_id_req.mnt_ns_fd", ++ .kver = AFTER_6_18, + }, + { + .req_usage = 1, +@@ -113,7 +130,12 @@ static struct tcase { + static void run(unsigned int n) + { + struct tcase *tc = &tcases[n]; +- struct mnt_id_req *req = NULL; ++ mnt_id_req *req = NULL; ++ ++ if (tc->kver && tc->kver != kver) { ++ tst_res(TCONF, "Test not suitable for current kernel version"); ++ return; ++ } + + memset(mnt_ids, 0, sizeof(mnt_ids)); + +@@ -122,7 +144,7 @@ static void run(unsigned int n) + req->mnt_id = tc->mnt_id; + req->param = tc->param; + req->size = tc->size; +- req->spare = tc->spare; ++ req->mnt_ns_fd = tc->spare; + } + + TST_EXP_FAIL(tst_syscall(__NR_listmount, req, tc->mnt_ids, +@@ -130,8 +152,17 @@ static void run(unsigned int n) + "%s", tc->msg); + } + ++static void setup(void) ++{ ++ if (tst_kvercmp(6, 18, 0) >= 0) ++ kver = AFTER_6_18; ++ else ++ kver = BEFORE_6_18; ++} ++ + static struct tst_test test = { + .test = run, ++ .setup = setup, + .tcnt = ARRAY_SIZE(tcases), + .min_kver = "6.8", + .bufs = (struct tst_buffers []) { +Index: ltp-20250930/testcases/kernel/syscalls/statmount/statmount.h +=================================================================== +--- ltp-20250930.orig/testcases/kernel/syscalls/statmount/statmount.h ++++ ltp-20250930/testcases/kernel/syscalls/statmount/statmount.h +@@ -16,7 +16,7 @@ + static inline int statmount(uint64_t mnt_id, uint64_t mask, struct statmount *buf, + size_t bufsize, unsigned int flags) + { +- struct mnt_id_req req = { ++ mnt_id_req req = { + .size = MNT_ID_REQ_SIZE_VER0, + .mnt_id = mnt_id, + .param = mask, diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb similarity index 91% rename from meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb rename to meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb index 6259d7bc..85480996 100644 --- a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb @@ -1,11 +1,13 @@ FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-extended/ltp/ltp:" -FILESEXTRAPATHS:prepend := "${TITESTBASE}/recipes-extended/ltp/ltp:" +FILESEXTRAPATHS:prepend := "${TITESTBASE}/recipes-devtools/ltp-ddt/ltp-ddt:" require ltp_${PV}.inc SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project" HOMEPAGE = "https://git.ti.com/cgit/test-automation/ltp-ddt/" +S = "${WORKDIR}/git" + DEPENDS += "alsa-lib" PE = "1" diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc similarity index 92% rename from meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc rename to meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc index 1a353a19..30897de7 100644 --- a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc +++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc @@ -24,13 +24,14 @@ TUNE_CCARGS:remove:x86-64 = "-mfpmath=sse" CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__" CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" -SRCREV = "a7c31dff7edc089a32e990765e12952cc4d7666a" +SRCREV = "d2550ffbbcfe163212cd7e9c132db65ae0fa06ed" SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ file://0001-Remove-OOM-tests-from-runtest-mm.patch \ - " - -S = "${WORKDIR}/git" + file://0001-Add-__clear_cache-declaration-for-clang.patch \ + file://0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch \ + file://2d066ead3d6ef504c82551b12306e751d23ddb45.patch \ + " inherit autotools-brokensep pkgconfig @@ -119,6 +120,8 @@ FILES:${PN} += "${prefix}/* ${prefix}/runtest/* ${prefix}/scenario_groups/* ${pr INHIBIT_PACKAGE_STRIP_FILES = "${prefix}/testcases/bin/nm01 ${prefix}/testcases/bin/ldd01" INSANE_SKIP:${PN} += "already-stripped staticdev" +CACHED_CONFIGUREVARS:libc-musl = "ac_cv_type_struct_mnt_id_req=no ac_cv_type_struct_statmount=no" + remove_broken_musl_sources() { [ "${TCLIBC}" = "musl" ] || return 0 @@ -132,7 +135,8 @@ remove_broken_musl_sources() { testcases/kernel/syscalls/getcontext/getcontext01.c \ testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c \ testcases/kernel/syscalls/timer_create/timer_create01.c \ - testcases/kernel/syscalls/timer_create/timer_create03.c + testcases/kernel/syscalls/timer_create/timer_create03.c \ + testcases/kernel/syscalls/statmount/statmount02.c } do_patch[postfuncs] += "remove_broken_musl_sources"