From: Oleg Drokin Date: Fri, 15 Aug 2014 16:48:13 +0000 (-0400) Subject: staging/lustre/llite: Fix integer overflow in ll_fid2path X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1199 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b09efacf54210be511450768c0ee98071feb7f;p=pandora-kernel.git staging/lustre/llite: Fix integer overflow in ll_fid2path Reported by Dan Carpenter outsize = sizeof(*gfout) + gfin->gf_pathlen; Where outsize is int and gf_pathlen is u32 from userspace can lead to integer overflowwhere outsize is some small number less than sizeof(*gfout) Add a check for pathlen to be of sensical size. Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/11412 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5476 Reviewed-by: Dmitry Eremin Reviewed-by: John L. Hammond Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed