Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3431414ybg; Mon, 28 Oct 2019 12:43:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5q7lNZbhgcB2Pb36ivEKKPn0t2DSQLsPOzTjsUNtH+z66NTgoygRwhkHDeohg54iOTgkh X-Received: by 2002:a05:6402:88c:: with SMTP id e12mr20847909edy.170.1572291785885; Mon, 28 Oct 2019 12:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572291785; cv=none; d=google.com; s=arc-20160816; b=vMyk3UGRi3k0XrVmAGviKC+daQqhVC2XIYFJJMFsSmIng0d1bk/e8ff4u1cVZq0Vif ByKJ+6XZmESNX3eGfeFsQjtL/wmPVHTYESjrkCJBtRLv2cGK3CnASBAZMdq5/E6o2XUr YBPs0nNXZC3eO3dEmI0TXkVNdBvudErhlnGrN52wU99jV5MoK0m4jHEq0AE9Z0K4cx0N jggsPEQcGJiIuvFfsdBAEOZnSJj5mG/BgAQ+MeEccp2s7TI+ULMqhcsEScLJav+CVNxp R77QUrLspp/XDXCOwStmFGeelX18rCaAMTV30gxXD3r4MBmPPxlatRpN0nTz2gzFENel or1Q== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Wr2jB851O+Opabs2ncsRBVcciUPBCA3lrlYshLldd9k=; b=FndFfHdd495BF3NZHlMr1QigwdvUNzQOLvCkqLRtM0ZnKFertevWb10iZ5WbNbbgM7 tBNvhZI7IDYPQpG15ZltPBncoLleFBEbpSg/AMO30qvT+2DFtJKw7aM+9czyupUeEFZg m/3868gIg7kqMVvmg2Z1v9OzM0mpb0vEeu4UM8UNqwHTK1NyTSyrR6hWoSVIAB3c+lJW Jnrxay6PD96NO2FHIbL5EkP4pjxl2L/AL6y+oG6Sd/en4Rrya/376LfVHLuKU+P0b4PW Ibe5GDVnYIoC6OqeVKXGvl8eV/F/BNJ7Kq6vMFcHjea0K1s1+hAC2NET/lbjfLr2A9xo 4VIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="s34NV/eB"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p24si1524930eju.309.2019.10.28.12.42.13; Mon, 28 Oct 2019 12:43:05 -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=@linaro.org header.s=google header.b="s34NV/eB"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732961AbfJ1KkM (ORCPT + 99 others); Mon, 28 Oct 2019 06:40:12 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:34973 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732924AbfJ1KkM (ORCPT ); Mon, 28 Oct 2019 06:40:12 -0400 Received: by mail-wm1-f68.google.com with SMTP id x5so1306862wmi.0 for ; Mon, 28 Oct 2019 03:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Wr2jB851O+Opabs2ncsRBVcciUPBCA3lrlYshLldd9k=; b=s34NV/eBsfrsmnM8gawO9IncDU29TJ/OixXrJIVh9DoAAwbw19pfRB7a3xNHY2dpvH XaA9sRueiyAR9tinh2M/ifZZIt8RW4da5AFBDID0yLqznNVe5UVq6CuZ/brLO/wSyf/k 6WRV7+tm7FrTPVSujilPRL0E+PIQT7X+QyVw5C2PB/V1WBcutFYAHcQURajbhvHrraJq uDlLW3jpzA9CCh50ITWucj/GTGPrCLiQwdpvCRTUWDzNezlcQaW2M9C7k3k4LlbXdI0C 8WNFQciSk+YcaJSlM3IPAOdP+vkvtgCXO/uU/OD88aT8RC1lq0sI60ux3k6c3RFeByRz 58vA== 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:content-transfer-encoding; bh=Wr2jB851O+Opabs2ncsRBVcciUPBCA3lrlYshLldd9k=; b=KyUW9iBTytTTez94TJdxA+J080OJQEHlEb9kY0HYTHCtHA++/bftXb1lQTkLydLLdP ymHQdV6W3rKc9vcY8CwADx8ZUXi+dNgS8R7xoXJdo3YDlXdWnuqBqhE+rZsQQVHwoJe0 11yVoVUQuZKld2gHxehPAZlCULF3JTgOH6kZE6VtrfzK9CT028Ht1Kvoun3yquVADYg8 gwr0reO5CBdXWVn0U9V0Z1LwkIXDZLGINjnKmZYR+G2U/mZ+J8/v14QMYw2hRJwWPlmq isJD112LBFVi/J2Z5IZIPwVsMEKKYY0LWmaaF+LSWK9HvkQZ1Vu01uZHqd0nWIFLM/kS PRnQ== X-Gm-Message-State: APjAAAU6hCAz3RBd871ik1StMn74A5Jbxxme9M6esHNPFyMuEpqUQpjd wgDTQHYgNK07MPykdSrwcY4jTzicNy01wYBlduXvCg== X-Received: by 2002:a1c:64d6:: with SMTP id y205mr14021992wmb.136.1572259208307; Mon, 28 Oct 2019 03:40:08 -0700 (PDT) MIME-Version: 1.0 References: <20191024132345.5236-1-ard.biesheuvel@linaro.org> <20191024132345.5236-25-ard.biesheuvel@linaro.org> <74d5c30d-d842-5bdb-ebb8-2aa47ffb5e8d@c-s.fr> <63c941df-ae15-733f-3b0b-35fc0ce6af51@c-s.fr> In-Reply-To: <63c941df-ae15-733f-3b0b-35fc0ce6af51@c-s.fr> From: Ard Biesheuvel Date: Mon, 28 Oct 2019 11:39:57 +0100 Message-ID: Subject: Re: [PATCH v2 24/27] crypto: talitos - switch to skcipher API To: Christophe Leroy Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , "David S. Miller" , Eric Biggers , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 28 Oct 2019 at 11:36, Christophe Leroy wr= ote: > > > > Le 28/10/2019 =C3=A0 07:20, Ard Biesheuvel a =C3=A9crit : > > On Sun, 27 Oct 2019 at 14:05, Christophe Leroy wrote: > >> > >> > >> > >> Le 27/10/2019 =C3=A0 12:05, Ard Biesheuvel a =C3=A9crit : > >>> On Sun, 27 Oct 2019 at 11:45, Christophe Leroy wrote: > >>>> > >>>> > >>>> > >>>> Le 24/10/2019 =C3=A0 15:23, Ard Biesheuvel a =C3=A9crit : > >>>>> Commit 7a7ffe65c8c5 ("crypto: skcipher - Add top-level skcipher int= erface") > >>>>> dated 20 august 2015 introduced the new skcipher API which is suppo= sed to > >>>>> replace both blkcipher and ablkcipher. While all consumers of the A= PI have > >>>>> been converted long ago, some producers of the ablkcipher remain, f= orcing > >>>>> us to keep the ablkcipher support routines alive, along with the ma= tching > >>>>> code to expose [a]blkciphers via the skcipher API. > >>>>> > >>>>> So switch this driver to the skcipher API, allowing us to finally d= rop the > >>>>> blkcipher code in the near future. > >>>>> > >>>>> Signed-off-by: Ard Biesheuvel > >>>> > >>>> With this series, I get the following Oops at boot: > >>>> > >>> > >>> Thanks for the report. > >>> > >>> Given that the series only modifies ablkcipher implementations, it is > >>> rather curious that the crash occurs in ahash_init(). Can you confirm > >>> that the crash does not occur with this patch reverted? > >> > >> Yes I confirm. > >> > >> You changed talitos_cra_init_ahash(). talitos_init_common() is not > >> called anymore. I think that's the reason. > >> > > > > Thanks a lot for digging into this > > > > Does this fix things for you? > > Yes it does. > Thanks. > Christophe > Thanks a lot for confirming.