Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp514424pxb; Fri, 28 Jan 2022 04:20:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu+OPSGXLmU8K/6kI8dseBoWDJyPViYPV38FqsAUOZtJyNGs1aFsQLt5pmU2tm8laUS6e6 X-Received: by 2002:a17:906:c14e:: with SMTP id dp14mr6696126ejc.9.1643372429309; Fri, 28 Jan 2022 04:20:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643372429; cv=pass; d=google.com; s=arc-20160816; b=eGjkbByTSnkUW3jmWWX11TWDu6GHgUCKYcCIFDAFbxZ1TOeK90kWh/9V17TMDEO99/ DU6Zxlin3xxQo7oGQ+p/wb+8noQCezyJpJ/zurihUdeJb5i0iBCGv9lo4KHoF2Iz9MfX oN5SXArWWpGquDaH5MeacHZfSVNwZUkq7S6xat2zpZdohsm7vM+gHLcZJ4/uXLEsfFi/ 8iVe1MIWZDNEM/tKwZKOUbkohNIdS5UseyufvRXIFEehprt4HSFWIgYEsaQS37J/1F95 3T8ddB35osIObNzqARy8edEyR2G66cfpT3kbysJ0wfuVHKIumZDRJqAlW4WJ7EwXXl0Z f3ZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=9dk8gGogatYy1mjGzBFi8T8Of9bqqyRz/nlmM5kA8Ew=; b=VtR9UIwsluetMg1d6GqHULI+lV4r9QBFtTlYjZf3zX+6DdaVViFWHKa9Taj3dAL/+M lT1EX/7ab5sFO97y+XvXxJXQYC2L7pz3S3uqkEyj0NEosxFjTFl9wYe4FKLcmlDdVGbB +KsxT9L3vc19LOfCKuoiKMw/zCVhFFF9Dbgzz2QrwGlL0h9c96+JZVxjBas3PK0THblh mYGgrBRiRPXHxIwr9R9HcwfZGLAR+i1rcXUGeXRxopiUQ/SlYEJjEPyFVNkuIzdaYSOG guQ8W7hQM78Tpq/dkEkY/mL6M8yKFGiGL0jadRZ0tWrgcf/lod11rrpl4lsR60YMRQKo SOPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=HxisrEMm; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si3503141edv.621.2022.01.28.04.20.04; Fri, 28 Jan 2022 04:20:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=HxisrEMm; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=seco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244645AbiA0RcG (ORCPT + 99 others); Thu, 27 Jan 2022 12:32:06 -0500 Received: from mail-eopbgr40080.outbound.protection.outlook.com ([40.107.4.80]:11680 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244622AbiA0RcD (ORCPT ); Thu, 27 Jan 2022 12:32:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EpWQMml9L5CIUO91pYgQXCw2qDrv938qt/H7G+f7rF1emwvZd1NECcDaZVy+UEdAvR2vfTZVNQFK9EaArkrdY6AuIimdqq8HvOHo4F97l3GAmIZ1GPmWJdGeht4Na+JG103QLrw6Izyoi3p6YDIxxAEKxH4d0HG41Ii0qKMLR2IpRSQNFe20kbgAXX18JY35hRHmU9HT1AQqN+wSP+NqHWI48OYraCCKMpCKjwUbZPLYdpSnq0pP7VwK+NovOraYN79GAxLIi/vjQ/b2KK2TsulC2vE/QmQu0/iEM1g1xfYtKGyihDMvb+gEaA9x4DvdZctdE8cL5pEGwo8Ifw5/6g== 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=9dk8gGogatYy1mjGzBFi8T8Of9bqqyRz/nlmM5kA8Ew=; b=YlITjbRgFfbgAY4sF11Rk+QkiBSFzd/dra06LUbeKrb0h4BJ8M3tvwrwSVc/Qn9DN14ANvEQ9tfcZC79CO4dC2MmFAffcPaaqPMweGAmn12HTB0jFYjHLruegvcpbTPO09KURhqiVA44pZIXSXNd+lsi2sU86gbzrOvO7ROfHecGPldTzoSxP1/6GUcGZA4v3PXwt9NFOn4nBcQnxp/HhzHWxaf5V9q+zjVunxrOmCkCB4AdVoBpSgMIIf+LgU/IngJ1jSd00F+nhcMS4BTNtVFXtpFY08NlElFrnFqObqkGWvlusBPEWKAnzknrT6Yp7pxLKruR2yeHcw0HpWskQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9dk8gGogatYy1mjGzBFi8T8Of9bqqyRz/nlmM5kA8Ew=; b=HxisrEMmeqZ4gsulm5qmkHXxnMVw1WAOSFe5vx67hZkwdm/EYjgfvn2Q5DGSPBfTunQMiuw/HL9EuR+CvqtVAeO8qt13qq2QKBu576N7OcWROx+Im37m33/mgxwoCeKJ6x2LvdtxIwfwvIafN7AfHLw0puzAiqFADmbhbLpKWHcc4YH7CdKNDv4jMYjxBLDGsutfjN3nWcEkEtgv32uOp7KcLN3/xOZXRn9wYf6mQiiRqgE3Qx+8ImvDs6KJB7gEHEWHDBZdE5qZQ1xcrstC4KpMCFEYXq0lTP7WEuaxEULx6zAfFaWl06xOjLEyBc8NIeoIDqsT45VFlWzqPONoAA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by AM0PR03MB5953.eurprd03.prod.outlook.com (2603:10a6:208:15c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Thu, 27 Jan 2022 17:31:53 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::2d1f:654e:f946:1a95]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::2d1f:654e:f946:1a95%6]) with mapi id 15.20.4930.015; Thu, 27 Jan 2022 17:31:53 +0000 Subject: Re: PROBLEM: encryption test failures since "crypto: mxs-dcp - Use sg_mapping_iter to copy data" To: Christian Eggers , Herbert Xu , "David S. Miller" Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <2126453.Icojqenx9y@localhost.localdomain> From: Sean Anderson Message-ID: <414858de-f279-c5ce-83ca-5c28d6c847b1@seco.com> Date: Thu, 27 Jan 2022 12:31:48 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <2126453.Icojqenx9y@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR22CA0018.namprd22.prod.outlook.com (2603:10b6:208:238::23) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3b52554-d3e2-4ecd-62af-08d9e1bae8ad X-MS-TrafficTypeDiagnostic: AM0PR03MB5953:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:272; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7vDtf1hJPY2gDbSe+2Ra5elDlgjMTBtEWSSnPF0x60yTD8VjKa4LONbD0NpDFWBNKdnpOWHPTdELrdD/6YSG0Hh5r64ksGxEHa8kmQmGlohwMAlEUsv9DYmPmrq+lWP9CPUsY5Zf+KW+yyGBbU24lSiBYgklyUIPPaU/KO8rOLFgOmjstkarLrU0oUlY1fXnUw8aWgYNvllUyZnMXYQgyeG7vGBGDscXoylTXwYoL9qo6AcD85MSOJDaQEoJQiMcn8FfkJ5INi6nnqVMYYEd7ciET371361gZUc1nW7B3uP08rjWJWBwLyjs6dOWzuZBiFPzOe6k+Yjo38BXaYoK1tLrw6csYGYs2phuQWskP2Mtk1SBJbt19WhyffO6lJlJ6gJrrjy75P2OiwiXPhS5Fc9E02odOlMO5DAdUYuN0fMQXWYYhQ/R8I5BkjDsHpu/hVwsnCojihB4NCcA1Yjjwy9DmPrsPBXEYaJvzCosDFiU3LTFLBzhQovBcAp2UqtqvnSsvt1wNo/N5Y6AzNLB1XlthA/xOvtOZJ8GBy1YTUY8KHSpQ+d7ebxr1u1MIzXloODDdk8mRRZ6wjgt/xYIucfgt/BcoVcK7wSAVa9j3/9GkjkDkbiAbOF+Guyp+rjeHgNCO6ID1w/cwdRq77VeUZHhOwxixzpbpw6A18t6fuYauTe6kiSN8uG9UHpFxVFCArG57EXYsDD1qxDoXyeoXp4RTFvmcW9CN8vJ8bQt+RM81as5jjkvGZrFHmQ3/K929p+aat9+be/anexJdFTL85245kiBoVs9L3/7J9zwH3BSneDd0SvKOvkSuWDp/8QVpM5viFhF4RopV2PVCxrI01c6N1n84uI5vU370ItbVUE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4523.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(54906003)(8936002)(66946007)(36756003)(8676002)(5660300002)(66476007)(66556008)(110136005)(7416002)(4744005)(38350700002)(38100700002)(31696002)(316002)(4326008)(86362001)(508600001)(2616005)(26005)(186003)(966005)(6486002)(44832011)(52116002)(6512007)(31686004)(53546011)(6506007)(2906002)(6666004)(83380400001)(45980500001)(43740500002)(20210929001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bmVtVXQxQkE1TXlESWZYVUwyZDdzWnlYeXQ4WmhjSXFuSTQxWW1rUktPeDFa?= =?utf-8?B?a1k2L3dRZi80L3JOaGZXNU9NUEJlWVp5SkZzaHorOTJ2eWlCU1BJVmxyNmdZ?= =?utf-8?B?TjliUjUzV0dUZzhUb08zSDdnUEFJd0hoR3lEN01PSU9YS1UwYXFwaG9mV1pt?= =?utf-8?B?ZDd0MnhqR0JEVXFrRWRyazhTTnAxekRRRnhhai9DVDJGam1sQjRDaDVmcTZi?= =?utf-8?B?bElNcVV0U1ArZVJMWTN1a3FwVlRvbkc5VTJJUzV3dVVWSXYrZFhwNTRwZVli?= =?utf-8?B?dStsSDlMLzRENC8rY2tsTmRQNWpHNnFEUXhKYjZsNUFDQzZmSGlwUGhzN1JK?= =?utf-8?B?d3psazlDMzdhQ2dWK29lc0JZM2F3cmRpZ1RHcE81TlNtWFE1UnI4M0lpUlNk?= =?utf-8?B?KzU0ek9xU0lVUnl0VHRrVmowTUdtdG12UUtqMHNOaGhQSVdrY3orRlZ1dlVO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ad X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2022 17:31:53.5042 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6etF7MPITHgle9BQJHiNJXx5qT3aroDlLXslbmG9z54kNVfrvC4dOkckEasSzLsoxdVldsLc+6W/h3//f8PurA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB5953 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, On 1/27/22 12:23 PM, Christian Eggers wrote: > SoC: i.MX6ULL > > After upgrading from v5.10.65-rt53 to v5.10.73-rt54 I get two additional messages on boot: > > ... > [ 3.786333] alg: skcipher: ecb-aes-dcp encryption test failed (wrong result) on test vector 0, cfg="two even aligned splits" > [ 3.789020] alg: skcipher: cbc-aes-dcp encryption test failed (wrong result) on test vector 0, cfg="two even aligned splits" > [ 3.793741] mxs-dcp 2280000.crypto: mxs_dcp: initialized > .. > > After reverting the commit > > 2e6d793e1bf0 ("crypto: mxs-dcp - Use sg_mapping_iter to copy data") > > the error messages above disappear again. Can you try applying the patch in [1] on top of your revert? --Sean [1] https://lore.kernel.org/linux-arm-kernel/20210701185638.3437487-1-sean.anderson@seco.com/