Re: [PATCH 6.12.y] iommu/vt-d: Clear Present bit before tearing down context entry

From: Sasha Levin

Date: Thu Jul 16 2026 - 21:38:24 EST


On Wed, Jul 15, 2026 at 01:21:23AM +0300, Konstantin Andreev wrote:
> When tearing down a context entry, the current implementation zeros the
> entire 128-bit entry using multiple 64-bit writes. This creates a window
> where the hardware can fetch a "torn" entry — where some fields are
> already zeroed while the 'Present' bit is still set — leading to
> unpredictable behavior or spurious faults.

Queued for 6.12, thanks.

--
Thanks,
Sasha