diff options
author | Kees Cook <keescook@chromium.org> | 2015-07-24 16:27:57 -0700 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 16:15:47 +0200 |
commit | 2439d4aa9247f4c94351d0cf7d75c16146785eb8 (patch) | |
tree | 9408513d7a0fa50c91de5f32223c46ac41e28269 /drivers/iommu/intel-iommu.c | |
parent | 74d33293e467df61de1b1d8b2fbe29e550dec33b (diff) | |
download | lwn-2439d4aa9247f4c94351d0cf7d75c16146785eb8.tar.gz lwn-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/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 0649b94f5958..0be23c589d3b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -4533,7 +4533,7 @@ int __init intel_iommu_init(void) for_each_active_iommu(iommu, drhd) iommu->iommu_dev = iommu_device_create(NULL, iommu, intel_iommu_groups, - iommu->name); + "%s", iommu->name); bus_set_iommu(&pci_bus_type, &intel_iommu_ops); bus_register_notifier(&pci_bus_type, &device_nb); |