diff options
| author | Alejandro Jimenez <[email protected]> | 2025-01-06 19:14:13 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-02-28 11:18:00 +0000 |
| commit | c5b0320bbf79548fbf058a3925a07c8f281beeab (patch) | |
| tree | 990e0fe9212e6ce55dd34c6d3e5181b81a79c0f7 /net/unix/sysctl_net_unix.c | |
| parent | Linux 6.14-rc4 (diff) | |
| download | kernel-c5b0320bbf79548fbf058a3925a07c8f281beeab.tar.gz kernel-c5b0320bbf79548fbf058a3925a07c8f281beeab.zip | |
iommu/amd: Preserve default DTE fields when updating Host Page Table Root
When updating the page table root field on the DTE, avoid overwriting any
bits that are already set. The earlier call to make_clear_dte() writes
default values that all DTEs must have set (currently DTE[V]), and those
must be preserved.
Currently this doesn't cause problems since the page table root update is
the first field that is set after make_clear_dte() is called, and
DTE_FLAG_V is set again later along with the permission bits (IR/IW).
Remove this redundant assignment too.
Fixes: fd5dff9de4be ("iommu/amd: Modify set_dte_entry() to use 256-bit DTE helpers")
Signed-off-by: Alejandro Jimenez <[email protected]>
Reviewed-by: Dheeraj Kumar Srivastava <[email protected]>
Reviewed-by: Vasant Hegde <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
