[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161115023508.wqtx3a3smpbjiwz7@thunk.org>
Date: Mon, 14 Nov 2016 21:35:08 -0500
From: Theodore Ts'o <tytso@....edu>
To: Jan Kara <jack@...e.cz>
Cc: Chandan Rajendra <chandan@...ux.vnet.ibm.com>,
linux-ext4@...r.kernel.org, adilger@...ger.ca
Subject: Re: [PATCH V2] ext4: ext4_mb_seq_groups_show: Fix stack memory
corruption
On Thu, Nov 10, 2016 at 06:13:46PM +0100, Jan Kara wrote:
> On Thu 10-11-16 11:16:04, Chandan Rajendra wrote:
> > The number of 'counters' elements needed in 'struct sg' is
> > super_block->s_blocksize_bits + 2. Presently we have 16 'counters'
> > elements in the array. This is insufficient for block sizes >= 32k. In
> > such cases the memcpy operation performed in ext4_mb_seq_groups_show()
> > would cause stack memory corruption.
> >
> > Signed-off-by: Chandan Rajendra <chandan@...ux.vnet.ibm.com>
>
> Looks good. You can add:
>
> Reviewed-by: Jan Kara <jack@...e.cz>
Applied, thanks!
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists