Re: [PATCH 0/3] efi: add support for persistent memory reservations

2018-09-21 Thread Marc Zyngier
On Fri, 21 Sep 2018 18:51:08 +0100, Ard Biesheuvel wrote: > > On 21 September 2018 at 10:46, Marc Zyngier wrote: > > On Fri, 21 Sep 2018 18:14:43 +0100, > > Jeffrey Hugo wrote: > >> > >> On 9/21/2018 10:32 AM, Ard Biesheuvel wrote: > >> > Add support for persistent memory reservations across

Re: [PATCH 0/3] efi: add support for persistent memory reservations

2018-09-21 Thread Marc Zyngier
On Fri, 21 Sep 2018 18:14:43 +0100, Jeffrey Hugo wrote: > > On 9/21/2018 10:32 AM, Ard Biesheuvel wrote: > > Add support for persistent memory reservations across kexec reboot on EFI > > systems by introducing a Linux-specific UEFI configuration table that points > > to a linked list in memory

Re: [PATCH 0/3] efi: add support for persistent memory reservations

2018-09-21 Thread Ard Biesheuvel
On Fri, 21 Sep 2018 at 10:14, Jeffrey Hugo wrote: > > On 9/21/2018 10:32 AM, Ard Biesheuvel wrote: > > Add support for persistent memory reservations across kexec reboot on EFI > > systems by introducing a Linux-specific UEFI configuration table that points > > to a linked list in memory that can

Re: [PATCH 0/3] efi: add support for persistent memory reservations

2018-09-21 Thread Jeffrey Hugo
On 9/21/2018 10:32 AM, Ard Biesheuvel wrote: Add support for persistent memory reservations across kexec reboot on EFI systems by introducing a Linux-specific UEFI configuration table that points to a linked list in memory that can be augmented by each successive kexec kernel to describe regions

[PATCH 2/3] efi/arm: libstub: add a root memreserve config table

2018-09-21 Thread Ard Biesheuvel
Installing UEFI configuration tables can only be done before calling ExitBootServices(), so if we want to use the new MEMRESRVE config table from the kernel proper, we need to install a dummy entry from the stub. Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/libstub/arm-stub.c | 27

[PATCH 3/3] efi: add API to reserve memory persistently across kexec reboot

2018-09-21 Thread Ard Biesheuvel
Add kernel plumbing to reserve memory regions persistently on a EFI system by adding entries to the MEMRESERVE linked list. Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/efi.c | 32 include/linux/efi.h| 1 + 2 files changed, 33 insertions(+) diff --git

[PATCH 1/3] efi: honour memory reservations passed via a linux specific config table

2018-09-21 Thread Ard Biesheuvel
In order to allow the OS to reserve memory persistently across a kexec, introduce a Linux-specific UEFI configuration table that points to the head of a linked list in memory, allowing each kernel to add list items describing memory regions that the next kernel should treat as reserved. This is

[PATCH 0/3] efi: add support for persistent memory reservations

2018-09-21 Thread Ard Biesheuvel
Add support for persistent memory reservations across kexec reboot on EFI systems by introducing a Linux-specific UEFI configuration table that points to a linked list in memory that can be augmented by each successive kexec kernel to describe regions in memory that the subsequent kernel should

Re: [PATCH v3 3/6] ima: refactor ima_init_policy()

2018-09-21 Thread Dan Carpenter
Hi Nayna, Thank you for the patch! Perhaps something to improve: url: https://github.com/0day-ci/linux/commits/Nayna-Jain/Add-support-for-architecture-specific-IMA-policies/20180920-035110 smatch warnings: security/integrity/ima/ima_policy.c:489 add_rules() warn: should this be a bitwise