summaryrefslogtreecommitdiff
path: root/scripts/trace/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorJaeyeong Lee <iostreampy@proton.me>2026-07-12 14:27:12 +0000
committerJens Axboe <axboe@kernel.dk>2026-07-14 12:14:59 -0600
commitf1596ba3e6b390aa0fef8466afce44efecf39d8d (patch)
tree20d89b459f7f4f689205c601870642c54a227e29 /scripts/trace/git@git.tavy.me:linux-stable.git
parentf3176c8ac4217c88fe1147ab084c47092921ffc4 (diff)
io_uring/kbuf: free the replaced iovec after a successful grow
The provided-buffer validation fix deferred freeing a cached iovec until validation completed. However, the deferred free uses arg->iovs. After a grow, that points to the newly allocated array. Without a grow, it points to the cached array that remains in use. This leaves the caller with a dangling iovec in both cases and can result in repeated frees. Only free org_iovs when arg->iovs actually replaced it. Fixes: cd053d788c3f ("io_uring: fix dangling iovec after provided-buffer bundle grow failure") Assisted-by: Codex:gpt-5.3-codex-spark Signed-off-by: Jaeyeong Lee <iostreampy@proton.me> Link: https://patch.msgid.link/20260712142612.188695595-iostreampy@proton.me Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/trace/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions