{"action":"opened","issue":{"url":"https://api.github.com/repos/openssl/openssl/issues/5384","repository_url":"https://api.github.com/repos/openssl/openssl","labels_url":"https://api.github.com/repos/openssl/openssl/issues/5384/labels{/name}","comments_url":"https://api.github.com/repos/openssl/openssl/issues/5384/comments","events_url":"https://api.github.com/repos/openssl/openssl/issues/5384/events","html_url":"https://github.com/openssl/openssl/issues/5384","id":297596848,"number":5384,"title":"Segmentation fault in _bsaes_key_convert on X64 Linux - version  1.0.2k-fips","user":{"login":"jimmyOIS","id":36520289,"avatar_url":"https://avatars0.githubusercontent.com/u/36520289?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyOIS","html_url":"https://github.com/jimmyOIS","followers_url":"https://api.github.com/users/jimmyOIS/followers","following_url":"https://api.github.com/users/jimmyOIS/following{/other_user}","gists_url":"https://api.github.com/users/jimmyOIS/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyOIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyOIS/subscriptions","organizations_url":"https://api.github.com/users/jimmyOIS/orgs","repos_url":"https://api.github.com/users/jimmyOIS/repos","events_url":"https://api.github.com/users/jimmyOIS/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyOIS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-15T21:08:12Z","updated_at":"2018-02-15T21:08:12Z","closed_at":null,"author_association":"NONE","body":"Problem experienced on x64 Centos 7\r\n\r\nOpenSSL 1.0.2k-fips  26 Jan 2017\r\nbuilt on: reproducible build, date unspecified\r\nplatform: linux-x86_64\r\noptions:  bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) \r\ncompiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM\r\nOPENSSLDIR: \"/etc/pki/tls\"\r\nengines:  dynamic \r\n\r\nUsing function SSL_CTX_use_PrivateKey_file we get a seg fault in some programs. Problem appears to be alignment problem as described below:\r\n\r\nFile: crypto/aes/bsaes-x86_64.s\r\n\r\nIn the function\tbsaes_cbc_encrypt\r\n\r\nIf rsp is not aligned on 16 byte boundary - when space is reserved on the stack for use by _bsaes_cbc_encrypt then seg fault occurs. \r\n\r\n\tmovl\t%eax,%edx\r\n\tshlq\t$7,%rax\r\n\tsubq\t$96,%rax\r\n\tsubq\t%rax,%rsp\r\n\r\n\tmovq\t%rsp,%rax\r\n\tmovq\t%r15,%rcx\r\n\tmovl\t%edx,%r10d\r\n\tcall\t_bsaes_key_convert\r\n\r\nin the function _bsaes_key_convert\r\n\r\nseg fault when rax is used as destination\r\n\r\n\tmovdqa\t%xmm7,(%rax)\r\n\r\nIssue still exists in openssl-1.1.1-pre1.\r\n\r\n"}}
{"actor":{"display_login":"jimmyOIS"}}