mbox series

[edk2,v2,0/4] ArmVirtQemu: unmap page #0 to catch NULL pointer dereferences

Message ID 20181130112829.12173-1-ard.biesheuvel@linaro.org
Headers show
Series ArmVirtQemu: unmap page #0 to catch NULL pointer dereferences | expand

Message

Ard Biesheuvel Nov. 30, 2018, 11:28 a.m. UTC
Rationale in patch #4. Patch #3 is a prerequisite patch that ensures
that we no longer need page #0 to be mapped for the NOR flash driver
to be able to expose it as a read/write block device.

Patches #1 and #2 are fixes for the ARM version of the ArmMmuLib driver
for bugs that get triggered by these changes.

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Eric Auger <eric.auger@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Philippe Mathieu-Daude <philmd@redhat.com>

Ard Biesheuvel (4):
  ArmPkg/ArmMmuLib ARM: handle unmapped section in GetMemoryRegion()
  ArmPkg/ArmMmuLib ARM: handle unmapped sections when updating
    permissions
  ArmVirtPkg/NorFlashQemuLib: disregard our primary FV
  ArmVirtPkg/QemuVirtMemInfoLib: trim the MMIO region mapping

 .../NorFlashQemuLib/NorFlashQemuLib.inf       |  5 ++++
 .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf |  4 ++--
 .../QemuVirtMemInfoPeiLib.inf                 |  2 ++
 ArmPkg/Drivers/CpuDxe/Arm/Mmu.c               |  3 +++
 ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c  |  8 +++++--
 .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 13 +++++++++--
 .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.c   | 23 +++++++++++++------
 7 files changed, 45 insertions(+), 13 deletions(-)

-- 
2.19.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Ard Biesheuvel Dec. 3, 2018, 3:25 p.m. UTC | #1
On Fri, 30 Nov 2018 at 12:28, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>

> Rationale in patch #4. Patch #3 is a prerequisite patch that ensures

> that we no longer need page #0 to be mapped for the NOR flash driver

> to be able to expose it as a read/write block device.

>

> Patches #1 and #2 are fixes for the ARM version of the ArmMmuLib driver

> for bugs that get triggered by these changes.

>

> Cc: Leif Lindholm <leif.lindholm@linaro.org>

> Cc: Laszlo Ersek <lersek@redhat.com>

> Cc: Eric Auger <eric.auger@redhat.com>

> Cc: Andrew Jones <drjones@redhat.com>

> Cc: Philippe Mathieu-Daude <philmd@redhat.com>

>

> Ard Biesheuvel (4):

>   ArmPkg/ArmMmuLib ARM: handle unmapped section in GetMemoryRegion()

>   ArmPkg/ArmMmuLib ARM: handle unmapped sections when updating

>     permissions

>   ArmVirtPkg/NorFlashQemuLib: disregard our primary FV

>   ArmVirtPkg/QemuVirtMemInfoLib: trim the MMIO region mapping

>


Pushed as a2df8587bf7a..51bb05c79595

Thanks all
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel