diff options
author | Kees Cook <keescook@chromium.org> | 2015-07-25 01:27:57 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 16:15:47 +0200 |
commit | 2439d4aa9247f4c94351d0cf7d75c16146785eb8 (patch) | |
tree | 9408513d7a0fa50c91de5f32223c46ac41e28269 /drivers/iommu/dmar.c | |
parent | Linux 4.2-rc5 (diff) | |
download | linux-2439d4aa9247f4c94351d0cf7d75c16146785eb8.tar.xz linux-2439d4aa9247f4c94351d0cf7d75c16146785eb8.zip |
iommu/vt-d: Avoid format string leaks into iommu_device_create
This makes sure it won't be possible to accidentally leak format
strings into iommu device names. Current name allocations are safe,
but this makes the "%s" explicit.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r-- | drivers/iommu/dmar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index c9db04d4ef39..8757f8dfc4e5 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -1068,7 +1068,7 @@ static int alloc_iommu(struct dmar_drhd_unit *drhd) if (intel_iommu_enabled) iommu->iommu_dev = iommu_device_create(NULL, iommu, intel_iommu_groups, - iommu->name); + "%s", iommu->name); return 0; |