Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1232755pxb; Fri, 1 Apr 2022 08:03:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJhL6sAdirr9AYXQiQDbBf2aDQoVrN3xSj82A2fzCDtR308VqSY1iGLhoiZjFa2IT6ArN2 X-Received: by 2002:a50:bb08:0:b0:41b:6bb6:3be6 with SMTP id y8-20020a50bb08000000b0041b6bb63be6mr12724182ede.106.1648825382320; Fri, 01 Apr 2022 08:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648825382; cv=none; d=google.com; s=arc-20160816; b=trk94L0LPtXLMMdm15zC5SPoVW3aaPMOzIgiFXIq3UlKhl2C8YkWdKyMMn0MrpyVsG FdBUboUaurVWQKcyojbCkmPC7MFb1edldRfDqCrK2SR8mswi23Y4+ZofR+i2//BWUuAa 4nHj5JlxBotzmsW5KOK7UnKLPfzPFag+R+Ta+x30dgtM4V9H4OkHsaz45ta3UD/g2rgV PAzkqis71agKDKawfb6GePLyvS8XMEgBWeSJL7PfORaisLCNOBT96QW4g/YSilk1/YZK cXJERPfshjCGiSSIBP1nFft5vKTEzspw9wEyUjSUTlWIGLLEkg5fzTh5AENhvxZCDHoA MT+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W0QLNnK+Wk2szGpcdExRGpJ0G754HIImaXnPXtT5o0w=; b=rde1CkG+gTpfqkvs+Z/ajI/S5FAe6Q+mdKZ9lvBQVBvfbCSScmoBSJnL/VCsLJoSbE nR1pfX/T4Ys0hM4Smtft5xTbpMO60d9ZLEUaJzX/3jEcSHIFxWxMoiXrwqgwq30J50p0 fLQ/2siQibjl1A+D9VlLD0afOD36If3mk6skiiTJ77yxcCMLxIX7rDapmNHFszIFb/jN eG50byXT8uGQbC5v1GXJAF71pLYu9Gp6mQocU+MgB6pU72s8mfNvJx8wp45H9iJy0KSW JA2RhgMCLGYTNkRTEkIg5XpgzvK0y7x40YFFSz/KbLBWg4p70n29yGFQsPtvQEA0D+PD JZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HGiLv+vr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a1709066d8100b006df76385c41si1627037ejt.225.2022.04.01.08.02.32; Fri, 01 Apr 2022 08:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HGiLv+vr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbiDAIcQ (ORCPT + 99 others); Fri, 1 Apr 2022 04:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243812AbiDAIcL (ORCPT ); Fri, 1 Apr 2022 04:32:11 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 380A85132C; Fri, 1 Apr 2022 01:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648801822; x=1680337822; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4Ib0Vzjakf6ZPrJYum7yQ1QLUYoaZZXBlO6Yvscvauk=; b=HGiLv+vrvJmOoJ1TDgdJaVHAqv2z59fD0Tc4aVSeN434rNVkrvYa+lsI SsX8uCABSdS1rHtbgIxPn2+aDeY9HGzEPdEdDwgSomyHY3S5XaMt8ZGY3 U5PRJ6mh+JHPes20tVnXsu0v2QN5JfXM8vVtO4ISM1XlJZ0be5mAhQfkW RYs6kjR5SZBCPKF65fmL0QRn1wy4kOJPv9E9gJKT3xhhzoYmrw/zSzAhU Qe6RoQ/4O/2EuOMbJv84NO8jYyUTYqN/HDyLnue8UXujp12T9soAxQirb EFCoKJQhhIoZ5T3yuiqF4knO6EeGc5I3Wn44oLFENnXjEuZCng8zlTur3 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10303"; a="258910150" X-IronPort-AV: E=Sophos;i="5.90,226,1643702400"; d="scan'208";a="258910150" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2022 01:30:21 -0700 X-IronPort-AV: E=Sophos;i="5.90,226,1643702400"; d="scan'208";a="522693080" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314) ([10.237.222.76]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2022 01:30:19 -0700 Date: Fri, 1 Apr 2022 09:30:13 +0100 From: Giovanni Cabiddu To: Eric Biggers Cc: linux-crypto@vger.kernel.org, Gilad Ben-Yossef , linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: testmgr - test in-place en/decryption with two sglists Message-ID: References: <20220326071159.56056-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220326071159.56056-1-ebiggers@kernel.org> Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 26, 2022 at 12:11:59AM -0700, Eric Biggers wrote: > From: Eric Biggers > > As was established in the thread > https://lore.kernel.org/linux-crypto/20220223080400.139367-1-gilad@benyossef.com/T/#u, > many crypto API users doing in-place en/decryption don't use the same > scatterlist pointers for the source and destination, but rather use > separate scatterlists that point to the same memory. This case isn't > tested by the self-tests, resulting in bugs. > > This is the natural usage of the crypto API in some cases, so requiring > API users to avoid this usage is not reasonable. > > Therefore, update the self-tests to start testing this case. > > Signed-off-by: Eric Biggers FWIW, I tried this with QAT and I don't see any issue. Regards, -- Giovanni