Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752707AbdHAViL (ORCPT ); Tue, 1 Aug 2017 17:38:11 -0400 Received: from mail-sn1nam01on0041.outbound.protection.outlook.com ([104.47.32.41]:54912 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752390AbdHAViE (ORCPT ); Tue, 1 Aug 2017 17:38:04 -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 , "Lendacky, Thomas" , Herbert Xu , "David S. Miller" References: <20170731204936.1511542-1-arnd@arndb.de> Cc: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Gary R Hook Message-ID: <2c66ea0e-f1dd-227a-56ec-a5325bf48027@amd.com> Date: Tue, 1 Aug 2017 16:37:19 -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: <20170731204936.1511542-1-arnd@arndb.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CO2PR07CA0057.namprd07.prod.outlook.com (10.174.192.25) To MWHPR12MB1328.namprd12.prod.outlook.com (10.169.205.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9fe5d38e-bd56-46d8-792f-08d4d925966c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR12MB1328; X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1328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ID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR12MB1328;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR12MB1328; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR12MB1328;4:tVtIrpmNfyhb5IgU6jnoOF8pRZB7VRp8R4vV/5?= =?Windows-1252?Q?3T1BxhpGFx3oXmj4phpG7pfHiseOBF9ZQB8YZriiW1idHsRNLavBmlvI?= =?Windows-1252?Q?NQd6rqQiTInFSk3Wk3xpS5YPMUr8HVOdSDWqkMLd1BJxLwd36RbzK14h?= =?Windows-1252?Q?9w1Ny3U2d4c4Ms++BJTHAZUhR0eyk9Q2Jftrb+T6zFDc20RThHWwYTIu?= =?Windows-1252?Q?RWeK6a0znUp8/TahfpMzdKkNvQWNWXUKI8uWawB95/rHShBVBNp3UuzZ?= =?Windows-1252?Q?ZSLT0IuO/ZOcFwZAtNBsOWVcVNL7tBb68e0DnVjTheYGQdXppwbZCvaD?= =?Windows-1252?Q?G9uRIo1e/SpGC3mUqu1p+iEO1rnWxrZgmhjX7X82qMyLSJkXKj4Xj6Op?= =?Windows-1252?Q?HK0P3rEhz6UmZIt9+es6cBrqOdZRdb8wrPi9kD1WPv1DABaHnvn5I0qE?= =?Windows-1252?Q?v0t3Duf5sMroExTVvMTFyb2zwKUBZCDqFCdrf6/Fq1/eokKDQbCrydqb?= =?Windows-1252?Q?o/Wr7SQasFix0JLxYRE3VeWAHwh0odAsFAM6QPNuFJhL/OqW5v7v3+5n?= =?Windows-1252?Q?RMgrbLkA634JbQe/2/ZGT9edPqr7ae4k3bpLLLugiJIowavgEsPLJ0x7?= =?Windows-1252?Q?Ru1UEiYSDe/IV4gu2xr4yDwUxijFWtJCsfBCarMqXO4ekG3GJxrOPD+4?= =?Windows-1252?Q?R37f/sD38lNHSXa+GeGS7wBDz3lAYtFwkv2OMGdK4s30TZXfJ5y7o0ui?= =?Windows-1252?Q?Eze8Hwq5YpmPnfPG96DcTkgd45DVq6OUq+W8xDep5SrJMbkBAd/Ys80/?= =?Windows-1252?Q?csjeU1loX8FR97tJ7SPwPJt6ZajoGdMngHfptxQAP7lxi32uKyuZbmlJ?= =?Windows-1252?Q?9vBCfqY1WwkwDkFZdr6IbcjN1lm02F5ji3u0F6qd1mBat7pDSGS5UZpS?= =?Windows-1252?Q?R2b4DLAg3jyHOFgkU05SL7NCsuAp43eKmo0s9RmlnnBUAoC0wWCPx1uA?= =?Windows-1252?Q?D6fa3BsHRJGy+ANBGcjvmyuXBqCN79ohh1obqnELfEnnQn6HPAKiCpGi?= =?Windows-1252?Q?KyMIBHGB392ZRneL7fFFb/+Vv4ZZkMADpsN3FdGBHtEQQeMlhyF9zcTS?= =?Windows-1252?Q?EOFXpaV/eN94F8Gwe0QmqEirvhAo/Gi+WuAHUEm42J5S1nXdP+Wm9JS7?= =?Windows-1252?Q?DvfDWQ9PBfmLqXeUhJIypkMdeYIo6BUjyW9LPr6ynJxt1lkEMED9e9cr?= =?Windows-1252?Q?W6d4WuZP06Tl4i3VwnYdEmV+5B1bPTmfWdg8JcqWDFLVZxpu/5LLVaTB?= =?Windows-1252?Q?lb?= X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(39450400003)(39850400002)(39840400002)(39860400002)(39410400002)(39400400002)(377454003)(189002)(199003)(24454002)(77096006)(31686004)(97736004)(33646002)(7736002)(305945005)(229853002)(72206003)(6666003)(2950100002)(5660300001)(66066001)(4001350100001)(31696002)(6486002)(81166006)(38730400002)(81156014)(86362001)(8676002)(65826007)(65806001)(50466002)(53936002)(65956001)(90366009)(230700001)(53546010)(6246003)(25786009)(42186005)(54906002)(36756003)(47776003)(76176999)(54356999)(50986999)(3846002)(478600001)(101416001)(64126003)(189998001)(7350300001)(2906002)(106356001)(83506001)(68736007)(105586002)(4326008)(6116002)(23746002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1328;H:[10.236.19.127];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR12MB1328;23:D4o2c9eBLUNYG4wDnV7YDVa+kE/aO+Klgtgpp?= =?Windows-1252?Q?qyBfjAAekKripye61M8GBmV55AWUYi345Cpt9d1YJLQdfi+cwSrAj3Zq?= =?Windows-1252?Q?o3C+h9KlsJofAdj1A60gYDQspIOyEzYEhBm0jUHHCMFBQp/qDpGP4rMI?= =?Windows-1252?Q?+XwpBansnJIGR8yTakmPiK84Ij5uPEbnpdljkX9gS4+NlJckh0LUEYvm?= =?Windows-1252?Q?+Zx+tKz38I6A6a5XECsaQUKnepxuy34bJzSPnLXELyAUg5kFoqmR8Ige?= =?Windows-1252?Q?s224/0Er2V1KKRaoZegUuYh7/QeWJt2J1sZS2kkSpvzHjLQgPNOy2zAC?= =?Windows-1252?Q?SlSOjbA4km5LaCXZhWAoivT13vvhdGYfv7ArVT6d5DyTPt0N9dVz/ySl?= =?Windows-1252?Q?JJ3iwU+q16bkjJx6BDIxtnXLsLEpyYer5h9RYX4VWS4hS6xnvJyCUucA?= =?Windows-1252?Q?qo1tHUUX4xphTowgRhE4cQ0VAt2c/rdlIEu5fElXRBPf4V/j7mhRPPJa?= =?Windows-1252?Q?LyxnhpX2s9H7cnX0tQy3Nl2a7detpeqHYeezMetLAr9k4vr+ajgHTkYA?= =?Windows-1252?Q?ouJ9Eij+1lDN8orF9jFWxpH/Dc1Ed5eW44ciRkpeLn1r+buN8Bv+jIvM?= =?Windows-1252?Q?3DWSu+RUpIVR2Eq+G9PEfOHu7+4ZajGA6Pj9RZldV1Du0BYDyuQhLPu8?= =?Windows-1252?Q?AN+TZKMLRGKQmkdBXnVONMwvYbI9L5IW8j6SseMbibgkuGa2n1t6cTY/?= =?Windows-1252?Q?qS+TmU917FlDWEJDjmeI+3QrXoKvpLjvTvbElDKFn2vEW/KadGfiqvNU?= =?Windows-1252?Q?+IRLsxbDE4ykskCtMhg56xswiiuuRnZHMrIs1uYjPSK+623cf89/0rF1?= =?Windows-1252?Q?XNeA02CN1LA7cIwbf0yqrZF8MngWTfP/VioSEIc3z+tNbZR+MuoCcYnb?= =?Windows-1252?Q?GpJqG8OgtXByUsv4MW0s3+qlOharL4VZ4Re6J18vCBs0m20h6WGk19nj?= =?Windows-1252?Q?AeED3aotWkKJarE1NFHshtC0AbYfT6X4cHtlgq9wFEGq9Myd/nDVuvHk?= =?Windows-1252?Q?movaog4R+oqWvpF+J+73HVIvnaJAWBioHl7BNp2gwRItCYJTEE3e2R7Z?= =?Windows-1252?Q?BTkNbtcGkdFgaYds/phu+/GLOj8/Ed4WXHrq1NFkSau2W6sQvoq1T0FO?= =?Windows-1252?Q?nycFoF3Y+oqg9pygtkpEN/2ZCfm84OIeRzq5kRffZZFME4/LZEYHctE4?= =?Windows-1252?Q?IBmdDKEMaW+oTiByESNJqH3WPLb6mepuCMzC1kGzxP4xG4hc1fTWTwXB?= =?Windows-1252?Q?LXRIgvvEmvMqjPCnmyoWo9NWtEWN9CzrGhEbu+CG24p5AKbL3y6czS8+?= =?Windows-1252?Q?A0aB4uYVLldoSFnqZIONsqd5dW/Lg3NxmIIwiHMSfMtfGaivIJdo+brj?= =?Windows-1252?Q?m3E5oKnPAqUeZKSZ59b+5lCr23W5meILHQKf6j+l6vtMrlwEDEjH0/bT?= =?Windows-1252?Q?niyMWnzlO7rEE0eOcdSr7+fSoAsWPzwBICx/AyoDn4/b0JmOWBnwo93Y?= =?Windows-1252?Q?NVBLSjstehswEd6DxvTyZ0JaauGX9jk9IAvWw93XKv2hkAOOcUOk1ndy?= =?Windows-1252?Q?fyX216J3JQXyz4Zg0f00k2EK7XmoypS5XocILwFXklKKk5xScYjJ0UXt?= =?Windows-1252?Q?7Cv4fGN7rSuG6geHjG46n8AZd9Yt9M=3D?= X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR12MB1328;6:NskZxjZQn5tfp8Ln+LiX9PjwYyzBr74adynM3v?= =?Windows-1252?Q?PbWBbOkzHklub48wgCzG/dhOhMwYl6WiBFJwzdArJFyS9UYBQ9ly/Tni?= =?Windows-1252?Q?9lxjwf1VX8y4/3hVhcm3e82xC9W1UJ/eNbFbar4xp0m2Zwi73KfQXu10?= =?Windows-1252?Q?tK3gZsWSk1CU5lqXNS96AAIdheXk0AyqIkYzf8lH9/6gxtRf7sQKT0MN?= =?Windows-1252?Q?BvzVf66CDU9XK4LbIroYCdGwZbZmuj7Wzq5S9o8lWM8bOMrhN7S4FyNu?= =?Windows-1252?Q?A0wTLvOqQ6zdAS5X71AxRob2GgbtYXniOo8CCJfym8YJR8NrWUjAc/uG?= =?Windows-1252?Q?lV7XkLQYflgAXI3+jNOC9FG3IRJJ4tAqqSRFoq1qzfhSZuhhptKeyIdr?= =?Windows-1252?Q?DLM5xgRb4WfLY2h9e1FGz4PDEW5IJ4hFgKhkCw3bAJnykHM5jLSYaDKh?= =?Windows-1252?Q?wEMAooZ9xFhT6OyJ/Y7Bn1EcZC+4+yy979gY5xHy6PvYMrUC4dC9BG9g?= =?Windows-1252?Q?LA/AACRzcmUPAUIVSiRl3fs3t8ci0+p4B4xEPBzl8g1qpTYi2pDNrzy1?= =?Windows-1252?Q?3J+rilHQYFAOb7XyxWntoFlnbl3tWonsGEhBCjp7Sse63OygM26GI1Oh?= =?Windows-1252?Q?CxZCCb6WS+6BNnf0/qx7UrCtpNIIpB4Bl7pkrAjyoCZSoezFFWRR0sc2?= =?Windows-1252?Q?oIZrcLIR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o5MPnfXT8OurqOAeVPg/Bn7MRk1B9zcoRrGWI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1328;7:3OwZZxzwMN4982y9+n9/wsKmNHERajjPDGaGqL5hYLfXvc/tTRepYnYvUZ95uS8ZGpBsKMelqGeKLy/ptxJCk4/JTvFA4QW1X71OiRcJr1/3VD1B3R6/w9JU/xp2lG+x/giSYKcAQbHFgstWqCm2z/UE44BffZCZ/x8Ivjqqt0agtgZ7D4MX8yiMJMW/XPYG8TxT15fHX9zCRo9O7x3uPgWmN3prixOhbGRc6o2hQiEzxoII7ru4bT/YpRjbtd4ZXDllnnPBBf0pgziDgC9EQ4uv7Z6lcy0kABVvixpateOEooQZXYYJnw/TBhVnp5boSmRaFyd8LU/7zDf/vUqLhD5kexeIB7gYBYu4IMYE1uNizig6oupbWt8DxCI/XdK8d2tw/5Rq7hWNBWwmLkiFgZKa+N3Tf04rpb2xXsR67QG4zdvrGD8jL+P85nvvsX0w6ieLGZUMEMlVeZcwJc58eIkI+GC3ramdRPDHcHrn21rzfefFmkkcpnMqlzwhs3U0K/aKrb/PrxFTftr38R1dAsVpgwDBistDspZfqkoe5m4rJQHTYc32fYWuoQxw7zAMlupAxI1ERIMyaYgoGXOkHlbsnpIZG6C/NO4WRi6VsNlxLdlbcfbfzF9fvSAocxvZulT7AlCqo/JWtu6hBoNLtWPlPMS/ij/3h3B8837oQOYJzmqdlVz6c6hABLiSGXTmeSn6/mt3PBoAQzzvhJdV8ZlsBzeshkqhvOMAp5SXSI5VkRu6augSUZkjmB7Dt6htIKW1jVhrgj+hKf4vPx/YmPi35WDi2DhiOyp82mYuf74= X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1328;20:RYD7nqSZVZKjhdqwzitYecRtr5g+jNqEm3dfof6j6HWXzjZrROclH8wOyKyDi7gB3nv4vsiZe8EbSbL0AzmsoUg2MrjhcM91kWfiS9GCl+7EzJv3qbEDjBVKF++jFO9bXXgItjovFKHKU3FLDDXimrwYVl9HFX2x7mEKszu+i3Z2HaHcLuN0OxKg+qWapnf7tV/zf6INsnvIywrmIgy8ulhKmk28Ub2R1hj4IVMRXHv6Z5/qODJyA0bfJpHRb6gx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2017 21:38:02.2416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1328 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 41 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; > Reviewed-by: Gary R Hook