From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Wahren Subject: crypto: mxs-dcp: do not call blocking ops when !TASK_RUNNING; state=1 Date: Tue, 23 Aug 2016 22:38:23 +0200 (CEST) Message-ID: <140047983.403523.225ddbfe-fd96-4f9b-a2b9-e0173af882ba.open-xchange@email.1und1.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: linux-crypto@vger.kernel.org, Fabio Estevam To: Herbert Xu Return-path: Received: from mout.kundenserver.de ([212.227.126.134]:58335 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734AbcHWUif (ORCPT ); Tue, 23 Aug 2016 16:38:35 -0400 Sender: linux-crypto-owner@vger.kernel.org List-ID: Hi, i'm using a iMX233-OLinuXino board and i get the following warning during boot with 4.8.0-rc2-next-20160819: [ 2.450000] ------------[ cut here ]------------ [ 2.450000] WARNING: CPU: 0 PID: 42 at kernel/sched/core.c:7602 __might_sleep+0x8c/0xa0 [ 2.470000] do not call blocking ops when !TASK_RUNNING; state=1 set at [] dcp_chan_thread_aes+0x24/0x664 [ 2.480000] Modules linked in: [ 2.480000] CPU: 0 PID: 42 Comm: mxs_dcp_chan/ae Not tainted 4.8.0-rc2-next-20160819-dirty #2 [ 2.490000] mxs-dcp 80028000.dcp: Failed to register sha1 hash! [ 2.500000] Hardware name: Freescale MXS (Device Tree) [ 2.510000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 2.520000] [] (show_stack) from [] (__warn+0xd8/0x100) [ 2.530000] [] (__warn) from [] (warn_slowpath_fmt+0x38/0x48) [ 2.540000] [] (warn_slowpath_fmt) from [] (__might_sleep+0x8c/0xa0) [ 2.540000] [] (__might_sleep) from [] (mutex_lock_nested+0x24/0x39c) [ 2.550000] [] (mutex_lock_nested) from [] (dcp_chan_thread_aes+0x54/0x664) [ 2.560000] [] (dcp_chan_thread_aes) from [] (kthread+0xd0/0xf0) [ 2.580000] [] (kthread) from [] (ret_from_fork+0x14/0x28) [ 2.590000] ---[ end trace e2182161e464af25 ]--- What would be the right fix for this issue? Regards Stefan