diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2025-12-05 02:54:50 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-05 19:52:02 +0300 |
| commit | a4c694bfc2455e82b7caf6045ca893d123e0ed11 (patch) | |
| tree | a2966e39c8205f2c96d24bcf09bce48ae7e1ba62 /drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c | |
| parent | 78385c7299f7514697d196b3233a91bd5e485591 (diff) | |
| download | linux-a4c694bfc2455e82b7caf6045ca893d123e0ed11.tar.xz | |
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_hdp.c')
0 files changed, 0 insertions, 0 deletions
