Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1636249

Re: [PATCH V2] x86/tboot: add an option to disable iommu force on

From Joerg Roedel <jroedel@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH V2] x86/tboot: add an option to disable iommu force on
Date 2017-05-05 10:50 +0200
Message-ID <tDH61-7L0-1@gated-at.bofh.it> (permalink)
References <tAxPA-4Ed-13@gated-at.bofh.it> <tALzb-5ht-11@gated-at.bofh.it> <tANhE-6ta-13@gated-at.bofh.it> <tDFnz-6yA-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Ingo,

On Fri, May 05, 2017 at 08:59:20AM +0200, Ingo Molnar wrote:
> * Joerg Roedel <jroedel@suse.de> wrote:

> > The problem solved here is that someone wants tboot for security
> > reasons, but doesn't want the performance penalty of having the IOMMU
> > enabled and can live with the risk of an DMA attack.
> 
> Yes, that makes sense - but in this case it would be far more user friendly to 
> make it a sysctl, not a boot option. This is also much more manageable for 
> distributions and also allows it to be more easily turned into a security policy 
> feature.
> 
> New boot options should be for debugging hacks in essence - any serious hardware 
> configuration should be done via more user-friendly methods.

I agree in general that a sysctl would be more user-friendly. But the
problem is that enabling/disabling the IOMMU is a boot-time option that
can't be changed at runtime.

That is because this decission defines how the bus addresses are mapped
to physical addresses through the dma-api. When the iommu is disabled,
it is just a 1-1 mapping, but when it is enabled a physical address
could end up on any address in the bus address space.

Once drivers are loaded that allocate those addresses we can't change
the mappings anymore as disabling the iommu would do.


Regards,

	Joerg

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2] x86/tboot: add an option to disable iommu force on Shaohua Li <shli@fb.com> - 2017-04-26 18:20 +0200
  Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-04-27 00:10 +0200
    Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Ingo Molnar <mingo@kernel.org> - 2017-04-27 09:00 +0200
      Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-04-29 00:20 +0200
  Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Ingo Molnar <mingo@kernel.org> - 2017-04-27 09:00 +0200
    Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-04-27 10:50 +0200
      Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-04-27 17:20 +0200
        Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-04-27 18:10 +0200
      Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Ingo Molnar <mingo@kernel.org> - 2017-05-05 09:00 +0200
        Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Joerg Roedel <jroedel@suse.de> - 2017-05-05 10:50 +0200
          Re: [PATCH V2] x86/tboot: add an option to disable iommu force on Ingo Molnar <mingo@kernel.org> - 2017-05-06 11:50 +0200

csiph-web