From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: "Schmidt, Malte" <malte.schmidt-oss@weidmueller.com>
Cc: Stefan Herbrechtsmeier
<stefan.herbrechtsmeier-oss@weidmueller.com>,
u-boot@lists.denx.de,
Malte Schmidt <malte.schmidt@weidmueller.com>,
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>,
Etienne Carriere <etienne.carriere@linaro.org>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Masahisa Kojima <masahisa.kojima@linaro.org>,
Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: Re: [PATCH v1] mkeficapsule: fix efi_firmware_management_capsule_header data type
Date: Mon, 19 Jun 2023 19:45:00 +0900 [thread overview]
Message-ID: <ZJAxrH8Jr6Zj9kCG@laputa> (raw)
In-Reply-To: <15c75ba8-bcb3-a604-d79f-3e28c876be13@weidmueller.com>
On Mon, Jun 19, 2023 at 12:37:48PM +0200, Schmidt, Malte wrote:
> Hello Takahiro,
>
> Am 19.06.2023 um 11:53 schrieb AKASHI Takahiro:
> > On Mon, Jun 19, 2023 at 11:45:49AM +0200, Schmidt, Malte wrote:
> > > Hello Takahir,
> > >
> > > Am 17.06.2023 um 02:33 schrieb AKASHI Takahiro:
> > > > On Fri, Jun 16, 2023 at 10:28:05AM +0200, Stefan Herbrechtsmeier wrote:
> > > > > From: Malte Schmidt <malte.schmidt@weidmueller.com>
> > > > >
> > > > > The data type of item_offset_list shall be UINT64 according to the UEFI [1]
> > > > > specifications.
> > > > >
> > > > > In include/efi_api.h the correct data type is used. The bug was probably
> > > > > never noticed because of little endianness.
> > > > Thank you.
> > > > Just in case, tools/eficapsule.h has the same struct definition
> > > > because I didn't want to include U-Boot's corresponding header
> > > > to avoid including a conflicting header file.
> > > >
> > > > Please fix it as well.
> > > >
> > > > -Takahiro Akashi
> > > Which header should I fix additionally? In include/efi_api.h the correct
> > > type is used, so there is nothing to fix.
> > That is tools/eficapsule.h
> >
> > -Takahiro Akashi
> tools/eficapsule is the file to which my patch applies to. Please have
> another
> look at it. Otherwise, please explain a bit more detailed what your are
> suggesting,
> as I am a bit confused about what your point is.
Right, it's my misunderstanding.
-Takahiro Akashi
> Best Regards
> Malte
> >
> > > Best Regards
> > > Malte
> > > > > [1] https://uefi.org/specs/UEFI/2.10/index.html
> > > > >
> > > > > Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
> > > > >
> > > > > Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
> > > > > ---
> > > > >
> > > > > tools/eficapsule.h | 2 +-
> > > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/tools/eficapsule.h b/tools/eficapsule.h
> > > > > index 753fb73313..2099a2e9b8 100644
> > > > > --- a/tools/eficapsule.h
> > > > > +++ b/tools/eficapsule.h
> > > > > @@ -63,7 +63,7 @@ struct efi_firmware_management_capsule_header {
> > > > > uint32_t version;
> > > > > uint16_t embedded_driver_count;
> > > > > uint16_t payload_item_count;
> > > > > - uint32_t item_offset_list[];
> > > > > + uint64_t item_offset_list[];
> > > > > } __packed;
> > > > > /* image_capsule_support */
> > > > > --
> > > > > 2.30.2
> > > > >
>
next prev parent reply other threads:[~2023-06-19 11:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-16 8:28 [PATCH v1] mkeficapsule: fix efi_firmware_management_capsule_header data type Stefan Herbrechtsmeier
2023-06-17 0:33 ` AKASHI Takahiro
2023-06-19 9:45 ` Schmidt, Malte
2023-06-19 9:53 ` AKASHI Takahiro
2023-06-19 10:37 ` Schmidt, Malte
2023-06-19 10:45 ` AKASHI Takahiro [this message]
2023-07-09 8:31 ` Heinrich Schuchardt
2023-07-10 6:26 ` AKASHI Takahiro
2023-07-10 6:41 ` Heinrich Schuchardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZJAxrH8Jr6Zj9kCG@laputa \
--to=takahiro.akashi@linaro.org \
--cc=etienne.carriere@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=malte.schmidt-oss@weidmueller.com \
--cc=malte.schmidt@weidmueller.com \
--cc=masahisa.kojima@linaro.org \
--cc=stefan.herbrechtsmeier-oss@weidmueller.com \
--cc=stefan.herbrechtsmeier@weidmueller.com \
--cc=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.