]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/pci: fix sleeping in atomic during hotplug
authorSebastian Ott <sebott@linux.ibm.com>
Thu, 18 Oct 2018 09:11:08 +0000 (11:11 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitef94191d87e0cf07e37cf4a1b03d9b27f006b4c0
tree6a5ccd88d8accd1f161f9bb911c45d70f7fd94ec
parente73a5ad4462bc07e8190f0f7b886a8733d093f38
s390/pci: fix sleeping in atomic during hotplug

BugLink: https://bugs.launchpad.net/bugs/1837257
commit 98dfd32620e970eb576ebce5ea39d905cb005e72 upstream.

When triggered by pci hotplug (PEC 0x306) clp_get_state is called
with spinlocks held resulting in the following warning:

zpci: n/a: Event 0x306 reconfigured PCI function 0x0
BUG: sleeping function called from invalid context at mm/page_alloc.c:4324
in_atomic(): 1, irqs_disabled(): 0, pid: 98, name: kmcheck
2 locks held by kmcheck/98:

Change the allocation to use GFP_ATOMIC.

Cc: stable@vger.kernel.org # 4.13+
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/pci/pci_clp.c