BUG: sleeping function called from invalid context at net/core/sock.c:2761 in_atomic(): 1, irqs_disabled(): 0, pid: 1404, name: kworker/0:2 2 locks held by kworker/0:2/1404: #0: ((wq_completion)"crypto"){+.+.}, at: [] __write_once_size include/linux/compiler.h:212 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] set_work_data kernel/workqueue.c:618 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:645 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] process_one_work+0xad4/0x1be0 kernel/workqueue.c:2083 #1: ((work_completion)(&cpu_queue->work)#2){+.+.}, at: [] process_one_work+0xb2f/0x1be0 kernel/workqueue.c:2087 CPU: 0 PID: 1404 Comm: kworker/0:2 Not tainted 4.15.0-rc1+ #198 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: crypto cryptd_queue_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6060 __might_sleep+0x95/0x190 kernel/sched/core.c:6013 lock_sock_nested+0x37/0x110 net/core/sock.c:2761 lock_sock include/net/sock.h:1465 [inline] af_alg_async_cb+0x86/0x1a0 crypto/af_alg.c:1039 cryptd_skcipher_complete+0x147/0x220 crypto/cryptd.c:469 cryptd_skcipher_decrypt+0x39f/0x5a0 crypto/cryptd.c:529 cryptd_queue_worker+0xff/0x1b0 crypto/cryptd.c:190 process_one_work+0xbfd/0x1be0 kernel/workqueue.c:2112 worker_thread+0x223/0x1990 kernel/workqueue.c:2246 kthread+0x37a/0x440 kernel/kthread.c:238 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:441 BUG: scheduling while atomic: kworker/1:1/24/0x00000201 2 locks held by kworker/1:1/24: #0: ((wq_completion)"crypto"){+.+.}, at: [] __write_once_size include/linux/compiler.h:212 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] set_work_data kernel/workqueue.c:618 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:645 [inline] #0: ((wq_completion)"crypto"){+.+.}, at: [] process_one_work+0xad4/0x1be0 kernel/workqueue.c:2083 #1: ((work_completion)(&cpu_queue->work)#2){+.+.}, at: [] process_one_work+0xb2f/0x1be0 kernel/workqueue.c:2087 Modules linked in: Kernel panic - not syncing: scheduling while atomic CPU: 1 PID: 24 Comm: kworker/1:1 Tainted: G W 4.15.0-rc1+ #198 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: crypto cryptd_queue_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 panic+0x1e4/0x41c kernel/panic.c:183 __schedule_bug+0x11f/0x130 kernel/sched/core.c:3177 schedule_debug kernel/sched/core.c:3194 [inline] __schedule+0x131c/0x2060 kernel/sched/core.c:3299 schedule+0xf5/0x430 kernel/sched/core.c:3434 __lock_sock+0x1dc/0x2f0 net/core/sock.c:2240 lock_sock_nested+0xf3/0x110 net/core/sock.c:2764 lock_sock include/net/sock.h:1465 [inline] af_alg_async_cb+0x86/0x1a0 crypto/af_alg.c:1039 cryptd_skcipher_complete+0x147/0x220 crypto/cryptd.c:469 cryptd_skcipher_decrypt+0x39f/0x5a0 crypto/cryptd.c:529 cryptd_queue_worker+0xff/0x1b0 crypto/cryptd.c:190 process_one_work+0xbfd/0x1be0 kernel/workqueue.c:2112 worker_thread+0x223/0x1990 kernel/workqueue.c:2246 kthread+0x37a/0x440 kernel/kthread.c:238 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:441 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..