Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4628714ybi; Tue, 11 Jun 2019 09:42:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqws5pTuQVuogBtmt7mVr9X5f82V0NmTYJ/WBJsaq5WoRduUOYEvACXqDu9PUpxph1P+NCdJ X-Received: by 2002:a17:90a:3787:: with SMTP id v7mr18290009pjb.33.1560271323997; Tue, 11 Jun 2019 09:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560271323; cv=none; d=google.com; s=arc-20160816; b=pwukiC9E/DLjFeMPeVPnmBINjCVbCGfYKNb48s6UfA9OOZONx3hIa5w/c+ouL+z2eP m94tyzpwPBBxryfRRoPZ62B2bA4Q9WdNPFA6S0oaKaVSK0Z8qM+EiMU6zSLpXde30ib0 i7U3xbBCpYI4D5RnOorddw543weSXAVxZCPNCPZLxbyD3mDe2+h1KISHQSkiqdbD322Q s0iV6G5zby858YxaH4YkFibQCSMVyLQhL3LEtxoVx/tLhQORF6eLVOsh9A44vqUwrRgn 81mmyUy9con+gm88vaTg256OsDCy5/QqMzZV5NTPQdxEN0O+vT7u37f94si7VZd4c1OH nZpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nacfqdIc+gMnmYv/4j/Y6ajtQLWCe6LbE+j1wnUxsF8=; b=KWtY6sp6hslMQczUi1HxxQG5ixtLCqCT4JplaeZ5Cl2Hlj/O0So2u9Ou5nPHpaFNJB IkGwud6epUofM6DTpHNdzMn8tol4xtsolCMm3BsgwfgNGHaaGCUtV0CNDLDdmIxTrLc7 +xSAIpMHdkuSx4FE78iryY73HkZg/3J7XJb8+KPYfliUGCseeLX/M2XSJ05KTy2Dlbx/ SVd8PS8yA/Pc/Tso15vQZ8Woa3/Xt+uoV9Ym9u6tcJgGpRhkooHQiDjeu8nrvpE+zUNW +AzubS39bHh+2z1SUKEBJbbxKkH/OuCav7//yYkKBw2SaVUknkcfe6YHKWr+5d+GXryd Et6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=hAiF2huG; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si13110459pld.236.2019.06.11.09.41.50; Tue, 11 Jun 2019 09:42:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=hAiF2huG; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405081AbfFKPkO (ORCPT + 99 others); Tue, 11 Jun 2019 11:40:14 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:49395 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405025AbfFKPkN (ORCPT ); Tue, 11 Jun 2019 11:40:13 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45NZ2K025Mz9v0CC; Tue, 11 Jun 2019 17:40:09 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=hAiF2huG; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id neQk5hWg6UDv; Tue, 11 Jun 2019 17:40:08 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45NZ2J61y8z9v0CB; Tue, 11 Jun 2019 17:40:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560267608; bh=nacfqdIc+gMnmYv/4j/Y6ajtQLWCe6LbE+j1wnUxsF8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hAiF2huGd8nVnjWRuL4lLXCHBMUh/wFQ8bRhZ2DA8B5E3uomVGcNYyUdcI3ukZaK6 JiiSDwBX99CTy0N8KHlaswTlJMAPN+zYveHMsAj2Kta3WT3Ggr/dRA30T5VmEgV6LB EvA67HFc3ggCyZycwf+rRWwj0+nXdR8iWMTTIGwk= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 53CB58B7F8; Tue, 11 Jun 2019 17:40:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id sd1TWQufMMeN; Tue, 11 Jun 2019 17:40:10 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8EB858B75B; Tue, 11 Jun 2019 17:40:09 +0200 (CEST) Subject: Re: [PATCH v2 0/4] Additional fixes on Talitos driver To: Horia Geanta , Herbert Xu , "David S. Miller" Cc: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" References: From: Christophe Leroy Message-ID: <0cb7c534-6e48-5284-899c-c0ef85c3c126@c-s.fr> Date: Tue, 11 Jun 2019 17:40:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le 11/06/2019 à 17:37, Horia Geanta a écrit : > On 6/11/2019 5:39 PM, Christophe Leroy wrote: >> This series is the last set of fixes for the Talitos driver. >> >> We now get a fully clean boot on both SEC1 (SEC1.2 on mpc885) and >> SEC2 (SEC2.2 on mpc8321E) with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS: >> > I am getting below failures on a sec 3.3.2 (p1020rdb) for hmac(sha384) and > hmac(sha512): Is that new with this series or did you already have it before ? What do you mean by "fuzz testing" enabled ? Is that CONFIG_CRYPTO_MANAGER_EXTRA_TESTS or something else ? Christophe > > alg: ahash: hmac-sha384-talitos test failed (wrong result) on test vector "random: psize=2497 ksize=124", cfg="random: inplace use_finup nosimd src_divs=[76.49%@+4002, 23.51%@alignmask+26] iv_offset=4" > alg: ahash: hmac-sha512-talitos test failed (wrong result) on test vector "random: psize=27 ksize=121", cfg="random: inplace may_sleep use_digest src_divs=[100.0%@+10] iv_offset=9" > > Reproducibility rate is 100% so far, here are a few more runs - they might help finding a pattern: > > 1. > alg: ahash: hmac-sha384-talitos test failed (wrong result) on test vector "random: psize=184 ksize=121", cfg="random: use_finup src_divs=[100.0%@+3988] dst_divs=[100.0%@+547] iv_offset=44" > alg: ahash: hmac-sha512-talitos test failed (wrong result) on test vector "random: psize=7 ksize=122", cfg="random: may_sleep use_digest src_divs=[100.0%@+3968] dst_divs=[100.0%@+20]" > > 2. > alg: ahash: hmac-sha384-talitos test failed (wrong result) on test vector "random: psize=6481 ksize=120", cfg="random: use_final src_divs=[100.0%@+6] dst_divs=[43.84%@alignmask+6, 56.16%@+22]" > alg: ahash: hmac-sha512-talitos test failed (wrong result) on test vector "random: psize=635 ksize=128", cfg="random: may_sleep use_finup src_divs=[100.0%@+4062] dst_divs=[20.47%@+2509, 72.36%@alignmask+2, 7.17%@alignmask+3990]" > > 3. > alg: ahash: hmac-sha384-talitos test failed (wrong result) on test vector "random: psize=2428 ksize=127", cfg="random: may_sleep use_finup src_divs=[35.19%@+18, 64.81%@+1755] dst_divs=[100.0%@+111] iv_offset=5" > alg: ahash: hmac-sha512-talitos test failed (wrong result) on test vector "random: psize=4345 ksize=128", cfg="random: may_sleep use_digest src_divs=[100.0%@+2820] iv_offset=59" > > If you run several times with fuzz testing enabled on your sec2.2, > are you able to see similar failures? > > Thanks, > Horia >