From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbdCEACz (ORCPT ); Sat, 4 Mar 2017 19:02:55 -0500 Received: from mail-by2nam01on0110.outbound.protection.outlook.com ([104.47.34.110]:53280 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752450AbdCEACy (ORCPT ); Sat, 4 Mar 2017 19:02:54 -0500 From: KY Srinivasan To: KY Srinivasan , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "vkuznets@redhat.com" , "jasowang@redhat.com" , "leann.ogasawara@canonical.com" CC: Dexuan Cui , Haiyang Zhang , Stephen Hemminger Subject: RE: [PATCH 1/1] Drivers: hv: util: don't forget to init host_ts.lock Thread-Topic: [PATCH 1/1] Drivers: hv: util: don't forget to init host_ts.lock Thread-Index: AQHSkWG7WZeWA/4o/UqU1FF71WjCBaGFZJWQ Date: Sun, 5 Mar 2017 00:02:18 +0000 Message-ID: References: <1488245143-26047-1-git-send-email-kys@exchange.microsoft.com> In-Reply-To: <1488245143-26047-1-git-send-email-kys@exchange.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: microsoft.com; dkim=none (message not signed) header.d=none;microsoft.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2601:600:8c00:1040:7415:79b8:a2c0:fe22] x-ms-office365-filtering-correlation-id: 99b1fb76-3d03-4b89-8065-08d4635ae41b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:DM5PR03MB2491; x-microsoft-exchange-diagnostics: 1;DM5PR03MB2491;7:Oac9A3PKgvTVOZjKh73NksNA2yVVkYNGwswhfjAf8TvOneiB8J9mT/O/EkBEi5MZ+bCICzhVjvYLUnMSYeuDclobe8GrR7vgms1QPWAVfSJPJ8ua4viMZMQes5+vvS5HTvTIdBsWCKLVIoPFy7OHrEXpT2cVezAMCRSZZam8QPmifWyBFBPCZktYh6hNFNOS73kXPQ6xuB0Hde1Owd2BAa16CMIO2x/urIfiT07bErFmDN2IglgNURaOmv+k/Q8Y4+En+vzVlRDJPKdDHPem3j48cS+1Sj0redANgQghaKmLnCz62Bc1DhOVQ+Z7VRbZvy9jnsCho9fKS55S1DibM109Q0NLKMHrEP/dj4mshm4= x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(140211028294663)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(6072148);SRVR:DM5PR03MB2491;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2491; x-forefront-prvs: 02379661A3 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(39450400003)(39840400002)(39850400002)(39860400002)(377454003)(13464003)(53936002)(2561002)(102836003)(53366004)(6116002)(38730400002)(53376002)(189998001)(53546006)(6246003)(7906003)(305945005)(7736002)(2900100001)(92566002)(74316002)(8676002)(10090500001)(2201001)(5005710100001)(8990500004)(10290500002)(86362001)(2950100002)(54906002)(606005)(54356999)(76176999)(6436002)(3280700002)(3660700001)(77096006)(25786008)(7066003)(122556002)(2906002)(55016002)(7696004)(6506006)(5660300001)(50986999)(2501003)(106116001)(6306002)(33656002)(9686003)(99286003)(4326008)(10090945008);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB2491;H:DM5PR03MB2490.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 00:02:18.9734 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2491 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v2503CJ3000676 > -----Original Message----- > From: kys@exchange.microsoft.com [mailto:kys@exchange.microsoft.com] > Sent: Monday, February 27, 2017 5:26 PM > To: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com; > vkuznets@redhat.com; jasowang@redhat.com; > leann.ogasawara@canonical.com > Cc: Dexuan Cui ; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger > Subject: [PATCH 1/1] Drivers: hv: util: don't forget to init host_ts.lock > > This sender failed our fraud detection&nbs > p;checks and may not be who they& > nbsp;appear to be. Learn about  href="http://aka.ms/LearnAboutSpoofing">spoofing > > From: Dexuan Cui > > Without the patch, I always get a "BUG: spinlock bad magic" warning. > > Fixes: 3716a49a81ba ("hv_utils: implement Hyper-V PTP source") > Signed-off-by: Dexuan Cui > Cc: Vitaly Kuznetsov > Cc: "K. Y. Srinivasan" > Cc: Haiyang Zhang > Cc: Stephen Hemminger > Signed-off-by: K. Y. Srinivasan > --- > drivers/hv/hv_util.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c > index 3042eaa..186b100 100644 > --- a/drivers/hv/hv_util.c > +++ b/drivers/hv/hv_util.c > @@ -590,6 +590,8 @@ static int hv_timesync_init(struct hv_util_service *srv) > if (!hyperv_cs) > return -ENODEV; > > + spin_lock_init(&host_ts.lock); > + > INIT_WORK(&wrk.work, hv_set_host_time); > > /* > -- > 1.7.1 Greg, Please drop this patch; I am going to resend. K. Y