diff --git a/e2fsprogs.changes b/e2fsprogs.changes index 2b273e5..0955d78 100644 --- a/e2fsprogs.changes +++ b/e2fsprogs.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Fri Jun 1 16:31:22 UTC 2018 - jack@suse.cz + +- libext2fs-Fix-fsync-2-detection.patch: libext2fs: Fix fsync(2) detection + (bsc#1038194) + +------------------------------------------------------------------- +Fri Jun 1 15:57:14 UTC 2018 - jack@suse.cz + +- Add references from old package: + Fix resize2fs-Fix-32-64-bit-overflow-when-multiplying-by-blocks-cl.patch + in 1.42.12 (bsc#1009532) + Fix libext2fs-fix-potential-buffer-overflow-in-closefs.patch + in 1.42.13 (bsc#918346 CVE-2015-1572) + Fix libext2fs-avoid-buffer-overflow-if-s_first_meta_bg-i.patch + in 1.42.12 (bsc#915402 CVE-2015-0247) + Got specfile fix through Factory (bsc#960273) + Fix libext2fs-don-t-ignore-fsync-errors.patch in 1.43.4 (bsc#1038194) + ------------------------------------------------------------------- Wed Jan 24 14:41:11 UTC 2018 - jack@suse.cz diff --git a/e2fsprogs.spec b/e2fsprogs.spec index 01ed1ff..7d16eef 100644 --- a/e2fsprogs.spec +++ b/e2fsprogs.spec @@ -81,6 +81,7 @@ Patch1: libext2fs-fix-build-failure-in-swapfs.c-on-big-endia.patch Patch3: libcom_err-compile_et_permissions.patch Patch4: e2fsprogs-1.42-implicit_fortify_decl.patch Patch5: e2fsprogs-1.42-ext2fsh_implicit.patch +Patch6: libext2fs-Fix-fsync-2-detection.patch # Do not suppress make commands BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -225,6 +226,7 @@ Development files for the com_err error message display library. Static librarie %patch3 -p1 %patch4 %patch5 +%patch6 -p1 cp %{SOURCE2} . %build diff --git a/libext2fs-Fix-fsync-2-detection.patch b/libext2fs-Fix-fsync-2-detection.patch new file mode 100644 index 0000000..22b40a0 --- /dev/null +++ b/libext2fs-Fix-fsync-2-detection.patch @@ -0,0 +1,36 @@ +From: Jan Kara +Date: Wed, 31 May 2017 14:49:18 +0200 +Subject: [PATCH] libext2fs: Fix fsync(2) detection +References: bsc#1038194 + +For some reason lib/config.h.in was missing a definition of HAVE_FSYNC +and as a result lib/config.h never had HAVE_FSYNC defined. As a result +we never called fsync(2) for example from +lib/ext2fs/unix_io.c:unix_flush() when we finished creating filesystem +and could miss IO errors happening during creating of the filesystem. +Test generic/405 exposes this problem. + +Fix the problem by defining HAVE_FSYNC in lib/config.h.in. + +Signed-off-by: Jan Kara +--- + lib/config.h.in | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/config.h.in b/lib/config.h.in +index 37d0c461338a..91e869e7d3d7 100644 +--- a/lib/config.h.in ++++ b/lib/config.h.in +@@ -470,6 +470,9 @@ + /* Define to 1 if you have the `sync_file_range' function. */ + #undef HAVE_SYNC_FILE_RANGE + ++/* Define to 1 if you have the 'fsync' function. */ ++#undef HAVE_FSYNC ++ + /* Define to 1 if you have the `sysconf' function. */ + #undef HAVE_SYSCONF + +-- +2.12.3 +