Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1645489ybl; Thu, 30 Jan 2020 03:34:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxrODvyKWZZEIZcDrimp+PMCFqjjqZ4Uetk5fB5poNL0gs2fONJC/Mh0fRSnA333eJIiIUO X-Received: by 2002:a9d:67d7:: with SMTP id c23mr3215583otn.262.1580384055040; Thu, 30 Jan 2020 03:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580384054; cv=none; d=google.com; s=arc-20160816; b=bkcxt2HeHAethRUyNM4DR4mUKS78kIZxSFKUhfqqaQ3eidu8l6FWra+F8H2EjAQtRu y7TZ8qz49LsYcgB/oNQniqtf9LofaGRzO13p1eA/ryhKQOu1C/6DLlYicoXRnvOtAapw 1UwqPPgatcEl+7EmDelXjN6YiaCwgV0A0OBu1/L8iwXXvJvqTAcEHmjS31tdmOdWxrhr 1oWgcRXo56dmJjP4OsdYCnEQdBv/K+Xlrwjggu/VjEdZQ+NZFJSZwh2pUYe+EEg3vfhK KB/gw8mnyAUyB1s3D3IMyLIiBts250M4lvkBHtH1vUflNq5Opt/nn5ufI6YKOV5nQwCg Qyog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sachUFQOePxVrLNclWklF0gCfdMb5uCt5/iIiiOjQ6k=; b=EwMFUgVQDAcSZXv6Hgerp3JOeCKLawCm1UTDSq/5qEQHVtkQIk1a3sx32wxHALnALt yf9KtLhL8Kq8r6ahtS9ySQmvOvkZTMClqW7u02CTl8SWhxTRDM38VTse9hBrY8ZKBsYd 5S90UGB1GWzYO9aORJ/b6PmQlCGYjiqXm2R65kQ3W1ofGqByaXlRaRT6S11QEBGGoX/Y yOoBfIu57ZLy62fxx9cemUEew7Xa29VqaqcQUD5Op4vSGBJMUH/fRiOIDalFrDVG8/ys dUR7ikfmC7vLdpppDERp3ERLobQvRhJBlifoCY69NAKR8WXL55mlF64eqdC+afJRARu1 oX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=m1CNO0r9; 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 x3si2819056oie.146.2020.01.30.03.33.55; Thu, 30 Jan 2020 03:34:14 -0800 (PST) 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=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=m1CNO0r9; 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 S1727210AbgA3LdZ (ORCPT + 99 others); Thu, 30 Jan 2020 06:33:25 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:35092 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbgA3LdZ (ORCPT ); Thu, 30 Jan 2020 06:33:25 -0500 Received: by mail-vs1-f68.google.com with SMTP id x123so1851292vsc.2 for ; Thu, 30 Jan 2020 03:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sachUFQOePxVrLNclWklF0gCfdMb5uCt5/iIiiOjQ6k=; b=m1CNO0r97qGHq1nZLkvorYbHCl6n3yiSngEKvS8X15JFdYJBqxFNmht5iX0MecxIOP 4O6kew+CVKxdg87E9RakdF7ZlSNNkO0O1OoKOxGWLojbtznM9xvA2OxGq3aXJsNzwrDm 1IYGvi7B54p545j97fkkv04Amo4Hq9RpS2+z+lyNUoF4an8lBtJjS/G4cTjJbQkmX2bc h7nNqV39Z5K0/ImATsG6f52N36W+LLu5YT3ohyEgwAbYlPcglHJRq56hKNjEu74wW88j EMpyr9P8VkVZQJk6fiw8x7mSXBySOcs1tFJc2COZrCNRnWB+2VDvGZapfDNs+Ksg28iw zZYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sachUFQOePxVrLNclWklF0gCfdMb5uCt5/iIiiOjQ6k=; b=jcLfpgR64Sa2P3r3gt919L9Lm3fQrllus0YbARwYlOuQ0wWF30/YsZ78Zx7pvk8I4D HEQ5SzF1BJ4y770q3IxgwwK0P938HkLCPhEkzVt2EjNwlM6LTn4ZcESHiP7ptVU0voaJ yvpIGa8hS0qQnvfCSB5P39q1B75VlyJJqpx7l5c7yWEqEmTU59sYdzF1TP/hM1mV0P7y G5M8Dwa/oT5k/LOXhWro/RoRckTLHM+Og0WX7E2dIfS4nrzDro18+2LjUB4/uBI6qFbu yykMMcRvLHgsFRv2kfQTizlgm4VNxALaIYNEnPQAz6emkstifWPHIrm8rzLcDlhBDLx1 NSNQ== X-Gm-Message-State: APjAAAUBJZPSG0QbaYtlzH2KyG3AiafH0UnR1JtrugCWnCgCAlmQ4KTI mymYF4OPKym0PTblqr4Pa+/2d0ckwgcQ3YtIdrsXOQ== X-Received: by 2002:a67:fb14:: with SMTP id d20mr2749866vsr.136.1580384004008; Thu, 30 Jan 2020 03:33:24 -0800 (PST) MIME-Version: 1.0 References: <20200129143757.680-1-gilad@benyossef.com> <20200129143757.680-5-gilad@benyossef.com> In-Reply-To: From: Gilad Ben-Yossef Date: Thu, 30 Jan 2020 13:33:11 +0200 Message-ID: Subject: Re: [PATCH 4/4] crypto: ccree - fix AEAD blocksize registration To: Geert Uytterhoeven Cc: Herbert Xu , "David S. Miller" , Ofir Drang , Linux Crypto Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jan 29, 2020 at 5:17 PM Geert Uytterhoeven wrote: > > Hi Gilad, > > On Wed, Jan 29, 2020 at 3:39 PM Gilad Ben-Yossef wrote: > > Fix an error causing no block sizes to be reported during > > all AEAD registrations. > > > > Signed-off-by: Gilad Ben-Yossef > > Thanks, this fixes: > > alg: aead: blocksize for authenc-hmac-sha1-cbc-aes-ccree (0) > doesn't match generic impl (16) > alg: aead: blocksize for authenc-hmac-sha256-cbc-aes-ccree (0) > doesn't match generic impl (16) > > which you may want to mention in the commit description, so > people who search for the error message will find the fix. > > Tested-by: Geert Uytterhoeven > > Note that even after applying this series, the kernel still crashes with > > kernel BUG at kernel/dma/swiotlb.c:497! > .... > Call trace: > swiotlb_tbl_map_single+0x30c/0x380 > swiotlb_map+0xb0/0x300 > dma_direct_map_page+0xb8/0x140 > dma_direct_map_sg+0x78/0xe0 > cc_map_sg+0xa0/0xd0 > cc_aead_chain_data.constprop.25+0x17c/0x6a0 > cc_map_aead_request+0x61c/0x990 > cc_proc_aead+0x140/0xeb0 > cc_aead_decrypt+0x48/0x68 > crypto_aead_decrypt+0x30/0x48 > test_aead_vec_cfg+0x5a0/0x8d0 > > but you may be aware of that. > > CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n > CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y OK, this is a new one yet - we are now crashing in out-of-place decryption. And again, I am not seeing this in the different test board, even with DMA debug turned on. Can you help me out and print the cryptlen and assoclen (I'm guessing both are zero), authlen and which AEAD/mode this is? Thanks alot, Gilad