[PATCH 6.12 091/280] LoongArch: Make do_xyz() exception handlers more robust