From f2c73f4e52d24188a9edb0e8190c50f87f19181f Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 16 Nov 2026 06:04:45 -0500 Subject: vgsp: eng88 - reject absurd pack totals before arming the carrier CONT.549/c890: MME-PRELUDE pack-part decoded the packed program's length word to 0x3D2F5F73-like garbage (1602/1026586419, expected /2799) and the carrier armed a continuation on it. gsp_phys_gr_mme_ carry_arm() now refuses maxa==0 or maxa>64K, so a corrupt length can never arm a bogus pack continuation. --- kernel/gsp_phys_booter.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/gsp_phys_booter.c') 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 && -- cgit v1.2.3