Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3565109pxb; Mon, 25 Jan 2021 21:38:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJztuDerZrvWGo3Iqk5x4Xc9jijukmUpKe1FUGTXBRvKvgCR9XTeoRBLWAGZrGkcICA633qY X-Received: by 2002:a17:907:96aa:: with SMTP id hd42mr2357505ejc.526.1611639494335; Mon, 25 Jan 2021 21:38:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611639494; cv=pass; d=google.com; s=arc-20160816; b=fXv8iFYL9HW3dK0H2uoo/bdW8OKuCBF+Sy+v+IyDmAKvFpd/LZ6eEk0Gdm5jKuoeyB fjkZxApB3ObCVic/O3WYZKL6dVPVd2cxQBqcBzEfIThqwFhWdFvfHCJC49aaHkz5A2bv k8R74C90W8Ltv6SIJvA0QpthIl6rlQlomCdQRNH47JeURDgSt2KNxWAUtE3CxDqBHMDJ Z9/mORubF9MrAEV/Ynj+Fgwfu4672gKsDsyTFm/varC73G9US8xe3Q7nFiotNlQWedOw 0qPUBvvcxye2pgJLL6agiKY6YGYvQGtjJzH+AUFflz+7EIJW3SyJRUz+G2RYfyuPtq1O 5PNQ== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=m6qGuHzQSkYN6uDOT5kTbmc4I59UuqyBRVG/chMkGvQ=; b=GuuuVHLKEvCBeKoPLeRyzwhZLVIaULgJtf5rndNKS7slJfksQpRyWnCGmSfGIlt8tg p8wCOlAr5vt9K4Iq9SkRJIMphCCpkKY1L8wBasUXKg3rKl6OYYXeGU3dLSVKyehNOHMi y5pzwdIkT8go8QyoYv9ina/4hWOiZyvhBXrHJLNaOcrka9AYZBbiZPeN/P1MnW2uX3oG KFDy8PaowHBQF3foaBQ3MRL8O/1/4clm/v1mrxcRAs4mfER4ksCjCIGMgrHmWZ3dedsV bcVSUHpfgJn2rjU9uNC0kr1qzJSe86/L4a3rjraXpjOG5DU2KQRlWqKwcbSPYK65dQLk Dp8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="K39DW/ZN"; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=PoQMZeTh; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si6841506ejb.368.2021.01.25.21.37.50; Mon, 25 Jan 2021 21:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="K39DW/ZN"; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=PoQMZeTh; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387857AbhAZFeh (ORCPT + 99 others); Tue, 26 Jan 2021 00:34:37 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:32878 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727444AbhAYKYN (ORCPT ); Mon, 25 Jan 2021 05:24:13 -0500 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10P9ZSDd025329; Mon, 25 Jan 2021 01:52:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=m6qGuHzQSkYN6uDOT5kTbmc4I59UuqyBRVG/chMkGvQ=; b=K39DW/ZNAjgUuWXAnGb6SXgHmwHSfX0thAND/DSeCxWQo2ZWweRbBM2g1a87qXaxzfSR eHni1obVctijA//+cl946Gmar+ijxpryHcrhK/9Kew3klG7UsuN2q/3GEyAhHhoS3DzO FXmatd2DhGpzD53N2yyRM+AKgXm1JWiGtzdsN6s48G7zJC3jEO2x8Hbult169ZAdGw5o wV2UXL0Wdz7y+IUVYb+6iyAgQL9sTy+IQJU1kVpGKIii+qfOLf3yc8w3eryET1ULQJAU W26t8mUFHrGMPT7gSaa2whI6uQy4ir0vgTHPwX1K5ve1eEL2XJQ984VDb5w6bRa9ICFT yA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 368j1u42kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 25 Jan 2021 01:52:31 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 Jan 2021 01:52:29 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 Jan 2021 01:52:29 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 25 Jan 2021 01:52:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0Rvm8QDoeDt5POneWX3PF3y7/1bDCpGNwfqmbdPu2ewF8/RNKPksHgChWnFixRHbzY/Qr+UDN3zekC9vCg8P5JrEOQ6wPHccvHP4Zi9fExN3dF95pKmcHuq4FCp59C/Z8dHt0l4+7RWClhEslWVylc5gIwX6mvK2vlaYqhE1A9N9CZ5120jT/j1hwlJDCQ+bu1lEKGT//khkyJjo1wJ6E8im4UEah5OLlKWQINcomMPfeO5/3Ir6wheofAmuirRNQPrdJZRCOMgGQgdN/+yM/b6FgNXY+4FWxffOxsh6fKlrN29QKwD2xHjGqCtQbaUoWNXvPhLbcrOxyMx5JtL1g== 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-SenderADCheck; bh=m6qGuHzQSkYN6uDOT5kTbmc4I59UuqyBRVG/chMkGvQ=; b=KNI/NULdmNiT/yxwN6QLUPxXnB1lpZ5R03NZW0CVm4EhB+6VwtfWueWVfEtvJNWVVWh3Dy9aytqt6FNt/wuVui0utKwTsUk+fqv26ocH3+HiK6DhpBx2nfL4obYfNKwRZEyLoBIkgyRfiE4VDnIP9xlAx3zfpaXKdAAQm48i1PuCAHeblTD4QjbSSK4Tk36mORhxNjLHEfuWLMXdX/IV7/mDrws1lVvRySoUMVjYBHCtuNbAbwjKhocr787H0PNdpQeJXmQcwlWf4ddobr+BMDAoW8tdmAab3eUISq4Jys9ml5xQsjbcyJE0/kNZjItykSn+pYnr/KL8vZyAJGVzuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m6qGuHzQSkYN6uDOT5kTbmc4I59UuqyBRVG/chMkGvQ=; b=PoQMZeTh8aOXaxxOAcUJ8uj4kdErlxmnYjmagg3SoYkNsZHHElb1bsGRN1aDx64qJlKfWm66QctK7+xmR2ln0DScJjtIJVmjQDlmfZQ6QXPkYyJqbxC7LltH6IqQXh5OeiDq7w8QwCvaouotZzYYLq9z7IjXKwHLYG5J0KyXmfM= Received: from DM6PR18MB3034.namprd18.prod.outlook.com (2603:10b6:5:18c::32) by DM6PR18MB3722.namprd18.prod.outlook.com (2603:10b6:5:c2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Mon, 25 Jan 2021 09:52:27 +0000 Received: from DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::455c:aa82:3f6c:95e9]) by DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::455c:aa82:3f6c:95e9%7]) with mapi id 15.20.3784.019; Mon, 25 Jan 2021 09:52:27 +0000 From: Saurav Kashyap To: Dan Carpenter , Nilesh Javali CC: GR-QLogic-Storage-Upstream , "James E.J. Bottomley" , "Martin K. Petersen" , Himanshu Madhani , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: RE: [EXT] [PATCH] scsi: qla2xxx: fix some memory corruption Thread-Topic: [EXT] [PATCH] scsi: qla2xxx: fix some memory corruption Thread-Index: AQHW8vZQqe0wROdeNU6MRb6tZasxpqo4GW/A Date: Mon, 25 Jan 2021 09:52:27 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [103.103.215.229] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 207da384-2975-499b-5cc5-08d8c116ec6f x-ms-traffictypediagnostic: DM6PR18MB3722: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WR+g2FYgbLRlZLWDaZ/94Hzi535Sp3VfyAaMTmYDT89yOFnxZvk2blMbwpMqAiK1TG/7YH/6EyrJw5IlViVEMR09lutQILtVKWyO9krHZvp46CqFGuldczbZfQkgKrwG346Ft7ULLU8//LavnUrW2lk85kbkdnpMIVd3C/5sXtBKVeOISYdmYflb5Nz/Z7jYFsnJjVpbkjvwB/QbfRgomilpfqExeVcj33xmlAuKuWQCfzzbfjQXLwXeTPo60BZGQ7rx7gRCkTzbK2xfCZhbW+oJ5UDOEykX5mCUZXXx9l1Ff7XE121ZM2+A9Xy2r4EZ75Y98cgbZffNbaUfh61LimVvB6l/AVp/zAXTWKg1dMk8qxwatEsXinOK5frsZN741SHQYHuTbGbk0GRgf1qsXymUOTvdRB6eq9kRZQQ1+Mw9xH/TniONFjqBbFYGm2KGDRV9A3N6q1/BjZoRHkIW4a8u1B5fyIN1kUw1S8+IumEQas/oa0YwkuqApgx3u3bzg3dxlN7lKeDP5uQ8Ruv6/A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR18MB3034.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(136003)(346002)(366004)(39860400002)(4326008)(53546011)(478600001)(86362001)(83380400001)(76116006)(71200400001)(316002)(8936002)(7696005)(2906002)(66946007)(52536014)(8676002)(186003)(6636002)(66476007)(66556008)(64756008)(66446008)(110136005)(9686003)(6506007)(55016002)(26005)(5660300002)(33656002)(54906003);DIR:OUT;SFP:1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AaSDi7+D32YziqkkHg/qmOq9WfYmjsDlj/xAEnQ57d55/tKyCr3N80d4?= =?us-ascii?Q?LXPju9MoLn/E8s4rto63zRaapjYWFjKFACTu5z24GPFTmcVS2k+BzWn+2kFI?= =?us-ascii?Q?lvTdTrvfsGF0i/ZAso4g4vwcgwQuU5XkkOBI1msr5EU=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR18MB3034.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 207da384-2975-499b-5cc5-08d8c116ec6f X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2021 09:52:27.2168 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YQ3RtI/LiOQOGmFA1lnr6OoSe2Fy85IVXb3CrvKwGSVPHHfYfUuBeTPKV5GCyomI4favd2IJxemfDWFRExN8XA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB3722 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-25_03:2021-01-22,2021-01-25 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, Thanks for a patch. > -----Original Message----- > From: Dan Carpenter > Sent: Monday, January 25, 2021 2:14 PM > To: Nilesh Javali > Cc: GR-QLogic-Storage-Upstream Upstream@marvell.com>; James E.J. Bottomley ; > Martin K. Petersen ; Himanshu Madhani > ; Saurav Kashyap > ; linux-scsi@vger.kernel.org; linux- > kernel@vger.kernel.org; kernel-janitors@vger.kernel.org > Subject: [EXT] [PATCH] scsi: qla2xxx: fix some memory corruption >=20 > External Email >=20 > ---------------------------------------------------------------------- > This was supposed to be "data" instead of "&data". The current code > will corrupt the stack. >=20 > Fixes: dbf1f53cfd23 ("scsi: qla2xxx: Implementation to get and manage hos= t, > target stats and initiator port") > Signed-off-by: Dan Carpenter > --- > drivers/scsi/qla2xxx/qla_bsg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bs= g.c > index e45da05383cd..bee8cf9f8123 100644 > --- a/drivers/scsi/qla2xxx/qla_bsg.c > +++ b/drivers/scsi/qla2xxx/qla_bsg.c > @@ -2667,7 +2667,7 @@ qla2x00_get_tgt_stats(struct bsg_job *bsg_job) >=20 > bsg_reply->reply_payload_rcv_len =3D > sg_copy_from_buffer(bsg_job- > >reply_payload.sg_list, > - bsg_job->reply_payload.sg_cnt, > &data, > + bsg_job->reply_payload.sg_cnt, > data, > sizeof(struct > ql_vnd_tgt_stats_resp)); >=20 > bsg_reply->result =3D DID_OK; > -- Acked-by: Saurav Kashyap > 2.29.2