[PATCH openEuler-5.10 v2 197/548] x86/mce/inject: Avoid out-of-bounds write when setting flags