UAS: fix deadlock in error handling and PM flushing work
Oliver Neukum authored
commit f6cc6093

 upstream.

A SCSI error handler and block runtime PM must not allocate
memory with GFP_KERNEL. Furthermore they must not wait for
tasks allocating memory with GFP_KERNEL.
That means that they cannot share a workqueue with arbitrary tasks.

Fix this for UAS using a private workqueue.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Fixes: f9dc024a ("uas: pre_reset and suspend: Fix a few races")
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200415141750.811-2-oneukum@suse.com

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
22432bcf
Name Last commit Last update
Documentation USB: hub: Revert commit bd0e6c96 ("usb: hub: try old enumeration scheme first for high speed devices")
LICENSES LICENSES: Rename other to deprecated
arch powerpc/setup_64: Set cache-line-size based on cache-block-size
block block, bfq: invoke flush_idle_tree after reparent_active_queues in pd_offline
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto crypto: rng - Fix a refcounting bug in crypto_rng_reset()
drivers UAS: fix deadlock in error handling and PM flushing work
fs cifs: fix uninitialised lease_key in open_shroot()
include mac80211: populate debugfs only after cfg80211 init
init kbuild: remove header compile test
ipc ipc/util.c: sysvipc_find_ipc() should increase position index
kernel audit: check the length of userspace generated audit records
lib lib/raid6/test: fix build on distros whose /bin/sh is not bash
mm mm/ksm: fix NULL pointer dereference when KSM zero page is enabled
net SUNRPC: Fix backchannel RPC soft lockups
samples vmalloc: fix remap_vmalloc_range() bounds checks
scripts kconfig: qconf: Fix a few alignment issues
security KEYS: Avoid false positive ENOMEM error on key read
sound ASoC: dapm: fixup dapm kcontrol widget
tools tools/vm: fix cross-compile build
usr initramfs: restore default compression behavior
virt KVM: Check for a bad hva before dropping into the ghc slow path
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
.mailmap Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
COPYING COPYING: use the new text with points to the license files
CREDITS MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer
Kbuild kbuild: do not descend to ./Kbuild when cleaning
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst
MAINTAINERS MAINTAINERS: Update drm/i915 bug filing URL
Makefile Linux 5.4.35
README Drop all 00-INDEX files from Documentation/
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.