Re: [PATCH rc v3] iommufd: Fix struct iommu_hwpt_pgfault init and padding

From: Jason Gunthorpe
Date: Tue Jan 21 2025 - 12:59:28 EST


On Mon, Jan 20, 2025 at 11:50:51AM -0800, Nicolin Chen wrote:
> The iommu_hwpt_pgfault is used to report IO page fault data to userspace,
> but iommufd_fault_fops_read was never zeroing its padding. This leaks the
> content of the kernel stack memory to userspace.

> drivers/iommu/iommufd/fault.c | 2 +-
> include/uapi/linux/iommufd.h | 4 +++-
> 2 files changed, 4 insertions(+), 2 deletions(-)

Applied

Thanks,
Jason