From patchwork Wed Aug 19 03:23:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Qiang" X-Patchwork-Id: 11722427 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3120138C for ; Wed, 19 Aug 2020 03:23:59 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C130820855 for ; Wed, 19 Aug 2020 03:23:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=windriversystems.onmicrosoft.com header.i=@windriversystems.onmicrosoft.com header.b="RyM+LpnN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C130820855 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=windriver.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5DC4E134D2782; Tue, 18 Aug 2020 20:23:59 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=40.107.92.47; helo=nam10-bn7-obe.outbound.protection.outlook.com; envelope-from=qiang.zhang@windriver.com; receiver= Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 920E0134CE8D7 for ; Tue, 18 Aug 2020 20:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gm1ionFQRq3/ezlNxrotL1h0PIy57E+JY2uxcAeZw0biPd0k9XiWZqUT1u0TrtdxNx7lmgOo5+jNHK1BjhorLHZhENSBTT0bx5jcwRWTPuktyyvZ3tv69eHy6NqsMkKqv+J644MV5JJEFrPCTQyVq5tlPp/MHzvHv85L0S4nl/2VOEuIpdLrdfhtGNrXSc87UJqrhYUpMK7EFapBenr7+yEihesbP+y0NczVLJqx49vdI6lG3Y3//tlT38T2oL+eh/tIY85ruopn98gD+1VBVxxFaWQyJfqJ7CXz9NB6r89AHbEhxo75MdSM1tU54hE/7HG7WyhcyF0l5960b5EsiA== 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=wj3ktnfkaE/zES+RSgPwDyQ8mhOTu7xXCT0aIGkFCfY=; b=aQzRT/XXAEbhF/bjrFGt00WQSKbFUd/i1pjivc4w6y483ookZ9xu046GzNffZ+XlIeMNlbZEKsF6d0AXD+eejEIjfddMbW8Ws/WK72WYZ0HXmDjyAACavVlwFsHnpp4lAcexdJolUU0DVu5cXZcnNAvZ88bJP7JT5Vm2kPA1vnALlXC8bKftj5oUwBaDgXG6Od0O9H7y+0H/ZzYsKU56bu5mW+bnIW1PPqT1OEp1WXfmXLanheJJGHdx1TsKk+kMQgpmEJRaFxcK+UIk+PCF65r1VIwd5NYtlkInxojZo2fybkWtPYeWGHfblBQk4ArHEmswtFPkTOJ48sdLEOOwNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wj3ktnfkaE/zES+RSgPwDyQ8mhOTu7xXCT0aIGkFCfY=; b=RyM+LpnNBTOapNqc5mDH/epreEC1PEe7oc9YGitq/Tl4ZJKy7p0Birw8W9umQjuubLdadVYb0c+wRhO4Wsb1VIikDPz55cPuZ53lwTo9VsH8qPkNDH6G3ljYBBDGfWAqga84WaHBJZOy/19rmZEdH/X4bMIaVF5Rtp2MGrRJ26w= Received: from BYAPR11MB2632.namprd11.prod.outlook.com (2603:10b6:a02:c4::17) by BYAPR11MB2807.namprd11.prod.outlook.com (2603:10b6:a02:c3::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Wed, 19 Aug 2020 03:23:53 +0000 Received: from BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::d87a:b368:655c:e12b]) by BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::d87a:b368:655c:e12b%7]) with mapi id 15.20.3305.024; Wed, 19 Aug 2020 03:23:53 +0000 From: "Zhang, Qiang" To: "dan.j.williams@intel.com" , "vishal.l.verma@intel.com" , "dave.jiang@intel.com" , "ira.weiny@intel.com" Subject: =?eucgb2312_cn?b?u9i4tDogW1BBVENIIHYyXSBsaWJudmRpbW06IEtBU0FOOiBnbG9iYWwt?= =?eucgb2312_cn?b?b3V0LW9mLWJvdW5kcyBSZWFkIGluIGludGVybmFsX2NyZWF0ZV9ncm91cA==?= Thread-Topic: [PATCH v2] libnvdimm: KASAN: global-out-of-bounds Read in internal_create_group Thread-Index: AQHWcIZ759O455Me90qyS7wcmU/yCKk+zxcs Date: Wed, 19 Aug 2020 03:23:53 +0000 Message-ID: References: <20200812085501.30963-1-qiang.zhang@windriver.com> In-Reply-To: <20200812085501.30963-1-qiang.zhang@windriver.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=windriver.com; x-originating-ip: [60.247.85.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2efac0b5-453d-4560-de08-08d843ef4c7b x-ms-traffictypediagnostic: BYAPR11MB2807: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4VQkvVhvAppgxNkyNtEWthhDny1QO/cL40UBnuNWLlUadEqcmdDMzGy42kjQzzVB2MLZGseiZmKhl4BkgvlT2TIcCDDPSrKNi7bbRFcqJmllTPJB5G56Cof09dLC/j+S1M5lG9JkL+yDz3HUZI8UTvJLWK3T5Y7oRCP6yFevcjYqlY8cxN7j4/qzu5CEbuzfesgJNALGhOZYTUaEBoITwCILc3UUaX/jt/FxYlwQj38/jgfBdePlf+uvLLxVChvMem6FGPJNL18r7uckGfjeXlBitZnQ/WeQgzh+tyWHAIziKBMzTa/lr7ByJm0m7lL3V/gIJ8rgnA8oq6QjWxLyJQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB2632.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(396003)(376002)(39840400004)(366004)(136003)(7696005)(8936002)(54906003)(4326008)(33656002)(9686003)(71200400001)(55016002)(224303003)(83380400001)(186003)(2906002)(66476007)(86362001)(26005)(66946007)(52536014)(478600001)(316002)(66556008)(64756008)(6506007)(91956017)(5660300002)(110136005)(76116006)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: XlCKAUbNexF7xOxjXfqzZBejUAimNBCYwX2UVvJcsJNskA+/skJzFlYbnsDFY5QfsBrTtK2Yms0YnY506CTMs9Gs7icNuNc8DgStU2lN/bG9+GF0RqS0iWwSWkbrKFQKCLRCq21Aqepl6SCUAZy3XBnsKo4hF4/qR+iv15tOZftg3jr6/X9aMiH304RO72jJpV0JN5NrJ7Oz9C0DXiJsn1OL+rFdGWrsrJXwy8bwTQC8ITTm2W7VXbiBC00gBk8cNfilY/5O0GUKRjUBjJxHpJOB8vPuowiJLhMCjQOmea0Sfo2BLgjXck9vZZbR+fnXLSAVZLFn4zYLJUiyrkimUl4XbAdNPfx+1fL7+9tLBHP3DYQZLfuwO0RTV/IQt1G2kb4hlFCLFTRU3VxqWEc8O3soony/cr42OdVGjNEo+nYzZAQAxLzQ4UbY+XLS+N1/PB1lK0/2oP9VpQMRwTjYYj3J/skZDHdhXcythwa9nLP7qyHbmvG5YQzNmXTFxnbl09JTII9XMe+MRjv6n9i6Vn2FRcUXGTUIY9lEvb53aMrb1yQ7v1HJHvd6nubappps3HKD1np1KA47PxYpEuGm33HQBFC9agXAwFAulxgKc14zsgWJZezixixtz4iFJEcSemgHOMw05Bmbi/7VjA+JIw== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2632.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2efac0b5-453d-4560-de08-08d843ef4c7b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2020 03:23:53.1136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xDHXP4JM0JRfDmrikLpN3BEm1b4/lo08zy0JX5QGa2mLVbRwtNFfa1rinhB7EFSWHJKYDZ0fDtrQd3WFhkXLXiB8yP61js9o6FqYUfSBkho= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2807 Message-ID-Hash: DWCGNGT76VG4TMVUXOPPAMPOYLQRINYI X-Message-ID-Hash: DWCGNGT76VG4TMVUXOPPAMPOYLQRINYI X-MailFrom: Qiang.Zhang@windriver.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation CC: "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: cc: Dan Williams Please review. diff --git a/drivers/nvdimm/dimm_devs.c b/drivers/nvdimm/dimm_devs.c index 61374def5155..b59032e0859b 100644 --- a/drivers/nvdimm/dimm_devs.c +++ b/drivers/nvdimm/dimm_devs.c @@ -529,6 +529,7 @@ static DEVICE_ATTR_ADMIN_RW(activate); static struct attribute *nvdimm_firmware_attributes[] = { &dev_attr_activate.attr, &dev_attr_result.attr, + NULL, }; static umode_t nvdimm_firmware_visible(struct kobject *kobj, struct attribute *a, int n)