mh_sha256/mh_sha256_test fails on latest release v2.25.0 (9b7a2b842c) on AMD Ryzen 9 5950X 16-Core Processor #162

Closed
opened 2025-10-19 01:45:48 -05:00 by recanman · 2 comments
recanman commented 2025-10-19 01:45:48 -05:00 (Migrated from github.com)

Issue

When running make check on the latest release v2.25.0, tests fail:
Image

Logs/System Info

test-suite.log:

=============================================
   libisal_crypto 2.25.0: ./test-suite.log
=============================================

# TOTAL: 37
# PASS:  36
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

System information (uname -a): Linux 6.15.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 19 Jun 2025 14:41:19 +0000 x86_64
Distribution information (/etc/os-release):
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"

.. contents:: :depth: 2

FAIL: mh_sha256/mh_sha256_test
==============================

isal_mh_sha256_update_test:
mh_sha256 fail test
ref:  88 f5 d1 50 4c 95 2e f8 ba  e 68 fa c7 86 fd 71 d5 8b 83 d9 a4 4c 8a 10 b9 c9 44  8 cd e0 c3 c4
test:   e  2 f2 30 df 10 2a 99 24  5 5d 80 b7 a5 35 77 8e 60  5 51 9d 9b b8 94 50 79 ec  f 86  1 18 2d
fail rand1 test
isal_mh_sha256_update_test: Fail
FAIL mh_sha256/mh_sha256_test (exit status: 8)

lscpu output:

Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             48 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      32
  On-line CPU(s) list:       0-31
Vendor ID:                   AuthenticAMD
  Model name:                AMD Ryzen 9 5950X 16-Core Processor
    CPU family:              25
    Model:                   33
    Thread(s) per core:      2
    Core(s) per socket:      16
    Socket(s):               1
    Stepping:                0
    Frequency boost:         enabled
    CPU(s) scaling MHz:      45%
    CPU max MHz:             5086.1812
    CPU min MHz:             582.1540
    BogoMIPS:                6800.24
    Flags:                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx 
                             mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf 
                             rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legac
                             y svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfct
                             r_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 sm
                             ep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm
                             _occup_llc cqm_mbm_total cqm_mbm_local user_shstk clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock
                              nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_sp
                             ec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_swap
Virtualization features:     
  Virtualization:            AMD-V
Caches (sum of all):         
  L1d:                       512 KiB (16 instances)
  L1i:                       512 KiB (16 instances)
  L2:                        8 MiB (16 instances)
  L3:                        64 MiB (2 instances)
NUMA:                        
  NUMA node(s):              1
  NUMA node0 CPU(s):         0-31
Vulnerabilities:             
  Gather data sampling:      Not affected
  Ghostwrite:                Not affected
  Indirect target selection: Not affected
  Itlb multihit:             Not affected
  L1tf:                      Not affected
  Mds:                       Not affected
  Meltdown:                  Not affected
  Mmio stale data:           Not affected
  Reg file data sampling:    Not affected
  Retbleed:                  Not affected
  Spec rstack overflow:      Mitigation; Safe RET
  Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:                Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI N
                             ot affected
  Srbds:                     Not affected
  Tsx async abort:           Not affected

GCC version: gcc (GCC) 15.1.1 20250425

Workaround

Build from master branch (currently at 41ba5e1).

## Issue When running `make check` [on the latest release v2.25.0](https://github.com/intel/isa-l_crypto/releases/tag/v2.25.0), tests fail: <img width="725" height="873" alt="Image" src="https://github.com/user-attachments/assets/2f37f638-2b6e-4135-a7e2-72da4f71aa11" /> ## Logs/System Info `test-suite.log`: ``` ============================================= libisal_crypto 2.25.0: ./test-suite.log ============================================= # TOTAL: 37 # PASS: 36 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 System information (uname -a): Linux 6.15.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 19 Jun 2025 14:41:19 +0000 x86_64 Distribution information (/etc/os-release): NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" .. contents:: :depth: 2 FAIL: mh_sha256/mh_sha256_test ============================== isal_mh_sha256_update_test: mh_sha256 fail test ref: 88 f5 d1 50 4c 95 2e f8 ba e 68 fa c7 86 fd 71 d5 8b 83 d9 a4 4c 8a 10 b9 c9 44 8 cd e0 c3 c4 test: e 2 f2 30 df 10 2a 99 24 5 5d 80 b7 a5 35 77 8e 60 5 51 9d 9b b8 94 50 79 ec f 86 1 18 2d fail rand1 test isal_mh_sha256_update_test: Fail FAIL mh_sha256/mh_sha256_test (exit status: 8) ``` `lscpu` output: ``` Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 32 On-line CPU(s) list: 0-31 Vendor ID: AuthenticAMD Model name: AMD Ryzen 9 5950X 16-Core Processor CPU family: 25 Model: 33 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 1 Stepping: 0 Frequency boost: enabled CPU(s) scaling MHz: 45% CPU max MHz: 5086.1812 CPU min MHz: 582.1540 BogoMIPS: 6800.24 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legac y svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfct r_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 sm ep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm _occup_llc cqm_mbm_total cqm_mbm_local user_shstk clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_sp ec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_swap Virtualization features: Virtualization: AMD-V Caches (sum of all): L1d: 512 KiB (16 instances) L1i: 512 KiB (16 instances) L2: 8 MiB (16 instances) L3: 64 MiB (2 instances) NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-31 Vulnerabilities: Gather data sampling: Not affected Ghostwrite: Not affected Indirect target selection: Not affected Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Not affected Reg file data sampling: Not affected Retbleed: Not affected Spec rstack overflow: Mitigation; Safe RET Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI N ot affected Srbds: Not affected Tsx async abort: Not affected ``` GCC version: `gcc (GCC) 15.1.1 20250425` ## Workaround Build from `master` branch (currently at [41ba5e1](https://github.com/intel/isa-l_crypto/commit/41ba5e1f8e027816bac0f6d3ba281a4b37cddc2b)).
pablodelara commented 2025-11-28 04:14:21 -06:00 (Migrated from github.com)

Looks similar to #165

Looks similar to #165
pablodelara commented 2025-12-15 11:47:20 -06:00 (Migrated from github.com)

I cannot reproduce this on Intel processor, but it looks like issue #165, which can be resolved passing -fno-strict-aliasing when compiling. The issue would only be in reference code in the tests, so it would be a minor issue anyway. I'm closing this issue, feel free to reopen if the workaround does not help.

I cannot reproduce this on Intel processor, but it looks like issue #165, which can be resolved passing -fno-strict-aliasing when compiling. The issue would only be in reference code in the tests, so it would be a minor issue anyway. I'm closing this issue, feel free to reopen if the workaround does not help.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-intel/isa-l_crypto#162
No description provided.