On Sat, 2009-09-12 at 17:32 +0200, Andy Polyakov via RT wrote:

> Could you complement back-trace with 'info reg' output?

(gdb) bt
#0  _x86_64_Camellia_encrypt () at cmll-x86_64.s:74
#1  0x00007ffff7a7a4b4 in Camellia_cbc_encrypt () at cmll-x86_64.s:1686
#2  0x00007fffffffca30 in ?? ()
#3  0x000000000068e190 in ?? ()
#4  0x0000000000000000 in ?? ()
(gdb) info reg
rax            0x90a464 9479268
rbx            0x7ee5f47f       2128999551
rcx            0x0      0
rdx            0xcef1a9fe       3471944190
rsi            0xa6     166
rdi            0xaf     175
rbp            0x7ffff7a793c0   0x7ffff7a793c0
rsp            0x7fffffffadb8   0x7fffffffadb8
r8             0x263e264d       641607245
r9             0x34a1c456       883016790
r10            0x6824eed3       1747250899
r11            0xcef1a9fe       3471944190
r12            0x68e180 6873472
r13            0x68e180 6873472
r14            0x7fffffffeff0   140737488351216
r15            0x207fbfffffcb30 9147661865175856
rip            0x7ffff7a78570   0x7ffff7a78570 <_x86_64_Camellia_encrypt+16>
eflags         0x10282  [ SF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
mxcsr          0x1f80   [ IM DM ZM OM UM PM ]


> Verify that following fixes the problem:
> 
> --- crypto/camellia/asm/cmll-x86_64.pl  6 Apr 2009 15:13:16 -0000
> +++ crypto/camellia/asm/cmll-x86_64.pl  12 Sep 2009 15:20:49 -0000
> @@ -656,7 +656,7 @@
>         mov     %rsi,$out               # out argument
>         mov     %r8,%rbx                # ivp argument
>         mov     %rcx,$key               # key argument
> -       mov     272(%rcx),$keyend       # grandRounds
> +       mov     272(%rcx),${keyend}d    # grandRounds
> 
>         mov     %r8,$_ivp
>         mov     %rbp,$_rsp

Yes, this patch fixes the problem.

-- 
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to