From: Jerry Snitselaar Date: Mon, 22 Jul 2013 19:01:58 +0000 (-0700) Subject: fib_trie: potential out of bounds access in trie_show_stats() X-Git-Tag: v3.11-rc4~22^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f585a991e1d1612265f0d4e812f77e40dd54975b;p=pandora-kernel.git fib_trie: potential out of bounds access in trie_show_stats() With the <= max condition in the for loop, it will be always go 1 element further than needed. If the condition for the while loop is never met, then max is MAX_STAT_DEPTH, and for loop will walk off the end of nodesizes[]. Signed-off-by: Jerry Snitselaar Acked-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed