[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140616221059.GM8170@pd.tnic>
Date: Tue, 17 Jun 2014 00:10:59 +0200
From: Borislav Petkov <bp@...en8.de>
To: Vivek Goyal <vgoyal@...hat.com>
Cc: "H. Peter Anvin" <hpa@...or.com>, WANG Chao <chaowang@...hat.com>,
Dave Young <dyoung@...hat.com>, mjg59@...f.ucam.org,
bhe@...hat.com, jkosina@...e.cz, greg@...ah.com,
kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
ebiederm@...ssion.com, akpm@...ux-foundation.org
Subject: Re: [PATCH 07/13] kexec: Implementation of new syscall
kexec_file_load
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.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
--
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