Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbdHAVen (ORCPT ); Tue, 1 Aug 2017 17:34:43 -0400 Received: from mail-co1nam03on0053.outbound.protection.outlook.com ([104.47.40.53]:49424 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752053AbdHAVek (ORCPT ); Tue, 1 Aug 2017 17:34:40 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Subject: Re: [PATCH] crypto: ccp - avoid uninitialized variable warning To: Arnd Bergmann References: <20170731204936.1511542-1-arnd@arndb.de> Cc: "Lendacky, Thomas" , Herbert Xu , "David S. Miller" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Gary R Hook Message-ID: Date: Tue, 1 Aug 2017 16:33:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY1PR07CA0008.namprd07.prod.outlook.com (10.166.202.18) To DM5PR12MB1322.namprd12.prod.outlook.com (10.168.238.9) X-MS-Office365-Filtering-Correlation-Id: 66d0f7ce-6882-446f-53f9-08d4d925196a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR12MB1322; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1322;3:tOEJfEsHCpEBQc0TI4Dvnd2fBwSEI3DqodOrfVa34N+apLMQwUwbmViV/Cot0sJB4E92VSW+eHB16H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waERkPN8j59UJoqKtuaChFZrvdXshHuR7BzySjCD0OAult6riOx7AjYvz37N4WMuCzlXWJAu0Hgf2BkkEALpg34cd+DOHsTC9yIvKq60FVW7pKlqMVgTZz1EudCI+l2jVX6SJgNZke0m9V9hWREbK4CrgyHjXwqsahxeZqVjQ3M09SOaHJS4N+PBOvZza3dQE1kDOesH/qEfIWWsSy3l4bRy8r2fJ3KigWJzXyAgtri7zPeCqzJoq7AHj63mxnKd/YvAgJTBw2Zl5AzLRgquBac4v/33JLgGKcF2I9Fp6n85stj3CgQ6YyKT4hlG3rsPjMTjAdHxG8gQNiRBbx+kDzV32gnJmMTl6ABUc= X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1322;20:oRo9iNXHXhEVRVgVusdaKLbQbztW/IbwUZyI6GZXvJyORqsHD4DBQKpXyQAXqcX9fap8sjUfOBoOY3st8ZDIH09j9MHj7GKjXhjl1ZJdKNg1jOU5X2pQV+0kAeE0LEWcbhanvaFjhOC4bwrBNlUUJnWSjAF+AKphUnYkVmwQenaSukazguRVNjB87wn82+iTjcxNuHg1/l/T6Lrn97UmSvxVd10G2/nl1vdDvMQ9CFpkmH6H7ESUOUW8zrNzrQyn18DikkvLM8xJfMgt3HmK83nlkBESMmWufp22+rPifli00GGZTplqw+jRYn2dv7Oco8s1T3an/aCAYFCl/tLTSTwxC+q57wAL1BcDb73MrUKA7e2pMHNxROzFiMl25U1An3Wkge3DCYCRYuBT4qKBEE3zIOnPDuAjSV4WpoZlsd3M1SduflDYc+Z99aXXzwvSufHagAtT2ONCi9imAuBWnNz9X3A9wuDqgGgmNia0we1WYVbD0u/Rg+GpdouRxdUN X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR12MB1322;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR12MB1322; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMzIyOzQ6cHErTlExWTA4VGU2YjRGUG9KWEVFSnB1OFpn?= =?utf-8?B?TEkzaUFNUUdpcjFqUmYxT3g4WUNNOHQyTkZ3eDBNNFVVQlB2TEpia0ltdDFM?= =?utf-8?B?UUN2cXBIWFZNeUVBemJmMEphLzhnSEtkNUN1KzdXdWh3TVlzUC9pRkh4bkZD?= =?utf-8?B?NmFTNlZES3ZDSWVRalhKWEtaeHQvSUM5UFFLcHlVYXRtZ245VlFqakp4Ty9h?= =?utf-8?B?a3F6SzRjQmVmMTRSQnZ1aFVsbURTbnhtM2lRWjdYUEdOUWsrcTBoOEZCQ0VY?= =?utf-8?B?VVp4UlhHenoxait0UlR4aEFabVJqbjZQakd2QmFSQ0UzeTdTVEllVU9GYmxI?= =?utf-8?B?OTgxTVR2clNrbWRKRFVqU3pCODVMRWdZakJXUTQrWjZpSzhjaFJqbEhsL3Vw?= =?utf-8?B?cTU2d0JwWFFMd2VlNlJhT3FTTTB2eHFUZnBuM3dLeXVPNmdpZU0zQ0pxMkcv?= =?utf-8?B?N0txSkJkUUVMU1lPZldnQjlZRzl3ODk3WDV0ZWV5YkFrNGE0N2thc3A5Nzkx?= =?utf-8?B?b1ZueWk0UW44bGJ5bUgwVjVlNlEyM1loN0x6NmxpYjhuUTBWNy94SkIrUUtN?= =?utf-8?B?eFV2UDBIVUd5Qm5xZ3dZc1lLWWs2bHBVRzNrTUhkQ0xiT0RIRVZzaEh5cGxl?= =?utf-8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0QvMnhO?= =?utf-8?B?ZEJ5N2RHQ2p5R3lBS1JoeU40ZkI2RFg3SHlvZUpjMTgwbDlHR3U2Ky9FbkNZ?= =?utf-8?Q?0memZ3aL7qxNJcsEclO?= X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(39850400002)(39450400003)(39840400002)(39860400002)(39410400002)(39400400002)(24454002)(189002)(199003)(377454003)(36756003)(47776003)(4326008)(106356001)(7350300001)(101416001)(31686004)(65806001)(50986999)(33646002)(72206003)(478600001)(966005)(66066001)(65956001)(25786009)(76176999)(54356999)(6306002)(53936002)(110136004)(3846002)(6116002)(54906002)(6246003)(31696002)(38730400002)(86362001)(189998001)(229853002)(83506001)(97736004)(6486002)(50466002)(345774005)(77096006)(230700001)(53546010)(7736002)(90366009)(42186005)(8676002)(2906002)(64126003)(68736007)(305945005)(6916009)(2950100002)(4001350100001)(81156014)(81166006)(65826007)(23676002)(6666003)(5660300001)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1322;H:[10.236.19.127];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMzIyOzIzOnRiNTdsM3h2VVlObW9sUm5mUHhabzJBaW1v?= =?utf-8?B?U3NsSnF0M3ZYME90UmplZHZFdEVmZHhGaVFzT2xuOWk4cXBUMFFyaWszcGdw?= =?utf-8?B?V0VINGR4ekVJK1ZBdFpTckdoYjlWVHdTRUltemFuMmxVdnM2S2VkZVZSVlE1?= =?utf-8?B?RnhBNUFjV1paNlFxMEpUeGFNZnllb2UwS2RXcTNTUjlkM0U0YkdYdE44c0gv?= =?utf-8?B?d21VT0N2ZzZERzBDZG9NdHQ2MENqNlBHLzNoZTRwMy8yU3AvQ01uVW9PL0g3?= =?utf-8?B?WldSNWdBb05PSWNPMzlOV1prUmZaWUlOSlNDV0MzbF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+xICmb2qb+KIc5a4bKp3lqqPKbzQwTh3ytL5jiIyi5eHLujQn8AohudFDVUhVrqP3ld3N+mIaNB9Nn6Gwxw1Qm3Pi/flfUur1qs+TqyJbUehVZCBXRUIVGLay04BCmaouCpqM4KHjzVIJ4qgkruSzyZslLxuB5ArsCeWtTpuNIIKH3xID/nPtEjmWgweuMo8+jaYab4TZTcPqiiH0RXl6iGaox3WNCT0psAcSTAw5/fECUneXLKyE= X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1322;20:RQ6Rj3E93qaNGFWZrrRraIDid8r93BvF7zjzYurYx9DThc/9rHZO67RjTyF3mIZq3QfwrNfUySTbTuibq+79FVsD7ZRBi3cznjJuHZgFq6CMg8NI1nV7JlSVIawiJkMSJKy3ItUVfCwJAXx6hOtCG91dMR3EGsJEQnh2Z2gZbf1n2hWshq3Fyera5Ing1Dd/jrW3YXuGdNO0Z7G062CkwRD3X3LIboDgfHmhdsfD8Burk8LUMOdFxEBmLi4jh7oU X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2017 21:34:32.5748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1322 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2469 Lines: 64 On 08/01/2017 03:35 PM, Arnd Bergmann wrote: > On Tue, Aug 1, 2017 at 4:52 PM, Gary R Hook wrote: >> On 07/31/2017 03:49 PM, Arnd Bergmann wrote: >>> >>> The added support for version 5 CCPs introduced a false-positive >>> warning in the RSA implementation: >>> >>> drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_rsa_cmd': >>> drivers/crypto/ccp/ccp-ops.c:1856:3: error: 'sb_count' may be used >>> uninitialized in this function [-Werror=maybe-uninitialized] >>> >>> This changes the code in a way that should make it easier for >>> the compiler to track the state of the sb_count variable, and >>> avoid the warning. >>> >>> Fixes: 6ba46c7d4d7e ("crypto: ccp - Fix base RSA function for version 5 >>> CCPs") >>> Signed-off-by: Arnd Bergmann >>> --- >>> drivers/crypto/ccp/ccp-ops.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c >>> index 40c062ad8726..a8bc207b099a 100644 >>> --- a/drivers/crypto/ccp/ccp-ops.c >>> +++ b/drivers/crypto/ccp/ccp-ops.c >>> @@ -1758,6 +1758,7 @@ static int ccp_run_rsa_cmd(struct ccp_cmd_queue >>> *cmd_q, struct ccp_cmd *cmd) >>> o_len = 32 * ((rsa->key_size + 255) / 256); >>> i_len = o_len * 2; >>> >>> + sb_count = 0; >>> if (cmd_q->ccp->vdata->version < CCP_VERSION(5, 0)) { >>> /* sb_count is the number of storage block slots required >>> * for the modulus. >>> @@ -1852,7 +1853,7 @@ static int ccp_run_rsa_cmd(struct ccp_cmd_queue >>> *cmd_q, struct ccp_cmd *cmd) >>> ccp_dm_free(&exp); >>> >>> e_sb: >>> - if (cmd_q->ccp->vdata->version < CCP_VERSION(5, 0)) >>> + if (sb_count) >>> cmd_q->ccp->vdata->perform->sbfree(cmd_q, op.sb_key, >>> sb_count); >>> >>> return ret; >>> >> >> This is a fine solution. However, having lived with this annoyance for a >> while, and even hoping that a >> a later compiler fixes it, I would have preferred to either: >> >> 1) Initialize the local variable at declaration time, or > > I try to never do that in general, see https://rusty.ozlabs.org/?p=232 I know. I just globally disagree with a global decision of this sort. Now I make errors that are more complex, partially because I've shot myself in the foot repeatedly, and learned from it. Nonetheless... I will ack your suggested patch. Thank you for addressing this. I've learned something.