Main-line Linux kernel tree http://www.kernel.org
Go to file
Herbert Xu 9ae4577bc0 crypto: api - Use work queue in crypto_destroy_instance
The function crypto_drop_spawn expects to be called in process
context.  However, when an instance is unregistered while it still
has active users, the last user may cause the instance to be freed
in atomic context.

Fix this by delaying the freeing to a work queue.

Fixes: 6bfd48096f ("[CRYPTO] api: Added spawns")
Reported-by: Florent Revest <revest@chromium.org>
Reported-by: syzbot+d769eed29cc42d75e2a3@syzkaller.appspotmail.com
Reported-by: syzbot+610ec0671f51e838436e@syzkaller.appspotmail.com
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Florent Revest <revest@chromium.org>
Acked-by: Florent Revest <revest@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-08-11 19:19:27 +08:00
arch crypto: arm64/aes - remove Makefile hack 2023-08-11 19:19:27 +08:00
block
certs
crypto crypto: api - Use work queue in crypto_destroy_instance 2023-08-11 19:19:27 +08:00
Documentation dt-bindings: crypto: add new compatible for stm32-hash 2023-07-22 13:59:37 +12:00
drivers crypto: hisilicon/sec - Do not check for 0 return after calling platform_get_irq() 2023-08-11 19:19:27 +08:00
fs Minor cleanups for 6.5: 2023-07-09 09:50:42 -07:00
include crypto: api - Use work queue in crypto_destroy_instance 2023-08-11 19:19:27 +08:00
init
io_uring
ipc
kernel dma-mapping fixes for Linux 6.5 2023-07-09 10:24:22 -07:00
lib
LICENSES
mm
net
rust
samples
scripts
security
sound
tools crypto: ccp - Add unit tests for dynamic boost control 2023-07-20 22:15:12 +12:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS crypto: ccp - Add Mario to MAINTAINERS 2023-07-20 22:15:12 +12:00
Makefile Linux 6.5-rc1 2023-07-09 13:53:13 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.