Bug 33592 - gost3411-2012: illegal hardware instruction
Summary: gost3411-2012: illegal hardware instruction
Status: CLOSED FIXED
Alias: None
Product: Branch p8
Classification: Distributions
Component: streebog (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-p8@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-26 18:30 MSK by Дмитрий Державин
Modified: 2017-10-18 15:31 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Дмитрий Державин 2017-06-26 18:30:24 MSK
$ uname -mr
4.4.43-std-def-alt0.M80P.2 x86_64

$ gost3411-2012 -t
M1: 012345678901234567890123456789012345678901234567890123456789012
zsh: illegal hardware instruction  gost3411-2012 -t
Comment 1 Andrey Cherepanov 2017-06-27 10:23:51 MSK
cas@cas ~ $ gost3411-2012 -t
M1: 012345678901234567890123456789012345678901234567890123456789012
GOST R 34.11-2012 512 bit digest (M1): 0x1b54d01a4af5b9d5cc3d86d68d285462b19abc2475222f35c085122be4ba1ffa00ad30f8767b3a82384c6574f024c311e2a481332b08ef7f41797891c1646f48
GOST R 34.11-2012 256 bit digest (M1): 0x9d151eefd8590b89daa6ba6cb74af9275dd051026bb149a452fd84e5e57b5500

Какая машина и какая битность?
Comment 2 Дмитрий Державин 2017-06-27 11:07:19 MSK
(В ответ на комментарий №1)
> Какая машина и какая битность?

64 же.

$ cat /proc/cpuinfo 

[…]

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 18
model           : 1
model name      : AMD A8-3850 APU with Radeon(tm) HD Graphics
stepping        : 0
microcode       : 0x300000f
cpu MHz         : 2899.776
cache size      : 1024 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
apicid          : 3
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
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 aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter vmmcall
bugs            : fxsave_leak sysret_ss_attrs
bogomips        : 5799.55
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
Comment 3 Alexey Vissarionov 2017-06-27 13:01:51 MSK
%build
%ifarch x86_64
export CFLAGS="-march=core2 -mtune=sandybridge -mssse3"
%endif
%make_build
Comment 4 Repository Robot 2017-07-31 12:28:52 MSK
streebog-0.11-alt2.git8de633e -> sisyphus:

Mon Jul 31 2017 Andrey Cherepanov <cas@altlinux.org> 0.11-alt2.git8de633e
- Set compatibility flags (ALT #33592) Solution is supplied by gremlin@
Comment 5 Дмитрий Державин 2017-08-01 13:48:48 MSK
$ rpm -qv streebog
streebog-0.11-alt2.git8de633e
$ gost3411-2012 -t
M1: 012345678901234567890123456789012345678901234567890123456789012
zsh: illegal hardware instruction  gost3411-2012 -t
Comment 6 Andrey Cherepanov 2017-08-02 14:43:25 MSK
(В ответ на комментарий №5)
> $ rpm -qv streebog
> streebog-0.11-alt2.git8de633e
> $ gost3411-2012 -t
> M1: 012345678901234567890123456789012345678901234567890123456789012
> zsh: illegal hardware instruction  gost3411-2012 -t
Покажи свой

cat /proc/cpuinfo | grep ^flags | uniq
Comment 7 Andrey Cherepanov 2017-08-02 14:44:36 MSK
(В ответ на комментарий №6)
> (В ответ на комментарий №5)
> > $ rpm -qv streebog
> > streebog-0.11-alt2.git8de633e
> > $ gost3411-2012 -t
> > M1: 012345678901234567890123456789012345678901234567890123456789012
> > zsh: illegal hardware instruction  gost3411-2012 -t
> Покажи свой
> 
> cat /proc/cpuinfo | grep ^flags | uniq
Ой, уже есть. Прощу прощения.
Comment 8 Repository Robot 2017-10-16 17:28:09 MSK
streebog-0.11-alt3.git8de633e -> sisyphus:

Mon Oct 16 2017 Andrey Cherepanov <cas@altlinux.org> 0.11-alt3.git8de633e
- Completely fix for AMD CPUs (ALT #33592)
- Package man page
Comment 9 Дмитрий Державин 2017-10-18 15:31:28 MSK
Спасибо!