Received: by 10.213.65.68 with SMTP id h4csp1236669imn; Thu, 29 Mar 2018 00:26:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KjVH1X7PzuX62rradcukSZzXBIQ9OCFYSiMO9PIUGGKBJHAxkphOh1rT2apBe6j6cPb78 X-Received: by 10.167.130.22 with SMTP id k22mr5489424pfi.73.1522308380676; Thu, 29 Mar 2018 00:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522308380; cv=none; d=google.com; s=arc-20160816; b=nwOcQZd2hD2aGS3Ppb7w3KvOfhKRwTsUopxorBXv5xjol924AY0s5cGNOiD/+pVOJm oGnC3YpDTxdhcV8WGiMpsIRpgfLMwHDdyq3vTxv+HIiJBl5t7LFc/XM9YkrYDe6pGu+1 QxzpWlJZFjAkGkLVoUA+w5gmSeNJw6qNdasHZCXvo/41q+S2jyYE9evPC2qDrizlLrEY IVeSS5V7sf2TuTEtFDoNH2jCMnCXmObLe/RxiTYtcl4zNm/odbnZujYD0ESr5DhED9p3 gZPb8AMvMcWrX9B070hfIUlSdMWrAohsVL1Aehy2IYmocjcXilMbO7BkEj2lBtrpgC34 eRwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=jBf/JYpnoZiC48YymzQTqVOtaeyYP0gHJvjvrwmCFss=; b=OP7ggWNjcC9xhMxFL0103EUo/ITbzyhVZSHgGy7WJSwxIamrr0mRaKDY/jOZlgX/qm GtmXNo3qLI8YMVjYYvuscWYo5iuhJZbOeJMMUdcZrEsABEVqFU+9t5iwa4058piF3Och 3oMIkqFvJvxNuUO2sZtj3Pd5kDxzzfTzPVRVS7elFS1dFzjis+eEsieNOyjLY3xKK7el uNKoGmuNH5jElWSsXmIzRrGyEtaFYp8yBz6pOUKxCSOZwo5moEQjayuBN++5VxPmb5MT YqXLwicVVJBgD3ebWui961uo1lVLBSSoP/+XEtqhDEDEPD1T20cbgmqjR4a4xVoLLGC3 /ZbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si3680525pgp.193.2018.03.29.00.26.06; Thu, 29 Mar 2018 00:26:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbeC2HZT (ORCPT + 99 others); Thu, 29 Mar 2018 03:25:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46968 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeC2HZR (ORCPT ); Thu, 29 Mar 2018 03:25:17 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A92D5414; Thu, 29 Mar 2018 07:25:16 +0000 (UTC) Date: Thu, 29 Mar 2018 09:24:45 +0200 From: Greg KH To: Stephen Hemminger Cc: kys@exchange.microsoft.com, kys@microsoft.com, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com, Michael Kelley , Stable Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Fix ring buffer signaling Message-ID: <20180329072445.GA13733@kroah.com> References: <20180305052408.19475-1-kys@exchange.microsoft.com> <20180328120142.7ba72aa2@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180328120142.7ba72aa2@xeon-e3> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 12:01:42PM -0700, Stephen Hemminger wrote: > On Sun, 4 Mar 2018 22:24:08 -0700 > kys@exchange.microsoft.com wrote: > > > From: Michael Kelley > > > > Fix bugs in signaling the Hyper-V host when freeing space in the > > host->guest ring buffer: > > > > 1. The interrupt_mask must not be used to determine whether to signal > > on the host->guest ring buffer > > 2. The ring buffer write_index must be read (via hv_get_bytes_to_write) > > *after* pending_send_sz is read in order to avoid a race condition > > 3. Comparisons with pending_send_sz must treat the "equals" case as > > not-enough-space > > 4. Don't signal if the pending_send_sz feature is not present. Older > > versions of Hyper-V that don't implement this feature will poll. > > > > Fixes: 03bad714a161 ("vmbus: more host signalling avoidance") > > > > Cc: Stable # 4.14 and above > > Signed-off-by: Michael Kelley > > Signed-off-by: K. Y. Srinivasan > > What ever happened to this patch? It doesn't seem to be in char-misc, upstream, > or stable kernel tree yet. > It was in the 4.14.31 and 4.15.14 stable releases. thanks, greg k-h