summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-12-29 20:50:46 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-29 21:00:36 +0300
commit77788775c7132a8d93c6930ab1bd84fc743c7cb7 (patch)
tree2f5da76650d3d77b40923c6b632d23b8e15a4837 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
downloadlinux-77788775c7132a8d93c6930ab1bd84fc743c7cb7.tar.xz
io_uring: don't assume mm is constant across submits
If we COW the identity, we assume that ->mm never changes. But this isn't true of multiple processes end up sharing the ring. Hence treat id->mm like like any other process compontent when it comes to the identity mapping. This is pretty trivial, just moving the existing grab into io_grab_identity(), and including a check for the match. Cc: stable@vger.kernel.org # 5.10 Fixes: 1e6fa5216a0e ("io_uring: COW io_identity on mismatch") Reported-by: Christian Brauner <christian.brauner@ubuntu.com>: Tested-by: Christian Brauner <christian.brauner@ubuntu.com>: Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions