summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2025-12-04 15:54:50 -0800
committerJens Axboe <axboe@kernel.dk>2025-12-05 09:52:02 -0700
commita4c694bfc2455e82b7caf6045ca893d123e0ed11 (patch)
treea2966e39c8205f2c96d24bcf09bce48ae7e1ba62 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parent78385c7299f7514697d196b3233a91bd5e485591 (diff)
io_uring/kbuf: use WRITE_ONCE() for userspace-shared buffer ring fields
buf->addr and buf->len reside in memory shared with userspace. They should be written with WRITE_ONCE() to guarantee atomic stores and prevent tearing or other unsafe compiler optimizations. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Cc: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
0 files changed, 0 insertions, 0 deletions