RE: [PATCH 2/2] drivers: firmware: efi: install new fdt in configuration table

2018-04-24 Thread Udit Kumar
> -Original Message- > From: Grant Likely [mailto:grant.lik...@arm.com] > Sent: Tuesday, April 24, 2018 4:11 PM > To: Udit Kumar ; Ard Biesheuvel > ; Pankaj Bansal ; > mark.rutl...@arm.com; leif.lindh...@linaro.org > Cc: linux-efi@vger.kernel.org; Varun Sethi ; Wasim Khan > ; n...@arm.com

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Mimi Zohar
On Tue, 2018-04-24 at 23:42 +, Luis R. Rodriguez wrote: > On Tue, Apr 24, 2018 at 12:07:01PM -0400, Mimi Zohar wrote: > > On Tue, 2018-04-24 at 17:09 +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 23-04-18 23:11, Luis R. Rodriguez wrote: > > > > Hans, please see use of READING_FIRMWARE_P

[PATCH] efi/capsule-loader: Don't output reset log when header flags is not set

2018-04-24 Thread Shunyong Yang
It means firmware attempts to immediately process or launch the capsule when flags in capsule header is not set. Moreover, reset is not needed in this case. Current code will output log to indicate reset. This patch adds a branch to avoid reset log output when the flags is not set. Cc: Joey Zheng

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Luis R. Rodriguez
On Tue, Apr 24, 2018 at 12:07:01PM -0400, Mimi Zohar wrote: > On Tue, 2018-04-24 at 17:09 +0200, Hans de Goede wrote: > > Hi, > > > > On 23-04-18 23:11, Luis R. Rodriguez wrote: > > > Hans, please see use of READING_FIRMWARE_PREALLOC_BUFFER, we'll need a > > > new ID > > > and security for this t

Greetings to you,

2018-04-24 Thread Sgt Clara Herbert
Greetings to you, My name is Sgt Clara,from America i am here to search for a business partner or friend who will help me to invest my fund in his company/country Please reply me through my email. thanks Sgt Clara -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Hans de Goede
Hi, On 24-04-18 18:07, Mimi Zohar wrote: On Tue, 2018-04-24 at 17:09 +0200, Hans de Goede wrote: Hi, On 23-04-18 23:11, Luis R. Rodriguez wrote: Hans, please see use of READING_FIRMWARE_PREALLOC_BUFFER, we'll need a new ID and security for this type of request so IMA can reject it if the poli

Re: [RFC] arm64: extra entries in /proc/iomem for kexec

2018-04-24 Thread James Morse
Hi Akashi, On 16/04/18 11:08, AKASHI Takahiro wrote: > On Thu, Apr 12, 2018 at 05:01:52PM +0100, James Morse wrote: >> On 05/04/18 03:42, AKASHI Takahiro wrote: >>> On Mon, Apr 02, 2018 at 10:53:32AM +0900, AKASHI Takahiro wrote: Basically, changes that I made on /proc/iomem in my new format

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Mimi Zohar
On Tue, 2018-04-24 at 17:09 +0200, Hans de Goede wrote: > Hi, > > On 23-04-18 23:11, Luis R. Rodriguez wrote: > > Hans, please see use of READING_FIRMWARE_PREALLOC_BUFFER, we'll need a new > > ID > > and security for this type of request so IMA can reject it if the policy is > > configured for it

Re: [PATCH] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-04-24 Thread Ard Biesheuvel
On 24 April 2018 at 17:15, Kim Phillips wrote: > On Tue, 24 Apr 2018 12:00:58 +0100 > Mark Rutland wrote: > >> When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an >> arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). >> >> The EFI stub doesn't accuont for this, and only handle

Re: [PATCH] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-04-24 Thread Kim Phillips
On Tue, 24 Apr 2018 12:00:58 +0100 Mark Rutland wrote: > When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an > arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). > > The EFI stub doesn't accuont for this, and only handles the case where > TEXT_OFFSET is multiple of EFI_KIMG_A

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Hans de Goede
Hi, On 23-04-18 23:11, Luis R. Rodriguez wrote: Hans, please see use of READING_FIRMWARE_PREALLOC_BUFFER, we'll need a new ID and security for this type of request so IMA can reject it if the policy is configured for it. Hmm, interesting, actually it seems like the whole existence of READING_F

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Hans de Goede
Hi, On 16-04-18 10:28, Ard Biesheuvel wrote: On 8 April 2018 at 19:40, Hans de Goede wrote: Just like with PCI options ROMs, which we save in the setup_efi_pci* functions from arch/x86/boot/compressed/eboot.c, the EFI code / ROM itself sometimes may contain data which is useful/necessary for p

Re: [PATCH v3 1/5] efi: Export boot-services code and data as debugfs-blobs

2018-04-24 Thread Hans de Goede
Hi, On 16-04-18 10:23, Ard Biesheuvel wrote: Hallo Hans, On 8 April 2018 at 19:40, Hans de Goede wrote: Sometimes it is useful to be able to dump the efi boot-services code and data. This commit adds these as debugfs-blobs to /sys/kernel/debug/efi, but only if efi=debug is passed on the kerne

Re: [PATCH] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-04-24 Thread Mark Rutland
On Tue, Apr 24, 2018 at 01:11:40PM +0200, Ard Biesheuvel wrote: > Hi Mark, > > On 24 April 2018 at 13:00, Mark Rutland wrote: > > When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an > > arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). > > > > The EFI stub doesn't accuont for

Re: [PATCH] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-04-24 Thread Ard Biesheuvel
Hi Mark, On 24 April 2018 at 13:00, Mark Rutland wrote: > When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an > arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). > > The EFI stub doesn't accuont for this, and only handles the case where 'account' If you agree, I will add so

[PATCH] efi/libstub/arm64: handle randomized TEXT_OFFSET

2018-04-24 Thread Mark Rutland
When CONFIG_RANDOMIZE_TEXT_OFFSET is selected, TEXT_OFFSET is an arbitrary multiple of PAGE_SIZE in the interval [0, 2MB). The EFI stub doesn't accuont for this, and only handles the case where TEXT_OFFSET is multiple of EFI_KIMG_ALIGN. This can result in the kernel being loaded to an erroneous ph

Re: [PATCH 2/2] drivers: firmware: efi: install new fdt in configuration table

2018-04-24 Thread Grant Likely
On 18/04/2018 15:26, Udit Kumar wrote: Hi Grant > I am not also in favor to do DTB update like this patch , but DTB update is needed feature !! Oh! Yes. I 100% agree. I am not arguing against DTB updates.. Ideally DTB defined once should be done forever but unfortunately we are not in idea