summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 06:04:45 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 06:04:45 -0500
commitf2c73f4e52d24188a9edb0e8190c50f87f19181f (patch)
tree56aa62d26d2f7da6bbc154672cc3bc73db138fc9
parentb58dc8007ca218079f5a06cd188262a3c8e3977c (diff)
downloadopen-iov-f2c73f4e52d24188a9edb0e8190c50f87f19181f.tar.gz
open-iov-f2c73f4e52d24188a9edb0e8190c50f87f19181f.zip
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.
-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 &&