GNU bug report logs - #64058
[PATCH] wc: Fix crashes due to incomplete AVX2 enumeration

Previous Next

Package: coreutils;

Reported by: Dave Hansen <dave.hansen <at> linux.intel.com>

Date: Wed, 14 Jun 2023 02:40:02 UTC

Severity: normal

Tags: patch

Merged with 65164, 65165, 65166, 65167, 65168, 65169, 65170

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dave Hansen <dave.hansen <at> linux.intel.com>
Cc: Kristoffer Brånemyr <ztion1 <at> yahoo.se>, 64058 <at> debbugs.gnu.org
Subject: bug#64058: [PATCH] wc: Fix crashes due to incomplete AVX2 enumeration
Date: Tue, 13 Jun 2023 21:14:55 -0700
[Message part 1 (text/plain, inline)]
Thanks for the bug report. I installed the attached patch into coreutils 
on Savannah. It builds on your idea with several other changes:

* There's a similar issue with cksum.c and pclmul.

* configure.ac can be simplified, since it seems there's no point 
compiling these instructions if __builtin_cpu_supports doesn't work.

* This lets us simplify the source code a bit more.

Please let me know if the attached patch works for you.

PS. Does the attached cksum.c / pclmul change fix any user-visible 
misbehavior? If so, what should we put into the NEWS file?
[0001-wc-port-to-kernels-that-disable-XSAVE-YMM.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.