Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1090400lqd; Thu, 25 Apr 2024 06:00:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCUbnnrSVpyQM75Eid2PGzLuXAMN6/NiP5w3dOnJLC4i1FyMQW6ZdY/S6jhrEqq6hJ6BfmOtmbnvaPA+IIAq2uqkVO5ixDad4ApWPAKw== X-Google-Smtp-Source: AGHT+IHgeA8xXvJoAqQ8sc5XSvVRXxoAMn3xgv5BV19be1HRJnpNqWtnXOhP6Hc4ET8E1Or+aK+F X-Received: by 2002:a17:906:5815:b0:a58:7172:1ab0 with SMTP id m21-20020a170906581500b00a5871721ab0mr2648062ejq.16.1714050044598; Thu, 25 Apr 2024 06:00:44 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gr6-20020a170906e2c600b00a58767ff04fsi3839190ejb.861.2024.04.25.06.00.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SePYx9T7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-158566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2E8721F246D3 for ; Thu, 25 Apr 2024 13:00:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23FFB149C62; Thu, 25 Apr 2024 13:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SePYx9T7" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72A591494C4; Thu, 25 Apr 2024 13:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714050027; cv=fail; b=W4y23eaY1P8z84LSm60vBCOtqvrYqx5Ot4MgWlm8ArO7N5fzJrn26YvXd1nvboD8nlW86MpbZM+yrPJ5jG6wFfGUFbRYbG/x18bBEPb54c5ei+56CmyBW3436pNNmhBAYAxbN7u91IcmK5i1mo+H++JWNoJ2G0WHLXhhVHqWMfE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714050027; c=relaxed/simple; bh=QfYUXnnHmeSQFsZwrNXX4l8CqprUMZVCZ+gMumIxaRA=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=DYUzQOZ5DlBr6i3tmgjlkX8qPuXfqz/+tnixuDtXeAuGEDZd1msyp+mldDUd9EO7eeg6hwEdyebQf4/QlNH6ch2OPD/hl/57OIF8okBCwL7iMjNdc0v7ezBEXnpNAkDcq9hbTL+hNKUfPS+dNv6Q0J9O7e69Pvd1b9XrDBqTY0A= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SePYx9T7; arc=fail smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714050026; x=1745586026; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=QfYUXnnHmeSQFsZwrNXX4l8CqprUMZVCZ+gMumIxaRA=; b=SePYx9T7m8+2g+854DmHDVQTJ7Yd/jP/gbT66ZK28iee7IK0mfpeUnB+ 4bGqaaWSFYoWAGABpXDcpHCCdjYrEIUJjhyILaQENNjXhJxIL9oK7xgtM cYR2SPWvJdLbXMPpyc6mpkjgIghScBO2KLGM7vUQ/OaXvuMD8hBWDmipG mxFibRIBMiDzI2Qyg+kAno2c7N2EbZVcYlrIkeXZDU5A779EZDcdrbDP/ oepbRqRZHRsIvoQqW9N/zVNY+eiAzTsrw/Tj3RFD+7ScGrZKuDBlmqDcf 5TJl6x4gySMYZzu/Ks+lBY707/61HKirS67/yHwPUyDBCx/X11W8vdfKA w==; X-CSE-ConnectionGUID: 3+DPUyE+TOCjq9eLfaMFsg== X-CSE-MsgGUID: cq/XPRaOTRa2+V/p14PcNQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9660130" X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="9660130" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 06:00:25 -0700 X-CSE-ConnectionGUID: yGLZiaWJSqKesOvEuVP/Yw== X-CSE-MsgGUID: FwHU/VXGRxGeYS4R7DFXww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="25548478" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Apr 2024 06:00:25 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Apr 2024 06:00:23 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 25 Apr 2024 06:00:23 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 06:00:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mQeGLZeKNkYE6heO6hB+g1gKgsyk+LOz6wnotnymwws/mRp1XpRWx7m5HflXT6nFWBO5z2WdTnFE9PYgmX6qYwcCACQD8Z/T5TNFNp0lvQiVXwW5/Eyx9hiBDwaAKK1QO3qSGKjEm8n4i1SGICs4o2ZWR+OVWzBPgvTtU7yEQYNzP+qX5m5ACc/9n3met7BjUI40N9BCtkiNnlnCaO/8GBBvFBYjRI6BL3jEuUc3EX98lG8IbTnmTHKt37aQMG9JSs25Un2y6mcMXZi4UYk/ygPi4P/UU+dTadX57mlTVDM/VGQhPeQN7jUZ8/IjMlAP+1k+jNg2UlK/8Qk6tne+mw== 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=mKuVBkPZpVA5kI1axW7zAaRx4gFualAmLX3BL9TvzxI=; b=QkWLditEKJIMRyKpQe9ll3iv40NR0wmR4nkmqV1Zuem4iwmwx7YVD/LXFcaPYNkd4GNKBmwGWu+SugtXPJLwDhfbkGsPRa6YDXhlGv4Py/rTRixjBq0J5DhqVGmWxJzr5tNn6s7EDm7kE9HqhKxPkpf3cafjiSHTmVbnnTi3zli+hC6FsexnlxnWm70tnTVtIP6CO121rDB5z8FnQbP6/tQXOoxFl2pL0CkIWNpHfOOzveECj0/BT0Kty75HgKsEpyW0gjhOiPJUEiF5MxjjPRD9S64n+ywFi2zDKvm6wS3Nej1nqsoR5wd8qsXu35rzD0BCKjpP45jUsno3Qt3N6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) by DM4PR11MB6430.namprd11.prod.outlook.com (2603:10b6:8:b6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Thu, 25 Apr 2024 13:00:21 +0000 Received: from DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::654c:d66a:ec8e:45e9]) by DS0PR11MB8718.namprd11.prod.outlook.com ([fe80::654c:d66a:ec8e:45e9%6]) with mapi id 15.20.7519.021; Thu, 25 Apr 2024 13:00:21 +0000 Message-ID: <63b89455-3e30-421a-a082-00d39e836e20@intel.com> Date: Thu, 25 Apr 2024 15:00:14 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] PCI: dwc: keystone: Fix potential NULL dereference To: Aleksandr Mishin CC: Rob Herring , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Manivannan Sadhasivam , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Serge Semin , Niklas Cassel , Yoshihiro Shimoda , Damien Le Moal , Siddharth Vadapalli , , , References: <20240425092135.13348-1-amishin@t-argos.ru> From: Alexander Lobakin Content-Language: en-US In-Reply-To: <20240425092135.13348-1-amishin@t-argos.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: WA0P291CA0002.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:1::29) To DS0PR11MB8718.namprd11.prod.outlook.com (2603:10b6:8:1b9::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB8718:EE_|DM4PR11MB6430:EE_ X-MS-Office365-Filtering-Correlation-Id: ff08cef0-90d2-4e08-6c84-08dc6527aa34 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|7416005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VWM2ajF6SEY0NGl5VVo0OHNTTDJsSVZjVEY3OU5TNlB1bnArT1JRWlNnWU8x?= =?utf-8?B?M1pQdVN0WHNObU85aXh2Zm9sS01vbDdldWEwMk9MdmJRdnN4eWlkSnB5QnJV?= =?utf-8?B?dllrUEVMTURIU1h5YmFvbDhRaEJZM0VvcDBUVXlHc2s1dEtQL2o4MVdYYTZC?= =?utf-8?B?aWtKMUNxWCthS1FRNHF2RGk5Z1VQVmEySDdWc0U0eDZKUzRacXorVHVLb2NG?= =?utf-8?B?ajJJTUR5MjdMK2E3WFlMcWhGdEw0cnVTSTZPT3FqK0ZUU0JhczNRa0RaUEZY?= =?utf-8?B?d2VQYXR2Q2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T?= =?utf-8?B?YnN4TUdvaTd3M2oyWFBwS1BDL0tHVzZNeEVRTnFoTlZxM2ViSmIzZHBFaVpF?= =?utf-8?B?T0x5YTBaRTVQVSsxT1pDdEpjdXhRZDlXKzBRV252QkxvRnBWakZ4bHIxRU5u?= =?utf-8?B?QVlNOFRHTVRESmc3QjJBSXdlVFlqODRjWXllNFA0T1c1eVlaMXdvSWlhblJE?= =?utf-8?B?V0trZWd4QmYxZHlnSENSYjR0WlJRQ3l2NUNyRFlhQUhVUEZnbW5xb2taNWtG?= =?utf-8?B?MWdicnptWFJYcm1adkxoZUdEUUhSTzdCS1grS3BLd1g5LzJtZTRueEFoSVl5?= =?utf-8?B?R2ZQcGkxUDE1a3I3Rlc0YzRWdUNITU5VVWgwNllPZWJraXlGZU54U0FyWDlI?= =?utf-8?B?ME5QUEZiMUtZQUNMYk5yL1hmUTdzOFplbTREL2JtQWg2aUNRejFHMW9ZeUls?= =?utf-8?B?aGVuNWhsUHRwKzl3Q3pMaUxYQlRiUUZxRlYrMnVZaElvYVNwcU9vMjFMb2t4?= =?utf-8?B?STE1dDhBdlVaWHI3TDdLcnl0OGM0c3hPSjNpc1c0Uk1jTE9LbStFekJRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB8718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TjBnL2ZFNHBBMTBhc3pJZkRETWhVQ1RtYnRha0s0R1RrVUhkZGdkWUJIWTZ6?= =?utf-8?B?Y1lLeGZkTGVJYWQyRlJjNnFDb243bkk4aURnMFRnZEpkdkJFUUdOSmNqanpB?= =?utf-8?B?SXZQMzcrMmZLUmhzU0thYk1UeUYrS0RtK1UwUk0weTRpKzZ4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L1ZMcjNHcmVNY2dDQ2UwWFhXTWZiaVlGV2FSeEcwUDBCeTk1em5wSEVt?= =?utf-8?B?WWxmRE5hais3R05Fczg3TTFmbURGWkFQdG80MXlTblhhaW9wWnVseC9GTjJV?= =?utf-8?B?bEZxTnM2Mk5MRmtpWU1UeGxCRWVpZmpoY0VhNTVkdnJmOTVWbEdQRkV5SEFW?= =?utf-8?B?Q1RZU1hKWDdndG9nYldROUdHYkhWNmlvVDV0YmtPNnhHMXJUSDBsTnNSaWJx?= =?utf-8?B?eEE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: ff08cef0-90d2-4e08-6c84-08dc6527aa34 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB8718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 13:00:21.6060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6P5+jqXaf/bVZslPquaKpPZdHn6yG5T9l03c+KwSY6/5V3aRdRgabGf+rcu7FmvT2kvAKqzML20pCO2YXbz6e7S5zKwRbnCrxAS1gh/YR3A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6430 X-OriginatorOrg: intel.com From: Aleksandr Mishin Date: Thu, 25 Apr 2024 12:21:35 +0300 > In ks_pcie_setup_rc_app_regs() resource_list_first_type() may return > NULL which is later dereferenced. Fix this bug by adding NULL check. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. Please stop spamming with "potential fixes" made mechanically from static analyzer reports without looking into the code flow. These patches are mostly incorrect and may hurt. Either have a stable repro and then fix the real bug or don't touch anything at all. > > Fixes: 0f71c60ffd26 ("PCI: dwc: Remove storing of PCI resources") > Signed-off-by: Aleksandr Mishin Thanks, Olek