summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 0072fe1..55082e6 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -18808,6 +18808,14 @@ static void gsp_phys_gr_mme_carry_arm(bool split, u32 poff, u32 maxa,
bool superseded = false;
u32 ms;
+ /*
+ * CONT 549: reject absurd pack totals. c890 decoded the packed
+ * program's length word to 0x3D2F5F73-like garbage (expected 2799)
+ * and armed a continuation on it. A real golden IR is a few thousand
+ * words; anything past 64K cannot be a valid continuation total.
+ */
+ if (maxa == 0u || maxa > 0x10000u)
+ return;
if (!READ_ONCE(gsp_phys_rmcall_gr_mme_pack_carry) || !split ||
poff >= maxa ||
((h_object & 0xfffff000u) != 0xbeef0000u &&