From mboxrd@z Thu Jan 1 00:00:00 1970 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 0E5E2338584 for ; Mon, 26 Jan 2026 13:13:40 +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=1769433221; cv=none; b=hiuttmrcwa1eMlW+8yBeEBXE2lUMqw5tw5FSZbHE33LfUZq2uYZwwqtHlo3kYOyTyO/O+0Me0x5TllmGA8zAcqPa7HXz8zQSJoI5opJ82GvSkB8BufSBxjIiZY+2ZPhQp6Ln49W+5un5BaRbChqakBM45b7Ch3pkIjkrUEBVT6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769433221; c=relaxed/simple; bh=Qo2fgA52Vc42bP9IBUyFJ3Fa/cBKRnyQZ1hInjZif3c=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=fX1C9jDuWZJ4tQJHFi0v7WM/XH0d8zsvn8xLCVSIc1k9ZH5N+Si3bPj5/2Xq1b+3DqkOBLXqvBvrAB9ff1/iEOb1yJVg6Tunn3hOl2xQPhqrsoOMRFHZDDiBhed/B1xPSAYJQ+tH6MijzgqVgPHFePw+cSIDbT2wCVs3hWfExPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K8Ag82uo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K8Ag82uo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADF5C116C6; Mon, 26 Jan 2026 13:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769433220; bh=Qo2fgA52Vc42bP9IBUyFJ3Fa/cBKRnyQZ1hInjZif3c=; h=Subject:To:Cc:From:Date:From; b=K8Ag82uoFPcpNHCKC+UdhT/gfIThTAOGuR2O8aebhybjOgkEKV4ODnC1IbTFYGFP+ 7JISTWsPNTD4r4evagHw3XqI26yyIifxLNm2OWMFjpVK/hsqc+l/+4zNlyi1GTOX3I dkvnJ9vD1u18xDrvCQrov53lRpMWAQJ5jguuOkvM= Subject: FAILED: patch "[PATCH] scsi: xen: scsiback: Fix potential memory leak in" failed to apply to 5.15-stable tree To: nihaal@cse.iitm.ac.in,jgross@suse.com,martin.petersen@oracle.com Cc: From: Date: Mon, 26 Jan 2026 14:13:26 +0100 Message-ID: <2026012626-cognitive-spoiled-5d7d@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 901a5f309daba412e2a30364d7ec1492fa11c32c # git commit -s git send-email --to '' --in-reply-to '2026012626-cognitive-spoiled-5d7d@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 901a5f309daba412e2a30364d7ec1492fa11c32c Mon Sep 17 00:00:00 2001 From: Abdun Nihaal Date: Tue, 23 Dec 2025 12:00:11 +0530 Subject: [PATCH] scsi: xen: scsiback: Fix potential memory leak in scsiback_remove() Memory allocated for struct vscsiblk_info in scsiback_probe() is not freed in scsiback_remove() leading to potential memory leaks on remove, as well as in the scsiback_probe() error paths. Fix that by freeing it in scsiback_remove(). Cc: stable@vger.kernel.org Fixes: d9d660f6e562 ("xen-scsiback: Add Xen PV SCSI backend driver") Signed-off-by: Abdun Nihaal Reviewed-by: Juergen Gross Link: https://patch.msgid.link/20251223063012.119035-1-nihaal@cse.iitm.ac.in Signed-off-by: Martin K. Petersen diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 0c51edfd13dc..7d5117e5efe0 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c @@ -1262,6 +1262,7 @@ static void scsiback_remove(struct xenbus_device *dev) gnttab_page_cache_shrink(&info->free_pages, 0); dev_set_drvdata(&dev->dev, NULL); + kfree(info); } static int scsiback_probe(struct xenbus_device *dev,