efi patch queue 2017-07-03
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit 8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:
pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
are available in the git repository at:
git://github.com/agraf/u-boot.git tags/signed-efi-next
for you to fetch changes up to a88456645ec60570d37c8be5877614a16467b790:
efi_loader: efi_handle_protocol set attributes (2017-07-03 14:41:14 +0200)
----------------------------------------------------------------
Patch queue for efi - 2017-07-03
Highlights this time: bugfixes. With these changes, OpenBSD should be more happy.
----------------------------------------------------------------
Alexander Graf (1):
efi_loader: Add check for fallback fdt memory reservation
Jonathan Gray (2):
efi_loader: run CreateEvent() notify function based on flags
efi_loader: check CreateEvent() parameters
Masahiro Yamada (1):
efi_loader: add static to local functions
xypron.glpk at gmx.de (2):
efi_loader: abort on unsupported relocation type
efi_loader: efi_handle_protocol set attributes
cmd/bootefi.c | 6 ++++++ include/efi_api.h | 3 +++ lib/efi_loader/efi_boottime.c | 38 ++++++++++++++++++++++++++------------ lib/efi_loader/efi_image_loader.c | 10 ++++++++-- 4 files changed, 43 insertions(+), 14 deletions(-)
Quoted 11 lines · Alexander Graf
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)
This gives me:
w+(orangepi_plus) ../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus) ../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
On tons and tons of boards, with gcc-6.3.
Its bisects down to:
commit 2689085257feda5ed96f84c1c5b595553e38eac7
Author: xypron.glpk at gmx.de <[email protected]> Date: Sun Jun 25 20:45:36 2017 +0200
efi_loader: abort on unsupported relocation type
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170703/ad10f269/attachment.sig>
PATCH v2 1/1 efi_loader: abort on unsupported relocation type
From: "[email protected]" <[email protected]>
If a relocation type is not supported loading the EFI binary should be aborted.
Writing a message only is insufficient.
---
v2
Use (uintptr_t) to convert a pointer to an integer. This avoids 'warning: cast from pointer to integer of different size' on 32bit systems.
--- lib/efi_loader/efi_image_loader.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
lib/efi_loader/efi_image_loader.c +8 -2
@@ -26,7 +26,7 @@ efi_status_t EFIAPI efi_return_handle(void *handle, efi_guid_t *protocol,return EFI_SUCCESS ; } -static void efi_loader_relocate (const IMAGE_BASE_RELOCATION *rel, +static efi_status_t efi_loader_relocate (const IMAGE_BASE_RELOCATION *rel,unsigned long rel_size,void *efi_reloc) {const IMAGE_BASE_RELOCATION *end;
@@ -63,11 +63,13 @@ static void efi_loader_relocate(const IMAGE_BASE_RELOCATION *rel,default :printf ("Unknown Relocation off %x type %x\n" , offset, type); +return EFI_LOAD_ERROR ; } relocs++; } rel = (const IMAGE_BASE_RELOCATION *)relocs; } +return EFI_SUCCESS ; }void __weak invalidate_icache_all (void )
@@ -171,7 +173,11 @@ void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info) }/* Run through relocations */ -efi_loader_relocate (rel, rel_size, efi_reloc); +if (EFI_SUCCESS !=efi_loader_relocate (rel, rel_size, efi_reloc)) { +efi_free_pages ((uintptr_t ) efi_reloc, + (virt_size +EFI_PAGE_MASK ) >>EFI_PAGE_SHIFT ); +return NULL ; + }/* Flush cache */ flush_cache((ulong)efi_reloc,
Signature · 1 line
2.11.0
Quoted 26 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
Quoted 13 lines · Alexander Graf
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)
Quoted 6 lines
This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]On tons and tons of boards, with gcc-6.3.
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Alex
Quoted 31 lines · Alexander Graf
Quoted 31 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
Quoted 13 lines · Alexander Graf
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
Quoted 6 lines
Quoted 1 line
On tons and tons of boards, with gcc-6.3.
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Alex
The problem was only detectable when building a 32bit target.
So you would have to teach Travis to build on 32bit and on 64bit.
Best regards
Heinrich
Quoted 34 lines · Heinrich Schuchardt
Quoted 33 lines · Alexander Graf
Quoted 32 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
Quoted 13 lines · Alexander Graf
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]On tons and tons of boards, with gcc-6.3.
Quoted 8 lines
Quoted 4 lines
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Alex
The problem was only detectable when building a 32bit target.
So you would have to teach Travis to build on 32bit and on 64bit.
Travis builds 32bit targets today :). It even runtime tests them through QEMU with efi_loader.
Alex
Quoted 31 lines · Alexander Graf
Quoted 31 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
Quoted 13 lines · Alexander Graf
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
Quoted 4 lines
Quoted 1 line
On tons and tons of boards, with gcc-6.3.
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Are you sure it didn't catch it? It's a warning only and that doesn't cause the job to fail.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170704/ed25be65/attachment.sig>
Quoted 36 lines
Am 04.07.2017 um 13:24 schrieb Tom Rini <[email protected]>:
Quoted 32 lines · Alexander Graf
Quoted 31 lines
Quoted 17 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
On Mon, Jul 03, 2017 at 04:05:56PM +0200, Alexander Graf wrote:
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
On tons and tons of boards, with gcc-6.3.
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Are you sure it didn't catch it? It's a warning only and that doesn't cause the job to fail.
Ah, so that's why! Maybe we should start to introduce -Werror by default?
Alex
Quoted 38 lines · Alexander Graf
Quoted 38 lines
Am 04.07.2017 um 13:24 schrieb Tom Rini <[email protected]>:
Quoted 34 lines · Alexander Graf
Quoted 32 lines
Quoted 17 lines
Am 03.07.2017 um 23:11 schrieb Tom Rini <[email protected]>:
On Mon, Jul 03, 2017 at 04:05:56PM +0200, Alexander Graf wrote:
Hi Tom,
This is my current patch queue for efi. Please pull.
Alex
The following changes since commit
8d6040c725bfa40fba1bd6b5f356ee713c1ac7d1:pico-imx7d: Remove bouncing email (2017-06-29 21:30:16 -0400)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/u-boot.gittags/signed-efi-nextfor you to fetch changes up to
a88456645ec60570d37c8be5877614a16467b790:
efi_loader:efi_handle_protocolset attributes (2017-07-03 14:41:14 +0200)This gives me:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c: In function ?efi_load_pe?:
w+(orangepi_plus)../lib/efi_loader/efi_image_loader.c:177:18: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]On tons and tons of boards, with gcc-6.3.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Do you know why Travis didn't catch this? Do we need to update the gcc version used there maybe?
Are you sure it didn't catch it? It's a warning only and that doesn't cause the job to fail.
Ah, so that's why! Maybe we should start to introduce -Werror by default?
I've been toying with that idea but first we need to fix the warnings that we have ;) And then make it easy enough to disable during local development.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170704/a41a417d/attachment.sig>