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 406B1345CC0 for ; Tue, 17 Mar 2026 12:51:31 +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=1773751891; cv=none; b=C4FB/pHv+4rYB/07kLEZGf2ndPKI7QcAB++MWVwxjadABajW7BfNQQ8aAWqI0XChltmIM7dV5ohhxQW+G2RDIRrfgDEBx9TTmcK86lpC9UiL5JaQeaJHP6wb7EFnSiesmYd6Crrtp1UgMQcHlnR3icmjoi3oIAFNAWPopQlF/zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773751891; c=relaxed/simple; bh=FzA4QrFZ6a+Fsu3Xq8gXKHB28n2FtRhTrIImbh9qanY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=BCbUcAv7E9Y+om41swjCe19qKaB1IDEHaWPZFmSwrQ7hzeNWINb/41jhz2ikHt9GT34MLSfGoxZWarrNPazm7PEiFQjRpaCP+m7nBgnrAF+PD1H4EvVF1XoHHQAv1BgLDMb/MqHdDDoxeIB2dIpMECSJMCyY5bneP93nRFq9W9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IhfodOv9; 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="IhfodOv9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 794A8C4CEF7; Tue, 17 Mar 2026 12:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773751890; bh=FzA4QrFZ6a+Fsu3Xq8gXKHB28n2FtRhTrIImbh9qanY=; h=Subject:To:Cc:From:Date:From; b=IhfodOv9Ya95RQCCS+BCpQGd/H27Ol3HqQPtqIhdWILNBVV/iDPA+wZLsiiLlFTOp vMGm+Z8FKSiE7w+lnss3H4wxhz39Ql8DVZdUh7orzBQcBTDUUZW1F2bBpSs3zweG3w /9gC+5F+jVZreTByiaSRstUUQBXKeY0g4wbmw5sw= Subject: FAILED: patch "[PATCH] drm/msm: Fix dma_free_attrs() buffer size" failed to apply to 5.15-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:12 +0100 Message-ID: <2026031712-emphasis-helpless-0b0a@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 e4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd # git commit -s git send-email --to '' --in-reply-to '2026031712-emphasis-helpless-0b0a@gregkh' --subject-prefix 'PATCH 5.15.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);