]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: mention cksum error fix with cpu feature checks changes
authorPádraig Brady <P@draigBrady.com>
Wed, 14 Jun 2023 23:53:54 +0000 (00:53 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 15 Jun 2023 00:00:05 +0000 (01:00 +0100)
* NEWS: Mention the error message to aid those searching
for solutions to the issue, and mention cksum also
as that was confirmed to fix the error with the adjusted
cpu feature detection, as discussed at https://bugs.debian.org/1037264
* src/cksum.c: Cleanup syntax-check failure from previous commit.

NEWS
src/cksum.c

diff --git a/NEWS b/NEWS
index 3350f987163f6d14904f15ea6bbf01a198d7152c..5358505499771239097c50c5693ec6a9c6410829 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,7 +29,8 @@ GNU coreutils NEWS                                    -*- outline -*-
   'pr --length=1 --double-space' no longer enters an infinite loop.
   [This bug was present in "the beginning".]
 
-  'wc -l' no longer crashes on x86 Linux kernels that disable XSAVE YMM.
+  'wc -l' and 'cksum' no longer crash with an "Illegal instruction" error
+  on x86 Linux kernels that disable XSAVE YMM.  This was seen on Xen VMs.
   [bug introduced in coreutils-9.0]
 
 ** Changes in behavior
index 26bb29bdb6b5abc7093819d1855ac5eb5212f9da..5b6a59c16e21991d4497d9334d8022d830d7d00c 100644 (file)
@@ -229,9 +229,9 @@ crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length)
   static bool (*cksum_fp) (FILE *, uint_fast32_t *, uintmax_t *);
   if (! cksum_fp)
     cksum_fp = pclmul_supported () ? cksum_pclmul : cksum_slice8;
-#else
+# else
   bool (*cksum_fp) (FILE *, uint_fast32_t *, uintmax_t *) = cksum_slice8;
-#endif
+# endif
 
   if (! cksum_fp (stream, &crc, &total_bytes))
     return -1;