Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1255655ybg; Tue, 2 Jun 2020 05:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc0vjwY3kN1TMO2dTNcDWLjkvywF/EjYpCT+i+lGgpBde8SD7BuMniUFB0/KCtiUqaSFt6 X-Received: by 2002:a17:906:e115:: with SMTP id gj21mr4609408ejb.528.1591101005424; Tue, 02 Jun 2020 05:30:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591101005; cv=pass; d=google.com; s=arc-20160816; b=bwG2G1MTzKLdNijgUwobp1z6WO8i4AW+3DSDkMoMyTMdJhhzBRbyWpJVAMy1XsKOVr X+WDkO4fXxovTLCkOyFJ7YsUa7ncibBYkrrfwmPr5N+fD1pREb81o1HAqd667wkk0C2F Pmu0QcejZBARtzEP12wSeuYJ+RShHDaIYE+MUmNVB7BWhemjUMX738HwYzv4SFIhvdUF Z/eZzBRjrM1CYFaox6Fdl0eFWplMcO/vlEuKnqRVJzfBT8Lh3W40HmNGbSG81HLIEc+V HAren8bd9Q7bWmFkBpXqQlrwJS0BEWWCgdQfu2z+ZRp5GyTkHsHK+o2CuXofLCx80niZ wG/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:wdcipoutbound :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :ironport-sdr:dkim-signature; bh=JykLYAYwZ/UNJLGiAAzTLBEI2246Lk/Wc81wwEJ5x+U=; b=Xlqb1vNoPwkWMqqcMjF83GDxZpDnXUkTchcXnTqpBrwuO6bQ0WeeYd5JDDo1vEoY36 x6oSBddkh5N9NBsgOn+zUf1WSVUgLtm0UM/P6C2qySltm9P/uetyGkKCmJVgLUUf5+hZ ijwECrVBeFO7Auc621lkDye3XmhOwAAuX4MG5ScuX48eRI1vIQfC9s9XQA/TCJPrTXsU EJygjvrenbQjFYP/ZV/WbmAdxSolkBV96mIMLXg/klJfSMwYdk4X1zEs6zIUgvk2um/B 173YwQOD3Ttg6/OYTj+Ic/OvIEVRAiesGk150G282J+ebMgOFM6lAMPUo2SMJfOdL3O9 B93Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OR693B8p; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=bjQ0qoq7; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si1342115ejx.725.2020.06.02.05.29.42; Tue, 02 Jun 2020 05:30:05 -0700 (PDT) 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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OR693B8p; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=bjQ0qoq7; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgFBM0P (ORCPT + 99 others); Tue, 2 Jun 2020 08:26:15 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:20398 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727788AbgFBM0B (ORCPT ); Tue, 2 Jun 2020 08:26:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1591100760; x=1622636760; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=F838rpV7s9/tF2vVdnfVWKkA7xFexKsB/x/BwRoGF2Q=; b=OR693B8pukAMcecvahhxHedefnImb5BRsQHWalYJnve8BnMpx/aNI0Ug EX4Gzfu0B4tYel3XFVt/CGv6IsQPvOPesHv7cc65CVLJYQMNezdV9TkJA eQHcyMErUW7PBhIrE9SquD6IhsREtRYlKrqYvuuMPE0e8onAk1vqeNSP6 XHFIAynmKmXlV4cCmkBrjOEt/ktI4oP+0PZXNtuP1DJLo0QPLeDxnrMmS ZBsNjlqZQzPLL+Y8SwFlItzILEIw57OuwBzZmS2/36fjUOZdNyYz48uqw gj9r57Yr/ReYiP3NBeT+fPuuamBCsV4lBJxaSzm9Gg2I8SUmogpUlfSi4 g==; IronPort-SDR: /EPFaHiQycbeUM1Mqm8Eeg1YEwckhErWXmAuLJclS11W5k/VZt0uyM6Jnew5+1mBBMEyVNb/5o CEqzKYqmpvz2bBEjFs/6C87as+jBtQ7qAFKVO0SdYh3GJnW45JcfMFJCWWnD3CdaeWChxCuYnh iLnm95a7EmdCSzBgQ2ff6E3lQHtEKUCTE8covOZP3qP9BXU0LQoWEdPMKbU9RrhPLAqIHDC15O e8MmkkR80W1CBxOf0Eg2xrz5TmxNK23kTzGgx7JCCgvKUu8+5WBUq9kIkg37KBK1TC74eTeJ3g qCg= X-IronPort-AV: E=Sophos;i="5.73,464,1583164800"; d="scan'208,223";a="139344975" Received: from mail-bn7nam10lp2102.outbound.protection.outlook.com (HELO NAM10-BN7-obe.outbound.protection.outlook.com) ([104.47.70.102]) by ob1.hgst.iphmx.com with ESMTP; 02 Jun 2020 20:25:58 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Haq37J4idBKAW+Zpbm6l9QuJDog00cRLRnuL8P07JJa7euKf0BO8vRGiDErkNRgyI3IOmgMTuZ/zp0l3W4hpRuPo/Z6NKTDNUFifu2K943BMNh8c58Vun25WFphB6qjIC1Afv5vekaWjfUNZMB58+ZQT23MBuMkPphPoRuWhkkrm67CALjL0iEKajvbjv/VCloqSgBU+Xv5mT/ilCRoXG4GvguOR6vYZ1QQbWkH3YP6gbrg3AKcZ6UXxXjxMleRcc9wj/H4xC5miqtnF+PL5twVlSBS8ig3BlndUO1FJQo8XRkEcG6yl2mxHjtWKzZ/LSouH9HOB6cB6bwRm0ayUUw== 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=JykLYAYwZ/UNJLGiAAzTLBEI2246Lk/Wc81wwEJ5x+U=; b=HrLqExHw9OiTb2evy8LuXOsHTZytAwQxI3J1mIJpG9fq6fGJ8dbjRC6x5Ncr88X6KBseVialfbYNBlvNfcRV+Jzz2rGhq5uPGCD0s0f/6694YaZMwr6zsAAY109TuoC9ax3HsFKkXMSqGlaOGgP7flxtahV5dsoY3QE8g/l50XfsBGvmWUl+qyOJE/sO9DbL34jDqOC5Oin4eKmOoF7zgtwsYRrOCmaE0lWaw5q2nqIgd9WYQnhdQPvuOYrveaKMQQEqh2bjRTfVkM+HDIv7vE8avWag1VQoqRIjx1mTVaGqxWXYuJKTZXb8CZeppWDCCLr9BusiNcu7a/8g+Wa3bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JykLYAYwZ/UNJLGiAAzTLBEI2246Lk/Wc81wwEJ5x+U=; b=bjQ0qoq7PkuMn/xd8ZuA2FiuZv2U6p3Zfrss14Eo5yN8BGL4W5+N6DCFET17LlPPy14ksxVKjm7aGmgBft++uiHNBFem0mt4OQQwbtZZFC2rVIqqt56UJSiny+o1bp8sB3btXoNuqc3/xBvOsfMAehyGG9/PB7WkovTL/SP+Z8w= Received: from SN6PR04MB4640.namprd04.prod.outlook.com (2603:10b6:805:a4::19) by SN6PR04MB5038.namprd04.prod.outlook.com (2603:10b6:805:9e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.19; Tue, 2 Jun 2020 12:25:56 +0000 Received: from SN6PR04MB4640.namprd04.prod.outlook.com ([fe80::9cbe:995f:c25f:d288]) by SN6PR04MB4640.namprd04.prod.outlook.com ([fe80::9cbe:995f:c25f:d288%6]) with mapi id 15.20.3045.024; Tue, 2 Jun 2020 12:25:56 +0000 From: Avri Altman To: Bean Huo , "alim.akhtar@samsung.com" , "asutoshd@codeaurora.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , "cang@codeaurora.org" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy Thread-Topic: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy Thread-Index: AQHWN11kesoGcNEhCkK5z/BoKlc8lajDQ7UQgAHxgoCAAA2lsA== Date: Tue, 2 Jun 2020 12:25:55 +0000 Message-ID: References: <20200531150831.9946-1-huobean@gmail.com> <20200531150831.9946-4-huobean@gmail.com> <43a81bce2159ccd290e5dfe4a69199f56c379ef7.camel@gmail.com> In-Reply-To: <43a81bce2159ccd290e5dfe4a69199f56c379ef7.camel@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 549f197c-cbf9-4c3f-a2a9-08d806f01961 x-ms-traffictypediagnostic: SN6PR04MB5038: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:597; x-forefront-prvs: 0422860ED4 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b134gDXslSdJd/PNwqIB6rbL1hgMQewkvHLcl7YlW7Yf9+pLlGj/ePlJx4vdQJYdhkzS7IvTFsM7U45/Eup1qBYJJeK8zgR8/OF5S4Ozp5qxpQrYdRGHY9C8nl8FvDa0KRKF2wBgImEXRYgQaxdeosbhYBqwtAe9hONFNJAilmE9Z+KWoTU+s1Jk+Xr/SmuObplRNtn/iB78vlFXn+dcqlrgYYvgz0ON+f5Mpd5H0tx8XY1RoXuzQPTLCxJaEZa3emhoPyjLAby2OTxwWj2Qb8kd2TL+akagsAXBjgnMVaXCEB7FfC9ryZBUCfKlyvsjX4TYGwhZ9noBQDPzPAEsAPvlzO1EjjKZgfUi5q9aPqwfq2yFD1X+/76VEOQ1U2Yq x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR04MB4640.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(26005)(54906003)(4326008)(83380400001)(86362001)(71200400001)(7416002)(186003)(53546011)(7696005)(6506007)(33656002)(5660300002)(64756008)(66556008)(66446008)(66616009)(76116006)(110136005)(66946007)(2906002)(9686003)(52536014)(8936002)(8676002)(498600001)(99936003)(66476007)(55016002)(921003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: W2hPkE2KKgEnJmQolufts1Q/E5T+voto3WOylnOxZAKW+gnY56zxL2KyMCjw3jScYOTm4bWjzuysD9NbqTjo8ilkw42THS5izFgfcAn9BoInBH6Xd3513rz7KT2ImHoRxYOgd+9ZoOZSFKPon2/yuZeYIV5MZ+nO+Jz+8twsthRG/8UGIQHO+R2A9qJ54aTRYGZee/STLx1luMn6+6scCtdO19z8mt8iR1eRszreyExzs8xY7B2NbBWHn30ZpJCrparT4V/l0czGHiOxVcCQ4mCJQ1PkGrq0Jn1yPwZSBKoPlfCBUH5hmnKNs7g2z9AdvIQzonagEGA3W60zWvw1WnL0H/x7vdxSwO5APsFDBVpFFFL46Dh7CIM1NSgkQE6yns6W+kkAONs5n35XXpzfqwHLjlQQpyZYZdPrSOplbWEvbhzFSteIgVodF3oENELfeYGpX4JPwOGTHpk1TWGzrmO71V6Cl5ADEK8MStGX6rI= x-ms-exchange-transport-forked: True Content-Type: multipart/mixed; boundary="_002_SN6PR04MB464036A74AA935BEE35280CEFC8B0SN6PR04MB4640namp_" MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 549f197c-cbf9-4c3f-a2a9-08d806f01961 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2020 12:25:55.9472 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Lh2Z5euy6WVGJpmmeN05q2HeMstEE61JEgsRQ/thYwJVYyjN7EsiMDxbqbtS2srEfvC3e/JP7xG3VpUhgRJrkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR04MB5038 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --_002_SN6PR04MB464036A74AA935BE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HVwZGF0ZSBpdCBpbiBuZXh0DQo+IHZlcnNpb24gcGF0Y2guDQo+IA0KPiB0 aGFua3MsDQo+IA0KPiBCZWFuDQoNCg== --_002_SN6PR04MB464036A74AA935BEE35280CEFC8B0SN6PR04MB4640namp_ Content-Type: application/octet-stream; name="0001-scsi-ufshcd-Simplify-ufshcd_read_desc_param.patch" Content-Description: 0001-scsi-ufshcd-Simplify-ufshcd_read_desc_param.patch Content-Disposition: attachment; filename="0001-scsi-ufshcd-Simplify-ufshcd_read_desc_param.patch"; size=2782; creation-date="Tue, 02 Jun 2020 12:25:29 GMT"; modification-date="Tue, 02 Jun 2020 12:24:33 GMT" Content-Transfer-Encoding: base64 RnJvbSBjY2IyMTQ3NDE3MWEyZmZjNjdiN2EyMjk1MzgyODhmZDM5ODkxMTgxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBdnJpIEFsdG1hbiA8YXZyaS5hbHRtYW5Ad2RjLmNvbT4KRGF0 ZTogVHVlLCAyIEp1biAyMDIwIDE1OjE0OjU2ICswMzAwClN1YmplY3Q6IFtQQVRDSF0gc2NzaTog dWZzaGNkOiBTaW1wbGlmeSB1ZnNoY2RfcmVhZF9kZXNjX3BhcmFtCgpBbHdheXMgdXNlIGEgbG9j YWxseSBhbGxvY2F0ZWQgYnVmZmVyLCBhbmQgdmVyaWZ5IHRoYXQgdGhlIHJlcXVlc3RlZApwYXJh bWV0ZXJzIGFyZSBpbmRlZWQgdmFsaWQuCgpGaXhlczogYTRiMGU4YTRlOTJiICgic2NzaTogdWZz OiBGYWN0b3Igb3V0IHVmc2hjZF9yZWFkX2Rlc2NfcGFyYW0iKQpTaWduZWQtb2ZmLWJ5OiBBdnJp IEFsdG1hbiA8YXZyaS5hbHRtYW5Ad2RjLmNvbT4KU2lnbmVkLW9mZi1ieTogQmVhbiBIdW8gPGJl YW5odW9AbWljcm9uLmNvbT4KLS0tCiBkcml2ZXJzL3Njc2kvdWZzL3Vmc2hjZC5jIH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