From patchwork Mon Jan 27 11:46:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Karas X-Patchwork-Id: 13951274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8E56C02188 for ; Mon, 27 Jan 2025 11:46:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EE4D10E301; Mon, 27 Jan 2025 11:46:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="cRSt+d+B"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E9DE10E301; Mon, 27 Jan 2025 11:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737978415; x=1769514415; h=date:from:to:cc:subject:message-id:mime-version; bh=P4IbZKEwvS9U7usecCH0G7WCMMVS8u0l+jivh8tayks=; b=cRSt+d+BztJDVlWYv0A23tUOcuDBwP/zeXS5eDxy+M18N/5Lqya7OFAJ RUTsQ1565lzZ5lraBeCMoAip/PJo7V7kkmhkmuFlZ0z8PLbG7TDS5wF0P j+TKSqoJw6zEUZA8PFWjj/rHLqwCLT3xkiK5I3mnYhSO5K+Vi1dvoZiPp Rz3LE+rI7yyeMP3qrCo56OaYjNch6UuyGqCnL0OG5PKnMCJun3R8sIvNY C7ZDncsVU01cLE/gnJYf4g4pJCxMiIOOMoHvN4cWazv6GFIitJIuUl+Cg d0CIGFxHUznI8XvjFBd3hpDVTmRwpyOZ0pgmpGxUcAZigG/At7D9Eu0Fe w==; X-CSE-ConnectionGUID: wI5d5ZToRMitkA2epYiYcA== X-CSE-MsgGUID: dIZMCeD4RVWhKFe6vHdOVA== X-IronPort-AV: E=McAfee;i="6700,10204,11328"; a="63790475" X-IronPort-AV: E=Sophos;i="6.13,238,1732608000"; d="scan'208";a="63790475" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2025 03:46:55 -0800 X-CSE-ConnectionGUID: aa2z+BeBQdS1LOAYNgnF0A== X-CSE-MsgGUID: 0JHocvGlT7a4tXe2faby6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="113558218" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Jan 2025 03:46:55 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Mon, 27 Jan 2025 03:46:54 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Mon, 27 Jan 2025 03:46:54 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Mon, 27 Jan 2025 03:46:54 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m7gb2RTen7jl6eNQEOGkBXxbvn3mAdWZsc/nScU5kOejLzHFoTON7MPXISQNlKBzrV8jcksAZ/AT17oZxFiFIEnStGbHoPnnXwp0bW7Tuc65wotJM7+1QV4LdGgdtDxjQzrjQJjRHKKeryfc323Iln6pHVyEaZ4LQEXFbH+OslUZbTFzswkwxGhtYd0zGAKjyOuGH6J/dFPM9xSH+rkbiX8XLHImFX4mhoej+BH2RS66ZtPQd/el8iD1pjevMn3Q+tvv4VL/JCZ2aG9UX3WlBEhkGY4NNWmdNhmcuX/SmWFdibChvdxRezyvkU0thY+m2htsMnHGrvJHh4K9lU8kcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=MX/1QWQ1Rfxqiw0tutgxBaM2apigeeZ6ps54wGOydPY=; b=IFpPkILjEfiBd95+x3ZdrVZho/9yAOP+E9vbrwrrwAu3nNVcL/YFDBGf/6SIEd/s185CGomwthpGJg0utbYbjWyXnSBci3Co6dzEF8yTJezYQJ/5DssuExSk3cHJ+wnmwX90qzVdwMrhiuDubuAws2JUDLTVGwSMMcR6YVgsZSE1MeyRYafWb/q1vykzWfIQGlrBIglzB6lfsJEvabGwnOc4uMAQ4+SxfIm39xTcCK9ohFcHPuyeVtWobBrbk2R13xtPwwe5sL4q+0QKf6IwmkLXj+97XrGjs4I9TVUGsl1+lwLN2AhYiqjmhit3z6WAFhn/YwJERYjXW+0owpRsjg== 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 CO1PR11MB5057.namprd11.prod.outlook.com (2603:10b6:303:6c::15) by PH7PR11MB5887.namprd11.prod.outlook.com (2603:10b6:510:136::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.19; Mon, 27 Jan 2025 11:46:10 +0000 Received: from CO1PR11MB5057.namprd11.prod.outlook.com ([fe80::4610:6d6c:9af6:2548]) by CO1PR11MB5057.namprd11.prod.outlook.com ([fe80::4610:6d6c:9af6:2548%4]) with mapi id 15.20.8377.021; Mon, 27 Jan 2025 11:46:10 +0000 Date: Mon, 27 Jan 2025 11:46:01 +0000 From: Krzysztof Karas To: , CC: Maarten Lankhorst Subject: [PATCH] drm/i915/selftests: avoid using uninitialized context Message-ID: <57xcbkebno22cops66u2uknknrhalp52jqmswj3daihkpwrd3h@h77t4o7kgkki> "Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316" Content-Disposition: inline X-ClientProxiedBy: VI1PR02CA0059.eurprd02.prod.outlook.com (2603:10a6:802:14::30) To CO1PR11MB5057.namprd11.prod.outlook.com (2603:10b6:303:6c::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5057:EE_|PH7PR11MB5887:EE_ X-MS-Office365-Filtering-Correlation-Id: e2c08fa6-4d0d-4a01-f371-08dd3ec83174 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vnQmqNljMA9VxVCYb6Tcn5u1WBzwZs9?= =?utf-8?q?9pw4ut0r5i/J4GjPCsP2Xy2kf3PkkltAwiXksRhjg/aD4KacyVOjbJz/FQa/nYwWI?= =?utf-8?q?oSyw75ILphAkjMJm3ud2YVgXHu6f6rRHMGO7qyxtLA7YmVuxi9Keho494rVXaofmn?= =?utf-8?q?G2P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8?q?y3owy6DjYGliTEGUmgfsulrFdTaqwNl40hYot9cUyx50TQN+5H/bU8gXH+YCf/zUS?= =?utf-8?q?/YQAZcoBuPPnHg0SfxDD5ZrddjFqGS5EGsF8tntqWVVHO3qjME2KIqFmH2qXY13SF?= =?utf-8?q?bpvFOTHSoYTYRvZx0XC/U6jhKoiHiGmZ8eHKediauY36MDMg08Gv4cs42oZ9NHgHr?= =?utf-8?q?tdcsUyRPzYVmJPzpvZsx4pZWn3ihH8+AA4guCU2MtYXK+QvEKIzhSvzex+HTt97Z0?= =?utf-8?q?oSmvW0beq+pmYA3Tvfwu/8gCWPRAdYx4e8zR1FXSRIU0Ehfvprtr2277PrzNv2Xls?= =?utf-8?q?tnr4nUrWNlbF?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB5057.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OFVTyKpK8sSAGLlKiohE4WT6TSop?= =?utf-8?q?VDlDyNLSIRhRH76bObzKMbp1kyloAdJTdMTADWNydtE/cum0yIqufLoc5f3KUSOZy?= =?utf-8?q?ZXCExRfTJc3WbSetPCnBh2A+yM8n8CvNHIjDIT1rX/QPd7Am/f/x7g6WCCVWaLXyX?= =?utf-8?q?0LQoQLTiU99yt2ERCwbSrOFX439kqgVuJTkRQ0sawN0cVulh+Ta5Op5BNjzo0E371?= =?utf-8?q?vGOQZVsMavh5o8gvDtiD5Fr4DQBLv2DAo/LmmfM1AF7HYWpNMoPE3/9lgfibbP04A?= =?utf-8?q?WB0VyISwa2mUrjxhqYG0xWq8C+IszCM9OybHpnpmMxzvAvF8XRqlJKSQkBoLP4Myt?= =?utf-8?q?LZWddOaenNmN4U5MNvtKFP0oRipmDl18Loej34R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tqbuHgzIMM5BkDliJC2edFwxUAtenTlNrR8+sx6Aj?= =?utf-8?q?aP8ap4oeXRDP60UP2gKrX640XFmgOPWfWFvdxPVeWejVti8mdiwvBQWavJlmFs50r?= =?utf-8?q?HgYRDJc50R53byjXBJR48gXUulVDz4j+uRfzG8FiKpgzwBAiWtyVbHlAmf8h25zY2?= =?utf-8?q?b8AYPaD/B8yuXD78+Oi+0f5XGv1YhShBWbxG3C5pX05kdFdnHs63bW556ug1ua+C9?= =?utf-8?q?LDa4iMscMpTtxTnpcVfOV37DxgL+gfqj4nBEliEb92mhzS/wILHYYaKW88vSN8duO?= =?utf-8?q?C19BxRbFftjUHSSnFgxmry9dFJjAHg5a9w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: e2c08fa6-4d0d-4a01-f371-08dd3ec83174 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5057.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2025 11:46:10.2047 (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: nQQq+QIbRvuuFzdTAxVHxXiiF3IcbMiA3/WcF8QuZM/l6iG7JJu1U2C9D+sLPgfn1+MvtN46s5BnSEfje8EGBDM5+SQ8Kj3/JiiyrJvaixQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5887 X-OriginatorOrg: intel.com X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" There is an error path in igt_ppgtt_alloc(), which leads to ww object being passed down to i915_gem_ww_ctx_fini() without initialization. Correct that by zeroing the struct. Fixes: 480ae79537b2 ("drm/i915/selftests: Prepare gtt tests for obj->mm.lock removal") Signed-off-by: Krzysztof Karas --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c index 5816d515203a..29b9c75557da 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c @@ -154,7 +154,7 @@ static int igt_ppgtt_alloc(void *arg) { struct drm_i915_private *dev_priv = arg; struct i915_ppgtt *ppgtt; - struct i915_gem_ww_ctx ww; + struct i915_gem_ww_ctx ww = {}; u64 size, last, limit; int err = 0;