Re: VM86 interrupt emulation breakage and FIXes for 2.6.x kernelseries

From: Alan Cox
Date: Fri Dec 10 2004 - 17:16:10 EST


On Iau, 2004-12-09 at 13:59, Pavel Pisa wrote:
> if (vm86_irqs[intno].sig)
> send_sig(vm86_irqs[intno].sig, vm86_irqs[intno].tsk, 1);
> /* else user will poll for IRQs */
> + spin_unlock_irqrestore(&irqbits_lock, flags);
> + /* Next line would be required to handle correctly level activated
> interrupts */
> + disable_irq(intno);
> + return IRQ_HANDLED;

You can't disable_irq and return to user space - the IRQ may be shared
by a device needed to make user space progress.

The rest looks like a real bug.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/