From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 E2B04C43603 for ; Fri, 6 Dec 2019 06:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8B5224679 for ; Fri, 6 Dec 2019 06:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbfLFGiP (ORCPT ); Fri, 6 Dec 2019 01:38:15 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:52970 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfLFGiP (ORCPT ); Fri, 6 Dec 2019 01:38:15 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1id7Fl-0005Nu-Ve; Fri, 06 Dec 2019 14:38:14 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1id7Fk-00050K-RT; Fri, 06 Dec 2019 14:38:12 +0800 Date: Fri, 6 Dec 2019 14:38:12 +0800 From: Herbert Xu To: Linux Crypto Mailing List Subject: [PATCH 0/4] crypto: api - Retain grabbed refcount until registration Message-ID: <20191206063812.ueudgjfwzri5ekpr@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org When an instance grabs an algorithm, it has to hold a reference count on it until the instance is registered. This is because otherwise the algorithm can go away at any time. A number of such bugs has been fixed in the past. This patch series tries to close the remaining holes. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt