I have good and bad news.

First the good news, I got engine libraries compiled and packaged into
openwrt image:

root@OpenWrt:/# ls -al /usr/lib/engines/
drwxr-xr-x    2 root     root           227 Mar 30 12:59 .
drwxr-xr-x    6 root     root           452 Mar 30 11:54 ..
-rw-r--r--    1 root     root          1274 Mar 30 12:59 lib4758cca.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libaep.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libatalla.so
-rw-r--r--    1 root     root          1442 Mar 30 12:59 libcapi.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libchil.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libcswift.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libgmp.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libnuron.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libpadlock.so
-rw-r--r--    1 root     root          1290 Mar 30 12:59 libsureware.so
-rw-r--r--    1 root     root          1274 Mar 30 12:59 libubsec.so


The bad news that openssl crashes:

root@OpenWrt:/# openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc ae
s-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed | awk -v ORS="" '$1 ~
/OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} $1 ~ /(des|
aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""
} END { print "\n" }' | sed 's/\.\(..\)k/\10/g'
[  423.683985] padlock_sha: Fallback driver 'sha1' could not be loaded!
[  423.703224] BUG: unable to handle kernel NULL pointer dereference at 00000052
[  423.713155] IP: [<f8883103>] init_module+0x9b3/0xb20 [cryptosoft]
[  423.713155] *pde = 00000000
[  423.713155] Oops: 0000 [#7]
[  423.713155] Modules linked in: via_velocity via_rhine tg3 sis900
r8169 pcnet32 ne2k_pci 8390 e100 8139too 3c59x nf_nat_irc nf_nat_ftp
nf_conntrack_irc nf_conntrack_ftp ipt_MASQUERADE iptable_nat xt_nat
nf_nat_ipv4 nf_nat pppoe xt_conntrack xt_CT iptable_raw xt_state
nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppox libphy ipt_REJECT
xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit
iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables hwmon e1000
ppp_async ppp_generic slhc natsemi crc_ccitt cryptosoft cryptodev(P)
ocf(P) padlock_sha padlock_aes aes_i586 crypto_blkcipher aead
[  423.713155] Pid: 1791, comm: openssl Tainted: P      D      3.7.10
#2 VIA Technologies, Inc. CN700-8237/CN700-8237
[  423.713155] EIP: 0060:[<f8883103>] EFLAGS: 00010282 CPU: 0
[  423.713155] EIP is at init_module+0x9b3/0xb20 [cryptosoft]
[  423.713155] EAX: f6b9d680 EBX: f6b9d680 ECX: 00000000 EDX: 00000026
[  423.713155] ESI: f694669c EDI: f88834be EBP: f7055e68 ESP: f7055d50
[  423.713155]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[  423.713155] CR0: 8005003b CR2: 00000052 CR3: 337e5000 CR4: 00000690
[  423.713155] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[  423.713155] DR6: ffff0ff0 DR7: 00000400
[  423.713155] Process openssl (pid: 1791, ti=f7054000 task=f697bc20
task.ti=f7054000)
[  423.713155] Stack:
[  423.713155]  f6b9d480 0000001c 00000007 f6960000 00000000 00000007
f8883d60 f6960000
[  423.713155]  00000000 02000000 f88685d6 c10a19d3 00000246 f6ab4820
f7055e68 f6960000
[  423.713155]  00000292 00000000 00000292 02000000 f7055f10 00000007
c01c6365 f7055e38
[  423.713155] Call Trace:
[  423.713155]  [<f88685d6>] ? crypto_newsession+0x206/0x3a0 [ocf]
[  423.713155]  [<c10a19d3>] ? __alloc_fd+0x43/0xd0
[  423.713155]  [<f8875b0f>] ? 0xf8875b0e
[  423.713155]  [<f88751db>] ? 0xf88751da
[  423.713155]  [<c11c2062>] ? misc_open+0x142/0x150
[  423.713155]  [<c1090510>] ? chrdev_open+0xc0/0x120
[  423.713155]  [<c108b847>] ? do_dentry_open.isra.16+0x187/0x200
[  423.713155]  [<c107b0f0>] ? handle_pte_fault+0x220/0x4c0
[  423.713155]  [<c10989c4>] ? do_filp_open+0x34/0x90
[  423.713155]  [<c107b42f>] ? handle_mm_fault+0x9f/0xc0
[  423.713155]  [<f8876d60>] ? 0xf8876d5f
[  423.713155]  [<c109a88b>] ? do_vfs_ioctl+0x4fb/0x550
[  423.713155]  [<c1021fa0>] ? vmalloc_sync_all+0xc0/0xc0
[  423.713155]  [<c1021e92>] ? __do_page_fault+0x382/0x3d0
[  423.713155]  [<c108c983>] ? do_sys_open+0x193/0x1a0
[  423.713155]  [<c1099622>] ? do_fcntl+0x142/0x3d0
[  423.713155]  [<c109a91c>] ? sys_ioctl+0x3c/0x70
[  423.713155]  [<c1348d85>] ? syscall_call+0x7/0xb
[  423.713155] Code: 8b 55 0c 8b 49 20 e8 4d 54 8c c8 8b 45 08 85 c0
74 0e 8b 16 89 42 24 8b 36 e9 04 01 00 00 66 90 8b 06 f6 40 11 80 74
18 8b 50 18 <8b> 52 2c 8b 52 f8 89 50 24 8b 36 e9 e7 00 00 00 90 8d 74
26 00
[  423.713155] EIP: [<f8883103>] init_module+0x9b3/0xb20 [cryptosoft]
SS:ESP 0068:f7055d50
[  423.713155] CR2: 0000000000000052
[  424.554362] ---[ end trace 2ece4994317971c5 ]---
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to