Wind River Support Network

HomeDefectsLIN10-3618
Fixed

LIN10-3618 : Warning in migrate_disable() with arm64 crypto enabled kernel

Created: Mar 27, 2018    Updated: Dec 3, 2018
Resolved Date: Apr 24, 2018
Found In Version: 10.17.41.1
Fix Version: 10.17.41.7
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Kernel

Description

When cryptsetup command ran with arm64 crypto enabled kernel, following warning was gotten. This problem seems occur only preempt-rt kernel.

[ 79.383286] ------------[ cut here ]------------
[ 79.383295] WARNING: CPU: 2 PID: 565 at /WindRiver-wrlinux-9/bcm-587xx-rcpl14-rt/build/tmp/work-shared/bcm-587xx/kernel-source/kernel/sched/core.c:3395 migrate_disable+0xcc/0xd8
[ 79.383302] Modules linked in: twofish_generic twofish_common serpent_generic iproc_rng200 rng_core softdog

[ 79.383306] CPU: 2 PID: 565 Comm: cryptsetup Not tainted 4.8.26-rt10-WR9.0.0.14_preempt-rt #1
[ 79.383307] Hardware name: Broadcom NS2 SVK (DT)
[ 79.383309] task: ffffffc36bfd8000 task.stack: ffffffc36951c000
[ 79.383311] PC is at migrate_disable+0xcc/0xd8
[ 79.383313] LR is at migrate_disable+0xb4/0xd8
[ 79.383315] pc : [<ffffff80080c73ec>] lr : [<ffffff80080c73d4>] pstate: 60000145
[ 79.383315] sp : ffffffc36951fb50
[ 79.383318] x29: ffffffc36951fb50 x28: 0000000000000001
[ 79.383321] x27: ffffffc36bd6b000 x26: ffffffc36951c000
[ 79.383323] x25: ffffff8008ae6000 x24: 0000000000000000
[ 79.383325] x23: ffffffbf0da56840 x22: ffffff8008abc000
[ 79.383327] x21: 0000000000000000 x20: 4000000000000000
[ 79.383329] x19: ffffffc36bfd8000 x18: 0000000000000000
[ 79.383331] x17: 0000007fa488fb60 x16: ffffff80081d9438
[ 79.383332] x15: 0000000000000000 x14: ffffffc36d1dd698
[ 79.383334] x13: 0160000080bbbfd3 x12: 0000000000000121
[ 79.383336] x11: 0000000000000001 x10: 00000000000008e0
[ 79.383338] x9 : ffffffc36951c000 x8 : ffffffc36f004a00
[ 79.383340] x7 : ffffffc36f371288 x6 : 0000000000000000
[ 79.383342] x5 : 0000000000000000 x4 : 0000000000100000
[ 79.383344] x3 : 0000000000000000 x2 : 0000000000000000
[ 79.383346] x1 : 0000000000000001 x0 : ffffff8008bb2ad3

[ 79.383347] ---[ end trace 0000000000000002 ]---
[ 79.383348] Call trace:
[ 79.383351] Exception stack(0xffffffc36951f980 to 0xffffffc36951fab0)
[ 79.383353] f980: ffffffc36bfd8000 0000008000000000 ffffffc36951fb50 ffffff80080c73ec
[ 79.383355] f9a0: ffffffc36bf07000 ffffffc36bfd8000 ffffffc36951f9f0 ffffff80080cf318
[ 79.383357] f9c0: ffffffc36951c000 0000000000000140 ffffffc36f3712a8 00000000000003e8
[ 79.383359] f9e0: ffffffc36951fa78 ffffffc36951fa80 ffffffc36951fa00 ffffff800813aee8
[ 79.383360] fa00: ffffffc36951fa20 ffffff8008145adc ffffffc36f371200 ffffffc36f371288
[ 79.383362] fa20: ffffff8008bb2ad3 0000000000000001 0000000000000000 0000000000000000
[ 79.383363] fa40: 0000000000100000 0000000000000000 0000000000000000 ffffffc36f371288
[ 79.383365] fa60: ffffffc36f004a00 ffffffc36951c000 00000000000008e0 0000000000000001
[ 79.383366] fa80: 0000000000000121 0160000080bbbfd3 ffffffc36d1dd698 0000000000000000
[ 79.383368] faa0: ffffff80081d9438 0000007fa488fb60
[ 79.383370] [<ffffff80080c73ec>] migrate_disable+0xcc/0xd8
[ 79.383373] [<ffffff800816f694>] free_hot_cold_page+0xf4/0x3e8
[ 79.383376] [<ffffff800817864c>] __put_page+0x54/0x60
[ 79.383380] [<ffffff800840072c>] skcipher_pull_sgl+0x11c/0x178
[ 79.383383] [<ffffff8008401b74>] skcipher_recvmsg+0x5a4/0x658
[ 79.383387] [<ffffff8008698c80>] sock_read_iter+0xa0/0xd8
[ 79.383390] [<ffffff80081d700c>] new_sync_read+0xac/0xe8
[ 79.383392] [<ffffff80081d70bc>] __vfs_read+0x74/0x90
[ 79.383394] [<ffffff80081d7fa4>] vfs_read+0x8c/0x138
[ 79.383396] [<ffffff80081d948c>] SyS_read+0x54/0xb0
[ 79.383398] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28
[ 79.383401] ------------[ cut here ]------------
[ 79.383404] WARNING: CPU: 2 PID: 565 at /WindRiver-wrlinux-9/bcm-587xx-rcpl14-rt/build/tmp/work-shared/bcm-587xx/kernel-source/kernel/sched/core.c:3426 migrate_enable+0x104/0x128
[ 79.383408] Modules linked in: twofish_generic twofish_common serpent_generic iproc_rng200 rng_core softdog

[ 79.383411] CPU: 2 PID: 565 Comm: cryptsetup Tainted: G W 4.8.26-rt10-WR9.0.0.14_preempt-rt #1
[ 79.383412] Hardware name: Broadcom NS2 SVK (DT)
[ 79.383413] task: ffffffc36bfd8000 task.stack: ffffffc36951c000
[ 79.383415] PC is at migrate_enable+0x104/0x128
[ 79.383417] LR is at migrate_enable+0xec/0x128
[ 79.383418] pc : [<ffffff80080c74fc>] lr : [<ffffff80080c74e4>] pstate: 60000145
[ 79.383419] sp : ffffffc36951fb30
[ 79.383421] x29: ffffffc36951fb30 x28: 000000437749b000
[ 79.383424] x27: ffffff8008bab000 x26: ffffff8008ac3f80
[ 79.383425] x25: ffffff8008ae6a98 x24: ffffffc37ff5ef80
[ 79.383427] x23: ffffffbf0da56840 x22: ffffffc37ff57918
[ 79.383429] x21: 0000000000000000 x20: 0000000000000001
[ 79.383431] x19: ffffffc36bfd8000 x18: 0000000000000000
[ 79.383433] x17: 0000007fa488fb60 x16: ffffff80081d9438
[ 79.383435] x15: 0000000000000000 x14: ffffffc36d1dd698
[ 79.383437] x13: 0160000080bbbfd3 x12: 0000000000000121
[ 79.383439] x11: 0000000000000001 x10: 00000000000008e0
[ 79.383441] x9 : ffffffc36951c000 x8 : ffffffc36f004a00
[ 79.383442] x7 : ffffffc36f371288 x6 : 0000000000000000
[ 79.383444] x5 : 0000000000100000 x4 : 0000000000100000
[ 79.383446] x3 : 0000000000100000 x2 : 0000000000100000
[ 79.383448] x1 : 0000000000000001 x0 : ffffff8008bb2ad3

[ 79.383449] ---[ end trace 0000000000000003 ]---
[ 79.383450] Call trace:
[ 79.383452] Exception stack(0xffffffc36951f960 to 0xffffffc36951fa90)
[ 79.383454] f960: ffffffc36bfd8000 0000008000000000 ffffffc36951fb30 ffffff80080c74fc
[ 79.383456] f980: ffffffc36bfd8000 0000008000000000 ffffffc36951fb50 ffffff80080c73ec
[ 79.383457] f9a0: ffffffc36bf07000 ffffffc36bfd8000 ffffffc36951f9f0 ffffff80080cf318
[ 79.383459] f9c0: ffffffc36951c000 0000000000000140 ffffffc36f3712a8 00000000000003e8
[ 79.383460] f9e0: ffffffc36951fa78 ffffffc36951fa80 ffffffc36951fa00 ffffff800813aee8
[ 79.383462] fa00: ffffff8008bb2ad3 0000000000000001 0000000000100000 0000000000100000
[ 79.383464] fa20: 0000000000100000 0000000000100000 0000000000000000 ffffffc36f371288
[ 79.383465] fa40: ffffffc36f004a00 ffffffc36951c000 00000000000008e0 0000000000000001
[ 79.383467] fa60: 0000000000000121 0160000080bbbfd3 ffffffc36d1dd698 0000000000000000
[ 79.383468] fa80: ffffff80081d9438 0000007fa488fb60
[ 79.383470] [<ffffff80080c74fc>] migrate_enable+0x104/0x128
[ 79.383473] [<ffffff80087f468c>] rt_spin_unlock+0x54/0x78
[ 79.383475] [<ffffff800816f8f8>] free_hot_cold_page+0x358/0x3e8
[ 79.383477] [<ffffff800817864c>] __put_page+0x54/0x60
[ 79.383479] [<ffffff800840072c>] skcipher_pull_sgl+0x11c/0x178
[ 79.383481] [<ffffff8008401b74>] skcipher_recvmsg+0x5a4/0x658
[ 79.383483] [<ffffff8008698c80>] sock_read_iter+0xa0/0xd8
[ 79.383485] [<ffffff80081d700c>] new_sync_read+0xac/0xe8
[ 79.383487] [<ffffff80081d70bc>] __vfs_read+0x74/0x90
[ 79.383489] [<ffffff80081d7fa4>] vfs_read+0x8c/0x138
[ 79.383490] [<ffffff80081d948c>] SyS_read+0x54/0xb0
[ 79.383492] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28 

Steps to Reproduce

1. Set up a project with preempt-rt kernel

./wrlinux-9/setup.sh --dl-layers --kernel preempt-rt --machine bcm-587xx

2. Modify conf/local.conf for perrmpt-rt kernel

KTYPE_ENABLED ?= "preempt-rt"
LINUX_KERNEL_TYPE ?= "preempt-rt"

3. Include cryptsetup package to the project

IMAGE_INSTALL += " cryptsetup"

4. Enable following kernel configs

CONFIG_ARM64_CRYPTO=y 
CONFIG_CRYPTO_SHA1_ARM64_CE=y 
CONFIG_CRYPTO_SHA2_ARM64_CE=y 
CONFIG_CRYPTO_AES_ARM64_CE=y 
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y 
CONFIG_CRYPTO_USER_API_SKCIPHER

5. Build the project

6. Boot the target

7. Run following command

$ cryptsetup benchmark --debug

8. check the dmesg

I attached the log as warning.log.

Other Downloads


Live chat
Online