From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796522161; b=30s4ed1zBCzqTzH1ORhi3BfeSSrbw1kmoZYXCPn5lVAOB/SzK7lA95Rmm6KT4nWA4i8/ s1LYCiSEQYUFB62rakX6lHcQrrup9Q4K+/1NGkbMopQ2EBx7N2EO+UMtpUUcG1IkZRD7T gtzqzzT3+/+bgHOIjGqL1rJbohdcaOH2xRcjD6uvLRvePEqgjR3+sppi3Mbtd1J8Fm4FE UWIJcU8fAWO248INzMeFQ1Ml7fdc8RLEdkiGFU4jYxeC92DhLOlm9d1TBYZ7AqsEEiwKp DTovWPC+2gRX0zBZG0DYaExQ9T/MK2mGSvlu7OKFo+Z0Bke42eWpuOdT4+akfGCgKZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796522161; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=u7wJuB5XXA5G3EC6WXpT657+yJ7Uc1JBN50K8TGR5AE=; b=oUfA6p6dOGAkOu/k15E8RgWWNGn7IBOGRrra9m/DUk2wiDISj12d6MBBy0jj9aJBao4V YzNwJ7+/m/9CI+DYUWNbCk6NS6/shJojxWIQ6rhFWenfz53ZhRe2KW7wW2LDjsLcQBb+v I3CGDo2pcAQFQCXdzJYRX8dA+hzsQnhmtVicYxUvx29/x7u1gBzMl0p696LZh/0yFLVs8 /FyMQ1JQVOr83Unyt2OQ0G0E8bsnUvtNuve57FXMk1K+3jyxoGxj3gey7pc4BeVoU+A2t 6FPBIY6yHY/+OnzocEHsCwcVEo2XYcgc+XYyzCvBcck/q1yUd/AqLXZ0TjZNAyuEKrw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fdrDv7AQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEFC8606A31F for ; Sun, 6 Dec 2026 01:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fdrDv7AQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 899EE1F0092B; Sun, 6 Dec 2026 01:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796522161; bh=u7wJuB5XXA5G3EC6WXpT657+yJ7Uc1JBN50K8TGR5AE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fdrDv7AQVjM/j/pH66US5mnu1TFhEB1n2zSvtBMepo9QhvUZUxKFuCT1MZ4JOU0AU XIUjP7hawLlRfsCPv4Z1kSAtcNFqsTRNWGcnLHnAq2jmdLq5RYjEyOHQlwhQ2Pscwo DWW1nYOw3WffftRu714mdvlc0tQ4m/OUSytOZbkBtYyvdquEhWaW7FeESjiulp/d7/ oqUPy6GzDPeF5Pu3xQVOP+ktkhuGof/qO5SDGWo16vtaydAnGUC238JZYHaVnoh7uF Q/IsPFfpgLS7YCfNO6jtS1R7D4eVIuFRqgelWNnC5YTvQn7MacuPj7j7HuO4bN93y7 nWrstIt/WNHsg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] PCI: hv: Fix potential MMIO leak on bridge window allocation failure Reply-To: sashiko-reviews@lists.linux.dev To: "Tian Xuechen" <202300460064@mail.sdu.edu.cn> Cc: linux-pci@vger.kernel.org In-Reply-To: <20261206014239.3413261-1-202300460064@mail.sdu.edu.cn> References: <20261206014239.3413261-1-202300460064@mail.sdu.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 01:56:01 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Tian Xuechen <202300460064@mail.sdu.edu.cn> >=20 > The low MMIO resource has IORESOURCE_BUSY cleared when it becomes a > bridge window. If high MMIO allocation then fails, vmbus_free_mmio() > cannot release that resource because release_mem_region() requires > the busy flag. >=20 > Restore the flag before rollback, as the normal teardown does. >=20 > This issue was found by our static analysis tool under development. >=20 > Fixes: 4daace0d8ce8 ("PCI: hv: Add paravirtual PCI front-end for Microsof= t Hyper-V VMs") > Signed-off-by: Tian Xuechen <202300460064@mail.sdu.edu.cn> Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206014239.3413= 261-1-202300460064@mail.sdu.edu.cn?part=3D1