Regression in tls selftest on cortex a-53

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ard

Kernel tls selftest ' msg_more' is broken with the latest gcm changes for optimizing it on cortex a-53.
(I am using David Miller's net-next branch.)

Reverting following commits fixes the problem.

1. crypto: arm64/ghash-ce - implement 4-way aggregation
2. crypto: arm64/ghash-ce - replace NEON yield check with block limit
3. crypto: arm64/aes-ce-gcm - don't reload key schedule if avoidable

The kernel crash log is given below.

Regards

Vakul


root@Ubuntu:~/ktls_rx# dmesg -c
[   62.660133] WARNING: CPU: 0 PID: 3113 at crypto/skcipher.c:134 skcipher_walk_done+0x244/0x258
[   62.660140] Modules linked in: tls strparser xt_conntrack ipt_REJECT nf_reject_ipv4 ip6table_filter ip6_tables xt_CHECKSUM cpufreq_powersave cpufreq_conservative realtek crc32_ce crct10dif_ce pfe(C)
[   62.660186] CPU: 0 PID: 3113 Comm: tls Tainted: G         C        4.18.0-08103-ge7d40ac12437-dirty #46
[   62.660189] Hardware name: LS1012A RDB Board (DT)
[   62.660194] pstate: 00000005 (nzcv daif -PAN -UAO)
[   62.660200] pc : skcipher_walk_done+0x244/0x258
[   62.660207] lr : gcm_encrypt+0x18c/0x488
[   62.660210] sp : ffff00000afa3a20
[   62.660213] x29: ffff00000afa3a20 x28: ffff800032e2f810 
[   62.660220] x27: ffff8000329ab880 x26: ffff800032e2f810 
[   62.660227] x25: ffff8000338a8480 x24: ffff00000afa3b68 
[   62.660234] x23: ffff00000afa3ba8 x22: ffff8000329ab900 
[   62.660240] x21: 0000000000000004 x20: 0000000000000010 
[   62.660247] x19: ffff00000afa3ad0 x18: 0000000000000000 
[   62.660254] x17: 0000000000000008 x16: 0000000000000000 
[   62.660260] x15: 000000000000003d x14: 00000000000000c1 
[   62.660267] x13: 000000000000001e x12: 00000000000000d0 
[   62.660273] x11: 0000000036f8dde9 x10: 00000000000000f6 
[   62.660280] x9 : 0000000000000076 x8 : 0000000041228b20 
[   62.660287] x7 : 0000000078feb271 x6 : 0000000000000000 
[   62.660293] x5 : ffff0000080cb63c x4 : 0000000000000000 
[   62.660300] x3 : ffff8000329abaf8 x2 : 0000000000000001 
[   62.660306] x1 : 0000000000000004 x0 : 0000000000000002 
[   62.660313] Call trace:
[   62.660319]  skcipher_walk_done+0x244/0x258
[   62.660324]  gcm_encrypt+0x18c/0x488
[   62.660335]  tls_push_record+0x1b4/0x3a8 [tls]
[   62.660343]  tls_sw_sendmsg+0x4e4/0x538 [tls]
[   62.660349]  inet_sendmsg+0x2c/0xf8
[   62.660356]  sock_sendmsg+0x18/0x30
[   62.660360]  __sys_sendto+0x104/0x138
[   62.660365]  __arm64_sys_sendto+0x24/0x30
[   62.660372]  el0_svc_common+0x60/0xe8
[   62.660377]  el0_svc_handler+0x2c/0x80
[   62.660382]  el0_svc+0x8/0xc
[   62.660385] ---[ end trace 93d36590979d5955 ]---




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux