crypto: tegra - a call trace is triggered in debug_smp_processor_id()
Subsystems (2)
[ 3968.199051] BUG: using smp_processor_id() in preemptible [00000000] code: 15840000.crypto/897 [ 3968.199061] caller is debug_smp_processor_id+0x20/0x30 [ 3968.199075] CPU: 1 UID: 0 PID: 897 Comm: 15840000.crypto Kdump: loaded Tainted: G W X ------ --- 6.12.0-131.1473_2053543615.el10.aarch64+rt-64k #1 PREEMPT_RT [ 3968.199080] Tainted: [W]=WARN, [X]=AUX [ 3968.199081] Hardware name: NVIDIA NVIDIA IGX Orin Development Kit/Jetson, BIOS 36.4.1-gcid-38375079 11/19/2024 [ 3968.199083] Call trace: [ 3968.199084] show_stack+0x34/0x98 (C) [ 3968.199091] dump_stack_lvl+0x80/0xa8 [ 3968.199095] dump_stack+0x18/0x2c [ 3968.199097] check_preemption_disabled+0x114/0x120 [ 3968.199100] debug_smp_processor_id+0x20/0x30 [ 3968.199102] xfrm_trans_queue_net+0x30/0x100 [ 3968.199107] xfrm_trans_queue+0x28/0x38 [ 3968.199110] xfrm4_transport_finish+0xec/0x278 [ 3968.199114] xfrm_input+0x60c/0xd90 [ 3968.199117] xfrm_input_resume+0x20/0x138 [ 3968.199121] esp_input_done+0x2c/0x50 [esp4] [ 3968.199130] authenc_verify_ahash_done+0x40/0x58 [ 3968.199135] crypto_finalize_request+0x3c/0x90 [crypto_engine] [ 3968.199142] crypto_finalize_hash_request+0x18/0x30 [crypto_engine] [ 3968.199145] tegra_sha_do_one_req+0x4c/0xd0 [tegra_se] [ 3968.199151] crypto_pump_requests.constprop.0+0x150/0x2a0 [crypto_engine] [ 3968.199154] crypto_pump_work+0x1c/0x30 [crypto_engine] [ 3968.199157] kthread_worker_fn+0x100/0x2c0 [ 3968.199161] kthread+0x114/0x130 [ 3968.199164] ret_from_fork+0x10/0x20
These commits show that crypto_finalize_hash_request() and crypto_finalize_skcipher_request() must be called under local_bh_disable(). Maybe the similar thing should be done to NVIDIA’s tegra crypto driver to avoid this warning.
56ddb9aa3b32 crypto: stm32/cryp - call finalize with bh disabled a853450bf4c7 crypto: xilinx - call finalize with bh disabled 7f22421103c5 crypto: gemini - call finalize with bh disabled dba633342994 crypto: amlogic - call finalize with bh disabled f75a749b6d78 crypto: sun8i-ce - call finalize with bh disabled b169b3766242 crypto: sun8i-ss - call finalize with bh disabled
Thanks.