Re: [PATCH 13/24] x86: Lock down IO port access when the kernel is locked down
From: Thomas Gleixner
Date: Fri Apr 14 2017 - 14:28:56 EST
On Wed, 5 Apr 2017, David Howells wrote:
> From: Matthew Garrett <matthew.garrett@xxxxxxxxxx>
>
> IO port access would permit users to gain access to PCI configuration
> registers, which in turn (on a lot of hardware) give access to MMIO
> register space. This would potentially permit root to trigger arbitrary
> DMA, so lock it down by default.
>
> This also implicitly locks down the KDADDIO, KDDELIO, KDENABIO and
> KDDISABIO console ioctls.
>
> Signed-off-by: Matthew Garrett <matthew.garrett@xxxxxxxxxx>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>