Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp676654ybg; Fri, 12 Jun 2020 11:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOAtyyRsRdSV3oQa7vh0QcuVTh5UIsLw34i/aTFNynxqYgzMJTeEzrDT09LTO/knVsw/aG X-Received: by 2002:a17:906:6403:: with SMTP id d3mr14133114ejm.386.1591986816575; Fri, 12 Jun 2020 11:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591986816; cv=none; d=google.com; s=arc-20160816; b=KLImcVeMONpDQg9YzJjBVtisIBRe+/T5JjSY3eRDtdVtd+3dGbW7PMUBUlaPzSWc9T MYoQtt9gyt0f3R5dDzAfLhqi27HD37DgquMbR3S/QKrcElb0w5qCsFBs12wFVpUdZmd5 cthnDxh1lBMXblt+vRw8f2I4JillFzbOlhpdkEgjwG93/iRzEsyZ+o5x8xY7E/6QD+FP dW5FEEdHqDeiNS8H2rd1Jxx0Y/l2Cvlytuy2UW7j2tkulDo7B2WNUnjvW6K4vXgYX/zR 990it808E/NYOMxe3KbrG+2rw75OM3oJMGYThplrpflq0okrsZaMUZTxtmmeeFynnAj7 Gang== 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=AvjpgmaIry5taYFf387w++nuMAqy1oNRAi25dBuugD8=; b=ryll6Pe33oQpfniWTOCRGB2HOK+Xz9a60vzjTd4BT7e+NoH7bzw4Nf9qI28aSfEWVn DtYiLYV/vtz/01o69A8dp1+jdD7cFa+1y3IPHsWnm1cgGmx1tPCs/ZVHTLrjrMMw/hGN nhb7vEGQytCdFaw7ADdd9toVS4gBIn+7Y9YeBdVKtWZp8EWSHTMhgXF4NyRZU3vgb42m Vy0+9eVyNykAwQbsAS32f+w0Z9ygsU8Bk5574K6eQJczgahOaY14ZxhmphA84xuAtwHJ Snm6JO7O1QbhSMhOJOzTioQsP77PdLASgXFK86+mGC6OGlmrBBw3zfAXg6r+lBwn1GVo T0bQ== 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 k2si4076826edq.284.2020.06.12.11.32.59; Fri, 12 Jun 2020 11:33:36 -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 S1726263AbgFLSc6 (ORCPT + 99 others); Fri, 12 Jun 2020 14:32:58 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45578 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgFLSc5 (ORCPT ); Fri, 12 Jun 2020 14:32:57 -0400 Received: from mail-ua1-f69.google.com ([209.85.222.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jjoU3-0006lg-PL for linux-crypto@vger.kernel.org; Fri, 12 Jun 2020 18:32:55 +0000 Received: by mail-ua1-f69.google.com with SMTP id i5so3842269uae.16 for ; Fri, 12 Jun 2020 11:32:55 -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=AvjpgmaIry5taYFf387w++nuMAqy1oNRAi25dBuugD8=; b=Emrd5n3i/IiQmgP7qCUxitQNtJvSm/wMlTHTYWVBLut8W0TEMF6VjiShzqZILbyI6w 79o2hXcGgTrB4OAEB6z7+fzdocvGjhmFUOnk8trXNc8XBrYu5AAAbSLYWD4eCEJ2vDh1 gyu0pzmKLJYBVPdt7gy835SwwRV1BA5LJJmlmOm57GcbWhmT7c2e8Pmxw0w0iUvUqAVS l3Z1niu3Fc9cG7R3RVG6A84+x3S48AiBY/FQMkSYXOt9ZLh8zmiFiLazKJ6FrvLrgiuK PzqhWvaMVnYuOLItyE6wrq4TB8nV0yTxkyY47iekEpNCwkEzl/PLiUgnL5iVsU53SgbE uDvA== X-Gm-Message-State: AOAM530cjCZNmM0v5OUyob5ExZ73TWw+3g54yP756Ouu6Vmv1eo7nOTt NMj7zRct6zK6t+zByXvdhwJ0q/jJ5iB84XcdHSeemgriPJiJwayxFWeGkTQI3fnpvppCJ7Glnfo 7Ylg4E772cJJwBnoOOBl1GR0H31DHDK3DVAkJRY2E4PRmiDKG10xTuu5inQ== X-Received: by 2002:a9f:3611:: with SMTP id r17mr10611853uad.108.1591986774836; Fri, 12 Jun 2020 11:32:54 -0700 (PDT) X-Received: by 2002:a9f:3611:: with SMTP id r17mr10611845uad.108.1591986774574; Fri, 12 Jun 2020 11:32:54 -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: From: Mauricio Faria de Oliveira Date: Fri, 12 Jun 2020 15:32:43 -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 Hi Herbert, On Wed, Jun 10, 2020 at 11:28 AM Mauricio Faria de Oliveira wrote: > > 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. > Just wanted to let you know that the performance is really close for the two patches, both on the CPU utilization profile and also on workload results (#requests over time). And the tests ran for two days, so it looks stable. Thanks! > 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 -- Mauricio Faria de Oliveira