Comment # 8 on bug 907692 from
for 3 different 64-bit CPU cases, all running opensuse 13.2

    (1) CASE: @ VM, with flags:      +ssse3 +aes
    (2) CASE: @ laptop, with flags:  +ssse3 -aes
    (3) CASE: @ desktop, with flags: -ssse3 -aes

there's different behavior based on available CPU flags, requiring manual
intervention for crypto module insertion; autodetection/insertion of
cpu-specific modules doesn't seem to work

(1) CASE: @ VM, with flags: +ssse3 +aes

    cat /proc/cpuinfo | egrep "model name|flags"
        model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
        flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi
mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl aperfmperf pni
pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes f16c
rdrand hypervisor lahf_lm ida arat epb pln pts dtherm fsgsbase erms
        ...

    cat /etc/modprobe.d/99-local.conf
        (empty)

    modprobe aes
    modprobe sha1
    modprobe sha256
    modprobe sha512

    lsmod | egrep "aes|sha|sse"
        sha512_ssse3           42254  0
        sha512_generic         12942  1 sha512_ssse3
        sha256_ssse3           26322  0
        sha1_ssse3             25663  0
        aesni_intel           165374  0
        aes_x86_64             17131  1 aesni_intel
        lrw                    13286  1 aesni_intel
        glue_helper            13990  1 aesni_intel
        ablk_helper            13597  1 aesni_intel
        cryptd                 16263  3
ghash_clmulni_intel,aesni_intel,ablk_helper



(2) CASE: @ laptop, with flags: +ssse3 -aes

    cat /proc/cpuinfo | egrep "model name|flags"
        model name      : Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz
        flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr
pdcm pcid sse4_1 sse4_2 popcnt lahf_lm arat dtherm tpr_shadow vnmi flexpriority
ept vpid
        ...

    cat /etc/modprobe.d/99-local.conf
        (empty)
        alias aes aes-x86_64

    modprobe aes
        modprobe: ERROR: could not insert 'aesni_intel': No such device
    modprobe sha1
    modprobe sha256
    modprobe sha512

    echo "alias aes aes-x86_64" > /etc/modprobe.d/99-local.conf
    modprobe aes

    lsmod | egrep "aes|sha|sse"
        sha512_ssse3           42254  0
        sha512_generic         12942  1 sha512_ssse3
        sha256_ssse3           26322  0
        sha1_ssse3             25663  0
        aes_x86_64             17131  0


(3) CASE: @ desktop, with flags: -ssse3 -aes
    cat /proc/cpuinfo | egrep "model name|flags"
        model name      : AMD Phenom(tm) II X4 945 Processor
        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 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy
abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv
svm_lock nrip_save

    cat /etc/modprobe.d/99-local.conf
        (empty)

    modprobe aes
        modprobe: ERROR: could not insert 'aesni_intel': No such device
        modprobe: ERROR: could not insert 'padlock_aes': No such device
    modprobe sha1
        modprobe: ERROR: could not insert 'sha1_ssse3': No such device
    modprobe sha256
        modprobe: ERROR: could not insert 'sha256_ssse3': No such device
    modprobe sha512
        modprobe: ERROR: could not insert 'sha512_ssse3': No such device

checking

    ls -alR /lib/modules | egrep -i "aes|sha" | grep "ko$"
        -rw-r--r-- 1 root root 226K Nov 23 01:06 aesni-intel.ko
        -rw-r--r-- 1 root root  24K Nov 23 01:06 aes-x86_64.ko
        -rw-r--r-- 1 root root  36K Nov 23 01:06 camellia-aesni-avx2.ko
        -rw-r--r-- 1 root root  36K Nov 23 01:06 camellia-aesni-avx-x86_64.ko
        -rw-r--r-- 1 root root  26K Nov 23 01:06 sha1-ssse3.ko
        -rw-r--r-- 1 root root  26K Nov 23 01:06 sha256-ssse3.ko
        -rw-r--r-- 1 root root  48K Nov 23 01:06 sha512-ssse3.ko
        -rw-r--r--  1 root root  11K Nov 23 01:06 sha512_generic.ko
        -rw-r--r--  1 root root  17K Nov 23 01:06 padlock-aes.ko
        -rw-r--r--  1 root root  18K Nov 23 01:06 padlock-sha.ko
        -rw-r--r--  1 root root  15K Nov 23 01:08 radio-shark.ko
        -rw-r--r--  1 root root  27K Nov 23 01:08 shark2.ko
        -rw-r--r--  1 root root 7.2K Nov 23 01:08 ir-sharp-decoder.ko
        -rw-r--r--  1 root root  41K Nov 23 01:12 snd-maestro3.ko
        -rw-r--r-- 1 root root 226K Nov 26 01:13 aesni-intel.ko
        -rw-r--r-- 1 root root  24K Nov 26 01:13 aes-x86_64.ko
        -rw-r--r-- 1 root root  36K Nov 26 01:13 camellia-aesni-avx2.ko
        -rw-r--r-- 1 root root  36K Nov 26 01:13 camellia-aesni-avx-x86_64.ko
        -rw-r--r-- 1 root root  26K Nov 26 01:13 sha1-ssse3.ko
        -rw-r--r-- 1 root root  26K Nov 26 01:13 sha256-ssse3.ko
        -rw-r--r-- 1 root root  48K Nov 26 01:13 sha512-ssse3.ko
        -rw-r--r--  1 root root  11K Nov 26 01:13 sha512_generic.ko
        -rw-r--r--  1 root root  17K Nov 26 01:13 padlock-aes.ko
        -rw-r--r--  1 root root  18K Nov 26 01:13 padlock-sha.ko
        -rw-r--r--  1 root root  15K Nov 26 01:14 radio-shark.ko
        -rw-r--r--  1 root root  27K Nov 26 01:14 shark2.ko
        -rw-r--r--  1 root root 7.2K Nov 26 01:14 ir-sharp-decoder.ko
        -rw-r--r--  1 root root  41K Nov 26 01:24 snd-maestro3.ko

    cat /etc/modprobe.d/99-local.conf
        (empty)

    echo "alias aes aes-x86_64"        >> /etc/modprobe.d/99-local.conf
    echo "alias sha512 sha512_generic" >> /etc/modprobe.d/99-local.conf

    modprobe aes
    modprobe sha512

but, as there's no 'generic' module alternative for sha256/sha1, still

    modprobe sha256
        modprobe: ERROR: could not insert 'sha256_ssse3': No such device
    modprobe sha1
        modprobe: ERROR: could not insert 'sha1_ssse3': No such device

so,

    lsmod | egrep "aes|sha|sse" | grep -v sharp
        sha512_generic         12942  0 
        aes_x86_64             17131  0 


two questions:

(A) why is this autodetection/insertion failing in the 1st place?
(B) for case (3), where are the 'generic' modules for sha256 & sha1?  sha512 is
available ...


You are receiving this mail because: