[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131122015518.GA31921@redhat.com>
Date: Thu, 21 Nov 2013 20:55:18 -0500
From: Vivek Goyal <vgoyal@...hat.com>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: linux-kernel@...r.kernel.org, kexec@...ts.infradead.org,
hpa@...or.com, mjg59@...f.ucam.org, greg@...ah.com
Subject: Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading
On Thu, Nov 21, 2013 at 03:07:04PM -0800, Eric W. Biederman wrote:
[..]
>
> Before you are done we need an ELF loader. bzImage really is very
> uninteresting. To the point I am not at all convinced that an in kernel
> loader should support it.
Hi Eric,
Why ELF case is so interesting. I have not use kexec to boot ELF
images in years and have not seen others using it too. In fact bzImage
seems to be the most common kernel image format for x86, most of the distros
ship and use.
So first I did the loader for the common use case. There is no reason
that one can't write another loader for ELF images. It just bloats
the code. Hence I thought that other image loaders can follow slowly. I am
not sure why do you say that bzImage is uninteresting.
>
> There is also a huge missing piece of this in that your purgatory is not
> checking a hash of the loaded image before jumping too it. Without that
> this is a huge regression at least for the kexec on panic case. We
> absolutely need to check that the kernel sitting around in memory has
> not been corrupted before we let it run very far.
Agreed. This should not be hard. It is just a matter of calcualting
digest of segments. I will store it in kimge and verify digest again
before passing control to control page. Will fix it in next version.
Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists