Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sitsofe
Copy link
Collaborator

@sitsofe sitsofe commented Dec 6, 2021

Issue #1239 shows a crash on a FUJITSU/A64FX ARM platform at the
following line:

crc/crc32c-arm64.c:
64 t1 = (uint64_t)vmull_p64(crc1, k2);

On armv8 PMULL crypto instructions like vmull_p64 are defined as
optional (see
google/crc32c#6 (comment) and
dotnet/runtime#35143 (comment) ).

Avoid the crash by gating use of the hardware accelerated ARM crc32c
path behind runtime detection of PMULL.

Fixes: #1239

Signed-off-by: Sitsofe Wheeler [email protected]
Tested-by: Yi Zhang [email protected]

Issue axboe#1239 shows a crash on a FUJITSU/A64FX ARM platform at the
following line:

crc/crc32c-arm64.c:
 64                 t1 = (uint64_t)vmull_p64(crc1, k2);

On armv8 PMULL crypto instructions like vmull_p64 are defined as
optional (see
google/crc32c#6 (comment) and
dotnet/runtime#35143 (comment) ).

Avoid the crash by gating use of the hardware accelerated ARM crc32c
path behind runtime detection of PMULL.

Fixes: axboe#1239

Signed-off-by: Sitsofe Wheeler <[email protected]>
Tested-by: Yi Zhang <[email protected]>
@axboe axboe merged commit fab60fa into axboe:master Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fio with --verify=crc32c will be failed with "fio: file hash not empty on exit" on aarch64

2 participants