From: Julien Grall <julien.grall@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xensource.com
Cc: ian.campbell@citrix.com
Subject: Re: [PATCH 2/2] xen/arm: support compressed kernels
Date: Wed, 12 Aug 2015 18:00:51 +0100 [thread overview]
Message-ID: <55CB7BC3.8090006@citrix.com> (raw)
In-Reply-To: <55CB75DE.1090102@citrix.com>
On 12/08/15 17:35, Andrew Cooper wrote:
>> +
>> +static int kernel_zimage64_compressed_probe(struct kernel_info *info,
>> + paddr_t addr, paddr_t size)
>> +{
>> + char *output, *input;
>> + unsigned char magic[2];
>> + int rc;
>> + unsigned kernel_order_in;
>> + unsigned kernel_order_out;
>> + paddr_t output_size;
>> +
>> + copy_from_paddr(magic, addr, sizeof(magic));
>
> Need a size check before assuming sufficient length. (All of the arm
> probe functions suffer in a similar way.)
Are you sure? kernel_zimage{32,64}_probe as long as kernel_uboot_probe
are checking the size before copying the magic...
Regards,
--
Julien Grall
prev parent reply other threads:[~2015-08-12 17:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 14:47 [PATCH 0/2] support compressed kernels on ARM64 Stefano Stabellini
2015-08-12 14:47 ` [PATCH 1/2] xen: move perform_gunzip to common Stefano Stabellini
2015-08-12 15:14 ` Jan Beulich
2015-08-12 16:15 ` Stefano Stabellini
2015-08-13 6:29 ` Jan Beulich
2015-08-13 9:28 ` Stefano Stabellini
2015-08-13 9:57 ` Jan Beulich
2015-08-13 10:17 ` Ian Campbell
2015-08-13 10:27 ` Jan Beulich
2015-08-12 14:47 ` [PATCH 2/2] xen/arm: support compressed kernels Stefano Stabellini
2015-08-12 15:03 ` Ian Campbell
2015-08-12 15:20 ` Julien Grall
2015-08-12 15:22 ` Stefano Stabellini
2015-08-12 15:27 ` Julien Grall
2015-08-12 15:35 ` Jan Beulich
2015-08-12 15:40 ` Stefano Stabellini
2015-08-12 15:43 ` Ian Campbell
2015-08-12 15:09 ` Julien Grall
2015-08-12 16:35 ` Andrew Cooper
2015-08-12 17:00 ` Julien Grall [this message]
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=55CB7BC3.8090006@citrix.com \
--to=julien.grall@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.