Re: [PATCH 2/4] gpu: nova-core: gsp: Fix length of received messages
From: John Hubbard
Date: Sun Dec 14 2025 - 21:54:58 EST
On 12/15/25 11:47 AM, Timur Tabi wrote:
On Mon, 2025-12-15 at 11:46 +0900, John Hubbard wrote:
We should treat data that comes from the firmware as not yet
validated, external data.
Maybe we should make it a policy that all data read from firmware / disk needs to be instantiate
via a constructor that validates all the fields.
That's one approach, and maybe it will end up being the best and
most desirable approach.
But I'd stop short of making it a full-blown policy, because there
are other ways of validating the data that comes from the firmware,
and there's not (yet?) any real need to require one particular
solution, I think.
thanks,
--
John Hubbard