From patchwork Thu Jun 29 14:18:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 26659 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 15992C001B0 for ; Thu, 29 Jun 2023 14:19:06 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.9565.1688048342466330483 for ; Thu, 29 Jun 2023 07:19:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=pps06212021 header.b=ej+PG7mb; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=6544a6758f=ovidiu.panait@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 35TCAmEH005056 for ; Thu, 29 Jun 2023 07:19:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=PPS06212021; bh=kleWwHM5ECoQt1e0lC ul2jqyGCeUZLlBryeTlW43abA=; b=ej+PG7mbCRcjBKTlD0a8zYWs/chSWHXtUp 7IfIJu99gOr9XbdMg1nTI/7fQrTGenzpOczRVEzN/UeoI0JLjZPQeym/H/3MqeXk oLaoTtCZ6By5EC3ANaY9aS19XkK/kC1N4J+uFWIGR55OpNMBl+c01yqr68hWElOf DGT+7a9WHXOewbajzVHuLjWTiY12Vks70MqMgESm0vccIoFETAfIUM0l8c0Y2P8y sPQOEkfROYGAG/OiAx+zWy7XLzv60YQ38pMMM2px2ieH9M0X+sP7juccG5bg9WkS DyQKItjRDaYtKaxYYH6lE8NByZnUbx9j86DDDaF1WJqu6IZkiiIQ== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2109.outbound.protection.outlook.com [104.47.55.109]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3regfb44ec-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jun 2023 07:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ht2BmSRpk/CBZyPcPAKHHby0nuf5bIPAE3D8QdLmOq0psTCVcrA0lROIrXmdq2h+TrEbkRCvGP+h6xn+NjMf1/1z2Key1yWaSKBzBoRLb6DKfaNKlXRuqRnDONuIM97F+DjG2yaRIF04w8hEd5Blb2iSs+HfVT70ZQKooL/iYShxEVwxWGpC0jH80rcWv8sVp8vQZBKK7tzzZrc/a0S9+2cerjgWRu1AXk5bnrDyuQEvUhn1Bl+rsUJHFLZZMkn7h29CFH/ZYGLJkmmHIlnudIo8S2exO55BcAPYTuaDMllm2IYvrN8yIpsK/JxZ40FawB2I/FE0D3h3ypG2ZKW7Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=kleWwHM5ECoQt1e0lCul2jqyGCeUZLlBryeTlW43abA=; b=YOXvIZvUCwyX02L0E0FhjplOWMc04dO9ltu4DdUo+uOuXp1hnL6ff3UZMiNDm5/GfsW1nkM7sUxHyGIos5tz70mm/QNBlO4NWdJwbN9HPZsKuzYpi0aVE8JLei3LPhOfgk3EKszrpF10yhceSUYUlk79eb6vpKqxTfWZ5PafzQusUwysKTdwlUgXAq/kwTXVnBcJ6nSHwJbykmF/XOn0jDa6xYk6a3CT32s1T76orFHrt/Jh7tMowIQowyK6L8JX2gzlspNGjOPRtPgXdqZVucMLWNJ5LzrsPNeSy6r1G2ucJW57+fAtEnQZpWGb/JFReXYmlVoiKcbVMVJT2OvMFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by IA0PR11MB7306.namprd11.prod.outlook.com (2603:10b6:208:438::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 29 Jun 2023 14:18:56 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949%4]) with mapi id 15.20.6521.024; Thu, 29 Jun 2023 14:18:56 +0000 From: ovidiu.panait@windriver.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/4] mdadm: fix util-linux-lsblk ptest dependency Date: Thu, 29 Jun 2023 17:18:33 +0300 Message-Id: <20230629141836.3431391-1-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.39.1 X-ClientProxiedBy: VE1PR03CA0041.eurprd03.prod.outlook.com (2603:10a6:803:118::30) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5327:EE_|IA0PR11MB7306:EE_ X-MS-Office365-Filtering-Correlation-Id: ef541320-3ea1-434d-5c05-08db78abc60d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wMLaKm6QYIiOTdb+nENb7VHrvqDSMRQEFzCNgg/B8L/BCz993DHb9Djg16FiSUKyO7KG004yadjWvqZ24nlhZDXJ5qeKQAu/7DcBcGz8PLdP9zAEopvAvovw08zcEajWG1O0guYcD4OrPlL1qF69ldZkSQrQ1T3TgYF/HoxpI8pLrl4sN5+1w3B0C2LQTyA6aYh9ML2JKmvjZ5bgG2dpYI9atK/ChwjgNoa1uTFSaBB8BaRLJbLYa9k/9hf42Vrpav8V9lpAoMAHjStg6j97ukB1D3WbhIYVNAhlZifVYTlZQfkjpnpD/XauzVcSm8B3oMXkYKrAbKeAwa0VqMRDk/zFB7ygH329amBLMgJQ3u1fN/IzRfN/4yeuDTtAqU5z/7Gri5BTUxtclXgPfc2hLMfeH2LgenpeHGEP8eIwaUKCH3oQjjKgCiaeL++lNCmJfbzCp7sMMjvh0LLWUCr2oRo1wYMVLXxuA31d040+TSon/TmkjCIY3NvqgYgXpqYSco2QZT2EA7HjjSlOEvjsj+VeVq8Ax4EH24FlVRxhq4VxmxNcwQIXOlj8ihNfg+pxCmurm1LDbnBMRuVZ0bjeBEK44kS+3obxsMjlpD4kwUhZUAyMIjQi4oqyuR9EMghD X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(136003)(39850400004)(366004)(376002)(451199021)(26005)(9686003)(6506007)(5660300002)(2616005)(478600001)(1076003)(52116002)(186003)(6666004)(2906002)(6486002)(83380400001)(86362001)(41300700001)(36756003)(66946007)(8676002)(38100700002)(316002)(8936002)(66476007)(6916009)(66556008)(38350700002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +KL+9leHDwFACgW/dmPRBLQlY/2f3ytSBm2JcSgyus7vz0Bhki9QjeBs4P9DRV6FtyIyfiLHCAqmxozz9GG7UOB2wtKEr72h5jkBvq7EVdbdIyOlaZ3rjvgL6D57GEcKyxleU0zvYoRbS5jmj1OpqV+0/LpEszrrA3jko5Slj+mCbh2xWVPaRcqWv7hVuKL/bgKoJC4RIN0NMHhtuxn79abPM+UtPRf560FOhCCntFM/QN3+cEMwsr4JSexUHnCjx0HaY/d/cXoM6vY90Iogp9g7TZhIht6Glda1Rmy7I9PHvhxsnXigkySnJH/Wp2cJcKQQPufrJEQWHO0jpAU4P2TcM4RObVfpWMAVHmZped0e6rmUoh0AnFM36S0QXb/VH2VCBaC7dKKul5+RKWX4Jr7BUGnnnQy9C8RbpIMnx20UKMjjTYSKPt4JHkslFUo5ONoYJSr8HZJCv3wAPaziiOtdGxUGPZsVFDB5ZbFZYXNQEdC+W9Y1thdv2+GkYifUSum1uRJYLDPakowZS5jwpDTmAMmvLvTrH5HSTRfjRQjgMPlUkTtPHcTi4rB12GY/k82Li8lsCDP7rR0u/3kzR4e+B+7uPOw++yMfAWo9640XImKenYnEzcen4pWFer6BRRw249nTTVcdOraScdev37H3/zs1UEmmzVYjY46SbDi2WqcgxdjWfdSOEdE5YCHlgAkiNMNnFgxjgUOZwQ9zIsqHOjSkKyqBZMC4psqBIB8Otim9mQijgIBC7w5SOJ6Et174tdECn9zR/D0qgs/OQ97wbJEGdAr2l0tOCZWuqpGNjQD0GTu5QiFWpWf9Hym0Zn6ULKWxUFdTAs4wKZNEEfD7SsIyDpBwMkJBIbQBCJX68y9BycJHmye02wRJ0/rIxKey6CUxsjS01dtbGa1cPth/TDKVsSTZ2QvjV3RIoLi/rp3KYXLMahRXQFnV9N3+4WWMVFnHj23W83GOqd52ghBBs4+erQWVxSaO7sn++AUXHqTm1ebKrkcUsdeaEaXTw7Rq5Vb35Qs6D5ez4BQovXDS52y75JWe20i80QLLMiyMoSc0P7K1xQCxEvw4z1VY1pkxjVm0LGlvEMK7dC3EjpxuS1vihyTth2SAttDZOWXbsIvcBwnKUAZZuZBKID4ZM1HtpT+/UYKh/FKK05mc0L3xkDhERy+a8/5pSZN7tpGh/7+9LFpNjw7ivKc9YhEv+aF/9AD5YOsGbN0VFxY8qESsGSlBWfpstyNaCwEAlaZo8NyBNIyM43xS68ls8icZUwp3BqiNTzoBwN0Jvatr0U2Uylxu25f760Spz65SMX4XB89wnY0VD8huxs4lunjSgwWr+TPvKkypmi0oEHbxhR9hlTjxSUUnXmiy/Qjyt5ONFQVfwVdbueQ2KZGjSnlceH6RG6FjKkbTBIqn+MDS35Sy7nzA8WTCDWgLbenm5bFmNi4pIlKjGMe0zO2Rie3YJB94Q5r9Sl13skaVCoMdHToq3vax3C+q6ldN3DGZnLBnJ2Y4bbgh9us6fc4rQvNPZCLp+4gRIMH/ums5F6CELn3/+Qs8037rwjjlytWAd5UXT6UNSg+ccwSmNMiRpzGs/6hqOe1G56O8a9YKVePX9w== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef541320-3ea1-434d-5c05-08db78abc60d X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 14:18:56.4369 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: c1mDMldmbxzPBPSuSWec2DRek4hIRAeQYLx4zH9UM9o7Ftv9K2DThjdBY6keQhOOWDcQKMuvL772Qf2UL3Vm0FIw5rSKN0PliAxhByGgPLQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7306 X-Proofpoint-GUID: RWSxTCe3Ot7K9HxKNRQWeqLn4cj4S2Qr X-Proofpoint-ORIG-GUID: RWSxTCe3Ot7K9HxKNRQWeqLn4cj4S2Qr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_03,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=651 spamscore=0 clxscore=1011 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2305260000 definitions=main-2306290128 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 ; Thu, 29 Jun 2023 14:19:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/183631 From: Ovidiu Panait Trying to run mdadm-ptest in a core-image-minimal build will result in: root@qemux86-64:~# ptest-runner mdadm START: ptest-runner BEGIN: /usr/lib/mdadm/ptest which: no lsblk in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin) lsblk command not found! DURATION: 0 END: /usr/lib/mdadm/ptest 2023-06-28T10:14 STOP: ptest-runner TOTAL: 1 FAIL: 0 To fix this, add util-linux-lsblk to RDEPENDS and remove util-linux from RRECOMMENDS. Signed-off-by: Ovidiu Panait --- meta/recipes-extended/mdadm/mdadm_4.2.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index 14de9d88c2..0a122b0b01 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb @@ -101,10 +101,9 @@ do_install_ptest() { } RDEPENDS:${PN} += "bash" -RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs" +RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk" RRECOMMENDS:${PN}-ptest += " \ coreutils \ - util-linux \ kernel-module-loop \ kernel-module-linear \ kernel-module-raid0 \ From patchwork Thu Jun 29 14:18:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 26660 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 186F1EB64DC for ; Thu, 29 Jun 2023 14:19:06 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web11.9426.1688048342752505008 for ; Thu, 29 Jun 2023 07:19:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=pps06212021 header.b=lYWoHcSc; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=6544a6758f=ovidiu.panait@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 35TCAmEI005056 for ; Thu, 29 Jun 2023 07:19:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= PPS06212021; bh=HHZ0454GHTS8fWNcsdmKoL+AeSTFImQXfzxxpuoLXMM=; b= lYWoHcSc/iKjoex8HwGebY1aEr3ONpj58kV5Jpca9EVtHlP/skb+1+d8wdsk0jU6 rf3ClXehk1U+vz8GUvhVT3OIu8FIbj6Lr3NfUAocvtlvHvvXO9Iv607tGtA5AHL6 0yOOUns6WykS5Gi8YzuD1Aj6eOR0ISHd0Z/xwBLXXcZ8ji8VgacXrQgD1917a81B mgON1Tdm/Hg7tNkaeuGJhaud789um6VYsHXsyePoThY6HazDYuzp3f11fNQieT60 0OdIzHJVmvLbiVteWR+QWX/UZrPAuC8VKFHuZvk0gk8g79e5FxOeoGqgQoDcvgLh pE8/Ov9Y1lgF8pPfJL1lbw== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2109.outbound.protection.outlook.com [104.47.55.109]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3regfb44ec-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jun 2023 07:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZfikX2VAuFoIR8zqBgammb1nkbXWiXkWBAWR17UqHauYU7bZHyz6pa/tm+s/cSpKh5oRdTZ532blVGt43wnjqnuv9t9hR+3lSIu8u9rDtSmaEMmWIMzJoUVvngve+o6fEHjSwmPhXmoHvhpLF4r+5G88XmyoqMFCiC/wXlFbFTnLdTDNUxsRduaVIGMBOEZXgzgPC/65GcgO22eOFVe2Yyw3x3aGkGzUUTlgcMSlL3s9Tyy+0V54rutw/ioVJoq522MVuSxDMO0Trt/U+iMRaHcRXjE7D8Ub5zMSGjibu6+4KBnLuDfPNybwGIo1u3NlCeMjyaxRUQ3yyx/5OORMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=HHZ0454GHTS8fWNcsdmKoL+AeSTFImQXfzxxpuoLXMM=; b=KdNVeBG8TAZTq9LZkhBRPxfQ4BlOQiAzPnOtMz0SD7gDx87PxGDZxHfE8oFbg20baR9+25vmq5wiImAMcNgLSvtR5SyIdUJwmIfkJuNHIMNXXRxfGTZmyygq8rfJX05xOJ4scigJ7KeVfkwMFFWnNwICxeMACBjwbvq09SpOZDQhcCU/zYUOYP+Wicx+qypDm/1t8iidRyyN/f8AQhaYfnUuRKcEYF63VcADdwH6aDgc+2d5kwWJXyWR/Po3dUjUHdkIOVdOJ28tMe9Q9WTtTiv//fPKcLFc77dzRMUoWVeS2xdfe0+3uoDots3txDpkl7ckPXVuh9L0UqH+npaONg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by IA0PR11MB7306.namprd11.prod.outlook.com (2603:10b6:208:438::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 29 Jun 2023 14:18:57 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949%4]) with mapi id 15.20.6521.024; Thu, 29 Jun 2023 14:18:57 +0000 From: ovidiu.panait@windriver.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/4] mdadm: fix 07revert-inplace ptest Date: Thu, 29 Jun 2023 17:18:34 +0300 Message-Id: <20230629141836.3431391-2-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230629141836.3431391-1-ovidiu.panait@windriver.com> References: <20230629141836.3431391-1-ovidiu.panait@windriver.com> X-ClientProxiedBy: VE1PR03CA0041.eurprd03.prod.outlook.com (2603:10a6:803:118::30) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5327:EE_|IA0PR11MB7306:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a8bebd9-852e-4902-c1d0-08db78abc6bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UCMHsnTDUPQ+CsDtUtSYBAg8enFCSDpWM3+e1+OIWRjmr7ZwrkCyilXy8UWK5t0+mdh8JRXyWu4j2Sl99COCVHEH+O+Lz92M/qExFSwhjNzJYJbU3THYmrT6UzihExSvRhwcEGEOVvRJNA1DQNniq9TXl99PF/lL4n0pPg4Q+mNjFPgYWwaFLoP0LxIrvc2j7DBRVjeCjLb5h1ZahXi2AM7TO59iyJpfOSF5wxMQWg0YbJG9pAfyiykQ2YQoBk/CKdGIpbLEwfVmB3gfo79xE13Of1AhCUB7NlsYKFR4llA8XALLo+qzhDhHtZVQqBG+K2hClnTD+3LhGNdTaO3Av2f0niSuzgK56qmD1DbMBxxIa24Nom2qxkTcToAdbCjDXZNzVdXoRebR6ZAIAmRig/p4iDveFY1th8TML7rVj+l20RvHXJolTRQAfhPg8QIjO4Hrk5uNoZ1ZflGfPRmF0zKh/lJElCvO0EYUlfF5Yunz5qT3ZiPOxdDJQXVY4X6HYX3dNeZN9DrkiKdm0+pTW2o5nk1Akh2MwMpaGAwMt0q7Q1x134BC03/jKXWsBYYtgf7UW2h+sNokdBv+r1CEoOL9vJqzmB/kPjUgEQjB8bzJIW3eqZte+L6+/sJ617ss X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(136003)(39850400004)(366004)(376002)(451199021)(26005)(9686003)(6506007)(5660300002)(2616005)(478600001)(1076003)(52116002)(186003)(6666004)(2906002)(6486002)(83380400001)(86362001)(41300700001)(36756003)(66946007)(8676002)(38100700002)(316002)(8936002)(66476007)(6916009)(66556008)(38350700002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eC0B9VfsS6p2EmNLAcs7g59KrXHWneptt9ycsQm7sKaRH2lp6Ujkf4dkI9I3Lml/2YZtBitCzoEIqV5dT34lw6wFJr2OelFa8HE73BRY96iXt7WL+h0a8gw9QHgVUcye3EcTloWMVM0/Upx2X5zkcWWlaG7N4F8JLzo6kLeg/KrGjTy+FkF6+xqof2Zuq9y3ZyAw2/XxrULYeTJeL2aZXjudOwFo50oAi6UH5/Z6okGTKwZ54kiouYdzZnqPrtrCCrt43L09mCZEA+kp1nQ2Ceahg2NPeRglCaJQlqP5cQa+oBALfEjQ6IWlj3PG3A82nOLl5u/tVuvKjrPANVRCElZwnyzNeCAp1KoLqEYi6v57NSHOnbKnoypEH8dobcxMX/fY34i+JaaoAjTR459qyXn/4WEZLMlSc3M9dbD4bej4XIBeb0OTs+f9950mGCU0GSUYv/nyhSaXD9HV/5j104QUxUP2l5+EWD5OacUz1nIxnJ1R/FAdeeJW5+ScaN69JfTt2l3nuxnOwUkjNKQBCnhEPwmsGh+HwXD+BfsnSjk/J+PMdwEthInbntwWSkOJ5aMUZ1Q+z7rDSagVgyQRxHC9F4yEeoJj1V3uBE+qlu5YCt+1eSHgl0fx2JMM4qp/+tgs4ZWQaAF9/9/Z8ImsLW8M7mS29/c4WxxzcMpEbTdW0OCW6TZbp7R7lVSXYP5C/IlbHCQI++iZQQM2zvpnLY7V+CIMW6K0QnF7klZUVHdazhngAXt67jhdLcn696jDiIhgF9YYvkE2BxQ1hc0h+qMO9YvYJXwvFUBWCXe9OGYX81DiOEmrIagTZbBRKNhFTDyvN2kxR1hWk5wyor+7DrtYWG+LFyAuhTn7np827Hh/B59NET83/0WKh9fnCNqfJL7/aLifZsbHh1+6grtZOW/GApTwg9OPjU6lMZuh4uhB+A9bLbgnYhTYqK2FuF60RA99PnYuQq2Z8rGgtVt3KIRlIJO7+yC0NaiaJaWMFZNyu97bODpJGx0a5FBL+Jb9jD36bZKYBTbRo5c39fWejzZM3P2ACQMlRCNScHUAkCW/020CrMItAstiCBt0iCJiEHgXntmuNdXN/1DZMC+wsPkfm0OkBbsAFeFlrgfKcYROCzlDqOqcuRvahh7TvZ8hVcZbJzA8CGzcVluOaqyeY/PPokW8YOg/EDRzyHDN35CYBivdWk1v5oO8TPEdfKYIuKOF5VyMIvoDuY1QfWd/d4LrcWIVla1a+d+cGDjsWm+yed2rRK4RSfx6p1rAz6XT/tn++Xoq+z3iCpWzTLW3KzQWd4/U08osV4LSE1SSCKVCGdpFwmL46rzmus0/QFNW3KyzMKu6pi+5H6omr4KRBD9WPkwf7H/VYc/nswaVq9mbR3m6pZtPSwPRcgOCvPqs4ehVUS6k8nDyKdTKVoVT66nryUZKWYQgL18yBQEHw7tx43N2RJE55ilso7NNeo3y6YWE0VGLKL1G9gAflfpOhR++JEboXAMFybTh3545xLDQyGXMLucG96eJrR0E3awCdPx3O0s7FWIlkqMwaSmMK1+YENyXA3Zpf2wrZjyqC3mVmNXPGDPdMcAzY70lb3HmpqT82Ugd0p8LM/X5PxRjYg== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a8bebd9-852e-4902-c1d0-08db78abc6bd X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 14:18:57.4730 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: APlSqYmIGntY+WJ7F823WYNjVhwJz7G2ALlA9tmZ2+KrCmhgl3vZGAiyZR0o7+vDc2G+E1H88vNUt6D1qwBkylHAi5LauwvIxt6j0Mm4F3M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7306 X-Proofpoint-GUID: lu5hkO4wcJnOQWlSnYdtIpyoSyEnAWj2 X-Proofpoint-ORIG-GUID: lu5hkO4wcJnOQWlSnYdtIpyoSyEnAWj2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_03,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=705 spamscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2305260000 definitions=main-2306290128 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 ; Thu, 29 Jun 2023 14:19:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/183632 From: Ovidiu Panait Testcase 07revert-inplace fails if strace is not installed: ... strace -o /tmp/str ./mdadm -A /dev/md0 --update=revert-reshape /dev/<...> tests/07revert-inplace: line 40: strace: command not found Add strace to mdadm-ptest RDEPENDS to make sure the testcase passes even with a core-image-minimal build. Signed-off-by: Ovidiu Panait --- meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index 0a122b0b01..a5844b6726 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb @@ -101,7 +101,7 @@ do_install_ptest() { } RDEPENDS:${PN} += "bash" -RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk" +RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs util-linux-lsblk strace" RRECOMMENDS:${PN}-ptest += " \ coreutils \ kernel-module-loop \ From patchwork Thu Jun 29 14:18:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 26661 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 098E5EB64D9 for ; Thu, 29 Jun 2023 14:19:06 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.9566.1688048343641679509 for ; Thu, 29 Jun 2023 07:19:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=pps06212021 header.b=X3ydiAkO; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=6544a6758f=ovidiu.panait@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 35TCS1Zl004293 for ; Thu, 29 Jun 2023 07:19:03 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= PPS06212021; bh=1p1Zltg78op8P6rxfeB5CJlUtwJOWpSg48JOI2HiHws=; b= X3ydiAkOsPaeIvUyHYS/TavWrJcXmD/y5lQAvUi5Wmb+LZQCyQk0+YSghPbYsiFr 9F9tZPIZpsj8VshRL/Ev6E7jDcHs56baouMb0lScpjDBFw0fn7+I9FrZTWfmBUss eiZcnZ2TMuItBuKz/la1rJBRCSA5WJUBFCdsCF60LOJkHLdULk8f5Ccp1GqACmNi Eznru5iutLckxJBoUhbPTTr2MrJMqZzMtMh8GbeO9qnv/KTQ9LGvdAtFoXbAVRpx PGAYiTRWmSshRDqWhZQb+/PGLLa5sxlRLhXazkYOkXmlk9n73CQiBBMBgw9PlkmF xYXGWMBlvJwNoRa4AE5w0g== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3regfb44ef-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jun 2023 07:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E98E2L7Tsqtyw542Wokeq7aJY8TFX0kECSXc/W4ssyNLRMP8NIj9FjeLBo8uU1VQMSuYQQbikodlIKf5EpSoq9LE3s7I6EqUHi6HvT6o/Pd/RvDLfMJyaXDbMOSxqK/eyJZchd5DaGZUfYzo1SxUnRMaFYbHsTop+38CJbxeEq/4wkIQW5XpNGqoTciLZmSgzhNAIDwJR0fMIdXja8NEQp5hOGUDaeEwJswG18HLbJ6djVl3BoaamPKfElEXythU/LBa7xT4NKcSLqh95WoDqrOGHoBn2m/eKvzulfFHIRLyfclv8gdNdx7EfnslbDhK/8RDdbG556FmBgHWuZ1kOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=1p1Zltg78op8P6rxfeB5CJlUtwJOWpSg48JOI2HiHws=; b=bC3mEKnq7P6qGK0Q4hh1D/7s0d6aq2vUjXz+2oYlp4M5Hohivpt3mJlaQdy7i6oEmQdpwqlUz+Va0NMHsDDZEkxIxQU3ASjRkIFRnPtIyPkbhKpgLgNBDtaqU321p0TgR+ER7+DX8dD52nI4Z+UZAMz+dl3RSI025OYdBfeZhmIHxROrI4kBgQ0rCWG2S+6duMAOvm/AnyEoaleD/SmxOZuzu2HKVGA2/A20mGeczfH2y4AfjbigwrizY9fUMi9y7VolUnlecsH4IF2Rx+GAnznCAegeF0c4PFJpmyJiRV4j4yWnnK1qDl4avqr9aWAJvst9uSFOAXQosF/rQOeGdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by DS0PR11MB7442.namprd11.prod.outlook.com (2603:10b6:8:14d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 29 Jun 2023 14:18:58 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949%4]) with mapi id 15.20.6521.024; Thu, 29 Jun 2023 14:18:58 +0000 From: ovidiu.panait@windriver.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/4] mdadm: fix segfaults when running ptests Date: Thu, 29 Jun 2023 17:18:35 +0300 Message-Id: <20230629141836.3431391-3-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230629141836.3431391-1-ovidiu.panait@windriver.com> References: <20230629141836.3431391-1-ovidiu.panait@windriver.com> X-ClientProxiedBy: VE1PR03CA0041.eurprd03.prod.outlook.com (2603:10a6:803:118::30) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5327:EE_|DS0PR11MB7442:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e907b4e-89f8-47be-b522-08db78abc758 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K4RpsCYtHArWvOJOLX13QUvTf8+S5Y6rXRk/rPWjy64RrT+VXak8HOWiBvDvuY46M7eSFqv7A8G5s4yCfBbfElCto0BHZ/2pHASesTmHCzFamshWnTiIZf5cjBh/wLRysmmyQGyPj899ygjK6HXRmNFsdFD0c0Zt+xBpvmckwJYC9mw1YCuofOIK5spQqOFZTqEfLTgczoIO/qc1JgI9Il9BGc99pLkxk/pLm9T7VLCPFoZbdjThPezSp4EctExxulicT02v49PdXQztRh9XO/4jJIfe3irCYP22BJIfxqsMea5zeOxcUKZW8iKXw5zUGIbVgSE9FbWSdEO7aUjbhXsAyki+BsOFwTddO834et3y6LaVx6WSyapWbE2YwZwyji279KVVMhvOyVwGpWxtHcdqaQfj6u+ZAwL6YO5n71qMK0RaAH7NKTxFk9u6KmGxbU6vvnBdRKPS89kUwF8wS2/q5PVIW9yDr4snXigGKeNp0FaMC+KfVmdmE/xc3jCi7jNhre3ySZvrhMLoGaZCLqWKUbqfUTmC7qVhDHHJp6v9WdayBUnhWhfl9zAo8H4FxlITsQXn2ziQA6SKazo/vyVmxjZFjw3X9we+P61rlXE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(366004)(376002)(39850400004)(451199021)(186003)(2906002)(5660300002)(30864003)(26005)(316002)(36756003)(8676002)(6666004)(6486002)(6916009)(966005)(478600001)(86362001)(1076003)(38100700002)(38350700002)(66476007)(52116002)(83380400001)(66946007)(8936002)(41300700001)(66556008)(9686003)(2616005)(6506007)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wSyGMCjuGHaDE7mOxA3+tgXPtj4Cszel60EALbSrH5yIuuqc4O8c51zmLoENxhVScLd0x+ZwwETnaYq5xYUif2uvaNl+ZhzjBp20rEt3Oh0tQxK0BrgVBisXU7P/nUs11vo7KwURkymx0UGtlpLgOi2440VIATLEbZD05t5g8D+FVCNDQCwAX8sfFYcH5N+R3vCjU0UVRbSEhxie9hPA1HXSzlN++EWgR/mQ1jfPhbbmwVgGueRxdYNINe3ak2FIhJu1mZNhk1L7MqznWuPUGKwuLXGWyCXW1Zuzc4CONVXi7LfilYEydX8iqP3YZWiCWCIEdqMgO83fgqN9Mb86VhOpeVRjsBhZpfWG8cv1EnZMCAwop4uFlhkgfIAG34Ivx9tkOqN0kEZ2KhAfE5YwIP6tv2wg6oCWcE/4/moSqsCm3/NRgffur1KA4ajRlL10gBHRi+JqeN1ay6dR3t/d2+AbUYuW/qL6rWCH0b3gBG65/nTwwJjmg/i15Q2yZNEISqJXXT0FRh7x2bcRLJBji/2IzM+gFGG/w96tt2JksXh0jWTvrKMDdciqoMC9n8mKGmdNnsN5flP2Im1NeSVSSSSorWOeRYdVSLzmtBaz7I8re9dEskM9kHg8Z12EVwr0AsYoQATlWi9pc1UtRlWcrqXzKrZHjGbcNcduUFWHSxssz+9qj5v3Gu8Hyxqe8gXbWrV81ROf14Bmx+FVADrK19p1lOZq3QsNxwwEErwRioFnqlIuaBDxyICRcZ66GtkXt/tvna0ymAe2Ie1wDy1/ZB5mW+X/IdwTqeMHztL2rZMyXJ5xFszV9iiRpWmwitEOzTefliJLMcYxH8ovlIugoxFIsScdhid2R7tK5NAHvKMCMm4fBQSuac23Ez3WnKhJ0X2J9+CnWwmwpHwVkZJbhOKEoP+TgTXt4FKUC2yrwCmzVpbk1fWZmRXj6tGoOe3olv0R0oZzTSmts0ySB3X6s0t+acCRE3jZ/d6GAxp2VJxf6wBkevtJuL2pFtBywPNhMAHVHcjFUGORuCckwmHxIxDA6CSspe4b78oNiq8s88qoqcmoGTmQGHD7/EhGJ3ZgvSgrGKNK3RfDoyI8k9K1nH514fPDDNBkyXOV20c7Sc1g65XBk100FFpIHUpZ5oRCTr9UJqNjx75asrO5oywZguIfAHDitGE/hmGIJk3XObPqeFcRiONR7Wc+aNR8wRk1Ci3it4Zb0kTxxq4+ZKx+uJf9kjlBmjzF8Zhpck64jAMMb2jC3Zbi1b6HlnF1wSVz0G8sorRZQppSabP1eItKue9g7xyayh70zObTKG3b8v5BxiSK84NAyVsW7jbRaDlOhmaiwZMNWsyIcw3pPBGe31ygLrcuKwsEPRqKQhR1XBVoXpLomHOBp5/a0Gz6ZbdW774Kvyd3V4EmLB6t1sORftAVgf1eDKK+5oSTHhxxatZZlxSOEwS66FghZZ1ytEkr7VpVwMRhqWjF/OIYK134uIKhNZpOIDYw7XEP2BaukRsAXuexW5fA2F8UEUAX2kbUJgzt73Tezil6kDrDWhaTsf3J/WWgI9FuO3aPHBVXA8zWKUbdMVaqGalnydU6mOmtsAw2IiOpX/uF84VStzR+9Q== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e907b4e-89f8-47be-b522-08db78abc758 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 14:18:58.5005 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RxYIM+kY6q5tYsJch42o9IVdsgaZwty2UG8Alj86iL6NpGIobal1j3at+l7SEXOF0dG7hKK0gt5zFPJuebSZwJcInQsAJ8j25GbsdpSGbbQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7442 X-Proofpoint-GUID: 92kETpz3t-wSLloz6UdtTFJmkwh4eew8 X-Proofpoint-ORIG-GUID: 92kETpz3t-wSLloz6UdtTFJmkwh4eew8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_03,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2305260000 definitions=main-2306290128 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 ; Thu, 29 Jun 2023 14:19:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/183633 From: Ovidiu Panait Currently, some segfaults are reported when running ptest: mdadm[12333]: segfault at 0 ip 00007fe855924060 sp 00007ffc4d6caf88 error 4 in libc.so.6[7f) Code: d2 0f 84 b7 0f 00 00 48 83 fa 01 0f 84 b9 0f 00 00 49 89 d3 89 f1 89 f8 48 83 e1 3f 4f Backport the following upstream commits to fix them: 679bd9508a30 ("DDF: Cleanup validate_geometry_ddf_container()") 2b93288a5650 ("DDF: Fix NULL pointer dereference in validate_geometry_ddf()") 548e9b916f86 ("mdadm/Grow: Fix use after close bug by closing after fork") 9ae62977b51d ("monitor: Avoid segfault when calling NULL get_bad_blocks") The fixes are part of the "Bug fixes and testing improvments" patchset [1]. [1] https://www.spinics.net/lists/raid/msg70621.html Signed-off-by: Ovidiu Panait --- ...anup-validate_geometry_ddf_container.patch | 148 ++++++++++++++++++ ...nter-dereference-in-validate_geometr.patch | 56 +++++++ ...se-after-close-bug-by-closing-after-.patch | 91 +++++++++++ ...gfault-when-calling-NULL-get_bad_blo.patch | 42 +++++ meta/recipes-extended/mdadm/mdadm_4.2.bb | 4 + 5 files changed, 341 insertions(+) create mode 100644 meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch create mode 100644 meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch create mode 100644 meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch create mode 100644 meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch diff --git a/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch b/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch new file mode 100644 index 0000000000..cea435f83b --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-DDF-Cleanup-validate_geometry_ddf_container.patch @@ -0,0 +1,148 @@ +From ca458f4dcc4de9403298f67543466ce4bbc8f8ae Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:07 -0600 +Subject: [PATCH 1/4] DDF: Cleanup validate_geometry_ddf_container() + +Move the function up so that the function declaration is not necessary +and remove the unused arguments to the function. + +No functional changes are intended but will help with a bug fix in the +next patch. + +Signed-off-by: Logan Gunthorpe +Acked-by: Mariusz Tkaczyk +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=679bd9508a30 + +Signed-off-by: Ovidiu Panait +--- + super-ddf.c | 88 ++++++++++++++++++++++++----------------------------- + 1 file changed, 39 insertions(+), 49 deletions(-) + +diff --git a/super-ddf.c b/super-ddf.c +index 3f304cd..65cf727 100644 +--- a/super-ddf.c ++++ b/super-ddf.c +@@ -503,13 +503,6 @@ struct ddf_super { + static int load_super_ddf_all(struct supertype *st, int fd, + void **sbp, char *devname); + static int get_svd_state(const struct ddf_super *, const struct vcl *); +-static int +-validate_geometry_ddf_container(struct supertype *st, +- int level, int layout, int raiddisks, +- int chunk, unsigned long long size, +- unsigned long long data_offset, +- char *dev, unsigned long long *freesize, +- int verbose); + + static int validate_geometry_ddf_bvd(struct supertype *st, + int level, int layout, int raiddisks, +@@ -3322,6 +3315,42 @@ static int reserve_space(struct supertype *st, int raiddisks, + return 1; + } + ++static int ++validate_geometry_ddf_container(struct supertype *st, ++ int level, int raiddisks, ++ unsigned long long data_offset, ++ char *dev, unsigned long long *freesize, ++ int verbose) ++{ ++ int fd; ++ unsigned long long ldsize; ++ ++ if (level != LEVEL_CONTAINER) ++ return 0; ++ if (!dev) ++ return 1; ++ ++ fd = dev_open(dev, O_RDONLY|O_EXCL); ++ if (fd < 0) { ++ if (verbose) ++ pr_err("ddf: Cannot open %s: %s\n", ++ dev, strerror(errno)); ++ return 0; ++ } ++ if (!get_dev_size(fd, dev, &ldsize)) { ++ close(fd); ++ return 0; ++ } ++ close(fd); ++ if (freesize) { ++ *freesize = avail_size_ddf(st, ldsize >> 9, INVALID_SECTORS); ++ if (*freesize == 0) ++ return 0; ++ } ++ ++ return 1; ++} ++ + static int validate_geometry_ddf(struct supertype *st, + int level, int layout, int raiddisks, + int *chunk, unsigned long long size, +@@ -3347,11 +3376,9 @@ static int validate_geometry_ddf(struct supertype *st, + level = LEVEL_CONTAINER; + if (level == LEVEL_CONTAINER) { + /* Must be a fresh device to add to a container */ +- return validate_geometry_ddf_container(st, level, layout, +- raiddisks, *chunk, +- size, data_offset, dev, +- freesize, +- verbose); ++ return validate_geometry_ddf_container(st, level, raiddisks, ++ data_offset, dev, ++ freesize, verbose); + } + + if (!dev) { +@@ -3449,43 +3476,6 @@ static int validate_geometry_ddf(struct supertype *st, + return 1; + } + +-static int +-validate_geometry_ddf_container(struct supertype *st, +- int level, int layout, int raiddisks, +- int chunk, unsigned long long size, +- unsigned long long data_offset, +- char *dev, unsigned long long *freesize, +- int verbose) +-{ +- int fd; +- unsigned long long ldsize; +- +- if (level != LEVEL_CONTAINER) +- return 0; +- if (!dev) +- return 1; +- +- fd = dev_open(dev, O_RDONLY|O_EXCL); +- if (fd < 0) { +- if (verbose) +- pr_err("ddf: Cannot open %s: %s\n", +- dev, strerror(errno)); +- return 0; +- } +- if (!get_dev_size(fd, dev, &ldsize)) { +- close(fd); +- return 0; +- } +- close(fd); +- if (freesize) { +- *freesize = avail_size_ddf(st, ldsize >> 9, INVALID_SECTORS); +- if (*freesize == 0) +- return 0; +- } +- +- return 1; +-} +- + static int validate_geometry_ddf_bvd(struct supertype *st, + int level, int layout, int raiddisks, + int *chunk, unsigned long long size, +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch b/meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch new file mode 100644 index 0000000000..fafe88b49c --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch @@ -0,0 +1,56 @@ +From 14f110f0286d38e29ef5e51d7f72e049c2f18323 Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:08 -0600 +Subject: [PATCH 2/4] DDF: Fix NULL pointer dereference in + validate_geometry_ddf() + +A relatively recent patch added a call to validate_geometry() in +Manage_add() that has level=LEVEL_CONTAINER and chunk=NULL. + +This causes some ddf tests to segfault which aborts the test suite. + +To fix this, avoid dereferencing chunk when the level is +LEVEL_CONTAINER or LEVEL_NONE. + +Fixes: 1f5d54a06df0 ("Manage: Call validate_geometry when adding drive to external container") +Signed-off-by: Logan Gunthorpe +Acked-by: Mariusz Tkaczyk +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=2b93288a5650 + +Signed-off-by: Ovidiu Panait +--- + super-ddf.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/super-ddf.c b/super-ddf.c +index 65cf727..3ef1293 100644 +--- a/super-ddf.c ++++ b/super-ddf.c +@@ -3369,9 +3369,6 @@ static int validate_geometry_ddf(struct supertype *st, + * If given BVDs, we make an SVD, changing all the GUIDs in the process. + */ + +- if (*chunk == UnSet) +- *chunk = DEFAULT_CHUNK; +- + if (level == LEVEL_NONE) + level = LEVEL_CONTAINER; + if (level == LEVEL_CONTAINER) { +@@ -3381,6 +3378,9 @@ static int validate_geometry_ddf(struct supertype *st, + freesize, verbose); + } + ++ if (*chunk == UnSet) ++ *chunk = DEFAULT_CHUNK; ++ + if (!dev) { + mdu_array_info_t array = { + .level = level, +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch b/meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch new file mode 100644 index 0000000000..a954ab027a --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch @@ -0,0 +1,91 @@ +From bd064da1469a6a07331b076a0294a8c6c3c38526 Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:09 -0600 +Subject: [PATCH 3/4] mdadm/Grow: Fix use after close bug by closing after fork + +The test 07reshape-grow fails most of the time. But it succeeds around +1 in 5 times. When it does succeed, it causes the tests to die because +mdadm has segfaulted. + +The segfault was caused by mdadm attempting to repoen a file +descriptor that was already closed. The backtrace of the segfault +was: + + #0 __strncmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:101 + #1 0x000056146e31d44b in devnm2devid (devnm=0x0) at util.c:956 + #2 0x000056146e31dab4 in open_dev_flags (devnm=0x0, flags=0) + at util.c:1072 + #3 0x000056146e31db22 in open_dev (devnm=0x0) at util.c:1079 + #4 0x000056146e3202e8 in reopen_mddev (mdfd=4) at util.c:2244 + #5 0x000056146e329f36 in start_array (mdfd=4, + mddev=0x7ffc55342450 "/dev/md0", content=0x7ffc55342860, + st=0x56146fc78660, ident=0x7ffc55342f70, best=0x56146fc6f5d0, + bestcnt=10, chosen_drive=0, devices=0x56146fc706b0, okcnt=5, + sparecnt=0, rebuilding_cnt=0, journalcnt=0, c=0x7ffc55342e90, + clean=1, avail=0x56146fc78720 "\001\001\001\001\001", + start_partial_ok=0, err_ok=0, was_forced=0) + at Assemble.c:1206 + #6 0x000056146e32c36e in Assemble (st=0x56146fc78660, + mddev=0x7ffc55342450 "/dev/md0", ident=0x7ffc55342f70, + devlist=0x56146fc6e2d0, c=0x7ffc55342e90) + at Assemble.c:1914 + #7 0x000056146e312ac9 in main (argc=11, argv=0x7ffc55343238) + at mdadm.c:1510 + +The file descriptor was closed early in Grow_continue(). The noted commit +moved the close() call to close the fd above the fork which caused the +parent process to return with a closed fd. + +This meant reshape_array() and Grow_continue() would return in the parent +with the fd forked. The fd would eventually be passed to reopen_mddev() +which returned an unhandled NULL from fd2devnm() which would then be +dereferenced in devnm2devid. + +Fix this by moving the close() call below the fork. This appears to +fix the 07revert-grow test. While we're at it, switch to using +close_fd() to invalidate the file descriptor. + +Fixes: 77b72fa82813 ("mdadm/Grow: prevent md's fd from being occupied during delayed time") +Cc: Alex Wu +Cc: BingJing Chang +Cc: Danny Shih +Cc: ChangSyun Peng +Signed-off-by: Logan Gunthorpe +Acked-by: Mariusz Tkaczyk +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=548e9b916f86 + +Signed-off-by: Ovidiu Panait +--- + Grow.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/Grow.c b/Grow.c +index 9c6fc95..a8e4e83 100644 +--- a/Grow.c ++++ b/Grow.c +@@ -3501,7 +3501,6 @@ started: + return 0; + } + +- close(fd); + /* Now we just need to kick off the reshape and watch, while + * handling backups of the data... + * This is all done by a forked background process. +@@ -3522,6 +3521,9 @@ started: + break; + } + ++ /* Close unused file descriptor in the forked process */ ++ close_fd(&fd); ++ + /* If another array on the same devices is busy, the + * reshape will wait for them. This would mean that + * the first section that we suspend will stay suspended +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch b/meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch new file mode 100644 index 0000000000..72cb40f782 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch @@ -0,0 +1,42 @@ +From 2296a4a441b4b8546e2eb32403930f1bb8f3ee4a Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:10 -0600 +Subject: [PATCH 4/4] monitor: Avoid segfault when calling NULL get_bad_blocks + +Not all struct superswitch implement a get_bad_blocks() function, +yet mdmon seems to call it without checking for NULL and thus +occasionally segfaults in the test 10ddf-geometry. + +Fix this by checking for NULL before calling it. + +Signed-off-by: Logan Gunthorpe +Acked-by: Mariusz Tkaczyk +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=9ae62977b51d + +Signed-off-by: Ovidiu Panait +--- + monitor.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/monitor.c b/monitor.c +index afc3e50..8e43c0d 100644 +--- a/monitor.c ++++ b/monitor.c +@@ -312,6 +312,9 @@ static int check_for_cleared_bb(struct active_array *a, struct mdinfo *mdi) + struct md_bb *bb; + int i; + ++ if (!ss->get_bad_blocks) ++ return -1; ++ + /* + * Get a list of bad blocks for an array, then read list of + * acknowledged bad blocks from kernel and compare it against metadata +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index a5844b6726..033766dc89 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb @@ -32,6 +32,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ file://0001-tests-fix-raid0-tests-for-0.90-metadata.patch \ file://0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch \ file://0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch \ + file://0001-DDF-Cleanup-validate_geometry_ddf_container.patch \ + file://0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch \ + file://0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch \ + file://0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch \ " SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d" From patchwork Thu Jun 29 14:18:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 26662 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 13C45EB64DD for ; Thu, 29 Jun 2023 14:19:06 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web11.9427.1688048344472322139 for ; Thu, 29 Jun 2023 07:19:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=pps06212021 header.b=X1WTIH8C; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=6544a6758f=ovidiu.panait@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 35TCS1Zm004293 for ; Thu, 29 Jun 2023 07:19:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= PPS06212021; bh=5KNu3K/5zmMjKvlE+PvZkOfGs6zsQig0MylcxVzqceQ=; b= X1WTIH8C3M41SzIXoH8KH2h9KmFnFbiKGZAmt7K3ogD/JMu4dhK2ok8E2T8C0vEh +8yTcEKbZANtAGifxjW+vUTItDs66GMQT0A7WKIoDst11OtFMBb7sB2UduWMokk1 3hv1wXCnSu8ZERDZcX5GkhM+LFgkOZkBYoJDOxQ/AsUOwcQLfuvQf/Fm9uQKb8zD wsLtqxUA0FKJxpmvvkT0JeK37jAoz1dEczGEt/MYEX6YWqs5k7Fh3Ew4AgWz7YmC VZ3Ef39/uKrMWeQLEgEKiJlTpVd2pRmLHo9wo1lWLoWzBiq8EmolkM44aUuGFYoa ck+l9y22WQuBQw3exZfnKw== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3regfb44ef-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jun 2023 07:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HB/eOSR0ZMa2JU+xxWBb6tFREMkBa9G0VqDMXfTV0byv1GDTB1fvhv16BFcF/DzR8O6mZy7d+H47/umcZi3zb0Tm0BwZUkVGBaih2/bocz8jytFCKTZZpXOGn2jgABe6aKkP4KJAF1hFXOirLr4jpFg+XSUUV7VUjZ7AO7dvxx1jnmnVzr1rt+F6bfG3+uzm2Iteek4zRwJdWGn4qe3IUbqnOYbLfvAU1Hp4X4k/lbx5vBt1Lehl+JLX3MGzFsFdBoYQyrKS1vwK7dcwmNtLm5udHaXxu8KnyVVwY3P/dwNqJF5bJ5zfBP5HHcYjaQs1VlitkVxPR9SpWqpwKA3+Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=5KNu3K/5zmMjKvlE+PvZkOfGs6zsQig0MylcxVzqceQ=; b=Pb6UG0CxfzmcsRia6zAEtUDayAhEVlpIB4FxwU/Hz6zks8GWi72mVhzAWzT55W8FJoUUUQLzLbPjW2qQLoYWgePKSHmzngclOH94gI/czGtog2pmRWWdiiN9XkOeGtspoyDVqWGEP+r6gaYlfyDZc/TW7AZEexavhiSHkwL4cLA6XCSGXfhjEMGystYUDPigwjlqT9MMgzvOunKoFvzU8EwYBmff+dziFq4ZeJlOmfBDpYSDm4nS6hBvY5zr6SkFbLYzsmAkcXSCuZKBWgPZLr2p8S980Kv1LTKXE75Z9ejY4bhEHwzKbjLR2wZ23HUcaA/SftYgEuOBhypd+MOABA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by DS0PR11MB7442.namprd11.prod.outlook.com (2603:10b6:8:14d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 29 Jun 2023 14:18:59 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::3686:e9c9:56d6:8949%4]) with mapi id 15.20.6521.024; Thu, 29 Jun 2023 14:18:59 +0000 From: ovidiu.panait@windriver.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/4] mdadm: skip running known broken ptests Date: Thu, 29 Jun 2023 17:18:36 +0300 Message-Id: <20230629141836.3431391-4-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230629141836.3431391-1-ovidiu.panait@windriver.com> References: <20230629141836.3431391-1-ovidiu.panait@windriver.com> X-ClientProxiedBy: VE1PR03CA0041.eurprd03.prod.outlook.com (2603:10a6:803:118::30) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5327:EE_|DS0PR11MB7442:EE_ X-MS-Office365-Filtering-Correlation-Id: 14cf5a60-ec20-4645-a4fe-08db78abc7f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /UPhCPY7zueXuy2URxn3Q0ftpfokjJABrcwmu4G97mOl/mVSvqKUHxqWZ2oFBgRPfS7KhPAiScQgYYmKNoX8aqd5U2FegDL/Q6VGdCJ+ujKeOF7wM0HiAqNRddSgZO882ZIz7pilihxPdag7GNbE2rXtLdpmYVGlSjuLBivZ+r7+RXN6Z5Dt7ucGuA32sLsvResAoD2+sdk57sqNIeQ4ilDZ1yRQKYXEeuKZwjL28PhlsZObm+1qGgCE4pkFL+T0abevbHonYW3imkMW082GB2IpQSf9mmYUHJ+QiZwj+4g532Vmu2yyF8RpGDUl4Ukpj+2OPeY3XgH7YP/NZ1u0m2Lk0Mugk1cB9Lw9L6Kjy0y9kjZlnMhIpCQ313wFp3ZuwtmGSSi+Xzg45sc6UIer1tI2OqyC+rL/WxEjQhP+HaiIE3ZsTbrjUrMHzJfZiwXdNwoQYIrSJfcEH1iFDcN+kHlm9CxU+8EAgizJSvp5jQwObWXYQER5r9RVN5Pd25+bea84+E1YBnnrqULGXp9THlrz/qtzLQvsVypKBFfF0t3qoP+7fMbUCJen11nWturmRMpA/8OZ88vcqH6vSTV/rPWfB6ih6NyppKDSjYkBfiatEdh4qcQFIrQIIQOB9VUe/TDVxnkyKCt7pfT73+Kqy/mdvcy6H0F+Avy8hINo2volpjQ7xcWuHxiy7Di//sdWWwgkV2VZPuA5e7awKWZwWw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(366004)(376002)(39850400004)(451199021)(186003)(2906002)(5660300002)(30864003)(26005)(316002)(36756003)(8676002)(6666004)(6486002)(6916009)(966005)(478600001)(86362001)(1076003)(38100700002)(38350700002)(66476007)(52116002)(83380400001)(66946007)(8936002)(41300700001)(66556008)(9686003)(2616005)(6506007)(6512007)(414714003)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: C0i8GzaDjWgzcdxjGwwPZQYPvUyealq4RQKqvWQDbKNjREP75nxMi39WitXIoabgSnmyF+arqGjYGu/P8qq7dTmJ6TpDuYa72gCDZFdtu1y4R9l+ixpXJsQJKqyuflP0l3bLoM1K98HBRdBvYikT+dNXCkFXGQ3ZakFg8x1/FXV0hjmfnsGNuohIwlzijSbsCzuFtj10CCBcKRdgUeHw5z6ey3DTGZZSeuz0oElrExki3PtEM98bpWiuu0DPvceG15dqKRe6l7fEZAUVJC78HxLsbO+wv5h/lx1YdnaIThkOYSja3FSQPaOOK+E+jBHMEeHBgXBZkUiOlbCHVavKStQZ3ulfhNLOvGXSXv7TUZJzXTr4n0TXS6i3Yedi7zdPnZSp/XqGHx+M8g3wtScNJF/Le5GYeVZQ/KYJLcKOljYV3E7Ry/0sC6jjgoE7i1B4aITUw8erPYQm6o28XH0Z6BEq20NV00HVPjSJV6T8CJRWvPRvPe3LA+DF/p+C9IfaU6oJDBBNT1xgzN6QPlLPHM2M/f2MTOERC9nIB2/FW/+RWnKQ46ppzg6UQLcq+SjEy+02o9s5YeL5vw33wfnFv0GsVeT3yY0weAbB2Iwi7Lr3CrV1MK6b+umjn5sfsIo7WNglKdajdpTy+QtU+WaW351sO6YNyhNOOVfTJw8liSRSukKIvQsEFnJ7M37u5R17ZE3znDFASezhH38VBeDX1w7NR1lezsfhiFIEsUMtJl4N2KduAR7fMGTYV5MrzvdbEc9BbjPVc1ftAwOLP0iiIJlt5z8gbIhktesQUPC7UbKepRNBf0CJns7kmQ3ogMLBtYusQlcPTzvIsTOVadpQTNS3YWTR0PVS0EnN6Rwj+gUiAHkJZl+vg2wM2xFxNaNgDb1srNSqPjx30J2Gv4cl0sch5gQORxoDXGreUTSJOHeEtOrybGEl+dEjLchnjh8PQcJgKS+JeDutZtr7s1J69lPskTRvxjLw05R/CShjC6jIxcQf5CwC21pORflrEypDef1W88vsgOIQDJaZjN3fJL34PuwCQbN/MkK7hQP+/cH4r0JhRggNk9iQ+M9m5bS7f+4bIOpZEvgKuMlyf6EGSOZuU73eem9DIAo/cihPDjbQ1reb7X3JdceJSoGXL3anLRIjJVJmlMKjuaej0Ujj+rOp1kJsmDphkqL2bUwkqK2yw/SCudrcsVPe/pnY4xn8K0BuzlvaW9ulGJBzeumkQOMT65qRL5IgJ2mzQlI4DBm/noNialDFfkrndpR/1ufPlSu9kV2ZU4yvgDPS59Oy2Ou5QtxIklISJ2iKFOc8Qn09jhJ55vSdKw0TQlH+Cew/BG9q1ER43T1An8maf8fHVHrNPvmaNQyIJBBWZPDZ3LNJj39A80IUnB9kJto2anPtjg1PJjAxLuAkW12HWDQv682ae/Q+MXKfDuAruqAeV50j3TvrBeBloC75bCFOrd61khYBxqElJXlQLUiyIu1Dn9l4GasjZ1T6aNqDSRnrYbWiOQ3QtBpDQVR2ZfWWz3Vle8o4woBdq/M6KYJo9qgTkIuE9f0MoMNiHBHWCbnpeVsHd8lsqmDco53Z7b67uM1yYLo75znBBqL8cI8cDaUhSw== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14cf5a60-ec20-4645-a4fe-08db78abc7f3 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 14:18:59.4949 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: erQWfaTtR0gnzqIdCVSDmsITc9cy6T+6cgM6hFfK5qJM8OkKgBEleyJPB6wytHA063aytVyOKiBazB5RgsSwermLYFn3YZWIJ1iLl2reG9c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7442 X-Proofpoint-GUID: RpfhSIqlyYOsKKXxP23UUcz30dh9bTvJ X-Proofpoint-ORIG-GUID: RpfhSIqlyYOsKKXxP23UUcz30dh9bTvJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_03,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2305260000 definitions=main-2306290128 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 ; Thu, 29 Jun 2023 14:19:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/183634 From: Ovidiu Panait Upstream marked some testcases as "KNOWN BROKEN" and introduced the "--skip-broken" flag to ignore them when running the testsuite (commits [1] and [2]). Backport these two commits to get rid of the last remaining ptest failures. Also, add the "--skip-broken" option to the run-ptest script. [1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=28520bf114b3 [2] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=daa86d663476 Signed-off-by: Ovidiu Panait --- ...Mark-and-ignore-broken-test-failures.patch | 128 +++++ ...dd-broken-files-for-all-broken-tests.patch | 454 ++++++++++++++++++ meta/recipes-extended/mdadm/files/run-ptest | 2 +- meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 + 4 files changed, 585 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch create mode 100644 meta/recipes-extended/mdadm/files/0006-tests-Add-broken-files-for-all-broken-tests.patch diff --git a/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch b/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch new file mode 100644 index 0000000000..c55bfb125b --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch @@ -0,0 +1,128 @@ +From feab1f72fcf032a4d21d0a69eb61b23a5ddb3352 Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:18 -0600 +Subject: [PATCH 5/6] mdadm/test: Mark and ignore broken test failures + +Add functionality to continue if a test marked as broken fails. + +To mark a test as broken, a file with the same name but with the suffix +'.broken' should exist. The first line in the file will be printed with +a KNOWN BROKEN message; the rest of the file can describe the how the +test is broken. + +Also adds --skip-broken and --skip-always-broken to skip all the tests +that have a .broken file or to skip all tests whose .broken file's first +line contains the keyword always. + +Signed-off-by: Logan Gunthorpe +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=28520bf114b3 + +[OP: adjusted context for mdadm-4.2] +Signed-off-by: Ovidiu Panait +--- + test | 37 +++++++++++++++++++++++++++++++++++-- + 1 file changed, 35 insertions(+), 2 deletions(-) + +diff --git a/test b/test +index 8f189d9..ee8fba1 100755 +--- a/test ++++ b/test +@@ -10,6 +10,8 @@ devlist= + + savelogs=0 + exitonerror=1 ++ctrl_c_error=0 ++skipbroken=0 + prefix='[0-9][0-9]' + + # use loop devices by default if doesn't specify --dev +@@ -35,6 +37,7 @@ die() { + + ctrl_c() { + exitonerror=1 ++ ctrl_c_error=1 + } + + # mdadm always adds --quiet, and we want to see any unexpected messages +@@ -79,8 +82,21 @@ mdadm() { + do_test() { + _script=$1 + _basename=`basename $_script` ++ _broken=0 ++ + if [ -f "$_script" ] + then ++ if [ -f "${_script}.broken" ]; then ++ _broken=1 ++ _broken_msg=$(head -n1 "${_script}.broken" | tr -d '\n') ++ if [ "$skipbroken" == "all" ]; then ++ return ++ elif [ "$skipbroken" == "always" ] && ++ [[ "$_broken_msg" == *always* ]]; then ++ return ++ fi ++ fi ++ + rm -f $targetdir/stderr + # this might have been reset: restore the default. + echo 2000 > /proc/sys/dev/raid/speed_limit_max +@@ -97,10 +113,15 @@ do_test() { + else + save_log fail + _fail=1 ++ if [ "$_broken" == "1" ]; then ++ echo " (KNOWN BROKEN TEST: $_broken_msg)" ++ fi + fi + [ "$savelogs" == "1" ] && + mv -f $targetdir/log $logdir/$_basename.log +- [ "$_fail" == "1" -a "$exitonerror" == "1" ] && exit 1 ++ [ "$ctrl_c_error" == "1" ] && exit 1 ++ [ "$_fail" == "1" -a "$exitonerror" == "1" \ ++ -a "$_broken" == "0" ] && exit 1 + fi + } + +@@ -117,6 +138,8 @@ do_help() { + --logdir=directory Directory to save all logfiles in + --save-logs Usually use with --logdir together + --keep-going | --no-error Don't stop on error, ie. run all tests ++ --skip-broken Skip tests that are known to be broken ++ --skip-always-broken Skip tests that are known to always fail + --dev=loop|lvm|ram|disk Use loop devices (default), LVM, RAM or disk + --disks= Provide a bunch of physical devices for test + --volgroup=name LVM volume group for LVM test +@@ -211,6 +234,12 @@ parse_args() { + --keep-going | --no-error ) + exitonerror=0 + ;; ++ --skip-broken ) ++ skipbroken=all ++ ;; ++ --skip-always-broken ) ++ skipbroken=always ++ ;; + --disable-multipath ) + unset MULTIPATH + ;; +@@ -275,7 +304,11 @@ main() { + if [ $script == "$testdir/11spare-migration" ];then + continue + fi +- do_test $script ++ case $script in ++ *.broken) ;; ++ *) ++ do_test $script ++ esac + done + fi + +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/files/0006-tests-Add-broken-files-for-all-broken-tests.patch b/meta/recipes-extended/mdadm/files/0006-tests-Add-broken-files-for-all-broken-tests.patch new file mode 100644 index 0000000000..115b23bac5 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0006-tests-Add-broken-files-for-all-broken-tests.patch @@ -0,0 +1,454 @@ +From fd1c26ba129b069d9f73afaefdbe53683de3814a Mon Sep 17 00:00:00 2001 +From: Logan Gunthorpe +Date: Wed, 22 Jun 2022 14:25:19 -0600 +Subject: [PATCH 6/6] tests: Add broken files for all broken tests + +Each broken file contains the rough frequency of brokeness as well +as a brief explanation of what happens when it breaks. Estimates +of failure rates are not statistically significant and can vary +run to run. + +This is really just a view from my window. Tests were done on a +small VM with the default loop devices, not real hardware. We've +seen different kernel configurations can cause bugs to appear as well +(ie. different block schedulers). It may also be that different race +conditions will be seen on machines with different performance +characteristics. + +These annotations were done with the kernel currently in md/md-next: + + facef3b96c5b ("md: Notify sysfs sync_completed in md_reap_sync_thread()") + +Signed-off-by: Logan Gunthorpe +Signed-off-by: Jes Sorensen + +Upstream-Status: Backport + +Reference to upstream patch: +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=daa86d663476 + +Signed-off-by: Ovidiu Panait +--- + tests/01r5integ.broken | 7 ++++ + tests/01raid6integ.broken | 7 ++++ + tests/04r5swap.broken | 7 ++++ + tests/07autoassemble.broken | 8 ++++ + tests/07autodetect.broken | 5 +++ + tests/07changelevelintr.broken | 9 +++++ + tests/07changelevels.broken | 9 +++++ + tests/07reshape5intr.broken | 45 ++++++++++++++++++++++ + tests/07revert-grow.broken | 31 +++++++++++++++ + tests/07revert-shrink.broken | 9 +++++ + tests/07testreshape5.broken | 12 ++++++ + tests/09imsm-assemble.broken | 6 +++ + tests/09imsm-create-fail-rebuild.broken | 5 +++ + tests/09imsm-overlap.broken | 7 ++++ + tests/10ddf-assemble-missing.broken | 6 +++ + tests/10ddf-fail-create-race.broken | 7 ++++ + tests/10ddf-fail-two-spares.broken | 5 +++ + tests/10ddf-incremental-wrong-order.broken | 9 +++++ + tests/14imsm-r1_2d-grow-r1_3d.broken | 5 +++ + tests/14imsm-r1_2d-takeover-r0_2d.broken | 6 +++ + tests/18imsm-r10_4d-takeover-r0_2d.broken | 5 +++ + tests/18imsm-r1_2d-takeover-r0_1d.broken | 6 +++ + tests/19raid6auto-repair.broken | 5 +++ + tests/19raid6repair.broken | 5 +++ + 24 files changed, 226 insertions(+) + create mode 100644 tests/01r5integ.broken + create mode 100644 tests/01raid6integ.broken + create mode 100644 tests/04r5swap.broken + create mode 100644 tests/07autoassemble.broken + create mode 100644 tests/07autodetect.broken + create mode 100644 tests/07changelevelintr.broken + create mode 100644 tests/07changelevels.broken + create mode 100644 tests/07reshape5intr.broken + create mode 100644 tests/07revert-grow.broken + create mode 100644 tests/07revert-shrink.broken + create mode 100644 tests/07testreshape5.broken + create mode 100644 tests/09imsm-assemble.broken + create mode 100644 tests/09imsm-create-fail-rebuild.broken + create mode 100644 tests/09imsm-overlap.broken + create mode 100644 tests/10ddf-assemble-missing.broken + create mode 100644 tests/10ddf-fail-create-race.broken + create mode 100644 tests/10ddf-fail-two-spares.broken + create mode 100644 tests/10ddf-incremental-wrong-order.broken + create mode 100644 tests/14imsm-r1_2d-grow-r1_3d.broken + create mode 100644 tests/14imsm-r1_2d-takeover-r0_2d.broken + create mode 100644 tests/18imsm-r10_4d-takeover-r0_2d.broken + create mode 100644 tests/18imsm-r1_2d-takeover-r0_1d.broken + create mode 100644 tests/19raid6auto-repair.broken + create mode 100644 tests/19raid6repair.broken + +diff --git a/tests/01r5integ.broken b/tests/01r5integ.broken +new file mode 100644 +index 0000000..2073763 +--- /dev/null ++++ b/tests/01r5integ.broken +@@ -0,0 +1,7 @@ ++fails rarely ++ ++Fails about 1 in every 30 runs with a sha mismatch error: ++ ++ c49ab26e1b01def7874af9b8a6d6d0c29fdfafe6 /dev/md0 does not match ++ 15dc2f73262f811ada53c65e505ceec9cf025cb9 /dev/md0 with /dev/loop3 ++ missing +diff --git a/tests/01raid6integ.broken b/tests/01raid6integ.broken +new file mode 100644 +index 0000000..1df735f +--- /dev/null ++++ b/tests/01raid6integ.broken +@@ -0,0 +1,7 @@ ++fails infrequently ++ ++Fails about 1 in 5 with a sha mismatch: ++ ++ 8286c2bc045ae2cfe9f8b7ae3a898fa25db6926f /dev/md0 does not match ++ a083a0738b58caab37fd568b91b177035ded37df /dev/md0 with /dev/loop2 and ++ /dev/loop3 missing +diff --git a/tests/04r5swap.broken b/tests/04r5swap.broken +new file mode 100644 +index 0000000..e38987d +--- /dev/null ++++ b/tests/04r5swap.broken +@@ -0,0 +1,7 @@ ++always fails ++ ++Fails with errors: ++ ++ mdadm: /dev/loop0 has no superblock - assembly aborted ++ ++ ERROR: no recovery happening +diff --git a/tests/07autoassemble.broken b/tests/07autoassemble.broken +new file mode 100644 +index 0000000..8be0940 +--- /dev/null ++++ b/tests/07autoassemble.broken +@@ -0,0 +1,8 @@ ++always fails ++ ++Prints lots of messages, but the array doesn't assemble. Error ++possibly related to: ++ ++ mdadm: /dev/md/1 is busy - skipping ++ mdadm: no recogniseable superblock on /dev/md/testing:0 ++ mdadm: /dev/md/2 is busy - skipping +diff --git a/tests/07autodetect.broken b/tests/07autodetect.broken +new file mode 100644 +index 0000000..294954a +--- /dev/null ++++ b/tests/07autodetect.broken +@@ -0,0 +1,5 @@ ++always fails ++ ++Fails with error: ++ ++ ERROR: no resync happening +diff --git a/tests/07changelevelintr.broken b/tests/07changelevelintr.broken +new file mode 100644 +index 0000000..284b490 +--- /dev/null ++++ b/tests/07changelevelintr.broken +@@ -0,0 +1,9 @@ ++always fails ++ ++Fails with errors: ++ ++ mdadm: this change will reduce the size of the array. ++ use --grow --array-size first to truncate array. ++ e.g. mdadm --grow /dev/md0 --array-size 56832 ++ ++ ERROR: no reshape happening +diff --git a/tests/07changelevels.broken b/tests/07changelevels.broken +new file mode 100644 +index 0000000..9b930d9 +--- /dev/null ++++ b/tests/07changelevels.broken +@@ -0,0 +1,9 @@ ++always fails ++ ++Fails with errors: ++ ++ mdadm: /dev/loop0 is smaller than given size. 18976K < 19968K + metadata ++ mdadm: /dev/loop1 is smaller than given size. 18976K < 19968K + metadata ++ mdadm: /dev/loop2 is smaller than given size. 18976K < 19968K + metadata ++ ++ ERROR: /dev/md0 isn't a block device. +diff --git a/tests/07reshape5intr.broken b/tests/07reshape5intr.broken +new file mode 100644 +index 0000000..efe52a6 +--- /dev/null ++++ b/tests/07reshape5intr.broken +@@ -0,0 +1,45 @@ ++always fails ++ ++This patch, recently added to md-next causes the test to always fail: ++ ++7e6ba434cc60 ("md: don't unregister sync_thread with reconfig_mutex ++held") ++ ++The new error is simply: ++ ++ ERROR: no reshape happening ++ ++Before the patch, the error seen is below. ++ ++-- ++ ++fails infrequently ++ ++Fails roughly 1 in 4 runs with errors: ++ ++ mdadm: Merging with already-assembled /dev/md/0 ++ mdadm: cannot re-read metadata from /dev/loop6 - aborting ++ ++ ERROR: no reshape happening ++ ++Also have seen a random deadlock: ++ ++ INFO: task mdadm:109702 blocked for more than 30 seconds. ++ Not tainted 5.18.0-rc3-eid-vmlocalyes-dbg-00095-g3c2b5427979d #2040 ++ "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. ++ task:mdadm state:D stack: 0 pid:109702 ppid: 1 flags:0x00004000 ++ Call Trace: ++ ++ __schedule+0x67e/0x13b0 ++ schedule+0x82/0x110 ++ mddev_suspend+0x2e1/0x330 ++ suspend_lo_store+0xbd/0x140 ++ md_attr_store+0xcb/0x130 ++ sysfs_kf_write+0x89/0xb0 ++ kernfs_fop_write_iter+0x202/0x2c0 ++ new_sync_write+0x222/0x330 ++ vfs_write+0x3bc/0x4d0 ++ ksys_write+0xd9/0x180 ++ __x64_sys_write+0x43/0x50 ++ do_syscall_64+0x3b/0x90 ++ entry_SYSCALL_64_after_hwframe+0x44/0xae +diff --git a/tests/07revert-grow.broken b/tests/07revert-grow.broken +new file mode 100644 +index 0000000..9b6db86 +--- /dev/null ++++ b/tests/07revert-grow.broken +@@ -0,0 +1,31 @@ ++always fails ++ ++This patch, recently added to md-next causes the test to always fail: ++ ++7e6ba434cc60 ("md: don't unregister sync_thread with reconfig_mutex held") ++ ++The errors are: ++ ++ mdadm: No active reshape to revert on /dev/loop0 ++ ERROR: active raid5 not found ++ ++Before the patch, the error seen is below. ++ ++-- ++ ++fails rarely ++ ++Fails about 1 in every 30 runs with errors: ++ ++ mdadm: Merging with already-assembled /dev/md/0 ++ mdadm: backup file /tmp/md-backup inaccessible: No such file or directory ++ mdadm: failed to add /dev/loop1 to /dev/md/0: Invalid argument ++ mdadm: failed to add /dev/loop2 to /dev/md/0: Invalid argument ++ mdadm: failed to add /dev/loop3 to /dev/md/0: Invalid argument ++ mdadm: failed to add /dev/loop0 to /dev/md/0: Invalid argument ++ mdadm: /dev/md/0 assembled from 1 drive - need all 5 to start it ++ (use --run to insist). ++ ++ grep: /sys/block/md*/md/sync_action: No such file or directory ++ ++ ERROR: active raid5 not found +diff --git a/tests/07revert-shrink.broken b/tests/07revert-shrink.broken +new file mode 100644 +index 0000000..c33c39e +--- /dev/null ++++ b/tests/07revert-shrink.broken +@@ -0,0 +1,9 @@ ++always fails ++ ++Fails with errors: ++ ++ mdadm: this change will reduce the size of the array. ++ use --grow --array-size first to truncate array. ++ e.g. mdadm --grow /dev/md0 --array-size 53760 ++ ++ ERROR: active raid5 not found +diff --git a/tests/07testreshape5.broken b/tests/07testreshape5.broken +new file mode 100644 +index 0000000..a8ce03e +--- /dev/null ++++ b/tests/07testreshape5.broken +@@ -0,0 +1,12 @@ ++always fails ++ ++Test seems to run 'test_stripe' at $dir directory, but $dir is never ++set. If $dir is adjusted to $PWD, the test still fails with: ++ ++ mdadm: /dev/loop2 is not suitable for this array. ++ mdadm: create aborted ++ ++ return 1 ++ ++ cmp -s -n 8192 /dev/md0 /tmp/RandFile ++ ++ echo cmp failed ++ cmp failed ++ ++ exit 2 +diff --git a/tests/09imsm-assemble.broken b/tests/09imsm-assemble.broken +new file mode 100644 +index 0000000..a6d4d5c +--- /dev/null ++++ b/tests/09imsm-assemble.broken +@@ -0,0 +1,6 @@ ++fails infrequently ++ ++Fails roughly 1 in 10 runs with errors: ++ ++ mdadm: /dev/loop2 is still in use, cannot remove. ++ /dev/loop2 removal from /dev/md/container should have succeeded +diff --git a/tests/09imsm-create-fail-rebuild.broken b/tests/09imsm-create-fail-rebuild.broken +new file mode 100644 +index 0000000..40c4b29 +--- /dev/null ++++ b/tests/09imsm-create-fail-rebuild.broken +@@ -0,0 +1,5 @@ ++always fails ++ ++Fails with error: ++ ++ **Error**: Array size mismatch - expected 3072, actual 16384 +diff --git a/tests/09imsm-overlap.broken b/tests/09imsm-overlap.broken +new file mode 100644 +index 0000000..e7ccab7 +--- /dev/null ++++ b/tests/09imsm-overlap.broken +@@ -0,0 +1,7 @@ ++always fails ++ ++Fails with errors: ++ ++ **Error**: Offset mismatch - expected 15360, actual 0 ++ **Error**: Offset mismatch - expected 15360, actual 0 ++ /dev/md/vol3 failed check +diff --git a/tests/10ddf-assemble-missing.broken b/tests/10ddf-assemble-missing.broken +new file mode 100644 +index 0000000..bfd8d10 +--- /dev/null ++++ b/tests/10ddf-assemble-missing.broken +@@ -0,0 +1,6 @@ ++always fails ++ ++Fails with errors: ++ ++ ERROR: /dev/md/vol0 has unexpected state on /dev/loop10 ++ ERROR: unexpected number of online disks on /dev/loop10 +diff --git a/tests/10ddf-fail-create-race.broken b/tests/10ddf-fail-create-race.broken +new file mode 100644 +index 0000000..6c0df02 +--- /dev/null ++++ b/tests/10ddf-fail-create-race.broken +@@ -0,0 +1,7 @@ ++usually fails ++ ++Fails about 9 out of 10 times with many errors: ++ ++ mdadm: cannot open MISSING: No such file or directory ++ ERROR: non-degraded array found ++ ERROR: disk 0 not marked as failed in meta data +diff --git a/tests/10ddf-fail-two-spares.broken b/tests/10ddf-fail-two-spares.broken +new file mode 100644 +index 0000000..eeea56d +--- /dev/null ++++ b/tests/10ddf-fail-two-spares.broken +@@ -0,0 +1,5 @@ ++fails infrequently ++ ++Fails roughly 1 in 3 with error: ++ ++ ERROR: /dev/md/vol1 should be optimal in meta data +diff --git a/tests/10ddf-incremental-wrong-order.broken b/tests/10ddf-incremental-wrong-order.broken +new file mode 100644 +index 0000000..a5af3ba +--- /dev/null ++++ b/tests/10ddf-incremental-wrong-order.broken +@@ -0,0 +1,9 @@ ++always fails ++ ++Fails with errors: ++ ERROR: sha1sum of /dev/md/vol0 has changed ++ ERROR: /dev/md/vol0 has unexpected state on /dev/loop10 ++ ERROR: unexpected number of online disks on /dev/loop10 ++ ERROR: /dev/md/vol0 has unexpected state on /dev/loop8 ++ ERROR: unexpected number of online disks on /dev/loop8 ++ ERROR: sha1sum of /dev/md/vol0 has changed +diff --git a/tests/14imsm-r1_2d-grow-r1_3d.broken b/tests/14imsm-r1_2d-grow-r1_3d.broken +new file mode 100644 +index 0000000..4ef1d40 +--- /dev/null ++++ b/tests/14imsm-r1_2d-grow-r1_3d.broken +@@ -0,0 +1,5 @@ ++always fails ++ ++Fails with error: ++ ++ mdadm/tests/func.sh: line 325: dvsize/chunk: division by 0 (error token is "chunk") +diff --git a/tests/14imsm-r1_2d-takeover-r0_2d.broken b/tests/14imsm-r1_2d-takeover-r0_2d.broken +new file mode 100644 +index 0000000..89cd4e5 +--- /dev/null ++++ b/tests/14imsm-r1_2d-takeover-r0_2d.broken +@@ -0,0 +1,6 @@ ++always fails ++ ++Fails with error: ++ ++ tests/func.sh: line 325: dvsize/chunk: division by 0 (error token ++ is "chunk") +diff --git a/tests/18imsm-r10_4d-takeover-r0_2d.broken b/tests/18imsm-r10_4d-takeover-r0_2d.broken +new file mode 100644 +index 0000000..a27399f +--- /dev/null ++++ b/tests/18imsm-r10_4d-takeover-r0_2d.broken +@@ -0,0 +1,5 @@ ++fails rarely ++ ++Fails about 1 run in 100 with message: ++ ++ ERROR: size is wrong for /dev/md/vol0: 2 * 5120 (chunk=128) = 20480, not 0 +diff --git a/tests/18imsm-r1_2d-takeover-r0_1d.broken b/tests/18imsm-r1_2d-takeover-r0_1d.broken +new file mode 100644 +index 0000000..aa1982e +--- /dev/null ++++ b/tests/18imsm-r1_2d-takeover-r0_1d.broken +@@ -0,0 +1,6 @@ ++always fails ++ ++Fails with error: ++ ++ tests/func.sh: line 325: dvsize/chunk: division by 0 (error token ++ is "chunk") +diff --git a/tests/19raid6auto-repair.broken b/tests/19raid6auto-repair.broken +new file mode 100644 +index 0000000..e91a142 +--- /dev/null ++++ b/tests/19raid6auto-repair.broken +@@ -0,0 +1,5 @@ ++always fails ++ ++Fails with: ++ ++ "should detect errors" +diff --git a/tests/19raid6repair.broken b/tests/19raid6repair.broken +new file mode 100644 +index 0000000..e91a142 +--- /dev/null ++++ b/tests/19raid6repair.broken +@@ -0,0 +1,5 @@ ++always fails ++ ++Fails with: ++ ++ "should detect errors" +-- +2.39.1 + diff --git a/meta/recipes-extended/mdadm/files/run-ptest b/meta/recipes-extended/mdadm/files/run-ptest index fae8071d43..2380c322a9 100644 --- a/meta/recipes-extended/mdadm/files/run-ptest +++ b/meta/recipes-extended/mdadm/files/run-ptest @@ -2,6 +2,6 @@ mkdir -p /mdadm-testing-dir # make the test continue to execute even one fail -dir=. ./test --keep-going --disable-integrity +dir=. ./test --keep-going --disable-integrity --skip-broken rm -rf /mdadm-testing-dir/* diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index 033766dc89..0d0e8f5922 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb @@ -36,6 +36,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ file://0002-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch \ file://0003-mdadm-Grow-Fix-use-after-close-bug-by-closing-after-.patch \ file://0004-monitor-Avoid-segfault-when-calling-NULL-get_bad_blo.patch \ + file://0005-mdadm-test-Mark-and-ignore-broken-test-failures.patch \ + file://0006-tests-Add-broken-files-for-all-broken-tests.patch \ " SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d"