Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp443774lqb; Fri, 24 May 2024 03:25:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk7eUd/Sq9iiL3Hkol5L9IDXD3FPJ/MFPXeZJTD7w2rN3fKUxJzOk6jcwsTpfz/meUVMf3CXp2M5nIH5GcUPyIjKXeWGkHFrqFL+i/Pg== X-Google-Smtp-Source: AGHT+IFre2QtHzsSkUvbfaHlCIPXkqZ/g94aewfv2ukg0yDiePaFd4dTmLmBhRfXHHIZjRtMGpyj X-Received: by 2002:a05:6358:b11d:b0:186:102b:777 with SMTP id e5c5f4694b2df-197e50f5495mr246054055d.10.1716546307830; Fri, 24 May 2024 03:25:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716546307; cv=pass; d=google.com; s=arc-20160816; b=eU0de14dWW9neDk7eScuyd56t1F+WYit2pNBAhlr/8Wv6c/ZsP2T9BJGPtOtTTkmkJ jzGVPuJ8E9G2ANBtckLonJU+eo6M50Bf6nQ25rPlewCToqc1oSwizgU2P4x2E7nq/ObC hJrZ+bdqhhNNpWDen8FNj6J+n4GYYRLrrt6Sa/gdt+B0xnh7gL1g/hU7YBJKN7PEoG4q IHj1pDg3E32V/gRwoJaoyTNtZe+MoH9iMyJFhrOS5k8jsd8ppqyDm65nRS30X0wgD6Eg bt/OhlSaKZgEtI6MRa5CvFT9rzFkQjnvu8o7cjSdwaRMuCpvyUtZ0SehA0b8KPAtRbh4 wOMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=QZ8wBDN69UG81P952a6IVh6b6kjQXi0O3VAxOLE1yq4=; fh=05cm8oNj8qURSDsew83fFPtUp5T2JN9w2/29Sq3MWGs=; b=yZaqCzKVmZ2EzPJUZCc3ZJZM+jATsdE9YcuZOBEiZE8EY/WbAve79tIXDJM1KL0Y+8 x0ooD2Fe+NEuEwCOKB+FEj7yGsCfWPredix3O62VuePJI2bbzgRCag8RNAlDeGaynGIO 3MD6BhcM9HKoAPrUJXUcpIiamJO/E5NQFRYVh/y+1Y1ynqS4LLOMyKzTuquQx0BJGUf+ V4jA0S37QWSqiGQrxD8pbyIsRPZhjEI6K0VxcwU9mg/y5oZtToV3gfRbwtq8ulcnPrXg tVHaZcFn+NEhPhbED+217YmeHrng8dHfftQYyp4JU7Z4JPcv6mgC2IXxyN+4tJmfgvh3 cnTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RAqGC0hG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682275b3079si1080682a12.389.2024.05.24.03.25.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 03:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RAqGC0hG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2FCEAB21970 for ; Fri, 24 May 2024 10:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 347C58594C; Fri, 24 May 2024 10:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RAqGC0hG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 507D81AACC; Fri, 24 May 2024 10:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716546288; cv=none; b=DzTDgZWySEsNFPKCYPMjBBODCgr/9GtP3pCBBCehNHeohP/aFVfjbDfc9Az98xiLMrIIXT84KadT3RYg6f2uIG77Yh/9vJWvOiJyH3OWNch7XovMrWFAKW4nFwtblrFwR7hPuS+Zt+CHtmwK5bD+vkT/In69qRQEOZh7xViu5I4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716546288; c=relaxed/simple; bh=CrQprNIxi//+Z+cGBKn4Waq6Mg5oFx7AbnKkwtEfBjE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=RYKFmjQxIEXN2fva7dqmqUAJ9sxUwL9QLUAX/hKzptSe2KYuwqrD+edTJTULF3UiUlT5mt2p5mPMTYEUF7LdC4tdDvEoH4wj7zlFD8mt2lJ2QMgrQkI7NCM43upJRyZj+YkAdBouXrBHzZxs4A7qCqFUbZJ+QGHGBwo8fmTLXMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RAqGC0hG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 28DC6C2BBFC; Fri, 24 May 2024 10:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716546288; bh=CrQprNIxi//+Z+cGBKn4Waq6Mg5oFx7AbnKkwtEfBjE=; h=From:Subject:Date:To:Cc:Reply-To:From; b=RAqGC0hGsdNnBS950pwn3rxjLsPNlgBr0hVIJZ+D8q49AIWu0oGDaE4NEdc0IMkqF qvImZydjAdd38203rVlMxR5BqTW0/ME5TLrGdBVnglaWgHML+4IEf2RX5BrFObnT1S CErkZ7N7YMgnRi4BKJj1Kr70NZ0/rI42uBW2cR8yujszsGpykFfUT48/WVnweim5ek TyjLPFBSjcC7FK1Cw4KpXR58r9fx8UnV2Eh+IbYJMgbqEwN4Gp6s5Iu9YJrHjxfDyk iwk2/woiU17I5aLgbZ4CWT4TA6aYaTIX5aVlDtxFRFfDohP0tFmlXy31FcJY1Cb3k6 tChdZqEFN0bjg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E5FEC25B74; Fri, 24 May 2024 10:24:48 +0000 (UTC) From: Nikita Shubin via B4 Relay Subject: [PATCH 0/3] dmaengine: ioatdma: Fix mem leakage series Date: Fri, 24 May 2024 13:24:45 +0300 Message-Id: <20240524-ioatdma-fixes-v1-0-b785f1f7accc@yadro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAO1qUGYC/x3LywqEMAyF4VeRrCegRfHyKjKLtI2ahVUSGQbEd 7e6/M/hO8FYhQ2G4gTln5hsKUf1KSAslGZGibnBla4uG1ejbHTElXCSPxtSN4UQqfex7SEbT8b olVJYHrWSHazPsSu/Iq/j97puo6NkF3gAAAA= To: Vinod Koul , Dave Jiang , Logan Gunthorpe Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Shubin , Andy Shevchenko X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716546287; l=737; i=n.shubin@yadro.com; s=20230718; h=from:subject:message-id; bh=CrQprNIxi//+Z+cGBKn4Waq6Mg5oFx7AbnKkwtEfBjE=; b=A65t7okArOSAbkRGfS8XIdJSEtnY1eofhkJ67p2bUVcBKNM65EhPIQlRCcHuefQIRXEYGuxpkcqb 0pfpc8vLCljl7kZuHmzGmBpIfRBGq9Rsje3JoDhhpHnxKDR4oszc X-Developer-Key: i=n.shubin@yadro.com; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for n.shubin@yadro.com/20230718 with auth_id=161 X-Original-From: Nikita Shubin Reply-To: n.shubin@yadro.com Started with observing leakage in patch 3, ivestigating revealed much more problems in probing error path. Andy you are always welcome to review if you have a spare time. Signed-off-by: Nikita Shubin --- 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 | 55 ++++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 26 deletions(-) --- base-commit: 6d69b6c12fce479fde7bc06f686212451688a102 change-id: 20240524-ioatdma-fixes-a8fccda9bd79 Best regards, -- Nikita Shubin