Project

General

Profile

Bug #24225

AArch64 CRC32 crash with SIGILL

Added by Artemy Kapitula almost 6 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

ceph-mon crashes with SIGILL on some ARM AArch64 SoC.

The crash is produced every time when performing CRC check.

I.e the problem happen on well-known ODroid-C2 SBC built atop of AmLogic S905 but all work fine on a RK3389-based ROCK64.

After investigation we found that difference is a CPU features:

ODroid-C2 (AmLogic S905) CPU /proc/cpuinfo features "Features : fp asimd crc32"

ROCK64 (RK3389) CPU /proc/cpuinfo features: "Features : fp asimd evtstrm aes pmull sha1 sha2 crc32"

On AArch64 ceph uses asm CRC calculations in crc32c.cc and the source of problem is pmull feature.

The suggested solution is to check for pmull support too while probing for crc32 support in src/arch/arm.c

History

#1 Updated by Sage Weil almost 6 years ago

  • Project changed from bluestore to Ceph

#2 Updated by Anonymous over 5 years ago

Maybe the crash has been fixed by the PR https://github.com/ceph/ceph/pull/22178.

Could you please have a test?

Thanks!

#3 Updated by Artemy Kapitula over 5 years ago

Just tried 12.2.7 - all the things works fine, no more CRC32 crashes.

Tone ZHANG wrote:

Maybe the crash has been fixed by the PR https://github.com/ceph/ceph/pull/22178.

Could you please have a test?

Thanks!

#4 Updated by Anonymous over 5 years ago

Artemy Kapitula wrote:

Just tried 12.2.7 - all the things works fine, no more CRC32 crashes.

Tone ZHANG wrote:

Maybe the crash has been fixed by the PR https://github.com/ceph/ceph/pull/22178.

Could you please have a test?

Thanks!

Thanks a lot for the validation. :)

#5 Updated by Sage Weil almost 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF