Files
android_kernel_xiaomi_sm8450/drivers/xen
Thomas Gleixner 8645e56a4a xen: Enable interrupts when calling _cond_resched()
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: fdfd811ddd ("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>
2020-02-20 16:40:38 -06:00
..
2015-12-21 14:40:55 +00:00
2019-11-24 11:55:31 +01:00
2019-07-17 08:09:58 +02:00
2019-09-12 15:02:55 -04:00
2015-12-21 14:40:55 +00:00
2019-07-31 08:14:12 +02:00
2018-02-01 10:07:32 -05:00
2019-07-31 08:14:12 +02:00