]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dma-debug: track cache clean flag in entries
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Dec 2025 19:38:31 +0000 (14:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:35 +0000 (13:30 +0200)
commit6c4bc561217343402c36e4a12a5bceb6a1b5cef2
tree39df32d24204fe237d774fde539981b56cd1dc5b
parent18532bb61fd5548e3149afc0c03d2778757916ea
dma-debug: track cache clean flag in entries

[ Upstream commit d5d846513128c1a3bc2f2d371f6e903177dea443 ]

If a driver is buggy and has 2 overlapping mappings but only
sets cache clean flag on the 1st one of them, we warn.
But if it only does it for the 2nd one, we don't.

Fix by tracking cache clean flag in the entry.

Message-ID: <0ffb3513d18614539c108b4548cdfbc64274a7d1.1767601130.git.mst@redhat.com>
Reviewed-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Stable-dep-of: 3d48c9fd78dd ("dma-debug: suppress cacheline overlap warning when arch has no DMA alignment requirement")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/debug.c