Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1188765iol; Fri, 10 Jun 2022 02:07:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT8VPZmSnQo/p2bJcNd1CEOZm60T52ExWxzZ7iondYsyOXIiYLsoJ2mm/ywG8/dp1scjZt X-Received: by 2002:a17:906:99c5:b0:6ff:4c8f:6376 with SMTP id s5-20020a17090699c500b006ff4c8f6376mr40345762ejn.328.1654852064866; Fri, 10 Jun 2022 02:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654852064; cv=none; d=google.com; s=arc-20160816; b=S/ff3eaQCnL9rqqHgy+TYwFrAdyXCxrSi+Q/hotY0sUrqDAs0XSLLYIYddA95SEYEB gMPpDJuiXhDZPwmp+waXw9tVbChcoZNoB3UVZaeZkR5K2OtXE9PS0WiA9iMmdnn1AHRt Y3NUBEkZ9TKhhuyr1w8YammNAiPJ4hY4Lb10qWvLLrRabUMMShkB8hBnnjrL2Qvv2voW qXflkTypKpYJbqPoGCG3ucXIQ/5yCrDoG3J/yvo1o6Kmuo0+CiYnMzrNfWROOdPY4CBJ d/+8/cgvHWw2pJGe4i13wshUrIq9EPZKwDFasO9TspEHR0DC2zyYsAl1LH+x+XestwZi a2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ztq4k3KUPkKf4HUs/0KYVoq6RFzFscI/AU5d2/079VY=; b=laYCqdE/ZzJXbq9X5Sq+97M3YO13PEuvmN8YDfzfodRwa4mGRvAQ7orNo71qeZB0Xl jVIbEUYJzcFX7nPOW2gaW+FfVpJmWsQ5NF5/izcgf9zov/4RhitDQ3Eu8NIdP/EChVYK ggcpMNc079yr/l2rpSGHtvwURwsgRPy5TKNwWaTYno8ZFk7w+n8BXhVk7RBi0JHMvznz Za4C94hJXV3WJb3ERUa9CU2HGdoQzPhu5KcfsiDRQ9ukzleRF83nJOUJxQcA7gsUj/XG rP9nhxzQkgD5TT9o3p3Vo6Et6cH5/PHEM3xVfoxorARYtkX6J0NcugboyuHTSEkahdKe 6SEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb7-20020a170907960700b00711988b5919si1794373ejc.810.2022.06.10.02.07.19; Fri, 10 Jun 2022 02:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347864AbiFJIkj (ORCPT + 99 others); Fri, 10 Jun 2022 04:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241270AbiFJIki (ORCPT ); Fri, 10 Jun 2022 04:40:38 -0400 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E341A5; Fri, 10 Jun 2022 01:40:37 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id l2-20020a05600c4f0200b0039c55c50482so803940wmq.0; Fri, 10 Jun 2022 01:40:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ztq4k3KUPkKf4HUs/0KYVoq6RFzFscI/AU5d2/079VY=; b=0Z/HATVtdJxGJ4Fd4/G/QwZILxgDvo86fBR/vnqIrUkKCki5H3ma+9nQPJxAks0OK5 WRy7yL3br6970z+NBFo+uYCsAGbY/ndtgWnNhwBTUalcE1M9mGqQhEBHH29XAOmP/qez x8UJrtQ62zSgzRnSmZmnd0b+vkl5QX+FATScGm98RH3ncUEyA1z//EFzF08DtFeLwDdk m6kE6HIUkJwvETF7Zz3IkJ9Zz4erLaLvyeKEK3S3tYDQhcgobAxSfHxH/67jGXhON+2s +4oOuWPNxeb46X1o9cPcbC7jpYIr3Ge2wz4rpTQWshpo17HvMWReEyledcSnalbXhtWb zq7g== X-Gm-Message-State: AOAM5335dW+en9sKVFy214ndBvMXvCGE1gLBk4t1mzuYQnD7+i+SpDTj FH0zxHCP61LudLCkE5S48Fg= X-Received: by 2002:a05:600c:190b:b0:39c:7704:74a4 with SMTP id j11-20020a05600c190b00b0039c770474a4mr4333763wmq.92.1654850435757; Fri, 10 Jun 2022 01:40:35 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id 123-20020a1c1981000000b003975c7058bfsm2172199wmz.12.2022.06.10.01.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 01:40:35 -0700 (PDT) Date: Fri, 10 Jun 2022 08:40:33 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Saurabh Sengar , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Saurabh Singh Sengar Subject: Re: [PATCH] Drivers: hv: vmbus: Release cpu lock in error case Message-ID: <20220610084033.r6llz4dadlw6gyoz@liuwe-devbox-debian-v2> References: <1654794996-13244-1-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 05:39:06PM +0000, Michael Kelley (LINUX) wrote: > From: Saurabh Sengar Sent: Thursday, June 9, 2022 10:17 AM > > > > In case of invalid sub channel, release cpu lock before returning. > > > > Signed-off-by: Saurabh Sengar > > --- > > drivers/hv/channel_mgmt.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c > > index 280b529..5b12040 100644 > > --- a/drivers/hv/channel_mgmt.c > > +++ b/drivers/hv/channel_mgmt.c > > @@ -639,6 +639,7 @@ static void vmbus_process_offer(struct vmbus_channel > > *newchannel) > > */ > > if (newchannel->offermsg.offer.sub_channel_index == 0) { > > mutex_unlock(&vmbus_connection.channel_mutex); > > + cpus_read_unlock(); > > /* > > * Don't call free_channel(), because newchannel->kobj > > * is not initialized yet. > > -- > > 1.8.3.1 > > Reviewed-by: Michael Kelley > The bug comes from a949e86c0d780. Added a Fixes tag and applied to hyperv-fixes. Thanks.