Return-Path: Received: from cantor2.suse.de ([195.135.220.15]:41093 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952Ab3KGFNs (ORCPT ); Thu, 7 Nov 2013 00:13:48 -0500 Date: Wed, 6 Nov 2013 22:30:33 +0100 From: Michal Marek Subject: Re: [PATCH] kbuild: replace unbounded sprintf call in modpost Message-ID: <20131106213032.GE22142@pobox.suse.cz> References: <20131025131443.GA7759@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131025131443.GA7759@www.outflux.net> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Kees Cook Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org On Fri, Oct 25, 2013 at 06:14:43AM -0700, Kees Cook wrote: > The modpost tool could overflow its stack buffer if someone was running > with an insane shell environment. Regardless, it's technically a bug, > so this fixes it to truncate the string instead of seg-faulting. > > Found by Coverity. > > Signed-off-by: Kees Cook Applied to kbuild.git#kbuild. Michal