Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp93831ybg; Tue, 9 Jun 2020 17:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGrtk7EXIkgBURmc3+BLWbWvSuqMIttKLVHDSdSHrnZrmJ89MeWrht+IT2t1Z9G2pZUsBf X-Received: by 2002:a17:906:971a:: with SMTP id k26mr836599ejx.230.1591748535502; Tue, 09 Jun 2020 17:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591748535; cv=none; d=google.com; s=arc-20160816; b=Og3TE0TL4gjsKLyjZe2NQPo4klxPNICGgujkgltraAP/fWZMyEW1rcgIp1BXQFCtqa wFsDVtOIn5lPq7vIyAEI01IvLbcmqjMhYRXabhbZ01a4ROOqx0UuYETCR7qIjJnrzcj1 fvDsN7966BXvxJocriEiKw6NVHuwRpdsSgN10IERYiNv+LkOSv4MlAM8ZBjglb+dD6+G 8/mCN43Gu8oBJAWuL8Xa00+KqgJRhxZGwaCigi6gY59YP6wfOwmrjHaXOqkXZXrxV4zx Vr5I/xIGWm1OUwodSbfupDtF+dWWBnL/k621fFbOgcwtz4mjkWxaEgsO28R9DGx1yUbd HcPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pSjBPvERDDAEFQfcCisNGQUinXqauV5WG3ADOnL+r8s=; b=SlMr2tRBMQP+tRkIIyfVJaBBl/LotQkt2dYAJEhugy7cXplCPD/D6v69zGxg9B3R1V wk/H0PzA+lp5LsrMCiAiHWKIdLUycLo0iW/ruSzB6Ydk+/54t9y2s6ya+vL/C34E/Nwd cpxFdiWj8T7xj/Uy58Pd+2GUuP9bt0dir+IAo/tz1gz9BQWVTrkHi5k4HtwjOUxrgowa 4nyPeCaBExbXAYTnwrgHKkthdR/CnyFXZxkXiwQ0PTaZNKzhNRTla0rFyzmsDlipHGA1 3JJ6LjUPSnSb+axZ4CUMsxf4yHIVD93xbReLadAjDasygGf3STGuYPZRDmtkvzlK15Mj Lu6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si572485ejy.328.2020.06.09.17.21.38; Tue, 09 Jun 2020 17:22:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725927AbgFJAVe (ORCPT + 99 others); Tue, 9 Jun 2020 20:21:34 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:59144 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbgFJAVd (ORCPT ); Tue, 9 Jun 2020 20:21:33 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jioUd-0007I3-FC; Wed, 10 Jun 2020 10:21:24 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 10 Jun 2020 10:21:23 +1000 Date: Wed, 10 Jun 2020 10:21:23 +1000 From: Herbert Xu To: Mauricio Faria de Oliveira Cc: "David S. Miller" , linux-crypto@vger.kernel.org Subject: Re: [v2 PATCH] crypto: af_alg - fix use-after-free in af_alg_accept() due to bh_lock_sock() Message-ID: <20200610002123.GA6230@gondor.apana.org.au> References: <20200605161657.535043-1-mfo@canonical.com> <20200608064843.GA22167@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 09, 2020 at 12:17:32PM -0300, Mauricio Faria de Oliveira wrote: > > Per your knowledge/experience with the crypto subsystem, the changed code > paths are not hot enough to suffer from such implications? I don't think replacing a spin-lock with a pair of atomic ops is going to be too much of an issue. We can always look at this again if someone comes up with real numbers of course. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt