You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our LMEM buffer objects are not cleared by default on alloc
and during VF provisioning we only setup LMTT PTEs for the
actually provisioned LMEM range. But beyond that valid range
we might leave some stale data that could either point to some
other VFs allocations or even to the PF pages.
Explicitly clear all new LMTT page to avoid the risk that a
malicious VF would try to exploit that gap.
While around add asserts to catch any undesired PTE overwrites
and low-level debug traces to track LMTT PT life-cycle.
Fixes: b1d2040 ("drm/xe/pf: Introduce Local Memory Translation Table")
Signed-off-by: Michal Wajdeczko <[email protected]>
Cc: Michał Winiarski <[email protected]>
Cc: Lukasz Laguna <[email protected]>
Reviewed-by: Michał Winiarski <[email protected]>
Reviewed-by: Piotr Piórkowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 3fae691)
Signed-off-by: Lucas De Marchi <[email protected]>
0 commit comments