Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp75845lqb; Tue, 28 May 2024 09:12:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWviGMZTIT/u7d/ratELrVD7zDM+oQTIrQ34kJY4BmoOnRLgk1EtwCkzGgP5Suz/a+PWyNxQ+lAnsnBFPqwzBRMdEwXxYM5DQVCp/+JXQ== X-Google-Smtp-Source: AGHT+IE2u0ysSvV0eCyFfq5DTUJbScN9J40Oirxt+Hockz4DnfUKiVWg9QyMadPBJSo9ijPKWsH9 X-Received: by 2002:a05:6a20:8424:b0:1a7:23ae:4421 with SMTP id adf61e73a8af0-1b205ce8c81mr22673521637.24.1716912742069; Tue, 28 May 2024 09:12:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716912742; cv=pass; d=google.com; s=arc-20160816; b=tOo8U+Wex17NEq6MssP05cFNx7qy3JM5jYSE/js6bY/V8JlpF9KH3YSeb4qHYb4gIR Ggc/KKjEjIhSGU/3sj05n3eM78j3TdNkUPpnj3VXmdH8uw1Hnnu+meCxqsBoy/ZtjUIt xd9axfvGuO0G+bmN6UC28R+RNx5Z9WWy1MKHQbEEn7dCEJ3mYjixaZD/68ernZw8kX6z C9Peh306a5QO6L7hcarVndzdT/6AnPCKxDoI/wuZ9MK8KEmFmclcOEkeHlpq0EdhGB+5 XnTO/xArjI/IUrVkDaDY0259MAquQjB0siC2W/nvurd3memKs2aINQfuACW1meDl7Qnk yV0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tBHlaqNXegXr4m8STe5ebHZJeHTjB2+AClclpoMy3gQ=; fh=kz1UcNpMaXTMilmoyUMshd5OOfgKuFbmbm6JRndpRzY=; b=jVdSdAvj6zyNiPlaufKeuc2sty8tRmJJycIVSOYvUPMA9Jvzjpy1/TWZiDhOK0FOJ3 kZXsZ97VGaAZIxLEdq2C3U8uuSR2EA4c6iUuOvnPaVcDKf0ihqsOxbXatRuL7pWJ6jTG wK3NPaEVG1PE2XulI99SlUmcHrivjVjGiV7gDisab0YsKvi6U7g6rlWITEMRVzhhNUHt 2EQFPQqKO11PIR1TWnnzpogTJ8Vhiz4P8XGJKD1AeOXp7UH+CN3r9BxEBdFKlWA1GWSn eYam4ttBCc9+Qk7b8dUHyA9HWU6jYyPym4BD837WrN1XC6rr/A4TqaigxGJjM4WwK8Xa wojQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jbYIw3zi; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b737d8si8445319a12.111.2024.05.28.09.12.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 09:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jbYIw3zi; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192720-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 29DCA287335 for ; Tue, 28 May 2024 16:08:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8D72172769; Tue, 28 May 2024 16:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jbYIw3zi" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 4E3F532C60; Tue, 28 May 2024 16:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716912510; cv=none; b=nwEFIh9zWiMctRGrwxoOn0COii8hP5sDO1jAlAfreWozQ8RIaXpcz5ly/LygMKDTsSjw0MSV9YNF4nyDd6f1NXn7bdV1ObYsaBi7V0j1OEebCr6q2kImeL/88ap5KCFe7qL+AwfVFdydPrQ9p0g3DedYWZGsyy5M01VzYRRICVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716912510; c=relaxed/simple; bh=sy28UyA1Z9nAsKXnFVtW4DjGYuNsglWfo2Z5ihJ2kko=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=O4kuCRUec+xf44St901kaY6wTKwAjTplyNl6U5MimK+xeFH1Al/FaqPdKXLkL4DzbvTAh398kYeUmpGEDVuCLC9L1LJ9oI6QUkcmENzckzQ56fUkXzwefoiIqnxwPt7/0kBmJ4+t44t1rGsxGmJDJbnudNn11TlokyeYSgGhfw8= ARC-Authentication-Results:i=1; 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=jbYIw3zi; arc=none smtp.client-ip=198.175.65.13 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=1716912509; x=1748448509; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=sy28UyA1Z9nAsKXnFVtW4DjGYuNsglWfo2Z5ihJ2kko=; b=jbYIw3zinoKjz4Nr3uXisRD4s7jjASzYX6o/hd3x+XKANbuC2lPw1N3j mxsIbRKZEAC+HUOP5A0A6vG2Z4MioK656glnMTZubdvcDfp1hxfrFtDKI iSc1FCzpsIM36AOKDIlA95AwmwDJscFBufpY5zCifV3B2tMQiLZykOlTo JuOyTjbjcfs9VGKynIdbVqWZtQFus7GaIRpc/LfQ0ekhwhLQHmFbvhVlb orUtNc8eO03iE3+VZoi6l2PMOsxmPo52AoZmMLWjpJhdp6sPIyY6z42Fo WDsz4W5IujVtGB6HITHW0LEOSvSliszI89pFEYFnIfU3zE7zZVyYDVvrn Q==; X-CSE-ConnectionGUID: I7GEJfr1QhWdknWotClIew== X-CSE-MsgGUID: D9lZsJF2RGG6p1YTCuFPlw== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="24397439" X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="24397439" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 09:08:28 -0700 X-CSE-ConnectionGUID: 6buhvu1HQtmmxZ4l/ht5Wg== X-CSE-MsgGUID: mJA3CBa+QfCI9+JfLKAp0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="35067472" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.125.111.9]) ([10.125.111.9]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 09:08:29 -0700 Message-ID: Date: Tue, 28 May 2024 09:08:09 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] dmaengine: ioatdma: Fix mem leakage series To: n.shubin@yadro.com, Vinod Koul , Logan Gunthorpe Cc: Andy Shevchenko , Nikita Shubin , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux@yadro.com References: <20240528-ioatdma-fixes-v2-0-a9f2fbe26ab1@yadro.com> Content-Language: en-US From: Dave Jiang In-Reply-To: <20240528-ioatdma-fixes-v2-0-a9f2fbe26ab1@yadro.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/27/24 11:09 PM, Nikita Shubin via B4 Relay wrote: > Started with observing leakage in patch 3, investigating revealed much > more problems in probing error path. > > Andy you are always welcome to review if you have a spare time. > > Thank you Andy and Markus for your comments. > > Signed-off-by: Nikita Shubin > --- > Changes in v2: > - dmaengine: ioatdma: Fix error path in ioat3_dma_probe(): > Markus: > - fix typo > > - dmaengine: ioatdma: Fix kmemleak in ioat_pci_probe() > Andy: > - s/int/unsigned int/ > - fix spelling errors > - trimmed kmemleak reports > > - Link to v1: https://lore.kernel.org/r/20240524-ioatdma-fixes-v1-0-b785f1f7accc@yadro.com > > --- > Nikita Shubin (3): > dmaengine: ioatdma: Fix leaking on version mismatch > dmaengine: ioatdma: Fix error path in ioat3_dma_probe() > dmaengine: ioatdma: Fix kmemleak in ioat_pci_probe() > > drivers/dma/ioat/init.c | 54 ++++++++++++++++++++++++++----------------------- > 1 file changed, 29 insertions(+), 25 deletions(-) > --- > base-commit: 6d69b6c12fce479fde7bc06f686212451688a102 > change-id: 20240524-ioatdma-fixes-a8fccda9bd79 Thanks for the fixes. Reviewed-by: Dave Jiang for the series Would be nice if someone wants to move everything to the devm_* management APIs. Would make this a lot less messy. Probably not worth the effort though given how old the driver is and no more devices are being created to use this driver. > > Best regards,