The patch titled uml: fix off-by-one bug in VM file creation has been removed from the -mm tree. Its filename is uml-fix-off-by-one-bug-in-vm-file-creation.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: uml: fix off-by-one bug in VM file creation From: Jeff Dike <jdike@xxxxxxxxxxx> Fix an off-by-one bug in temp file creation. Seeking to the desired length and writing a byte resulted in the file being one byte longer than expected. Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/um/os-Linux/mem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN arch/um/os-Linux/mem.c~uml-fix-off-by-one-bug-in-vm-file-creation arch/um/os-Linux/mem.c --- a/arch/um/os-Linux/mem.c~uml-fix-off-by-one-bug-in-vm-file-creation +++ a/arch/um/os-Linux/mem.c @@ -210,8 +210,11 @@ int create_tmp_file(unsigned long long l exit(1); } - if (lseek64(fd, len, SEEK_SET) < 0) { - perror("os_seek_file"); + /* Seek to len - 1 because writing a character there will + * increase the file size by one byte, to the desired length. + */ + if (lseek64(fd, len - 1, SEEK_SET) < 0) { + perror("os_seek_file"); exit(1); } _ Patches currently in -mm which might be from jdike@xxxxxxxxxxx are origin.patch uml-make-copy__user-atomic.patch uml-fix-not_dead_yet-when-directory-is-in-bad-state.patch uml-rename-and-improve-actually_do_remove.patch uml-remove-pte_mkexec.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html