Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2090914rwb; Wed, 5 Oct 2022 08:55:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6H2TmAdqNgfLzTaXkexNDS0kWyjdi6wUaX6K+/AEoSy9tc/a5ev3uBIB+GyNbohwZDprbS X-Received: by 2002:a17:90b:4f42:b0:20a:6dcd:4ddd with SMTP id pj2-20020a17090b4f4200b0020a6dcd4dddmr5983187pjb.32.1664985343384; Wed, 05 Oct 2022 08:55:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664985343; cv=pass; d=google.com; s=arc-20160816; b=RK7r+4D4JOx6+36SrgIbu/7mPMoOW52YD0ShYhED2i4h5eZ/BqwLGgllux7vOgX27B 0IH1K8geW1KkqxsJJmqmJQrLD0rLMkKU9kICC0as/qg1B0TWC4Bfb7P2JSDZlaZrdjYP GtgpabNQ2FgEcsXATV6VB97Rs3W8Tui0PFfj8kjaDUN7rh2rd735V0TJI2m/tEZzrqCR OuNg0mTSrVqjel5Qt/IhiVSYsuZweyOfQs4NyHcYHPIJg3H0VGQAQzlPT12uX4g76jZL HbQKeHppbLTy/g73bVLPv1PpItmp9jSnvvg6z0u2QUD9d8IJQyPrC4N+5SuYbwiZdkje cD/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=+PbRjPwDCVNTPLqODwPjLlJ96Ed+jy9Rq0oSv7dXyfg=; b=Y/qcOiwVXGvFwVyhoNBS1/2ZKOhp8s2RBw9JxrZXVMwruhJrZ/zEuvRRPq9wh9isr5 NS8y31UnM3Y4d6RtNjmhugU8Uwii0t67Wb3a+VC4IA8Cdou0zV1hLXxBnWrvdTVyU6fk 8+Yp8PBM802QznP6CJxUyvbL0xMCQiEEqY00vzrRPyvfMKHlcU8AdeANNijV8X5ae/2y Nb4PSNahuPNdLTD4hQRSOm1e2n87bI9Wl62Vd7vdL+bWYHZdU6r03an7QMKCf+OVXU8B +hEzMdNKYJlv1GdhLC5yKC9hO86ej3ibpz0Taf5MyumGnkxb205NA/fo9HVC5D8F8d6g u3dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b="wTpxn/pU"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Je5ytLM1; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u133-20020a62798b000000b0056242234478si1893532pfc.164.2022.10.05.08.55.31; Wed, 05 Oct 2022 08:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b="wTpxn/pU"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Je5ytLM1; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbiJEPAC (ORCPT + 99 others); Wed, 5 Oct 2022 11:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiJEO7a (ORCPT ); Wed, 5 Oct 2022 10:59:30 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 997607E003; Wed, 5 Oct 2022 07:58:53 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 295E3IPt021627; Wed, 5 Oct 2022 14:58:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2022-7-12; bh=+PbRjPwDCVNTPLqODwPjLlJ96Ed+jy9Rq0oSv7dXyfg=; b=wTpxn/pUQbq9GJ7SDBHqa0IN+PDLtPJ/+MSFiqNLT8RBORQfVogD8IbIoQF7x/wQT9pF Z+QErxOSxahT+J+pQfhnTepMWCwPX7yALh7wPZK7Ff6cfyHQtAlEZ9q1gnhFyoIRhozJ 12kaoYx1xU8NVqRrSeiBN72KMx3svUBrgz2GR2pzIYcWo1MlRy2Ng5psLDb5fps5wBSR +iDa8yuNX9Q76oc9xa1CgQGHfVN5rcp2MGCPJ/I3J5Vxqq0BKbo0sX5wLYVs0V3yPVEo Z8G0YNvQQdZOxbJLPRWmmiKK01DhpXlVT4Cq3bXPSfaCHoGXKdOXB31ptqd5TbewfEkn pw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jxcb2shh7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Oct 2022 14:58:24 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 295EYcBG005018; Wed, 5 Oct 2022 14:58:23 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2108.outbound.protection.outlook.com [104.47.58.108]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3jxc0b79nd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Oct 2022 14:58:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HWLJRz+/RpeDkGXgxb+yIEhxFC6EAFuALkdG4Z8H6U0umQkS3CfupxOTHbtpegMehpsAV5xmt4GJnivewTDzZB0bhIa1mW0IuD8VpmWjLGLACd1oR3RlvEnmr60K5ax1HwArcy5EdeMmLFFtciehr4MXmc1iu0/NRjsu3XgYoDRus7wPzj+ZOzo2DNDgLrvh43x2K2uo8tmu+KE/jQ3J0XvOuNKg7AGxfEIDo7cTy+kQmM0FLuVLA9k/UOqXCMGQgE3j0Op0wAqJq0ahL6gLG6tRMAyhR7opeWlP6/YWRsSYLMYPyl4BtzOZP6kzshLgS+7VibI2fP4B4N+RFlOa4A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+PbRjPwDCVNTPLqODwPjLlJ96Ed+jy9Rq0oSv7dXyfg=; b=GFgydf9xAUj4dIgqhXGl/EgpQzkBOj+jmwfAtZpSE0uJSabQ/FVU9PM9qMgPEWEjrsjPYKQvs4A6ri1DKXujwmrfCA8yNxdVu8e3eEpv0X3tXb55RVdUuw9/iaOXbJuAQ8JxiKdlo8ARRJ3OBEWkWbCZ93POdaKHxCLWwff/fIym76GtDMO1zglOvS5YdQ8Kq3QJc30QOEe1OztXZ/Z2i7A5QIbVJ7JLzlyrjOilmnpaeauOuK46oyPivOC85MpiSSAh2kts5K04gjjJmIn9vsrvsdhH+cwIwPe+7sznL7jMmFDK2YP23hdJg8KGU0h0DJL3R5B+luVoy6+OilHXxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+PbRjPwDCVNTPLqODwPjLlJ96Ed+jy9Rq0oSv7dXyfg=; b=Je5ytLM1o9hMylK6n9WR3EIqdMcVnyAVj2Tyc7OAVJrUkKOh7RrbBjvI75yRDaQ7Xf08zY7OfhK7dhlcDLLgPsaO0nr6jAN/dTDKPe4ggCmtrtSV7GWwvCNpHkX/G3J1os2OMaiPqSorfBJ2xcmnjZOBzTPjzNQiUMkWvBw9zC8= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by CH3PR10MB6901.namprd10.prod.outlook.com (2603:10b6:610:14d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Wed, 5 Oct 2022 14:58:21 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::1b8e:540e:10f0:9aec]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::1b8e:540e:10f0:9aec%4]) with mapi id 15.20.5676.031; Wed, 5 Oct 2022 14:58:21 +0000 Date: Wed, 5 Oct 2022 17:58:14 +0300 From: Dan Carpenter To: Enzo Matsumiya Cc: Muhammad Usama Anjum , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cifs: remove initialization value Message-ID: References: <20221004062333.416225-1-usama.anjum@collabora.com> <20221004142306.ysgh45nhgdo4z3ok@suse.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004142306.ysgh45nhgdo4z3ok@suse.de> X-ClientProxiedBy: MR1P264CA0133.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:51::18) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2365:EE_|CH3PR10MB6901:EE_ X-MS-Office365-Filtering-Correlation-Id: 25970d69-533b-4135-7cd6-08daa6e20b2c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lFnmNLagYRrmYP3x2E4aqEoID7UdYENmjZcElz3H+Eg5m5Z5K6XLaMlKXGc1zLfxIm7e7sP5IF+R+uNbBuhCS1uhFtAL5YUFBZRoyrnfGlV9H7/9OKLj694mtLqSl66b5z6bJgkkateypr0HVeewD+8K9u8J6thKDwHG3W2KwsJVbQXTJDj0nYzsJLSLo11svWxc1q3LgTz3estHilmgjYj7q4D+PiTRx8Ctt3GlPUIpiouFSm6JcT1SEBrhQaEOjJp9lppgDVOkzADriZ2HYyCbpodJZuoZVrEPHJ67lDZ50tHTxPxgk3bQYGZxZnqc5+tYbwVFLmWocanQALsq4gdyZC9S9OgwxM7IVZg7gxyg0Qc2WmhD6OKqgUjBPhAYKaGzIQVJwaGsNPVHf2428651kDgIA0Ea/Nhk5rhkomjaDa2cYvX43F7rslUi61tDVUoP55qx0rxvznps1wB4Oa5eMAGDo7OirxoImZfZgDitX25JAXQA8C2h2J+Z0A3S+QIkSrk/C63z29fjMb7/wSXzoyRF5Je+Jw4fkjtZUljHwl8R7bGcrK38wkM9/Zh6GB2hLUITAWll7DCfvGK9F95ZuZT9cyKy6MmvVM6J4Wb/bOKqmIDpGCZr7WH7+rSIlmQZhYxYpbCZNZGvMk9bQg2OQGc9GL7Lr+/e9GIOuIdGV/MvC11V0dTc14CQCrSfNTf0S+tRT9mCIV0gKjPX8A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(396003)(39860400002)(366004)(136003)(346002)(376002)(451199015)(6916009)(86362001)(38100700002)(44832011)(8936002)(66946007)(26005)(54906003)(8676002)(66556008)(41300700001)(83380400001)(6666004)(7416002)(66476007)(6506007)(478600001)(5660300002)(9686003)(316002)(6486002)(186003)(6512007)(4326008)(33716001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PDze+oclWOY2maGM2RIDoDlkysFl4SAnS47lfQsjvmv5P0Hl+nT+xubk9WXS?= =?us-ascii?Q?upmpIlHhSbP70IBhrA/Gk/AT/56RAnl+NgGhmzKD2zxhUrNiXSaDqVGu0kyr?= =?us-ascii?Q?KTjxf+1PU+v/++7XYFr0ztjTBvyLm5Qg8j9pJKPOVP/aJh9FQxJ+fcQsKJUS?= =?us-ascii?Q?Aw9XFhN0uwam04ekN67tsHz8AUShoPq+YKl2j6iPY/XxnL0tb+XHpdAxTIW+?= =?us-ascii?Q?/VRxZYrQoX5nRpkbfwQhpVob3Ai6f94GUGSvbxAJ/HRULmzlMDlU6fAGoeC7?= =?us-ascii?Q?Ieg74P+TSZmljhiSOFjAxaRu31oNlBOSFferhQiHc2YC/hsB939jKdzXokuG?= =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7EA6FpA142TsjcfDkG+?= =?us-ascii?Q?i5W1HahML6CMmpAv2tPitRoRNeaqnis2UrnXFUd9OSDhOA53m2NSNPiCRUDW?= =?us-ascii?Q?dRC7KYZVnK3HI7W3yuEatN3kYRcUdBFCc9JS67fojpsfRTIVO3TJG3M01Ujh?= =?us-ascii?Q?8a0j7QG4Lg8mM7cvpDprMfl57dZ0uxgqAc26+vHe4hjlNCX7+w5mq4syPw+1?= =?us-ascii?Q?KXNEZQLkZHkO+HXUBwm3blGBfo9XCcH7mfpdlD0e732SHlPNgjHTV2Cwu6yB?= =?us-ascii?Q?7hzj0HdrLy+ai2NigTHKcsoZCgE83OhTtEVxV5RsN0Dkraw3SreeX+gdwPV4?= =?us-ascii?Q?1QdQYPXC6H/6m+fT1srQwrA2JaZ+3yrgSAemT421HK+PAaRO8dI1UM9sjXj8?= =?us-ascii?Q?1NZDDrNVkJ4F+YypUvqIbTPUwW5gTKtstejJeG6QG4VcxQ29jf7SbuTdt9Vi?= =?us-ascii?Q?gncB/PmnJZVwuYJHFurkBU6sSfhmJ5q0Y8MJSM+osHdnyer0DUFeu4sPh67C?= =?us-ascii?Q?4tRUATc1sxEN63WQ4zk9xY8W0VKgrHLSKbu1tzarkKD56QjuHuRUmfB04bXj?= =?us-ascii?Q?MGYicFYUEpsigqdnhXMhdwA3m0whDbAzQMBViXjjjxjeF+fp8bM1mU49ovRT?= =?us-ascii?Q?QWd655NvfpRJr+0XLw/PZ9tLMKAykguZySK1bXkQN4u0k7ZX+wfIY79GhLlP?= =?us-ascii?Q?AZcrjgl63Xp9PnaTUjNSYPiFwm4ADes347BtaadvAIO+Y8ZQMMcdcb8iVyuR?= =?us-ascii?Q?NN+Vm+3Z4Q2j?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25970d69-533b-4135-7cd6-08daa6e20b2c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2022 14:58:21.0380 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9L7JWfvz6i0P0kdTXcOXwpV2E5p8HUEg8PaOKTQ1nCJdt2HrhjEWKuiD2uxTE0u4mW+nDQH49Ad7lslPd0p0lGkdlxXmnkCY9yc9PyCi8qw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB6901 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-05_03,2022-10-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=631 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210050094 X-Proofpoint-GUID: pALgl_5HWG1F6_quQyksrWfK6dE9fFft X-Proofpoint-ORIG-GUID: pALgl_5HWG1F6_quQyksrWfK6dE9fFft X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 11:23:06AM -0300, Enzo Matsumiya wrote: > Hi Usama, > > On 10/04, Muhammad Usama Anjum wrote: > > Don't initialize the rc as its value is being overwritten before its > > use. > > Being bitten by an unitialized variable bug as recent as 2 days ago, I'd > say this is a step backwards from the "best practices" POV. Zero is a random bogus value. How likely is it that zero is the correct value or a negative error code is correct? There are probably a four to one ratio of error paths to success paths in the kernel (100% made up statistic). But mostly success paths end in "return 0;". So when you see a "return rc;" there is probably less than one in ten chance that rc is potentially zero. So there is an over 90% chance that zero is the wrong initializer to use. Meanwhile what initializing things to bogus values does is it disables static analysis checking for uninitialized value bugs. So it hides bugs until the user hits them. Disabling static analysis can make sense for a very complicated function but it's not best practice in general. On the other hand uninitialized memory is a source of security bugs. There are two ways to prevent this: 1) Use static analysis. Currently the GCC uninitialized variable warning is disabled because it is kind of rubbish but there are other static analysis tools out there. 2) Use the GCC extension to automatically initialize stack data to zero. regards, dan carpenter