From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from aserp1040.oracle.com ([141.146.126.69]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TbZqs-0006Jb-Oa for linux-mtd@lists.infradead.org; Thu, 22 Nov 2012 16:42:11 +0000 Date: Thu, 22 Nov 2012 19:41:54 +0300 From: Dan Carpenter To: Artem Bityutskiy Subject: Re: [patch] UBIFS: use kmalloc_array() in recomp_data_node() Message-ID: <20121122164154.GN6186@mwanda> References: <20121117151126.GA16900@elgon.mountain> <1353580297.2701.29.camel@sauron.fi.intel.com> <20121122111411.GJ6186@mwanda> <1353583450.2701.44.camel@sauron.fi.intel.com> <20121122123300.GM6186@mwanda> <1353595689.2701.62.camel@sauron.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1353595689.2701.62.camel@sauron.fi.intel.com> Cc: kernel-janitors@vger.kernel.org, linux-mtd@lists.infradead.org, Adrian Hunter List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Nov 22, 2012 at 04:48:09PM +0200, Artem Bityutskiy wrote: > On Thu, 2012-11-22 at 15:33 +0300, Dan Carpenter wrote: > > It's actually dn->size that we care about here. That's not checked > > in ubifs_check_node(). :( It may be checked somewhere else, I'm > > still looking. > > Wow, despite us trying to be very careful about validating what we read > from flash, it seems we indeed never validate 'size'... Let me invent a > fix for this, which should also be sent to -stable. > Thanks. Could you give me the Reported-by tag? regards, dan carpenter