io_uring/rsrc: fix lost entries after cloned range
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 4 Dec 2025 21:51:16 +0000 (13:51 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Dec 2025 22:46:13 +0000 (15:46 -0700)
commit525916ce496615f531091855604eab9ca573b195
treed0bcd6b26113c555e0cc8e1a9d62feee3dc620c6
parente29af2aba262833c8eba578b58d6bbb6b0866a67
io_uring/rsrc: fix lost entries after cloned range

When cloning with node replacements (IORING_REGISTER_DST_REPLACE),
destination entries after the cloned range are not copied over.

Add logic to copy them over to the new destination table.

Fixes: c1329532d5aa ("io_uring/rsrc: allow cloning with node replacements")
Cc: stable@vger.kernel.org
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c