[Ocfs2-devel] [PATCH] ocfs2: correctly check the return value of ocfs2_search_extent_list
Andrew Morton
akpm at linux-foundation.org
Tue Jun 10 15:51:04 PDT 2014
On Tue, 10 Jun 2014 21:13:31 +0800 Joseph Qi <joseph.qi at huawei.com> wrote:
> ocfs2_search_extent_list may return -1, so we should check the return
> value in ocfs2_split_and_insert, otherwise it may cause array index out
> of bound.
> And ocfs2_search_extent_list can only return value less than
> el->l_next_free_rec, so check if it is equal or larger than
> le16_to_cpu(el->l_next_free_rec) is meaningless.
So I need to decide which kernel version(s) need this patch. 3.16?
3.15? -stable?
But the changelog did not provide the information needed to make this
decision. Please always provide this information when fixing bugs!
ie: describe the end-user visible impact of the bug.
Thanks.
More information about the Ocfs2-devel
mailing list