Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp640487ybg; Wed, 10 Jun 2020 09:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK5A+bD+O6WAW58NZhhfJDbxwj0tJtDDbJBtnWnz4ywzOr/Omlfe7HzlzH+7teiFRNa4rS X-Received: by 2002:a50:f28e:: with SMTP id f14mr3402696edm.100.1591807620907; Wed, 10 Jun 2020 09:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591807620; cv=none; d=google.com; s=arc-20160816; b=GPFtYEJAb9gdnKV1cubvOF9PXMeIPYk+qiFcdyZaf1e0uYJijJvK2XEobM+FNu7aIu 1ZwH6M3NNnCKUq4HMqeOrWYJ6rRSjj+u8pqGklkIPFDO6DJzIZ8RGfz5aIb6IpnY1lLP d2KFj6NAGnBvDnHapg7xTRwSuIyI//xI/H4+JBFJ5Piia30sw1+92YhV4MjJbN8g0PW4 WbumDGgXkVZaBbc0T6HZRVtAB75yYW8TkQxtZYMb7QwnPfGiFCHKI1Olh9RqgX5wg0BP tLKODPKwh3mkOtCECcO4ULF/TFzqvKUxOSiS4b1Xifi6PEQyfz/QDLBYegvLQbwr/i6Q qc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fT25jmVwQCrq+LBbxgKBRUwHPoZ/yWZHqiHsumtsuQI=; b=SjJNQVyaBC+GcfBzR5/bnU/TL0Hvd3I8w6/nvHmZTlDnSJeBane/lifCLeZ+TFAA1o OhS+t9ALqgblkTEwRSnpvDHKZhIMcD+o48AVkeYyy9yt2Zju7Y5w4WolQ7MkcRAjdZzF k1go2qH3TBb3X2RI3fWGd/fJJQ8tbvXGCmLvEZMcyc4XJ2OOWNlc7vgodGbcTLhxd2Ew GspP2r7c3q6RIfREWSIs5UzLGA+eQsq+0lkm5e0QSgGigM+25UFjIqX3ky1+H0PvCYXw qkGmab44gHeqOC2dmTE9D0z7hai/410nq95q1KwsZH6aE+Rvtomq/nMZcB50eqzfwEmk 0BGQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si63437edt.481.2020.06.10.09.46.25; Wed, 10 Jun 2020 09:47:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727785AbgFJO2j (ORCPT + 99 others); Wed, 10 Jun 2020 10:28:39 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39400 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgFJO2j (ORCPT ); Wed, 10 Jun 2020 10:28:39 -0400 Received: from mail-ua1-f71.google.com ([209.85.222.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jj1iX-0004I0-AE for linux-crypto@vger.kernel.org; Wed, 10 Jun 2020 14:28:37 +0000 Received: by mail-ua1-f71.google.com with SMTP id p11so886992uaq.0 for ; Wed, 10 Jun 2020 07:28:37 -0700 (PDT) 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; bh=fT25jmVwQCrq+LBbxgKBRUwHPoZ/yWZHqiHsumtsuQI=; b=sOAUFcWgrraRjYw2a8EtPg3yQgnlkpYRdmFvlRn9yQ55glYlVV8NKc4S3i1WPLchGu kX9B5nmAF9OlauDbISJT2QPCSnGAp0En+y7SJ913BKuakZtVqLX8am0dQuqhkPsYTsqy VPU+xkexq1yHbf52lFtCI4OyaTMY9IWkrCnGOGuQ9fZNEMoplWI6Q5LiXiqo6nwlYqOr bz+x5LGuFVr4A/K9fZOBn0JfFINiHgndFUSLq8Jyqh0GWJPJfOxRP2yHctJf4Zo1lE2I jBlw6hAX3v3y69ZwHY3xZXspnRXckausFCnJqyI0Kkyw4MaehLW9yzoYAllFj+33Me67 C8FA== X-Gm-Message-State: AOAM530UU5heKRxU6efo1DgKad5Ac0/dn6rmYBlcY+hZDfWWLZ249ZoM YSBVx6Iw1dROWTDq534H5QcYwEvWjXbUXa7a5T7bLTA178/0g8cFZiMWUYwo0v/0p5XvPjovKFu 65oUDY9/6CzAQP25FRYvzOIDGYYsJsl47hxWxUbIGjxQMCgoZIRlKOjuseA== X-Received: by 2002:a1f:a906:: with SMTP id s6mr2463001vke.26.1591799316306; Wed, 10 Jun 2020 07:28:36 -0700 (PDT) X-Received: by 2002:a1f:a906:: with SMTP id s6mr2462981vke.26.1591799316028; Wed, 10 Jun 2020 07:28:36 -0700 (PDT) MIME-Version: 1.0 References: <20200605161657.535043-1-mfo@canonical.com> <20200608064843.GA22167@gondor.apana.org.au> <20200610002123.GA6230@gondor.apana.org.au> In-Reply-To: <20200610002123.GA6230@gondor.apana.org.au> From: Mauricio Faria de Oliveira Date: Wed, 10 Jun 2020 11:28:24 -0300 Message-ID: Subject: Re: [v2 PATCH] crypto: af_alg - fix use-after-free in af_alg_accept() due to bh_lock_sock() To: Herbert Xu Cc: "David S. Miller" , linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 9, 2020 at 9:21 PM Herbert Xu wrote: > > 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. Right; I meant the other places as well, where atomic ops were added (in addition to the existing spinlocks.) But indeed, real numbers would be great and tell whether or not there's performance differences. We're working on that -- Brian (bug reporter) has access to detailed metrics/stats from the workload, and kindly agreed to set up two identical instances to compare the numbers. I'll keep you posted. Thank you, Mauricio > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- Mauricio Faria de Oliveira