diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2025-12-04 15:54:50 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-05 09:52:02 -0700 |
| commit | a4c694bfc2455e82b7caf6045ca893d123e0ed11 (patch) | |
| tree | a2966e39c8205f2c96d24bcf09bce48ae7e1ba62 /tools/perf/scripts/python/libxed.py | |
| parent | io_uring/kbuf: use READ_ONCE() for userspace-mapped memory (diff) | |
| download | linux-a4c694bfc2455e82b7caf6045ca893d123e0ed11.tar.gz linux-a4c694bfc2455e82b7caf6045ca893d123e0ed11.zip | |
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 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
