Modify

Opened 7 years ago

Last modified 4 years ago

#8975 new defect

openssl crashes with hardware crypto on alix

Reported by: grulli Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: openssl geode-aes cryptodev x86 Cc:

Description

On an PCengines Alix 3d3 i get this error if i call openssl

root@OpenWrt:/# openssl engine
general protection fault: 0000 #7
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in: cryptodev(P) cryptosoft via_rhine leds_alix2 ip6t_REJECT ip6t_LOG ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables sit tunnel4 ppp_async ppp_generic slhc crc_ccitt ocf(P) geode_aes ecb cryptomgr crypto_hash crypto_blkcipher aead crypto_algapi ipv6 [last unloaded: cryptodev]

Pid: 4254, comm: openssl Tainted: P D W (2.6.32.29 #2)
EIP: 0060:[<d20538ac>] EFLAGS: 00010282 CPU: 0
EAX: fffffffe EBX: cec4979c ECX: 00000000 EDX: 00008010
ESI: d2054173 EDI: cef27700 EBP: ced39e7c ESP: ced39d34

DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068

Process openssl (pid: 4254, ti=ced39000 task=cf884a20 task.ti=ced39000)
Stack:

cf40aac4 00000000 00000000 c104693c 00000000 00000007 00000020 d2054a00

<0> cf2d8a00 00000000 02000000 d0a58a9e cf398848 cf398840 00000004 00000000
<0> ced39e7c cf2d8a00 00000282 00000000 00000282 ced39f00 02000000 00000007
Call Trace:

[<c104693c>] ? 0xc104693c
[<d0a58a9e>] ? 0xd0a58a9e
[<d2df2b1d>] ? 0xd2df2b1d
[<c12df000>] ? 0xc12df000
[<c10d8680>] ? 0xc10d8680
[<c107acb8>] ? 0xc107acb8
[<c10d870c>] ? 0xc10d870c
[<c1072aa0>] ? 0xc1072aa0
[<c1072aa0>] ? 0xc1072aa0
[<c1018a30>] ? 0xc1018a30
[<c10d8680>] ? 0xc10d8680
[<c107acb8>] ? 0xc107acb8
[<c104ba38>] ? 0xc104ba38
[<d2df3cb0>] ? 0xd2df3cb0
[<d2df3cc1>] ? 0xd2df3cc1
[<c1077739>] ? 0xc1077739
[<c1058e6d>] ? 0xc1058e6d
[<c10777dd>] ? 0xc10777dd
[<c1002b45>] ? 0xc1002b45

Code: e8 1d 01 d0 c1 f8 03 39 c6 72 ac 85 c9 89 74 24 14 74 0c c7 04 24 fd 3f 05 d2 e8 b5 11 1e ef 8b 13 8b 42 08 8b 12 80 e6 80 74 2c <81> 08 00 01 00 00 8b 03 8b 4d 04 8b 55 0c 8b 70 08 83 c1 07 89
EIP: [<d20538ac>] SS:ESP 0068:ced39d34
---[ end trace a7919e7f17c0a72d ]---
Segmentation fault
root@OpenWrt:/#

my config is here http://paste.pocoo.org/raw/348140/

i get this error reproducable from several revisions on trunk, this message is from trunk:25865

my dmesg is here: http://paste.pocoo.org/raw/348142/

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by jow

  • Priority changed from normal to response-needed

The info is useless. Please rebuild your kernel with symbol table information and post an annotated oops here.

comment:2 Changed 7 years ago by grulli

here is the message with symbol table info on:

root@OpenWrt:/# openssl engine

general protection fault: 0000 [#1] 
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in: via_rhine leds_alix2 nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc crc_ccitt cryptosoft cryptodev(P) ocf(P) geode_aes ecb cryptomgr crypto_hash crypto_blkcipher aead crypto_algapi

Pid: 1449, comm: openssl Tainted: P        W  (2.6.32.29 #1) 
EIP: 0060:[<d09978ac>] EFLAGS: 00010282 CPU: 0
EIP is at 0xd09978ac
EAX: fffffffe EBX: cf3cf484 ECX: 00000000 EDX: 00008010
ESI: d0998173 EDI: ced303e0 EBP: ce4d7e7c ESP: ce4d7d34
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process openssl (pid: 1449, ti=ce4d7000 task=cfaa0a20 task.ti=ce4d7000)
Stack:
 c1309a80 00000000 00000004 0002005a 00000000 00000001 00000001 d0998a20
<0> cfaa6400 00000000 02000000 d0975a9e cf022008 cf022000 00000004 00000000
<0> ce4d7e7c cfaa6400 00000282 00000000 00000282 ce4d7f00 02000000 00000001
Call Trace:
 [<d0975a9e>] ? crypto_newsession+0x20e/0x2e0 [ocf]
 [<d0987b1d>] ? 0xd0987b1d
 [<c104f73d>] ? ____pagevec_lru_add+0x10d/0x120
 [<c104853d>] ? add_to_page_cache_lru+0x4d/0x70
 [<c1048b89>] ? grab_cache_page_nowait+0x69/0xa0
 [<c10d680d>] ? squashfs_readpage+0x6fd/0x7b0
 [<c104d178>] ? __alloc_pages_nodemask+0xf8/0x540
 [<c104d178>] ? __alloc_pages_nodemask+0xf8/0x540
 [<d0988cb0>] ? 0xd0988cb0
 [<d0988cc1>] ? 0xd0988cc1
 [<c1078ec9>] ? do_vfs_ioctl+0x569/0x5d0
 [<c105a5dd>] ? handle_mm_fault+0x21d/0x530
 [<c1078f6d>] ? sys_ioctl+0x3d/0x70
 [<c1002b45>] ? syscall_call+0x7/0xb
Code: e8 1d 01 d0 c1 f8 03 39 c6 72 ac 85 c9 89 74 24 14 74 0c c7 04 24 fd 7f 99 d0 e8 15 d4 89 f0 8b 13 8b 42 08 8b 12 80 e6 80 74 2c <81> 08 00 01 00 00 8b 03 8b 4d 04 8b 55 0c 8b 70 08 83 c1 07 89 
EIP: [<d09978ac>] 0xd09978ac SS:ESP 0068:ce4d7d34
---[ end trace a7919e7f17c0a727 ]---
Segmentation fault

if I unload cryptodev or cryptosoft openssl works.
do you need anything else?

comment:3 Changed 7 years ago by anonymous

try using the amd aes crypto engine without using cryptodev but the af_alg plugin for openssl.
http://carnivore.it/2011/04/23/openssl_-_af_alg

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.