Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp376655rdb; Thu, 2 Nov 2023 06:26:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHnpe9Q3nCXvuM3ErwOFlUP9otnIlrNwU/GWTBc4YdgLM0UtB10irGJQ7RaXD0aZhxR97m X-Received: by 2002:a05:6a00:2341:b0:692:b6e8:ce88 with SMTP id j1-20020a056a00234100b00692b6e8ce88mr17640110pfj.17.1698931596284; Thu, 02 Nov 2023 06:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698931596; cv=none; d=google.com; s=arc-20160816; b=NEmifyJztrG8J55Nw7pZKOWBaaYPX3lixTSBXTSE1bLOwl3z2LOdpvI1F+cMQbJ4iG kxH25R5Wbmm5fklfj5ATk/B4aYpEJ3Ai6JAtz4nOE9sWeAbXXY7+/MfZvNDgqf+xoDpp 81MmSN4FR2HGk+ZHUs76bjcrbiV64g2Dqe0D8VSBKCgsTywsb7B/ivyAuDCvTPhOR6xx lCaxUcftw+ZOVeKTj+G1QnkjKVgf6vLegJLjFHooy6aw5bGWlfS1J1dm1KCmuFTWZmen MlqSrY9MVIkSzgUJzEkEqH6ozG+Il5y+0ZkDz/QC3fVtAeWVjbELqpv0NxfY4/bxPCPF Qntw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=VZFoek+YpsmBtJSGEjKhHUMhmKeQp95augtBpEZ04ko=; fh=l1qcYgFLxq/tznQANDQfUyN+/HIpt9FMupeWUEc5Rjg=; b=1G3M1ezCOIGM159oj/cLEt0/XF9r82P8RwTexVj/uyGJU6uq5ZOdtZOSX8ZCIQ6jS2 jCRt0odPBY8xlmtoCNthEZgyutb40O2eaQ3m0aTAXRC2szvcLNIvR54RTDW1Xv1cNpUn BqblnzKC7iuS8OyX2fKHeOhdw4sFvH7CeOebGNXdVGy8dJH/MgCpfo07XNT1uSrY8mxQ xkZob5gPF08PfCuXDaCKpLlGKzq5LiOJnF8oP73oBfagWdevfTuui8tXmFVsrFXjMHy/ CBlT+3u9KhPY0rgeykKEtN+L4nXBY6MhPeG/9BUwtfSHQ4V1ocUHJ790xtuwhW82NWc3 QxTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y5-20020a655285000000b005b90b2d9178si1827311pgp.796.2023.11.02.06.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6B95A8077998; Thu, 2 Nov 2023 06:25:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376474AbjKBNZn convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Nov 2023 09:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376414AbjKBNZm (ORCPT ); Thu, 2 Nov 2023 09:25:42 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C97191; Thu, 2 Nov 2023 06:25:35 -0700 (PDT) Received: from kwepemi500023.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SLl0h6D4FzrTrP; Thu, 2 Nov 2023 21:22:28 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by kwepemi500023.china.huawei.com (7.221.188.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 2 Nov 2023 21:25:31 +0800 Received: from dggpemm500006.china.huawei.com ([7.185.36.236]) by dggpemm500006.china.huawei.com ([7.185.36.236]) with mapi id 15.01.2507.031; Thu, 2 Nov 2023 21:25:31 +0800 From: "Gonglei (Arei)" To: "Michael S. Tsirkin" 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 Thread-Topic: virtcrypto_dataq_callback calls crypto_finalize_request() from irq context Thread-Index: AQHZ7VsjRTMxo/hUEkmU1GjtoDjS1rAp3v1A///cYoCAO3GWgIACEayQ//9+LICAAIbrcA== Date: Thu, 2 Nov 2023 13:25:31 +0000 Message-ID: <6e1792a31c1646f4a301faf1a1b42cc1@huawei.com> 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> In-Reply-To: <20231102091548-mutt-send-email-mst@kernel.org> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.149.11] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 06:25:43 -0700 (PDT) > -----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