All of
 help / color / mirror / Atom feed
From: syzbot <>
Subject: BUG: sleeping function called from invalid context at crypto/skcipher.c:LINE
Date: Sun, 14 Apr 2019 04:26:04 -0700	[thread overview]
Message-ID: <> (raw)


syzbot found the following crash on:

HEAD commit:    e0a092eb Merge branch 'smc-next'
git tree:       net-next
console output:
kernel config:
dashboard link:
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:

BUG: sleeping function called from invalid context at crypto/skcipher.c:477
in_atomic(): 1, irqs_disabled(): 0, pid: 12, name: kworker/0:1
2 locks held by kworker/0:1/12:
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at: __write_once_size  
include/linux/compiler.h:220 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at: arch_atomic64_set  
arch/x86/include/asm/atomic64_64.h:34 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at: atomic64_set  
include/asm-generic/atomic-instrumented.h:855 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at: atomic_long_set  
include/asm-generic/atomic-long.h:40 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at: set_work_data  
kernel/workqueue.c:619 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at:  
set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline]
  #0: 000000000864d9ff ((wq_completion)crypto){+.+.}, at:  
process_one_work+0x87e/0x1790 kernel/workqueue.c:2240
  #1: 000000008b3d6218 ((work_completion)(&cpu_queue->work)){+.+.}, at:  
process_one_work+0x8b4/0x1790 kernel/workqueue.c:2244
Preemption disabled at:
[<ffffffff830d4130>] local_bh_disable include/linux/bottom_half.h:19  
[<ffffffff830d4130>] cryptd_skcipher_complete+0x90/0x170 crypto/cryptd.c:471
CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.1.0-rc4+ #135
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:77 [inline]
  dump_stack+0x172/0x1f0 lib/dump_stack.c:113
  ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6190
  __might_sleep+0x95/0x190 kernel/sched/core.c:6143
  skcipher_walk_virt+0x11e/0x150 crypto/skcipher.c:477
  xor_tweak+0x146/0x350 crypto/xts.c:105
  xor_tweak_post crypto/xts.c:133 [inline]
  crypt_done+0x87/0xa0 crypto/xts.c:141
  cryptd_skcipher_complete+0xbf/0x170 crypto/cryptd.c:472
  cryptd_skcipher_decrypt+0x2f7/0x420 crypto/cryptd.c:532
  cryptd_queue_worker+0x126/0x1f0 crypto/cryptd.c:193
  process_one_work+0x98e/0x1790 kernel/workqueue.c:2269
  worker_thread+0x98/0xe40 kernel/workqueue.c:2415
  kthread+0x357/0x430 kernel/kthread.c:253
  ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352

This bug is generated by a bot. It may contain errors.
See for more information about syzbot.
syzbot engineers can be reached at

syzbot will keep track of this bug report. See: for how to communicate with syzbot.

             reply	other threads:[~2019-04-14 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-14 11:26 syzbot [this message]
2019-04-14 12:03 ` crypto: xts - Fix atomic sleep when walking skcipher Herbert Xu
2019-04-14 16:35   ` Eric Biggers
2019-04-15  6:38     ` Herbert Xu
2019-04-15  6:35   ` [v2 PATCH] " Herbert Xu
2019-04-15  8:56     ` Ondrej Mosnacek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.