From: Jan Beulich <jbeulich@suse.com>
To: Trammell Hudson <hudson@trmm.net>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>,
"wl@xen.org" <wl@xen.org>
Subject: Re: [PATCH v4 3/4] efi: Enable booting unified hypervisor/kernel/initrd images
Date: Wed, 16 Sep 2020 11:47:50 +0200 [thread overview]
Message-ID: <d2687ae0-963b-4d8a-f17a-eabd9945df4b@suse.com> (raw)
In-Reply-To: <vJMfvKtNZyMgJ7EsE4gKz79cATC-4xxU3hrAkz1PlvmArEQJ_jcXR61uiCggcKjISspFs2h4CrL1M9uLGM1kI25UmudG9YueJY1af6VPDmY=@trmm.net>
On 16.09.2020 10:37, Trammell Hudson wrote:
> On Wednesday, September 16, 2020 3:32 AM, Roger Pau Monné <roger.pau@citrix.com> wrote:
>> On Mon, Sep 14, 2020 at 07:50:12AM -0400, Trammell Hudson wrote:
>>> - s2w(&name_string);
>>
>> Don't you need to check that s2w succeed, so that name_string.w is not
>> a random pointer from stack garbage?
>
> Maybe? I don't see anywhere else in the code that s2w() is
> ever checked for a NULL return. Perhaps a better fix would
> be to modify the function to panic if it is unable
> to allocate.
In current code the result of s2w() gets exclusively passed to
read_file(), where first thing we have
if ( !name )
PrintErrMesg(L"No filename", EFI_OUT_OF_RESOURCES);
Jan
next prev parent reply other threads:[~2020-09-16 9:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 11:50 [PATCH v4 0/4] efi: Unified Xen hypervisor/kernel/initrd images Trammell Hudson
2020-09-14 11:50 ` [PATCH v4 1/4] efi/boot.c: add file.need_to_free Trammell Hudson
2020-09-16 6:43 ` Roger Pau Monné
2020-09-17 11:06 ` Jan Beulich
2020-09-14 11:50 ` [PATCH v4 2/4] efi/boot.c: add handle_file_info() Trammell Hudson
2020-09-16 6:46 ` Roger Pau Monné
2020-09-17 11:29 ` Jan Beulich
2020-09-14 11:50 ` [PATCH v4 3/4] efi: Enable booting unified hypervisor/kernel/initrd images Trammell Hudson
2020-09-16 7:32 ` Roger Pau Monné
2020-09-16 8:37 ` Trammell Hudson
2020-09-16 9:47 ` Jan Beulich [this message]
2020-09-16 10:15 ` Roger Pau Monné
2020-09-17 12:33 ` Jan Beulich
2020-09-17 13:04 ` Trammell Hudson
2020-09-17 13:33 ` Trammell Hudson
2020-09-17 15:10 ` Jan Beulich
2020-09-17 15:21 ` Jan Beulich
2020-09-14 11:50 ` [PATCH v4 4/4] efi: Do not use command line if secure boot is enabled Trammell Hudson
2020-09-16 7:45 ` Roger Pau Monné
2020-09-16 8:50 ` Trammell Hudson
2020-09-16 9:57 ` Jan Beulich
2020-09-17 12:51 ` Jan Beulich
2020-09-17 14:05 ` Trammell Hudson
2020-09-17 15:26 ` Jan Beulich
2020-09-17 15:45 ` Trammell Hudson
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=d2687ae0-963b-4d8a-f17a-eabd9945df4b@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=hudson@trmm.net \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.