Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1237775imd; Thu, 1 Nov 2018 12:23:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5fRS/NVpa8MKiiKVidSaFcTxiGNMlja3OmccSBsgKjsbKAymkrpTwvG+quVoJnWFqwSp6ae X-Received: by 2002:a62:4b09:: with SMTP id y9-v6mr8942328pfa.93.1541100197396; Thu, 01 Nov 2018 12:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541100197; cv=none; d=google.com; s=arc-20160816; b=LiZuQ82eCGD50wh9lt3UOPx01iw/wG6Tz+GXnIj+y33jfKTYcEG3y7CtzM/WioXBes fJBeKxA4AvUGh90hLb5aSfjraTsxP+/6dlPA6MqrcCoqbDi34dGnjRdPnDEO9mBLs3yT 1SOufEeOiSkIvCG3SjaaaohHZADjW59Gf5zc/U21DKy/sumNfF0grwCNQQO+BIet6RSo j5H2nYvuZIVC8ZHFCiFSo9Fm9Xhtjnkj29fEnKZFy7xlNm6OeqhqNbdVnyZ32e1tnygV YOJU+IlWncZTAfqMjQff4eM3xWx2M1YuRn8+1Hdnm162qTDHCRkGvj0QQ+cN2ZynfTbS QJAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=OpkClCmeDgGVkTDEix+AQza3TDdSVYpakaDkL31PuNM=; b=TIn5AFS57AOsKfHem0IYFBRGNXKuIjYqfM+ZLmawpvG8t1E7DYcr4cmyT93HM352n8 shr81FzXbw3+lZgsbqOJjCAPloPuUUHOCD03nMZDRoio4SJSy6MXOl+mG4NDWVd4HoZl 9PxjeD2PlZYl90Bi3yhdwjqITUXvCwhb8wuk0pse/Lp/NmJW9eI4FbYVRT0YgoiWposx bep6exDX2/PFLj5TK80TJePlgxSy4YNpXmt4Za/02WlgK24YLnmlU2iYonITpXwaDwtr WG1wbUTdThziyv8FKdnJwBYYM+Iddi15gJlxVlxrCDIdMHEcYdUcmQHvJM1hvowAqL/J XDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=R0GLUfl8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si12504008plc.277.2018.11.01.12.23.01; Thu, 01 Nov 2018 12:23:17 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=R0GLUfl8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbeKBE07 (ORCPT + 99 others); Fri, 2 Nov 2018 00:26:59 -0400 Received: from mail-hk2apc01on0101.outbound.protection.outlook.com ([104.47.124.101]:27552 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726708AbeKBE06 (ORCPT ); Fri, 2 Nov 2018 00:26:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OpkClCmeDgGVkTDEix+AQza3TDdSVYpakaDkL31PuNM=; b=R0GLUfl8HSzKEgqSxpSpIyzJGLnPcvbxOI5f4CvZJVL268ScFTmxIdSSpu1IsnuuyyRdpM85Ykm+iKpWe5R33l6gFFdjTq13wq6O8bujy1HWvmINa6WNbigQXycKrqsJlcWonAWVQi7nPnk2LTMZ6l/eYAgtoZbgt9QIIazht4A= Received: from PU1P153MB0169.APCP153.PROD.OUTLOOK.COM (10.170.189.13) by PU1P153MB0155.APCP153.PROD.OUTLOOK.COM (10.170.189.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.2; Thu, 1 Nov 2018 19:22:28 +0000 Received: from PU1P153MB0169.APCP153.PROD.OUTLOOK.COM ([fe80::e85a:f0c0:9810:d217]) by PU1P153MB0169.APCP153.PROD.OUTLOOK.COM ([fe80::e85a:f0c0:9810:d217%3]) with mapi id 15.20.1294.014; Thu, 1 Nov 2018 19:22:28 +0000 From: Dexuan Cui To: "gregkh@linuxfoundation.org" CC: Michael Kelley , KY Srinivasan , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , Stephen Hemminger , vkuznets , Sasha Levin , Haiyang Zhang , "Stable@vger.kernel.org" Subject: RE: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up Thread-Topic: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up Thread-Index: AQHUZqDqbasvay7PwkmlHkiKerM2nqUukUpwgAuBcqCAAUk+AIAABlNQ Date: Thu, 1 Nov 2018 19:22:28 +0000 Message-ID: References: <20181018050835.27828-1-kys@linuxonhyperv.com> <20181018050932.27932-1-kys@linuxonhyperv.com> <20181018050932.27932-3-kys@linuxonhyperv.com> <20181101185638.GB10263@kroah.com> In-Reply-To: <20181101185638.GB10263@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-11-01T19:22:23.8798584Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [2001:4898:80e8:f:c92a:8324:9e1c:a5e] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;PU1P153MB0155;6:RrNEyOgy5EX4GgyOHrUvv3OF45WSFOumMjp7ttwUh/AQISiusTdbuqx8U9/JGm+v0d2zvL0lOBiJ2ydN+7I/swjYU01my586el+COmT3BUufbH1tVWbuOez4z2b9Avu1N2rOOtKoNwnnf0A0PDoG4pSKTwRH3eBMH4T2fOvAV9xm2wYtiooBViLES5qN/PFV+btXJRUTP3k4GsoF13rc0Vr8jU+NkubHVHPuac/BX4Xoo/RsZYv6Li5ynfQnleMYr9w7ptbOKw+761qNDb41RujHlyvroKPO/IcTT+/wBz3p5uLoY/uWABs1E1E61xiII8iFk9tyHz/I1Qsg0rp1oNo3L8ErY/61iwBMs1uM16VqIDdU0temZSZjA98vDKbQO7B89nBw+mlfrf/fK2A1t9TGigu+X/W5ISdmgW16c++HhwNLFwZXScY3fLU+02RZqCtAe3BB5nIjt72zlwSEBA==;5:8NQfnnwOAZyIbr7ReEc/zIJu+LRhcviRrzgRQy0e9s8gP2CWfpZiuos6Y1Ih+jJZwFCpXPXyAYaZ75ULQPyPTPguwMIjzA9k70kNijDrQV/sxJ8kXnTdRjPUWTcyb5S9qnvH5hQ/9/iEAUm7NW1/WiagM+ra8Zcd2NmAbIP1YFM=;7:qmi60kx58W8W9uyq4P5CqIAP3I5A0Xec4OdvH2o96ABMw4l8BVwRm2bU5a0bNyU5Ixa5YGwp7WSZ7ibn2ufYjUqS5V2FKxtBfahtPQn2K7gwL64ZXMli387xtJu3A8suJiqt8xV3bO+RGT5qo/lw6A== x-ms-office365-filtering-correlation-id: 7ffd34a0-452f-434f-a6b4-08d6402f5cdc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:PU1P153MB0155; x-ms-traffictypediagnostic: PU1P153MB0155: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(8220035)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(2018427008)(93006095)(93001095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:PU1P153MB0155;BCL:0;PCL:0;RULEID:;SRVR:PU1P153MB0155; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(39860400002)(136003)(346002)(366004)(189003)(199004)(93886005)(6436002)(8936002)(102836004)(54906003)(4326008)(53936002)(9686003)(256004)(6916009)(2906002)(5640700003)(7696005)(5660300001)(478600001)(76176011)(99286004)(14454004)(2900100001)(97736004)(55016002)(6246003)(1730700003)(8676002)(33656002)(81166006)(229853002)(10090500001)(81156014)(71190400001)(71200400001)(6506007)(53546011)(2351001)(86362001)(186003)(86612001)(6116002)(105586002)(22452003)(106356001)(8990500004)(10290500003)(316002)(6346003)(74316002)(486006)(11346002)(5250100002)(25786009)(476003)(446003)(46003)(68736007)(305945005)(2501003)(7736002);DIR:OUT;SFP:1102;SCL:1;SRVR:PU1P153MB0155;H:PU1P153MB0169.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-microsoft-antispam-message-info: 6QUMuZ9pP3wtJ/bRCz3oRzEQtnu7AKqcmuKi6n74IlQfgFxq2ZYXEQCs9DvJ6iaE9VqZSFqpL01yjkDYBogHfXPVlu157lfQax2+q29RfYGiAxs+5hJ1rso9nHOcjcrj5HpsV4l9CguyKYJAS8XCb8/eIdoyN0PvKkt0Mvxf5mEDo0hdAP2Gfkn+ad1mms+AQ77c33ma74WrUcmKxUDtzE8tPuUzgsv5RK1p7r+CsdazqvtAQPtX3InIDMlF7OP4jz67Ya9P2ibsBd6mfzvroxAjMLFM7/4U3INzdDv2yyG01cRYPL+v1eWE08q2Pb/Z7wup3UYa/wg4GFsNfQCjzx6eefov9wDKz/DJn6stmkY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ffd34a0-452f-434f-a6b4-08d6402f5cdc X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 19:22:28.1246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1P153MB0155 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: gregkh@linuxfoundation.org > Sent: Thursday, November 1, 2018 11:57 > To: Dexuan Cui >=20 > On Wed, Oct 31, 2018 at 11:23:54PM +0000, Dexuan Cui wrote: > > > From: Michael Kelley > > > Sent: Wednesday, October 24, 2018 08:38 > > > From: kys@linuxonhyperv.com Sent: > Wednesday, > > > October 17, 2018 10:10 PM > > > > From: Dexuan Cui > > > > > > > > In kvp_send_key(), we do need call process_ib_ipinfo() if > > > > message->kvp_hdr.operation is KVP_OP_GET_IP_INFO, because it turns > out > > > > the userland hv_kvp_daemon needs the info of operation, adapter_id > and > > > > addr_family. With the incorrect fc62c3b1977d, the host can't get th= e > > > > VM's IP via KVP. > > > > > > > > And, fc62c3b1977d added a "break;", but actually forgot to initiali= ze > > > > the key_size/value in the case of KVP_OP_SET, so the default key_si= ze of > > > > 0 is passed to the kvp daemon, and the pool files > > > > /var/lib/hyperv/.kvp_pool_* can't be updated. > > > > > > > > This patch effectively rolls back the previous fc62c3b1977d, and > > > > correctly fixes the "this statement may fall through" warnings. > > > > > > > > This patch is tested on WS 2012 R2 and 2016. > > > > > > > > Fixes: fc62c3b1977d ("Drivers: hv: kvp: Fix two "this statement may= fall > > > through" warnings") > > > > Signed-off-by: Dexuan Cui > > > > Cc: K. Y. Srinivasan > > > > Cc: Haiyang Zhang > > > > Cc: Stephen Hemminger > > > > Cc: > > > > Signed-off-by: K. Y. Srinivasan > > > > --- > > > > drivers/hv/hv_kvp.c | 26 ++++++++++++++++++++++---- > > > > 1 file changed, 22 insertions(+), 4 deletions(-) > > > > > > > Reviewed-by: Michael Kelley > > > > Hi Greg, > > Can you please take a look at this patch? >=20 > Nope, I'm not the hv maintainer, they need to look at this and ack it, > not me :) >=20 > greg k-h Hi Greg, KY has added his Signed-off-by in the mail. I'll ask the other HV maintainers to take a look as well. Thanks, -- Dexuan