Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4921869rwl; Mon, 3 Apr 2023 11:31:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXygMoW/0W6v2o+g2m2ofBQnnNbkqnvm2gW46vY69aHvJlLIRQ2zj8JyMXKjI+gx6OK066 X-Received: by 2002:a17:907:a46:b0:93f:9ef3:945b with SMTP id be6-20020a1709070a4600b0093f9ef3945bmr39008711ejc.17.1680546665855; Mon, 03 Apr 2023 11:31:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680546665; cv=pass; d=google.com; s=arc-20160816; b=PHyQAbncZSdoCo2N3kyX7Ivpu/5Qoc9+TnQ+ZcepPb0IwmFb1phPWfUAdUlkHN26E2 f75bioHKDc/YSKVa9hopowoEVVagMGCJ2c6WagO6lXf02A2GQfZNgTgN5c4mDH3ecKai SsOPrL1JZA+9HQtPUoBMr1Jh2Dlo4qZY4jFC4lJBZZaZgjeLMHeEyfsArHyE52Q6Foo5 EgXIBtlfoEtGst/462qpzMNOkv5awugWERSTNz35cJa1XN5ygiecmFIAs06sucnEPCTy AqddKin7Dyf4rqmX4zvBTDMcmmyDBaMxnjXJ/Pk+uXSioIaR+0WkQUNgSnEoV7pkVZ18 Hu3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=1FoZa9LTrAuCPzmJPPCh3RcR7qUnWsdp1DMUzTWj/3I=; b=ea03EAKjeWjb+xg7Nu66EUaF39q5PKMkRJE8lc0gL6gfsGe38NN7imLfbxcDJyEAMf DobMg2pEQL+5CTLF4ULz4sORp24NagPpZACUEJBziqb/Exs9ltQsu7bfIGKRESFS5B9c NpZ6SkkLvO6hj8M8zVtxuexyiS8kDFloghycSoPlLC82TluQ9GAjIbHM8/wLNRy1Finz DziaHRJWrBAYv5ECuxTDXLkUYJUmLmMvCxbonaMKuo5sqv0MZqKYcC5+6fRPDD3V041b izLuU0/V1fS6p9/HG/rJ4HI85mOV5cntVfwV+2CuDF1JC8NSkOv3mMputp8V36JI5wiB 1rdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=CJE3grK6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg44-20020a170907a42c00b00947aa58b453si8383976ejc.541.2023.04.03.11.30.40; Mon, 03 Apr 2023 11:31:05 -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; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=CJE3grK6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233035AbjDCS3v (ORCPT + 99 others); Mon, 3 Apr 2023 14:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233174AbjDCS3i (ORCPT ); Mon, 3 Apr 2023 14:29:38 -0400 Received: from BN3PR00CU001.outbound.protection.outlook.com (mail-eastus2azon11020023.outbound.protection.outlook.com [52.101.56.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9C952D53; Mon, 3 Apr 2023 11:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hIUHYVnlONXufNl9SJi2MgMYLh0eWJO9ExbHBuZYuFLkvTZNGAlnGKy7fbdZ6wUISQoBlr3k4tF9n46W7IjYIojPAaAgFYgvHS9WeXnsTAnwyxEp2DUckHKgsOukipxeONwMndwQnIOkdBOwRgH0E1MwsgsW88XWYSHX3LmMbvIny2tZDC9AzWfMqPgAN5W3HZxUgjHIg72150ZPwg2/VeN2owQVp+h9QqQlR86AtqJYY59aJDyCHeWRSz8qNjem6qaleJyfZ8MIcN1K/kJ/06tNwWtpwe1nA1SPpQcoCgXg3FWnbh2yJN/2Js2c06mqKRnVdt/aRrCZv27DR8oCqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1FoZa9LTrAuCPzmJPPCh3RcR7qUnWsdp1DMUzTWj/3I=; b=QwmH/c0hpC2vfEtHA8UEuOIFfL8DXb4v/EQGlcjguTwHFtxGrEiq4mTYuEpOHpbwajx/DWDY6dhuCf70vxL94vQy8gb/6ccKV34gR1TW5nj9bNTM82XFngM5Bd+ePolTqt6boBABYxUxrjlIBz/l2F7ioKcFU85tMTNdtSCAQF0l/Kp9BS4B31WFj/eRH24xO+X321H0fBTwVTKrXzCu1E5sO5y29aUyPPK4l1aCn5JfX8QeojgNbr/YIIHzcWNGCGZCzOduJxYp/GoRfBehxgXI0lXyoXWWZ75Zgi4a0ITAhJXR/2w2m3OKlROQFuXVVCP1r6xwLx2cb2Lg+eK0+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1FoZa9LTrAuCPzmJPPCh3RcR7qUnWsdp1DMUzTWj/3I=; b=CJE3grK60GDvvSt04YBEPEvWcpX+5MPF6TxwBCT/D8AJY2bUjCKh5LckDgsSllFFeFsXTdRbWFPjLxY3pPy1fTuZiyTJOPoi+DLBOiOUjMnothBtxXBpwI4xF0U25iNuySDjdDSbCSgMJLWzIhiJdkad6Gt14J9mAk/R4LlD4Mk= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by SJ1PR21MB3432.namprd21.prod.outlook.com (2603:10b6:a03:454::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.8; Mon, 3 Apr 2023 18:29:24 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::2e52:d6aa:9a99:500a]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::2e52:d6aa:9a99:500a%5]) with mapi id 15.20.6298.009; Mon, 3 Apr 2023 18:29:24 +0000 From: Dexuan Cui To: Greg Kroah-Hartman , Jose Teuttli Carranco CC: Boqun Feng , "quic_jhugo@quicinc.com" , "quic_carlv@quicinc.com" , "wei.liu@kernel.org" , KY Srinivasan , Haiyang Zhang , "sthemmin@microsoft.com" , "lpieralisi@kernel.org" , "bhelgaas@google.com" , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Michael Kelley (LINUX)" , "robh@kernel.org" , "kw@linux.com" , "helgaas@kernel.org" , "alex.williamson@redhat.com" , "stable@vger.kernel.org" , Sasha Levin Subject: RE: [PATCH v2] PCI: hv: Fix the definition of vector in hv_compose_msi_msg() Thread-Topic: [PATCH v2] PCI: hv: Fix the definition of vector in hv_compose_msi_msg() Thread-Index: AQHZYrMXe0Y6kEKNA0yWUzOcmG4VZq8SosvwgAbyUwCAAFlhoA== Date: Mon, 3 Apr 2023 18:29:23 +0000 Message-ID: References: <20221027205256.17678-1-decui@microsoft.com> <2023040305-evaluator-come-fcb8@gregkh> In-Reply-To: <2023040305-evaluator-come-fcb8@gregkh> 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_ActionId=9705706b-0836-48ff-b1e8-5bedc0c02d01;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-04-03T18:27:30Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR21MB1335:EE_|SJ1PR21MB3432:EE_ x-ms-office365-filtering-correlation-id: 425af6a5-c005-4c25-cc4d-08db3471597f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tWqfyJQLoKGpbrU+W7pXK8q2uKzodMOOkTjY9hSB0BpzeThs3VFBgffE3vnspUDd5eD0AasAyMlKhcdBCFM0YEQW+8xn+0gSLHYgGh1SrR87yFBYA1s0YME7RXQLuobTcb08iGGHRML2EgfjOh+pICm9VlPCXO13RWrEdZzgm1AY9ZCprqK7YQccfGaipG/ctoK3ene9QKkLLfWFvzQ3RhZ9Mod2Vi73btUOY2XSbw53H9XP231GPepBXhniLM3IqYZWgUgx9TwoKD+EmFGTLv7j/331x8lRYtF0wsTAte5EJpYulc3Hz2MmwFLtXyzo/PgSE1cdbHz59ka/zPjCnchI2NCKRY7cRRsSAsOfQZxUDZjYakCiCsGeBpGqgZ69M2ndKWAdtcd/i+YUMnnQD67EIQcjSfhWh2fjg9SPjxS2R2pIWm3hlp/fkXfESmeg8IFQP5TbludtnHxeJC0JqxIjJh4HYNC7UF5ytjRSivH2th+kfh0VTp++irwjThaPACxMD20PUzUfsmSiql1/skSDnk0LwYGfw9JLwWVUKdzu211cFtM9c/SZZ2rkKdvpVZ1eOhMjnadoGyGLrXyfgsQjfhLEUYTiiuRAFugwT4O0DaZRRpqQd1rmgZ8/uumNYCqkaGKyjMelWZJq+ytXy1JMZkmuVp8Z6PysYqKXw34= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:cs;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(346002)(39860400002)(376002)(396003)(451199021)(86362001)(33656002)(38070700005)(10290500003)(316002)(76116006)(41300700001)(66476007)(786003)(66946007)(66556008)(66446008)(7696005)(110136005)(71200400001)(6636002)(4326008)(64756008)(54906003)(8990500004)(8936002)(55016003)(5660300002)(7416002)(2906002)(52536014)(8676002)(38100700002)(478600001)(53546011)(122000001)(186003)(82960400001)(82950400001)(9686003)(6506007)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nqY68ObieQGn4TKuQ92Uut6vy2Aiu++cTIta5teiqBRtcitdi2+orkhUhfoI?= =?us-ascii?Q?r3/Uvcs6Le2a5BsahD7m0J5XaYFACueZAhzdW2VqHKXDefPfYFc2EALaGLY0?= =?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f9P3I6UOI7wEh4+hXJc+pzZMUxmOVUItto1mN?= =?us-ascii?Q?vPZ8IMdQLt0EqB4CKIdaebnlTgTyxknzwVz5uSHYrgGcXF9Hl/5KCiWOtFfp?= =?us-ascii?Q?htNjSOtrIV9XR6qSR4ktjvTUOV9y+HFDZh3gpyEBmVlMTNaSsFav0O+JUxVl?= =?us-ascii?Q?2TENb4jqT1jFDCGZTfz92+foPSAa90uutIwTz+HWBKIUqcivILsdlIMtQSf/?= =?us-ascii?Q?CQOEYYo0rcs6rbPVrDU6RY2DDegFW8i76226ifW5AfhDOPiBjCSUabFuh2G/?= =?us-ascii?Q?QxWjWP5/+tLSMH0JtQL5EK6BboVBKwU/tnVxw8XltAO35amUqMH9fn3IepG3?= =?us-ascii?Q?TR86t9/e2+wDEzu2CsUUm3m30zOZekEd4YNagFgZ3sqdARiX2ifOQIV1MlrM?= =?us-ascii?Q?DViA0XB9er6P7XOrVpm4/UTBsh/Js6vDc70WG6GmaneRdMAVChs1qqP5TBi/?= =?us-ascii?Q?i40Ki39i7B7JVoCEpJ6RAFGp26LMm/mNFZYaYIMqVssOJEADlcOCEqQH/e8J?= =?us-ascii?Q?ikDirANTUogvkzkUh5AGK8hAPVhYvP4XCtd77egZp6kzEqyPPX+yltimO8gT?= =?us-ascii?Q?Fj4EUlj45NsHlox1q8e4QyAK7NDDWNxJF0bE8Qxx?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR21MB1335.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 425af6a5-c005-4c25-cc4d-08db3471597f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2023 18:29:24.0084 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NFG8430PYnE1inwTCyErVo/Akbd2S/UrhyLEOuV/BnEbqPeTNaoHMOIOz/yC70duC6CjTz9BaPk71O460gvgcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR21MB3432 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 > From: Greg Kroah-Hartman > Sent: Monday, April 3, 2023 6:08 AM > To: Dexuan Cui > Cc: Boqun Feng ; quic_jhugo@quicinc.com; > quic_carlv@quicinc.com; wei.liu@kernel.org; KY Srinivasan > ; Haiyang Zhang ; > sthemmin@microsoft.com; lpieralisi@kernel.org; bhelgaas@google.com; > linux-hyperv@vger.kernel.org; linux-pci@vger.kernel.org; > linux-kernel@vger.kernel.org; Michael Kelley (LINUX) > ; robh@kernel.org; kw@linux.com; > helgaas@kernel.org; alex.williamson@redhat.com; stable@vger.kernel.org; > Sasha Levin > Subject: Re: [PATCH v2] PCI: hv: Fix the definition of vector in > hv_compose_msi_msg() >=20 > On Thu, Mar 30, 2023 at 03:23:45AM +0000, Dexuan Cui wrote: > > > From: Boqun Feng > > > Sent: Wednesday, March 29, 2023 7:56 PM > > > To: Dexuan Cui > > > ... > > > On Wed, Mar 29, 2023 at 06:56:12PM -0700, Boqun Feng wrote: > > > > [Cc stable] > > > > > > > > On Thu, Oct 27, 2022 at 01:52:56PM -0700, Dexuan Cui wrote: > > > > > The local variable 'vector' must be u32 rather than u8: see the > > > > > struct hv_msi_desc3. > > > > > > > > > > 'vector_count' should be u16 rather than u8: see struct hv_msi_de= sc, > > > > > hv_msi_desc2 and hv_msi_desc3. > > > > > > > > > > > > > Dexuan, I think this patch should only be in 5.15, because... > > > > > > > > > > Sorry, I meant: > > > > > > "this patch should also be backported in 5.15" > > > > > > Regards, > > > Boqun > > > > > > > > Fixes: a2bad844a67b ("PCI: hv: Fix interrupt mapping for multi-MS= I") > > > > > > > > ^^^ this commit is already in 5.15.y (commit id 92dcb50f7f09). > > > > > > > > Upstream id e70af8d040d2b7904dca93d942ba23fb722e21b1 > > > > Cc: # 5.15.x > > > > The faulty commit a2bad844a67b ("PCI: hv: Fix interrupt mapping for > multi-MSI") > > is in all the stable branches, even including 4.14.y, so yes, the commi= t > > e70af8d040d2 ("PCI: hv: Fix the definition of vector in > hv_compose_msi_msg()") > > should be backported to all the stable branches as well, including > > v5.15.y, v5.10.y, v5.4.y, v4.19.y, v4.14.y. > > > > e70af8d040d2 has a Fixes tag. Not sure why it's not automatically > backported. >=20 > Also, the most obvious reason, it does NOT apply there! If this needs > to go to 5.15.y and older, please send working backports of it. >=20 > thanks, >=20 > greg k-h I also found that we need to manually rebase the patch for 5.15.y and older. +Jose, who will help to do the backport.