Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89F47C433E0 for ; Thu, 11 Jun 2020 00:05:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EBC42078D for ; Thu, 11 Jun 2020 00:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbgFKAFo (ORCPT ); Wed, 10 Jun 2020 20:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgFKAFo (ORCPT ); Wed, 10 Jun 2020 20:05:44 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B7BEC08C5C1 for ; Wed, 10 Jun 2020 17:05:44 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D2F0211F5F667; Wed, 10 Jun 2020 17:05:43 -0700 (PDT) Date: Wed, 10 Jun 2020 17:05:43 -0700 (PDT) Message-Id: <20200610.170543.194012331092190844.davem@davemloft.net> To: ayush.sawal@chelsio.com Cc: herbert@gondor.apana.org.au, netdev@vger.kernel.org, manojmalviya@chelsio.com Subject: Re: [PATCH net-next 0/2] Fixing issues in dma mapping and driver removal From: David Miller In-Reply-To: <20200609212432.2467-1-ayush.sawal@chelsio.com> References: <20200609212432.2467-1-ayush.sawal@chelsio.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 10 Jun 2020 17:05:44 -0700 (PDT) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ayush Sawal Date: Wed, 10 Jun 2020 02:54:30 +0530 > Patch 1: This fixes the kernel panic which occurs due to the accessing > of a zero length sg. > > Patch 2: Avoiding unregistering the algorithm if cra_refcnt is not 1. > > Ayush Sawal (2): > Crypto/chcr: Calculate src and dst sg lengths separately for dma map > Crypto/chcr: Checking cra_refcnt before unregistering the algorithms Series applied, thanks. Maybe we can start handling these changes via the crypto tree at some point?