• Anton Ivanov's avatar
    um: Prevent IRQ handler reentrancy · d5e3f5cb
    Anton Ivanov authored
    The existing IRQ handler design in UML does not prevent reentrancy
    
    This is mitigated by fd-enable/fd-disable semantics for the IO
    portion of the UML subsystem. The timer, however, can and is
    re-entered resulting in very deep stack usage and occasional
    stack exhaustion.
    
    This patch prevents this by checking if there is a timer
    interrupt in-flight before processing any pending timer interrupts.
    Signed-off-by: default avatarAnton Ivanov <aivanov@brocade.com>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    d5e3f5cb
signal.c 7.24 KB