android_kernel_samsung_a7y1.../drivers/xen
Thomas Gleixner ecc5a6d9e4 xen: Enable interrupts when calling _cond_resched()
commit 8645e56a4ad6dcbf504872db7f14a2f67db88ef2 upstream.

xen_maybe_preempt_hcall() is called from the exception entry point
xen_do_hypervisor_callback with interrupts disabled.

_cond_resched() evades the might_sleep() check in cond_resched() which
would have caught that and schedule_debug() unfortunately lacks a check
for irqs_disabled().

Enable interrupts around the call and use cond_resched() to catch future
issues.

Fixes: fdfd811ddde3 ("x86/xen: allow privcmd hypercalls to be preempted")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/878skypjrh.fsf@nanos.tec.linutronix.de
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:04:03 +02:00
..
events A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-pciback xen/pciback: Check dev_data before using it 2020-04-07 12:41:44 +02:00
xenbus fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock 2020-04-06 18:47:45 +02:00
xenfs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
balloon.c xen: let alloc_xenballooned_pages() fail if not enough memory free 2020-04-07 13:36:30 +02:00
biomerge.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu_hotplug.c xen, cpu_hotplug: Prevent an out of bounds access 2020-04-07 13:40:54 +02:00
dbgp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
efi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
evtchn.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fallback.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
features.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gntalloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gntdev.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
grant-table.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
manage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcelog.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.c xen/pci: reserve MCFG areas earlier 2020-04-07 08:08:00 +02:00
pcpu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platform-pci.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
preempt.c xen: Enable interrupts when calling _cond_resched() 2020-04-07 14:04:03 +02:00
privcmd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
privcmd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
swiotlb-xen.c xen/swiotlb: fix condition for calling xen_destroy_contiguous_region() 2020-04-06 20:27:46 +02:00
sys-hypervisor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tmem.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-cpuhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-memhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-pad.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-processor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-balloon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-scsiback.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-selfballoon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-stub.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xlate_mmu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30