Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp652076ybl; Wed, 29 Jan 2020 07:17:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwzbt9miltZgFm07pQZ3oeK4ZM01Qv0uslfHHc/5SSk2PNbPnWT+EOy2NaBeajKKhKpqLEt X-Received: by 2002:aca:4587:: with SMTP id s129mr6474165oia.124.1580311070797; Wed, 29 Jan 2020 07:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580311070; cv=none; d=google.com; s=arc-20160816; b=yOKJF4Dk/OaBkZJD0Gx9YtLbEhJAdeK51rSYqItHMZtd7+HYy6TC1Yag1tc8ZR6DDB HNOKDGtny38VzhKg00cZuPrI7EytOgwahEU6a3R5itCBOJzahNpYsrESkHgqkROYgvUw b3PequVsQTBWIEhhY/sPraeUvjCLagmddHrWvDzrZeteROYySJxvPyZVN+1p5nASBAOk Nz9Ln+T7XxLzJ1QAXbztij2LK+36r2nC4Z/Gb+7JkfpLvjykIm3N0PczVMVPdVBPnxAU LEdEmUvQdaispbJ4GByiq9YYO2wERFGH0u13y0JhuR3xAqNaSLrVpRpjuQ59eyMe84pH BFSQ== 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; bh=qr5rcclDXek9xalM67OQ7srzBCrWHdD63OQGXZ5BcrY=; b=RlVk8URPysn/sRVtWHgNAT+W3oXYBcmfXCX/9VMws0ful5v7caT5S/IXfyDSTKYlLg l7c7ZNVZAbf2DYfDqhXhxiMc6Ww3hm57rQ0Uf7qGE6LETMZjbmUJlsH3C1U07v6pAVpI YBY4IkN1BqiKUTmjH9neUF8XNJQAR/VxWd47Y4cPfuOg3aBiKTiFru66SDLvTT4oDCb/ xtyDZOTi1uZCaujXJi6Gpg3UaHeTXEDvu2PstotNJS9Wz96xFQxonYs7ST2zyU4Gm5xC bxF1qT9lwta33hwAJx4wW+BqRmEfaZs0t4/bKVbr+/DD/yUn5YKbKoYssWlc8CIanEGi 9BFg== ARC-Authentication-Results: i=1; mx.google.com; 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 w81si1127134oig.107.2020.01.29.07.17.29; Wed, 29 Jan 2020 07:17:50 -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; 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 S1726795AbgA2PR0 (ORCPT + 99 others); Wed, 29 Jan 2020 10:17:26 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38804 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbgA2PR0 (ORCPT ); Wed, 29 Jan 2020 10:17:26 -0500 Received: by mail-ot1-f68.google.com with SMTP id z9so15839648oth.5; Wed, 29 Jan 2020 07:17:25 -0800 (PST) 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=qr5rcclDXek9xalM67OQ7srzBCrWHdD63OQGXZ5BcrY=; b=o4UgN0G4W4dc1DdK2yQ9dT554SqiFFVd/fytSoSIn5kTXmEGw05N3GvsB7cp7lNXI0 wynZ834cWK2ZnqYq5OZfO9H4YlFwgFurLKJ13NDevTEKXU01idDOzPs6OxW4yvJczgdl NsZvxd9SRajgi6t9YdPSA8Xy8TRACTqZ3VUGp+Y9EP5qonCWxTKPKQLlQ2Qq4B6HBqh9 ByNDEQdHYB+KGUHQigXQ4T5Ju5+7ScPBWeFsexyXA2KAAHYoPcWbearv302AJ0GXvcur yVzo1uagFyFX1+M1HUZha43yHmSUs4jYyYzCLS6dtU5v5TO99uPuTnS8oK1q9zdoLVnS YEmw== X-Gm-Message-State: APjAAAXJ31MCvfhoN9L+tdTk/r8IDPTk2kEVwr6UoyYLcy54XQ28fepy V29sI9Au748wUDADmZfl6M1LDgStVEyG+6UGzIQ= X-Received: by 2002:a9d:8f1:: with SMTP id 104mr19648679otf.107.1580311045293; Wed, 29 Jan 2020 07:17:25 -0800 (PST) MIME-Version: 1.0 References: <20200129143757.680-1-gilad@benyossef.com> <20200129143757.680-5-gilad@benyossef.com> In-Reply-To: <20200129143757.680-5-gilad@benyossef.com> From: Geert Uytterhoeven Date: Wed, 29 Jan 2020 16:17:14 +0100 Message-ID: Subject: Re: [PATCH 4/4] crypto: ccree - fix AEAD blocksize registration To: Gilad Ben-Yossef 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 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 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds