diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2025-02-26 11:41:17 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-27 07:27:55 -0700 |
commit | a223e96f7305fc482b4b41424e53d12ef693793d (patch) | |
tree | 95c29125da0e054b844e678c4f32275a38dfd767 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0fc5a589aff7f9e613ff94fd3dd0a6686ffcb706 (diff) |
io_uring/net: isolate msghdr copying code
The user access section in io_msg_copy_hdr() is overextended by covering
selected buffers. It's hard to work with and prone to errors. Limit the
section to msghdr import only, selected buffers will do a separate
copy_from_user() call, and then move it into its own function. This
should be fine, selected buffer single shots are not important, for
multishots the overhead should be non-existent, and it's not that
expensive overall.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d3eb1f81c8cfbea9f1aa57dab90c472d2aa6e371.1740569495.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions