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 B07C33C5544 for ; Tue, 17 Mar 2026 12:51:23 +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=1773751883; cv=none; b=CXYxVbceJ3kQXnMBmNLseJJ7U6x2uQ4FcQPf9SizSHmJcXEwpA37VbY4p5X9M7jsJulVQTC064b/YK5hlGpXg6dlLlyXoing6vW1WiuJvoDGzvmtL+4SjWfHwDwgeJp/KhXz6aCvQrLLfGJtP9+HlZKWIiOtVPWVVEJRQ7Ko1ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773751883; c=relaxed/simple; bh=MY0/tTyugOiXrSKRUTUwDm701IvNAT3PNoNApMZywFs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=UZBWAjYdGBdfPcAizJIMb5wx+fS5nJcdLN1SKiRH8ZAo+i2CzmdQ93uN5clr/ogvDHBfKj/zE7Rl3DSQjdft3vlTvflquZCQ6P1TenmroYygciA43VRoniU6FvNtQZZX7J/rkwuC9c69C/JkLIngh+eEbYMO47SIwSsURlk7i3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A9urdSNh; 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="A9urdSNh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D7A6C4CEF7; Tue, 17 Mar 2026 12:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773751883; bh=MY0/tTyugOiXrSKRUTUwDm701IvNAT3PNoNApMZywFs=; h=Subject:To:Cc:From:Date:From; b=A9urdSNhMNK2lTfTTfqWrbFO7qM2HpqYQAqY/nG4vHEhQtRfa+fLTaPVr3MwkjrFm jN7YmrBKVKJVBYTB2L40p4euyMPj2h6yt5TzkFq7yIwrh5WBJ6VC609VSkXZFIafIM zrRNM7EiA80iK9K1srb5NAoqSzZzdb4/LsoMD1I8= Subject: FAILED: patch "[PATCH] drm/msm: Fix dma_free_attrs() buffer size" failed to apply to 6.1-stable tree To: fourier.thomas@gmail.com,dmitry.baryshkov@oss.qualcomm.com,robin.clark@oss.qualcomm.com,stable@vger.kernel.org Cc: From: Date: Tue, 17 Mar 2026 13:51:11 +0100 Message-ID: <2026031711-egotism-flap-ecc4@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 6.1-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-6.1.y git checkout FETCH_HEAD git cherry-pick -x e4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd # git commit -s git send-email --to '' --in-reply-to '2026031711-egotism-flap-ecc4@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From e4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd Mon Sep 17 00:00:00 2001 From: Thomas Fourier Date: Thu, 26 Feb 2026 10:57:11 +0100 Subject: [PATCH] drm/msm: Fix dma_free_attrs() buffer size The gpummu->table buffer is alloc'd with size TABLE_SIZE + 32 in a2xx_gpummu_new() but freed with size TABLE_SIZE in a2xx_gpummu_destroy(). Change the free size to match the allocation. Fixes: c2052a4e5c99 ("drm/msm: implement a2xx mmu") Cc: Signed-off-by: Thomas Fourier Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/707340/ Message-ID: <20260226095714.12126-2-fourier.thomas@gmail.com> Signed-off-by: Rob Clark diff --git a/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c b/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c index 0407c9bc8c1b..4467b04527cd 100644 --- a/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c +++ b/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c @@ -78,7 +78,7 @@ static void a2xx_gpummu_destroy(struct msm_mmu *mmu) { struct a2xx_gpummu *gpummu = to_a2xx_gpummu(mmu); - dma_free_attrs(mmu->dev, TABLE_SIZE, gpummu->table, gpummu->pt_base, + dma_free_attrs(mmu->dev, TABLE_SIZE + 32, gpummu->table, gpummu->pt_base, DMA_ATTR_FORCE_CONTIGUOUS); kfree(gpummu);