vfs_io_uring: protect vfs_io_uring_pread_completion() against invalid results
authorStefan Metzmacher <metze@samba.org>
Fri, 8 May 2020 09:38:56 +0000 (11:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 May 2020 07:25:45 +0000 (07:25 +0000)
commitdadb169869375221c04478dbf19f95f100096530
tree58fb8cb966dab0b6f0ffa3c8027d87ec280fdfd4
parent0c3523d83cf9612602a9487686b635c0f394b0cd
vfs_io_uring: protect vfs_io_uring_pread_completion() against invalid results

We should never get back more than we asked for.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f085dbf8b2bed2695e0065a5bf4523232cb532c7)
source3/modules/vfs_io_uring.c