Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp578036rdb; Thu, 22 Feb 2024 12:31:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzdmtfxH0G0I4DMKvSFgDybwOIiFgsKYXIAoE6OP5tJcFpBIpcBH+uy4Iarey4H0tkxUU8lTxZ0oosJ9WlFKgZM5F78oi7OUQId4/9nA== X-Google-Smtp-Source: AGHT+IE2f5Sjha2CmEJRYyaBuHl8gtG/Z16nf5VzZ+6aVheoYhk9HW/ehoVo02ykKgwJhhhgm9WL X-Received: by 2002:a05:620a:8398:b0:787:99da:91c4 with SMTP id pb24-20020a05620a839800b0078799da91c4mr123983qkn.71.1708633904122; Thu, 22 Feb 2024 12:31:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708633904; cv=pass; d=google.com; s=arc-20160816; b=XfKKmVwbCP2vNC4QbV1CVU1JiGExPM/RMldodVTC8IhCoRsg1xTHZhJBUBFgfbe3KK qqb0sntra2ns+BDVCTw0C6q1fHC1xmJsNFSmjPk/n2y+1pjr0dDNAvyuouRs+2T/mJV1 Rit5FYRknACppZ/aS0L3uw4J5vd25X0rgGUft1XZYAT96PAcBW8jxndowF4zEyJ/cvFE 5Uv6m+tZpTtrYquQO2XCHBeJR8dzzLIrfaKI+RQgt/3DI2NgPTQuKPzQxgo6QymLS1Wi vsVLbxqZXvR+UGfezGO1obeqMNBfgFWjKU0A0eYlL6ITCQzJFBfFMYTWsLnUfJVXmpfz S3AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ml62MscfXMtib2J91KWEJozUo6pIGfLxBFp+YKWAR2g=; fh=BvvjKcmBlNNGzzyuJcKdpsOKgCjtAtFT9uXZB9ROr7I=; b=SspQlk/STCUDq0kCOCjFLJ8xOcGvnfPQXUhko6IHNbU4ma0utqhqo2GqLTx/qivzON vABbR+yHMBKj+aj38ZjkrUowqMZWXYig4m6oc2Fq+Un2vyAZPPqXJmfeLhRkum5Q9Ha8 v5ggW6pLcKf9tYttTd/yAymjWTwr7ANefvij8ubiwsb37V+CQN4wGzSMbbzyu0QyAvlx Ksus2oxer3RrzJruEcW7TwwbRftMRerW7Q6N0GttBMYB/otHVFPlTukBB1/DmHpdsmYP koFuFg+GPDb7qZn4A6ggzbK/h9TwQfuBZoFUMdYShL+GdiXKhaHWT42cfMHhUk73d1pA Xpxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M0hXCybI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-crypto+bounces-2261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h6-20020a05620a13e600b007875c8bb93csi11434974qkl.554.2024.02.22.12.31.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 12:31:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M0hXCybI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-crypto+bounces-2261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CEC161C24B2B for ; Thu, 22 Feb 2024 20:31:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7E3971747; Thu, 22 Feb 2024 20:31:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="M0hXCybI" X-Original-To: linux-crypto@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D379F3F8C2 for ; Thu, 22 Feb 2024 20:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708633897; cv=none; b=H1AQ2aSklXEsr+ZEsIB3l7Vx1QMH4IUguapJYcF0G7vGTFPZeGPFTlp/JcJYyQyz8upBGKceyQMxRDELkmDNz7r0UOGFWDdwwgH5jAPNzZ4EzETsf8Vc0S4Dtv2JUrWGQ9jpwDBshL2JIYOgPsybxJT28ND5/lcSqNBgN/bTnSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708633897; c=relaxed/simple; bh=frCw0vw8Hnz0wsAVXoXZBwpSJ02lJS7FmLNaWilu4gQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JdwoRwpSG95AU2wG0xuepuV5fO8cddf8waB0JlkBAP5B+eBU3T7tEu5h4mPy46fIoa+qGJuRfHD62w5GUilfNY3UFAHSXxY/Lja7/6Agfjurgotl/S1WJEfQxb4QJkYQADAXuiTx1OXO6R+kD9sQHzzXrUOcLstBf/RJg9TUsLc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=M0hXCybI; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708633894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ml62MscfXMtib2J91KWEJozUo6pIGfLxBFp+YKWAR2g=; b=M0hXCybIr9+UYyuHYWGuXrEvGRc/ujldFcdsPMFEKI4ALXBDqdGKkpJnXM/+NyZY1yD6Ul TAvp5NWSHr2dXMo2Lw2pjBImCIsslTuXvxsUkhzKru+DiVfP0tCbdR5/woe7Ija4Yu0UUj cI1d4SUGSM8tHoeEZPNjt5qrcd6ZFNE= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-543-2nkw_ZdEOwedb5KfeFfjdQ-1; Thu, 22 Feb 2024 15:31:33 -0500 X-MC-Unique: 2nkw_ZdEOwedb5KfeFfjdQ-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-40e53200380so642655e9.3 for ; Thu, 22 Feb 2024 12:31:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708633891; x=1709238691; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ml62MscfXMtib2J91KWEJozUo6pIGfLxBFp+YKWAR2g=; b=MzCY1TJ8Fq/zBuk7dT09xtZdb6mQDcD00agJzh8v1NYVoQNqD+8mAGmwKmYH5GLRx6 mwoQZ4Gz4TLp8RJOlvhzTfAktI7x8qMTOFzkoC4sStN/m8JoiKcUSjL2P417dcTVChHF YxQE+sgviEn44FINwmdw/NlowbJ935yrIAu7RVhxFvQZw2a78AE4fEcpxjVhGIMpNl5I G0rwPBs9J263xZuqh1UEIsQM7DTLVB9LBHA6ljcdUBOIURuHlsNn+b33X6KX+DaCe7iS cbNqCvIKgrYcgUke9k2rR8ktanEFKj7pY/9Q6NC3RJivkWIbxVSha+pkJC7JGipEBG+p PFmA== X-Forwarded-Encrypted: i=1; AJvYcCWd6CzlcwniFFoPayuiWtNGGCrbrHkgMNKPmpjvsRMz5npal6MoflZ9XgN3MmAlOg3vFnIiDuf4OTudgo4hX16IY48CFe3AU6ZeEpaa X-Gm-Message-State: AOJu0YyMcOgQcuVw85vXmHIuhu1MhMiTgdbNh8/Q5kH0iXqEeWwNhlQ7 WL7mOb/HtVy4oxndLS9n7b7MZkASQP8ADh1v89Mpx7upS2xCn4gvfvhAZBeLi2m0dG18hN+wGsR kv0zrxZu2M8pjUmen6YuidGwV3/5wxtPnmupkXDme8E376Rw5rEwpp+f52aiL8L43d2Z7oQtN X-Received: by 2002:a05:600c:3790:b0:40f:cf69:3e1a with SMTP id o16-20020a05600c379000b0040fcf693e1amr15985748wmr.39.1708633891746; Thu, 22 Feb 2024 12:31:31 -0800 (PST) X-Received: by 2002:a05:600c:3790:b0:40f:cf69:3e1a with SMTP id o16-20020a05600c379000b0040fcf693e1amr15985739wmr.39.1708633891400; Thu, 22 Feb 2024 12:31:31 -0800 (PST) Received: from redhat.com ([172.93.237.99]) by smtp.gmail.com with ESMTPSA id r1-20020a05600c298100b0041069adbd87sm7218365wmd.21.2024.02.22.12.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 12:31:30 -0800 (PST) Date: Thu, 22 Feb 2024 15:31:23 -0500 From: "Michael S. Tsirkin" To: "Gonglei (Arei)" Cc: Halil Pasic , Herbert Xu , Jason Wang , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" , Marc Hartmayer Subject: Re: virtcrypto_dataq_callback calls crypto_finalize_request() from irq context Message-ID: <20240222153106-mutt-send-email-mst@kernel.org> References: <20230922154546.4f7447ce.pasic@linux.ibm.com> <20230924193941.6a02237f.pasic@linux.ibm.com> <20231101092521-mutt-send-email-mst@kernel.org> <5d9ebbdb042845009b47e6a9ee149231@huawei.com> <20231102091548-mutt-send-email-mst@kernel.org> <6e1792a31c1646f4a301faf1a1b42cc1@huawei.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6e1792a31c1646f4a301faf1a1b42cc1@huawei.com> On Thu, Nov 02, 2023 at 01:25:31PM +0000, Gonglei (Arei) wrote: > > > > -----Original Message----- > > From: Michael S. Tsirkin [mailto:mst@redhat.com] > > Sent: Thursday, November 2, 2023 9:17 PM > > To: Gonglei (Arei) > > Cc: Halil Pasic ; Herbert Xu > > ; Jason Wang ; > > virtualization@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > > linux-crypto@vger.kernel.org; Marc Hartmayer > > Subject: Re: virtcrypto_dataq_callback calls crypto_finalize_request() from irq > > context > > > > On Thu, Nov 02, 2023 at 01:04:07PM +0000, Gonglei (Arei) wrote: > > > > > > > > > > -----Original Message----- > > > > From: Michael S. Tsirkin [mailto:mst@redhat.com] > > > > Sent: Wednesday, November 1, 2023 9:26 PM > > > > To: Halil Pasic > > > > Cc: Gonglei (Arei) ; Herbert Xu > > > > ; Jason Wang ; > > > > virtualization@lists.linux-foundation.org; > > > > linux-kernel@vger.kernel.org; linux-crypto@vger.kernel.org; Marc > > > > Hartmayer > > > > Subject: Re: virtcrypto_dataq_callback calls > > > > crypto_finalize_request() from irq context > > > > > > > > On Sun, Sep 24, 2023 at 07:39:41PM +0200, Halil Pasic wrote: > > > > > On Sun, 24 Sep 2023 11:56:25 +0000 "Gonglei (Arei)" > > > > > wrote: > > > > > > > > > > > Hi Halil, > > > > > > > > > > > > Commit 4058cf08945 introduced a check for detecting crypto > > > > > > completion function called with enable BH, and indeed the > > > > > > virtio-crypto driver didn't disable BH, which needs a patch to fix it. > > > > > > > > > > > > P.S.: > > > > > > https://lore.kernel.org/lkml/20220221120833.2618733-5-clabbe@bay > > > > > > libr > > > > > > e.com/T/ > > > > > > > > > > > > Regards, > > > > > > -Gonglei > > > > > > > > > > Thanks Gonglei! > > > > > > > > > > Thanks! I would be glad to test that fix on s390x. Are you about > > > > > to send one? > > > > > > > > > > Regards, > > > > > Halil > > > > > > > > > > > > Gonglei did you intend to send a fix? > > > > > > Actually I sent a patch a month ago, pls see another thread. > > > > > > > > > Regards, > > > -Gonglei > > > > And I think there was an issue with that patch that you wanted to fix? > > config changed callback got fixed but this still didn't. > > > Now my concern is whether or not the judgement (commit 4058cf08945c1) is reasonable. > > Regards, > -Gonglei So what is the plan to deal with the issue? -- MST