Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15936601rwd; Mon, 26 Jun 2023 03:34:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vwiRfgR12BZaKWvdiWC6ev7U7h8h78m8pahiSJzRrk3za2wYN5o+WJvsJYGhTEKj/YbwZ X-Received: by 2002:a17:906:100a:b0:987:81d:9d49 with SMTP id 10-20020a170906100a00b00987081d9d49mr20573119ejm.7.1687775688544; Mon, 26 Jun 2023 03:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687775688; cv=none; d=google.com; s=arc-20160816; b=l0a4f5Zja0cQsTrd8gCvinlMCdEzBJA198pzuR6jK7Av3nuibz2k+Nkq9nWHz5F1tG 3zAcXTKvuP5xdkWT3HIdEKXIjTu4bRNc3TvcHc2qwive+o6mmBkGVjiQbicDYWnvXlZc M2eOdzw6ZV8dYV3ci4CoHcRHs18W85H6L82vatuAWanjuyKRvkfpIeoLIDvERB75tI6s z30U7v6oWIVBsWumBU99G8EN5aBG4Q3uNmoSznsI/sxQe1mGYYX5KmeKBiTqOHVUESlo iMoHxSMka63h+qDozyfJhwil2/hlBLck96VyQrrE58FxfXV8Opl8DviR0v3ux0JYPH/6 yCgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=RpCnIkoi3k5iVAdxTjWO13aesm4bP5RRGqa3DS256WM=; fh=I2GRuHhcqPQLshGv5lmQl6+kcE57P5ogHeJUlJsMYl8=; b=SyHyEaXLUtyj0duda8eFxgAFj9IWDzN3z3JQkPjjtZAQkrv88Xh3aDZ1ttEgc9APAw C2Upr49yemT5rd9EX2Rgx52MiPobp4IbmQ0WeuzaE3dpWqR01ZhK+URApG0nJ4S1KLye QLiLXeX3UR0wcQxer+I7CcBFg+Q8c6wt/O5/KVp3XXu9LVkoBJ//zM2o1cRjZ1DKsGrW 51jAOO5UJxf2bg7lo5PtClVQZBrDWoM/I/j2/dm2CKtEH7aCYTglNcyVBkCvNK3BzGA+ kjP3mYjqhJPlo/+pcwQARwUZ6gPocEUU4hgz287T3vhioLCOIERo7P63tBlizcM4E++t Ovfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t26-20020a1709060c5a00b0098dfdc3f2e2si2263828ejf.745.2023.06.26.03.34.24; Mon, 26 Jun 2023 03:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbjFZKUq (ORCPT + 99 others); Mon, 26 Jun 2023 06:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjFZKUp (ORCPT ); Mon, 26 Jun 2023 06:20:45 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C247F1A1; Mon, 26 Jun 2023 03:20:43 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qDjKb-007JR3-QB; Mon, 26 Jun 2023 18:20:26 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 26 Jun 2023 18:20:25 +0800 Date: Mon, 26 Jun 2023 18:20:25 +0800 From: Herbert Xu To: kernel test robot Cc: oe-lkp@lists.linux.dev, lkp@intel.com, linux-crypto@vger.kernel.org, keyrings@vger.kernel.org Subject: [PATCH] crypto: akcipher - Set request tfm on sync path Message-ID: References: <202306261421.2ac744fa-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202306261421.2ac744fa-oliver.sang@intel.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Jun 26, 2023 at 03:07:01PM +0800, kernel test robot wrote: > > [ 7.727242][ T1] cfg80211: Loading compiled-in X.509 certificates for regulatory database > [ 7.737831][ T1] BUG: kernel NULL pointer dereference, address: 00000010 > [ 7.739122][ T1] #PF: supervisor read access in kernel mode > [ 7.740125][ T1] #PF: error_code(0x0000) - not-present page > [ 7.741135][ T1] *pdpt = 0000000000000000 *pde = f000ff53f000ff53 > [ 7.742337][ T1] Oops: 0000 [#1] > [ 7.742986][ T1] CPU: 0 PID: 1 Comm: swapper Tainted: G S 6.4.0-rc1-00077-g63ba4d67594a #2 > [ 7.744804][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 > [ 7.746660][ T1] EIP: crypto_sig_verify+0x82/0xa4 ---8<--- The request tfm needs to be set. Fixes: addde1f2c966 ("crypto: akcipher - Add sync interface without SG lists") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202306261421.2ac744fa-oliver.sang@intel.com diff --git a/crypto/akcipher.c b/crypto/akcipher.c index 152cfba1346c..8ffd31c44cf6 100644 --- a/crypto/akcipher.c +++ b/crypto/akcipher.c @@ -207,6 +207,7 @@ int crypto_akcipher_sync_prep(struct crypto_akcipher_sync_data *data) return -ENOMEM; data->req = req; + akcipher_request_set_tfm(req, data->tfm); buf = (u8 *)(req + 1) + reqsize; data->buf = buf; -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt