• Q
    arm64: traps: disable irq in die() · 6f44a0ba
    Qiao Zhou 提交于
    In current die(), the irq is disabled for __die() handle, not
    including the possible panic() handling. Since the log in __die()
    can take several hundreds ms, new irq might come and interrupt
    current die().
    
    If the process calling die() holds some critical resource, and some
    other process scheduled later also needs it, then it would deadlock.
    The first panic will not be executed.
    
    So here disable irq for the whole flow of die().
    Signed-off-by: NQiao Zhou <qiaozhou@asrmicro.com>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    6f44a0ba
traps.c 18.7 KB