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 D979AC83F17 for ; Thu, 31 Jul 2025 11:51:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7316710E780; Thu, 31 Jul 2025 11:51:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="R+QWpsrb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id B61EF10E780 for ; Thu, 31 Jul 2025 11:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1753962664; x=1785498664; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bkbf0B/g8xKT8zwBMkiW5rjmYWgCE8n9hIgVeX/mDe4=; b=R+QWpsrbZlkJuKEowaw0P9m38LlR3ehe4ixA9eZfpTxYlAto5mHk78bx 2zzK+72Sj5k0yPqk1X2EH3JcVj/TCBgQh1LU/w+SiI0IG4o+4UmDenMUx /vbqErL8/XGje+7YqvFvaMzfsrUzhm351hKZbTvmg1mxbvQA9N5axZLlW FWaIvYhHKko88B8zCFpL1YyG5fgyMianmNkJ00h0nCcoagJoW0qNfi7c7 0qP57JnUGvcX//YVeWR+hPVn5dX9+dlQB1gDQOVxdqfqon/pjlifnN/7L 2+MkYGWL/NO0TUetOF9p2p6LU6RlZV6qrdILTCBRHuUgNPbS1Dbi7toWu Q==; X-CSE-ConnectionGUID: 5CGhi2VbSU6PcEOlZcUQgw== X-CSE-MsgGUID: uDFglLXUSpGoGkqv8NOt1g== X-IronPort-AV: E=McAfee;i="6800,10657,11507"; a="56149020" X-IronPort-AV: E=Sophos;i="6.17,353,1747724400"; d="scan'208";a="56149020" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2025 04:51:04 -0700 X-CSE-ConnectionGUID: 5LDwG+kwQZqsVP7/ycJa1w== X-CSE-MsgGUID: aCobxRt5S7a9CK9SoEstjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,353,1747724400"; d="scan'208";a="162829036" Received: from lfiedoro-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.249]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2025 04:51:01 -0700 Date: Thu, 31 Jul 2025 13:50:59 +0200 From: Andi Shyti To: Krzysztof Karas Cc: intel-gfx@lists.freedesktop.org, Chris Wilson , Andi Shyti , Sebastian Brzezinka Subject: Re: [PATCH v2 2/2] drm/i915/selftests: Do not leak vm_area_struct on early return Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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" Hi Krzysztof, On Wed, Jul 30, 2025 at 07:40:18AM +0000, Krzysztof Karas wrote: > This structure may be leaked on early failure paths, so include > vm_munmap() call in them to avoid that. this commit message says nothing: - which structure? - where does it leak? - "in them" where? - "avoid that" what? You should consider that the person who reads the commit message doesn't know anything on what you are doing and he should be able to understand without reading the commit itself. Reading the commit is necessary to understand the details of what's explained in the message. No need to resend, but please reply to this email with a proper commit log. > Suggested-by: Chris Wilson > Signed-off-by: Krzysztof Karas Anyway, the patch is good: Reviewed-by: Andi Shyti Thanks, Andi