]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: idxd: Fix allowing write() from different address spaces
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Mon, 21 Apr 2025 17:03:37 +0000 (10:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:19 +0000 (14:40 +0200)
commitd19d0157edd69a18f5bf77aac4d614f2a831b6b5
tree208319d2bd3b7db12c4d798758776ce1133067c5
parent206d8a7b8c543ff74b50bc40bff7684c034392a9
dmaengine: idxd: Fix allowing write() from different address spaces

[ Upstream commit 8dfa57aabff625bf445548257f7711ef294cd30e ]

Check if the process submitting the descriptor belongs to the same
address space as the one that opened the file, reject otherwise.

Fixes: 6827738dc684 ("dmaengine: idxd: add a write() method for applications to submit work")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20250421170337.3008875-1-dave.jiang@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/cdev.c