[PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

Borislav Petkov bp at alien8.de
Mon Jun 16 15:10:59 PDT 2014

On Mon, Jun 16, 2014 at 05:43:13PM -0400, Vivek Goyal wrote:
> Actually currently I am using vzalloc() for command line buffer
> allocation.
> 	image->cmdline_buf = vzalloc(cmdline_len);
> 	if (!image->cmdline_buf)
> 		goto out;
> Should I switch to using kzalloc() instead?

Well, vzalloc could trigger the OOM killer, can't it, for the right
size? If so, then we will have a serious problem.

And this snippet above is down the syscall path.


Sent from a fat crate under my desk. Formatting is fine.

More information about the kexec mailing list