s3: VFS: aio_fork: Change sys_pwrite() -> sys_pwrite_full() to protect against short...
authorJeremy Allison <jra@samba.org>
Thu, 7 May 2020 19:42:53 +0000 (12:42 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000 (19:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_aio_fork.c

index 285b331ff9cac66ec39386857d750652b9a050f7..7c6f4b00fd04b020c68722cd95e3e50a93862b79 100644 (file)
@@ -353,7 +353,7 @@ static void aio_child_loop(int sockfd, struct mmap_area *map)
 #endif
                        break;
                case WRITE_CMD:
-                       ret_struct.size = sys_pwrite(
+                       ret_struct.size = sys_pwrite_full(
                                fd, discard_const(map->ptr), cmd_struct.n,
                                cmd_struct.offset);
                        break;