aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2025-04-16 22:48:26 +0000
committerJens Axboe <[email protected]>2025-04-17 17:59:12 +0000
commitb419bed4f0a62c65a57dd495185821dd56bc435c (patch)
tree5990977344f44446681900c2b1b6e9d0a1ef748a /scripts/gcc-plugins/structleak_plugin.c
parentio_uring/rsrc: send exact nr_segs for fixed buffer (diff)
downloadkernel-b419bed4f0a62c65a57dd495185821dd56bc435c.tar.gz
kernel-b419bed4f0a62c65a57dd495185821dd56bc435c.zip
io_uring/rsrc: ensure segments counts are correct on kbuf buffers
kbuf imports have the front offset adjusted and segments removed, but the tail segments are still included in the segment count that gets passed in the iov_iter. As the segments aren't necessarily all the same size, move importing to a separate helper and iterate the mapped length to get an exact count. Reviewed-by: Nitesh Shetty <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions