summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-02-12 23:45:45 +0300
committerJens Axboe <axboe@kernel.dk>2025-02-12 23:58:43 +0300
commit34cae91215c6f65bed2a124fb9283da6ec0b8dd9 (patch)
tree46f4fc42812f8946f9688a943770495c85991c0d /tools/perf/scripts/python/export-to-postgresql.py
parent8802766324e1f5d414a81ac43365c20142e85603 (diff)
downloadlinux-34cae91215c6f65bed2a124fb9283da6ec0b8dd9.tar.xz
io_uring/uring_cmd: don't assume io_uring_cmd_data layout
eaf72f7b414f ("io_uring/uring_cmd: cleanup struct io_uring_cmd_data layout") removed most of the places assuming struct io_uring_cmd_data has sqes as its first field. However, the EAGAIN case in io_uring_cmd() still compares ioucmd->sqe to the struct io_uring_cmd_data pointer using a void * cast. Since fa3595523d72 ("io_uring: get rid of alloc cache init_once handling"), sqes is no longer io_uring_cmd_data's first field. As a result, the pointers will always compare unequal and memcpy() may be called with the same source and destination. Replace the incorrect void * cast with the address of the sqes field. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Fixes: eaf72f7b414f ("io_uring/uring_cmd: cleanup struct io_uring_cmd_data layout") Link: https://lore.kernel.org/r/20250212204546.3751645-2-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions