linux/drivers/tty/hvc
David Vrabel 77bb3dfdc0 xen/events: don't bind non-percpu VIRQs with percpu chip
A non-percpu VIRQ (e.g., VIRQ_CONSOLE) may be freed on a different
VCPU than it is bound to.  This can result in a race between
handle_percpu_irq() and removing the action in __free_irq() because
handle_percpu_irq() does not take desc->lock.  The interrupt handler
sees a NULL action and oopses.

Only use the percpu chip/handler for per-CPU VIRQs (like VIRQ_TIMER).

  # cat /proc/interrupts | grep virq
   40:      87246          0  xen-percpu-virq      timer0
   44:          0          0  xen-percpu-virq      debug0
   47:          0      20995  xen-percpu-virq      timer1
   51:          0          0  xen-percpu-virq      debug1
   69:          0          0   xen-dyn-virq      xen-pcpu
   74:          0          0   xen-dyn-virq      mce
   75:         29          0   xen-dyn-virq      hvc_console

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: <stable@vger.kernel.org>
2015-05-19 19:55:36 +01:00
..
hvc_beat.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_bfin_jtag.c
hvc_console.c TTY/Serial driver patches for 3.16-rc1 2014-06-03 09:01:02 -07:00
hvc_console.h tty/hvc_console: Add DTR/RTS callback to handle HUPCL control 2013-07-24 15:21:13 -07:00
hvc_dcc.c ARM: tty: Move HVC DCC assembly to arch/arm 2014-05-28 13:33:18 -07:00
hvc_irq.c TTY: irq: Remove IRQF_DISABLED 2011-09-22 16:08:57 -07:00
hvc_iucv.c s390/hvc_iucv: add simple wildcard matches to the iucv allow filter 2015-01-22 12:16:56 +01:00
hvc_opal.c tty/hvc_opal: constify of_device_id array 2015-03-26 22:49:10 +01:00
hvc_rtas.c drivers/tty/hvc: don't use module_init in non-modular hyp. console code 2014-02-07 08:40:54 -08:00
hvc_tile.c tty: hvc: drop owner assignment from platform_drivers 2014-10-20 16:21:44 +02:00
hvc_udbg.c drivers/tty/hvc: don't use module_init in non-modular hyp. console code 2014-02-07 08:40:54 -08:00
hvc_vio.c powerpc: Remove powerpc specific cmd_line 2014-10-02 17:33:55 +10:00
hvc_xen.c xen/events: don't bind non-percpu VIRQs with percpu chip 2015-05-19 19:55:36 +01:00
hvcs.c tty: hvcs: Remove unnecessary KERN_ERR in hvcs.c 2014-11-05 19:24:07 -08:00
hvsi_lib.c tty-hvsi_lib: Deletion of an unnecessary check before the function call "tty_kref_put" 2014-11-26 19:35:49 -08:00
hvsi.c TTY: add tty_port_tty_wakeup helper 2013-03-18 16:19:45 -07:00
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile tty: powerpc: remove hvc_iseries 2012-03-09 10:35:17 +11:00